Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add environment variable to specify the number of layers to offload to GPU #2055

Merged
merged 1 commit into from
May 5, 2024

Conversation

nopperl
Copy link
Contributor

@nopperl nopperl commented May 5, 2024

This PR allows to set the LLAMA_CPP_N_GPU_LAYERS env var to specify the number of layers to offload to GPU (using the llama.cpp --n-gpu-layers flag). Fixes #892.

@nopperl nopperl changed the title Add environment variable to specify the number of layers to offload to GPU feat: Add environment variable to specify the number of layers to offload to GPU May 5, 2024
@wsxiaoys wsxiaoys merged commit 2785a9a into TabbyML:main May 5, 2024
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Way to provide custom llama.cpp arguments
2 participants