Skip to content

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

@nyxkrage

Description

@nyxkrage

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
    # ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions