pass llama_cpp.llama.LLama() constructor arg overrides from cli#14
Open
kroll-j wants to merge 4 commits intoRafaelGodoyEbert:mainfrom
Open
pass llama_cpp.llama.LLama() constructor arg overrides from cli#14kroll-j wants to merge 4 commits intoRafaelGodoyEbert:mainfrom
kroll-j wants to merge 4 commits intoRafaelGodoyEbert:mainfrom
Conversation
… from the command line
… from the command line
… from the command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey, awesome project! I use it to create clips with local hardware. I need to pass additional arguments to the Llama() constructor to make the model fit and run on my GPU with decent speed. This PR adds a parameter to the CLI script which takes a JSON object. This overrides any arguments to Llama(). For example:
python main_improved.py [...] --ai-backend local --ai-model-name google_gemma-3-12b-it-Q6_K_L.gguf --llama-args '{ "n_gpu_layers":35, "n_ctx":8192, "kv_overrides":{"kv_unified":true}, "flash_attn": true, "seed": 1 }' --chunk-size 6000This PR changes only the CLI, the GUI is untouched.