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

Newer HF transformers version saves model weights as model.safetensors instead of pytorch_model.bin #198

Open
guo0O0o opened this issue Jun 18, 2024 · 3 comments

Comments

@guo0O0o
Copy link
Contributor

guo0O0o commented Jun 18, 2024

Following sequence tagging Chemprot example gives errors on newer versions of HF transformers (currently on 4.41.2). Apparently model.save_pretrained('folder/') now saves model as .safetensors rather than .bin

@tmills
Copy link
Contributor

tmills commented Jul 26, 2024

image (4)

@tmills
Copy link
Contributor

tmills commented Jul 26, 2024

hmmm... I went to replicate this now and I can't get it to fail.

@tmills
Copy link
Contributor

tmills commented Jul 26, 2024

From @guo0O0o : i think you can also just add the flag --save_safetensors False at the end of your script

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