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

How do I keep parts of model as fp32 #373

Open
Leedonus opened this issue Dec 26, 2024 · 0 comments
Open

How do I keep parts of model as fp32 #373

Leedonus opened this issue Dec 26, 2024 · 0 comments

Comments

@Leedonus
Copy link

Hello, I want to keep some parts of model to fp32. I set the torch_dtype to torch.float16 according transformers, but all parameters are set to fp32. Is there any other suitable method?
图片

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

1 participant