digitalneedstech/LLM Code Review

A container GitHub Action to review a pull request by HuggingFace LLM Model.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Oct 24, 2024
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: digitalneedstech/code-review-action@f820fb5fb4e0fb162d7b90414c2d5479558836a8 # 2

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
githubTokenGithub token to access the repoyes
apiKeyHuggingface access token from [https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens)yes
githubRepositoryThe GitHub repository to use for the actionyes${{ github.repository }}
githubPullRequestNumberThe GitHub pull request number to use for the actionyes${{ github.event.pull_request.number }}
gitCommitHashThe GitHub commit hash to use for the actionyes${{ github.event.pull_request.head.sha }}
repoIdLLM modelyesmeta-llama/Llama-2-7b-chat-hf
maxNewTokensThe 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.no1024
temperatureThe temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability.no0.2
topKInteger to define the top tokens considered within the sample operation to create new textno50
topPFloat to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p.no0.95
pullRequestDiffPull request diffyes
pullRequestChunkSizePull request chunk sizeno3500
logLevelLog levelnoINFO
accessKeyAccess KeyyesINFO
secretKeySecret KeyyesINFO
sessionTokenSession TokenyesINFO

no outputs