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

请问在运行pre_train.py时,执行trainer.train(script_args.resume)这句代码时候报错如下该怎么解决 #1

Open
breath1124 opened this issue Apr 17, 2024 · 1 comment

Comments

@breath1124
Copy link

RuntimeError:
Some tensors share memory, this will lead to duplicate memory on disk and potential differences when loading them again: [{'output.weight', 'tok_embeddings.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

0%| | 500/1300653 [02:59<129:57:19, 2.78it/s]

@wdndev
Copy link
Owner

wdndev commented Apr 17, 2024

可以看一下这个链接 https://github.com/huggingface/safetensors/issues/98,
升级一下transformers,我暂时没有遇到这个问题

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

2 participants