Function to check GGUF version? #3955
Answered
by
KerfuffleV2
danemadsen
asked this question in
Q&A
-
Is there a function i can use to check which GGUF version a model is on without hard loading it with something like llama_init_from_gpt_params. Im wanting to do this so i can tell users their model is too old in my app without relying on error handling. |
Beta Was this translation helpful? Give feedback.
Answered by
KerfuffleV2
Nov 5, 2023
Replies: 1 comment
-
It's kind of hacky but you can just check the 5th byte in the file. The field is a For example:
That's a GGUFv2 file.
That's a GGUFv3 file. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
danemadsen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's kind of hacky but you can just check the 5th byte in the file. The field is a
uint32
but this should work until after GGUF version 255.For example:
That's a GGUFv2 file.
That's a GGUFv3 file.