-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Any tutorial to convert pytroch model to gguf? #705
Comments
I think you just have to use the convert.py script as described in the llama.cpp README:
|
Thanks for the reply, besides, other than model parameters, how to convert the designed model structure to ggml format? |
A bit unrelated, I tried converting a (pytorch) safetensors model into ggml by following the gguf-py example.
I'm still trying to figure out the next step after loading the gguf model by following this example (i.e building the compute graph) |
Well, since there is no more further feedback, regarding my question, I guess the answer is that there is no formal turtorial to generate a causal model to inference in gguf fromat. I think there is no challenge to convert the weights from pth file to gguf style, but there is some effort to load the weights into the inference framework, because you have to be familiar with the framework, and code the framework by yourserf! I plan to close this issue soon, but if my opinion is wrong, pls let me know. |
Hi, thanks for this awesome lib, and to convert a self-designed pytorch model to gguf file/model, is there any turtorial given as reference?
Best regards
HCX
The text was updated successfully, but these errors were encountered: