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

HF exported models are always float32 #610

Open
versae opened this issue Jun 3, 2024 · 1 comment
Open

HF exported models are always float32 #610

versae opened this issue Jun 3, 2024 · 1 comment

Comments

@versae
Copy link
Contributor

versae commented Jun 3, 2024

I've noticed that despite training on bfloat16 models and having c=bfloat16 in the model config when training, the exported model to the HuggingFace hub is always float32. Is there a way to have the exported models match whatever parameter I set as c in the model config?

@dlwh
Copy link
Member

dlwh commented Jun 3, 2024

I mean, I think the default being the "param" dtype is probably how I want it (since bf16 is of course more lossy), but I think it makes sense to add a specific dtype argument to the export

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