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

raise ValueError("Attempting to unscale FP16 gradients.") #70

Open
hw-liang opened this issue Sep 17, 2024 · 0 comments
Open

raise ValueError("Attempting to unscale FP16 gradients.") #70

hw-liang opened this issue Sep 17, 2024 · 0 comments

Comments

@hw-liang
Copy link

I was trying to finetune the VAE decoder. I met this error:

raise ValueError("Attempting to unscale FP16 gradients.").

I set args.mixed_precision as fp16. And here is how I load the vae model:

    vae = AutoencoderKL.from_pretrained(
        args.pretrained_model_name_or_path,
        subfolder="vae",
        use_safetensors=True
    )

Do you have any suggestion?

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