From 8b339ee374219a4b173a932f8960b1069dad6b56 Mon Sep 17 00:00:00 2001 From: luiyen Date: Sun, 27 Aug 2023 20:26:15 +0700 Subject: [PATCH 1/5] CodeLlama-hf --- .github/workflows/test-action.yml | 38 ++++++++++++++++++++++++++++++- README.md | 2 +- action.yml | 2 +- 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 5a1f111..63e44ca 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -46,7 +46,7 @@ jobs: } >> $GITHUB_OUTPUT - uses: ./ name: "Code Review" - id: review + id: review1 with: apiKey: ${{ secrets.API_KEY }} githubToken: ${{ secrets.GITHUB_TOKEN }} @@ -62,3 +62,39 @@ jobs: ${{ steps.get_diff.outputs.pull_request_diff }} pullRequestChunkSize: "3500" logLevel: "DEBUG" + - uses: ./ + name: "Code Review" + id: review2 + with: + apiKey: ${{ secrets.API_KEY }} + githubToken: ${{ secrets.GITHUB_TOKEN }} + githubRepository: ${{ github.repository }} + githubPullRequestNumber: ${{ github.event.pull_request.number }} + gitCommitHash: ${{ github.event.pull_request.head.sha }} + repoId: "meta-llama/Llama-2-13b-chat-hf" + temperature: "0.2" + maxNewTokens: "250" + topK: "50" + topP: "0.95" + pullRequestDiff: |- + ${{ steps.get_diff.outputs.pull_request_diff }} + pullRequestChunkSize: "3500" + logLevel: "DEBUG" + - uses: ./ + name: "Code Review" + id: review3 + with: + apiKey: ${{ secrets.API_KEY }} + githubToken: ${{ secrets.GITHUB_TOKEN }} + githubRepository: ${{ github.repository }} + githubPullRequestNumber: ${{ github.event.pull_request.number }} + gitCommitHash: ${{ github.event.pull_request.head.sha }} + repoId: "codellama/CodeLlama-13b-hf" + temperature: "0.2" + maxNewTokens: "250" + topK: "50" + topP: "0.95" + pullRequestDiff: |- + ${{ steps.get_diff.outputs.pull_request_diff }} + pullRequestChunkSize: "3500" + logLevel: "DEBUG" diff --git a/README.md b/README.md index eadc4eb..3d7fa02 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ jobs: githubRepository: ${{ github.repository }} githubPullRequestNumber: ${{ github.event.pull_request.number }} gitCommitHash: ${{ github.event.pull_request.head.sha }} - repoId: "meta-llama/Llama-2-7b-chat-hf" + repoId: "codellama/CodeLlama-7b-hf" temperature: "0.2" maxNewTokens: "250" topK: "50" diff --git a/action.yml b/action.yml index d36b927..9aa39a2 100644 --- a/action.yml +++ b/action.yml @@ -23,7 +23,7 @@ inputs: repoId: description: "LLM model" required: true - default: "meta-llama/Llama-2-7b-chat-hf" + default: "codellama/CodeLlama-7b-hf" maxNewTokens: description: "The amount of new tokens to be generated, this does not include the input length it is a estimate of the size of generated text you want. Each new tokens slows down the request, so look for balance between response times and length of text generated." required: false From e59fe7b263f34b5f6525a07526663004d4f81daa Mon Sep 17 00:00:00 2001 From: Louis Le Date: Sat, 23 Dec 2023 11:56:50 +0700 Subject: [PATCH 2/5] Update test-action.yml --- .github/workflows/test-action.yml | 38 +------------------------------ 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 63e44ca..8091fe7 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -44,42 +44,6 @@ jobs: cat "diff.txt"; echo 'EOF'; } >> $GITHUB_OUTPUT - - uses: ./ - name: "Code Review" - id: review1 - with: - apiKey: ${{ secrets.API_KEY }} - githubToken: ${{ secrets.GITHUB_TOKEN }} - githubRepository: ${{ github.repository }} - githubPullRequestNumber: ${{ github.event.pull_request.number }} - gitCommitHash: ${{ github.event.pull_request.head.sha }} - repoId: "meta-llama/Llama-2-7b-chat-hf" - temperature: "0.2" - maxNewTokens: "250" - topK: "50" - topP: "0.95" - pullRequestDiff: |- - ${{ steps.get_diff.outputs.pull_request_diff }} - pullRequestChunkSize: "3500" - logLevel: "DEBUG" - - uses: ./ - name: "Code Review" - id: review2 - with: - apiKey: ${{ secrets.API_KEY }} - githubToken: ${{ secrets.GITHUB_TOKEN }} - githubRepository: ${{ github.repository }} - githubPullRequestNumber: ${{ github.event.pull_request.number }} - gitCommitHash: ${{ github.event.pull_request.head.sha }} - repoId: "meta-llama/Llama-2-13b-chat-hf" - temperature: "0.2" - maxNewTokens: "250" - topK: "50" - topP: "0.95" - pullRequestDiff: |- - ${{ steps.get_diff.outputs.pull_request_diff }} - pullRequestChunkSize: "3500" - logLevel: "DEBUG" - uses: ./ name: "Code Review" id: review3 @@ -89,7 +53,7 @@ jobs: githubRepository: ${{ github.repository }} githubPullRequestNumber: ${{ github.event.pull_request.number }} gitCommitHash: ${{ github.event.pull_request.head.sha }} - repoId: "codellama/CodeLlama-13b-hf" + repoId: "codellama/CodeLlama-34b-Instruct-hf" temperature: "0.2" maxNewTokens: "250" topK: "50" From 571daabda299e51b4ba8310308d2bd98290c4396 Mon Sep 17 00:00:00 2001 From: Louis Le Date: Sat, 23 Dec 2023 11:57:08 +0700 Subject: [PATCH 3/5] Update test-action.yml --- .github/workflows/test-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 8091fe7..f3ffee4 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -46,7 +46,7 @@ jobs: } >> $GITHUB_OUTPUT - uses: ./ name: "Code Review" - id: review3 + id: review with: apiKey: ${{ secrets.API_KEY }} githubToken: ${{ secrets.GITHUB_TOKEN }} From 5f60b4b99809257b4b35fbc05fc1a7c4c6a9e674 Mon Sep 17 00:00:00 2001 From: Louis Le Date: Sat, 23 Dec 2023 11:59:44 +0700 Subject: [PATCH 4/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d7fa02..596f8c3 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ jobs: githubRepository: ${{ github.repository }} githubPullRequestNumber: ${{ github.event.pull_request.number }} gitCommitHash: ${{ github.event.pull_request.head.sha }} - repoId: "codellama/CodeLlama-7b-hf" + repoId: "codellama/CodeLlama-34b-Instruct-hf" temperature: "0.2" maxNewTokens: "250" topK: "50" From 1e9f85e5356ee99353e09cbb6b38f1ae7abbf878 Mon Sep 17 00:00:00 2001 From: Louis Le Date: Sat, 23 Dec 2023 12:00:01 +0700 Subject: [PATCH 5/5] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9aa39a2..cda3312 100644 --- a/action.yml +++ b/action.yml @@ -23,7 +23,7 @@ inputs: repoId: description: "LLM model" required: true - default: "codellama/CodeLlama-7b-hf" + default: "codellama/CodeLlama-34b-Instruct-hf" maxNewTokens: description: "The amount of new tokens to be generated, this does not include the input length it is a estimate of the size of generated text you want. Each new tokens slows down the request, so look for balance between response times and length of text generated." required: false