Open lingaoqiming123 opened 6 months ago
During inference, an error occurs when merging the base_model and lora_weights. safetensors_rust.SafetensorError: Error while deserializing header: InvalidHeaderDeserialization
已解决。在4.39.3的transfomers中save_safetensors默认值为True。只需在train.py中args=transformers.TrainingArguments()处中添加一行save_safetensors=False。
During inference, an error occurs when merging the base_model and lora_weights. safetensors_rust.SafetensorError: Error while deserializing header: InvalidHeaderDeserialization