Skip to content

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

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

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
Member

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

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.

2 participants