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

llama: add an api to get max devices at runtime. #2253

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

AsakusaRinne
Copy link
Contributor

When using llama.cpp as a native library for other languages, the package of native library and main package may be separated. Thus it makes the size of llama_context_params unknown. Could you please consider adding an API to get the LLAMA_MAX_DEVICES at runtime?

@ggerganov
Copy link
Owner

Ah, I have somehow missed that. Having a variable array in the API the size of which depends on the compile flags is not good. I will merge this now to not block you, but this API will be changed

@ggerganov ggerganov merged commit 294f424 into ggerganov:master Jul 19, 2023
24 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.

None yet

2 participants