Open LAB-703 opened 1 year ago
plus, anybody know how to convert the saved models to safetensor to upload huggingface?
I have same questions and also I wnat to know how to convert safetensor to huggingface foramt( e.g. from_pretrained)
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
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
trainer.save_pretrained(output_dir) will be worked
Is it correct?