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

Feat: GGUF reads #2

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DatCaptainHorse
Copy link

I had already written this GGUF reader few weekends back, I just added few new GGML types introduced.

Marking as draft since it's not properly part of the codebase, as I'm not sure how things should be structured here.

Feel free to comment and ask for changes, hoping this will help push this project forward.

Snippet of the debug method printing out info for Mistral-Small-Instruct Q2_K_L gguf file:

GGUF File Information:
Magic Number: 46554747 (GGUF)
Version: 3
Tensor Count: 507
Metadata KV Count: 42
Metadata:
        Metadata KV 0:
                Key: general.architecture, Type: STRING, Value: llama
        Metadata KV 1:
                Key: general.type, Type: STRING, Value: model
        Metadata KV 2:
                Key: general.name, Type: STRING, Value: Mistral Small Instruct 2409
        Metadata KV 3:
                Key: general.version, Type: STRING, Value: 2409
        Metadata KV 4:
                Key: general.finetune, Type: STRING, Value: Instruct
        Metadata KV 5:
                Key: general.basename, Type: STRING, Value: Mistral
        Metadata KV 6:
                Key: general.size_label, Type: STRING, Value: Small
        Metadata KV 7:
                Key: general.license, Type: STRING, Value: other
        Metadata KV 8:
                Key: general.license.name, Type: STRING, Value: mrl
...

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