Open txye opened 1 year ago
RuntimeError:
Some tensors share memory, this will lead to duplicate memory on disk and potential differences when loading them again: [{'0.auto_model.encoder.embed_tokens.weight', '0.auto_model.shared.weight'}].
A potential way to correctly save your model is to use save_model
.
More information at https://huggingface.co/docs/safetensors/torch_shared_tensors
Could you please help me to resolve this?
Hi, Thanks a lot for your interest in the INSTRUCTOR model!
Could you provide a short script for me to reproduce the error?
I am getting the same error! I don't know how to solve this @hongjin-su I hope you would help me in this:
Traceback (most recent call last):
File "/ClusterLLM/perspective/2_finetune/finetune.py", line 617, in save_model
.
More information at https://huggingface.co/docs/safetensors/torch_shared_tensors
raise RuntimeError( RuntimeError: Some tensors share memory, this will lead to duplicate memory on disk and potential differences when loading them again: [{'0.auto_model.shared.weight', '0.auto_model.encoder.embed_tokens.weight'}]. A potential way to correctly save your model is to use
save_model
. More information at https://huggingface.co/docs/safetensors/torch_shared_tensors