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

[FR] Ability to set metadata on GGUF files #1

Open
nyxkrage opened this issue Jun 20, 2024 · 0 comments
Open

[FR] Ability to set metadata on GGUF files #1

nyxkrage opened this issue Jun 20, 2024 · 0 comments

Comments

@nyxkrage
Copy link

This would be useful to override certain settings for the quantized models, such as the context size for mistral 0.1 models, where llamacpp doesn't support SWA for the full 32k context or for llama3 models where llamcpp incorrectly detects the pretokenizer as smaug-bpe instead of llama-bpe

See gguf-py:gguf-set-metadata.py for upstream implementation of this

I imagine it would look like an option in the yaml like so

gguf:
  enabled: true
  # ...
  metadata:
    tokenizer.ggml.pre: llama-bpe
    # ...
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

No branches or pull requests

1 participant