Skip to content

Added support for overriding tensor buffer types #2007

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zpin
Copy link

@zpin zpin commented Apr 29, 2025

Equivalent to the -ot llama.cpp argument:

{"--override-tensor", "-ot"}, "<tensor name pattern>=<buffer type>,...",

Can be passed as an optionlal string to the Llama class using the new override_tensor parameter. Same format as the argument above.

Provides more control over how memory is used, letting you selectively place specific tensors on different devices, especially helpful when running large MOE models.

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.

1 participant