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

Are the saved models (either adapter_model.bin or pytorch_model.bin) only 25-26MB in size? #601

Open
LAB-703 opened this issue Nov 7, 2023 · 5 comments

Comments

@LAB-703
Copy link

LAB-703 commented Nov 7, 2023

Is it correct?

@LAB-703
Copy link
Author

LAB-703 commented Nov 7, 2023

plus, anybody know how to convert the saved models to safetensor to upload huggingface?

@minju0307
Copy link

I have same questions and also I wnat to know how to convert safetensor to huggingface foramt( e.g. from_pretrained)

@minju0307
Copy link

I solved installed transformers==4.33.3. the newest transformer version save model default with safetensors, but I think it is not stable for LoRA. with transformers=4.33.3, it saved *.bin model

@Twelve-or-12
Copy link

Twelve-or-12 commented Feb 21, 2024

I solved installed transformers==4.33.3. the newest transformer version save model default with safetensors, but I think it is not stable for LoRA. with transformers=4.33.3, it saved *.bin model

Can you explain more about your setup? I install transformers==4.33.3, and fine-tune CodeLlama-7b with custom dataset, it still outputs safetensors format.
By the way, do you know how to inference with the fine-tuned model. I change the --lora_weights direct to local ./lora-alpaca, it occurs error: safetensors_rust.SafetensorError: Error while deserializing header: InvalidHeaderDeserialization

@XiaoXiaoYi123
Copy link

trainer.save_pretrained(output_dir) will be worked

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

4 participants