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

persimmon : simplify rope logic #4302

Closed
wants to merge 3 commits into from

Conversation

Galunid
Copy link
Collaborator

@Galunid Galunid commented Dec 3, 2023

Make it similar to stablelm now that gpt-neox is supported for all layers.
I tried to allow for full offloading, but tmpqkv are on CPU and not on GPU.

@Galunid
Copy link
Collaborator Author

Galunid commented Dec 3, 2023

This is possible thanks to #4156

@ggerganov
Copy link
Owner

You can offload tmpqkv by adding an entry in the k_offload_map:

llama.cpp/llama.cpp

Lines 5262 to 5271 in 3cb1c34

{ "bqkv", OFFLOAD_FUNC_KQ },
{ "wqkv_clamped", OFFLOAD_FUNC_KQ },
{ "tmpk", OFFLOAD_FUNC_KQ },
{ "tmpq", OFFLOAD_FUNC_KQ },
{ "tmpv", OFFLOAD_FUNC_V },
{ "Kcur", OFFLOAD_FUNC_KQ },
{ "Qcur", OFFLOAD_FUNC_KQ },
{ "Vcur", OFFLOAD_FUNC_V },

@Galunid Galunid marked this pull request as draft December 4, 2023 03:17
@Galunid Galunid closed this May 20, 2024
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