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 LLAMA_CPP_N_THREADS env #742

Merged
merged 4 commits into from
Nov 9, 2023
Merged

feat: add LLAMA_CPP_N_THREADS env #742

merged 4 commits into from
Nov 9, 2023

Conversation

erfanium
Copy link
Contributor

@erfanium erfanium commented Nov 9, 2023

i think we don't need to use llama_set_n_threads method. it's likely used for runtime modifications. we only need to set ctx_params

fixes #738

crates/llama-cpp-bindings/src/engine.cc Outdated Show resolved Hide resolved
@erfanium erfanium changed the title feat: add LLAMA_CPP_N_THREADS and LLAMA_CPP_N_THREADS_BATCH envs feat: add LLAMA_CPP_N_THREADS env Nov 9, 2023
@erfanium erfanium requested a review from wsxiaoys November 9, 2023 19:45
@wsxiaoys wsxiaoys enabled auto-merge (squash) November 9, 2023 19:48
@wsxiaoys wsxiaoys merged commit 138b745 into TabbyML:main Nov 9, 2023
2 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.

Add environment variable to control the intra-thread number of thread
2 participants