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

torch.float32 sigmas when using torch.float16 training #66

Open
Binyr opened this issue Oct 11, 2024 · 0 comments
Open

torch.float32 sigmas when using torch.float16 training #66

Binyr opened this issue Oct 11, 2024 · 0 comments

Comments

@Binyr
Copy link

Binyr commented Oct 11, 2024

Hi,

This line will sample a torch.float32 sigmas.(

sigmas = rand_log_normal(shape=[bsz,], loc=0.7, scale=1.6).to(latents.device)
). As a result, inp_noisy_latents is also converted to torch.float32 (
inp_noisy_latents = noisy_latents / ((sigmas**2 + 1) ** 0.5)
). The same problem happens to (
timesteps = torch.Tensor(
).

Is this torch.float32 type tensor necesaary?

Thank you,
Yanrui

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