Skip to content

hparams : add SWA rope parameters #12374

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
Mar 14, 2025
Merged

hparams : add SWA rope parameters #12374

merged 1 commit into from
Mar 14, 2025

Conversation

ggerganov
Copy link
Member

cont #12373

Add notion of SWA-related rope parameters. Currently, only part of the hparams, but in the future could be added to the cparams if we want to be able to control these per-context.

Also add debug logs to know which layers use SWA.

@bartowski1182
Copy link
Contributor

bartowski1182 commented Mar 13, 2025

Would this necessitate reconverting Gemma 3 since we no longer have hard coded detection for the Arch? Or is it using already existing metadata?

@ggerganov
Copy link
Member Author

No, the change is backwards compatible. It's a simple refactoring of the code, to make it less special-cased.

@ggerganov ggerganov merged commit 081bee8 into master Mar 14, 2025
54 checks passed
jpohhhh pushed a commit to Telosnex/llama.cpp that referenced this pull request Mar 14, 2025
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Mar 19, 2025
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