Skip to content

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

@Binyr

Description

@Binyr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions