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

thread '<unnamed>' panicked at 'called Result::unwrap() on an Err value: InvalidMagic { path: "model_merak.bin" }', src/model.rs:47:12 #34

Open
widyaputeriaulia10 opened this issue Sep 14, 2023 · 3 comments

Comments

@widyaputeriaulia10
Copy link

Hi Author, I tried to implement llm-rs in my jupyter. After i installed RUST the error still occured :

thread '' panicked at 'called Result::unwrap() on an Err value: InvalidMagic { path: "model_merak.bin" }', src/model.rs:47:12

PanicException Traceback (most recent call last)
Cell In[9], line 4
1 from llama_rs_python import Model
3 #load the model
----> 4 model = Model("model_merak.bin")
6 #generate
7 print(model.generate("Arti kehidupan adalah"))

PanicException: called Result::unwrap() on an Err value: InvalidMagic { path: "model_merak.bin" }

i saved my model (LLAMA based) in the same directory with the notebook file

@LLukas22
Copy link
Owner

What format has your model? rustformers currently only supports GGJT models. GGUF support still needs some more time.
The error your getting means your model has an unknown file type.

@QtRoS
Copy link

QtRoS commented Sep 27, 2023

GGUF support still needs some more time.

How can I help or track progress on this?

@LLukas22
Copy link
Owner

This is the related PR in the rustformers repo rustformers/llm#412

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

3 participants