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

How to load the finetuned model in safetensors format(not in gguf) #201

Open
pradeepdev-1995 opened this issue Feb 15, 2024 · 0 comments
Open

Comments

@pradeepdev-1995
Copy link

pradeepdev-1995 commented Feb 15, 2024

I have finetuned the mistral base model with my data using LORA PEFT
Base model tried: mistralai/Mistral-7B-Instruct-v0.2
Finetuned merged model folder structure:
Screenshot from 2024-02-15 10-49-03
All model files are in safetensors format. not in gguf.
Now i tried to load the finetuned model with ctransformes

import ctransformers
from ctransformers import AutoModelForCausalLM
llm = AutoModelForCausalLM.from_pretrained("Directory Path",
                                           model_file="Model folder name",
                                           model_type="mistral",
                                           gpu_layers=1)

But it shows the given error

ValueError: Model file '<Model folder name>' not found in '<Directory Path>'

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

1 participant