Skip to content

maybe_compute_generative_loss error #6

@azuredsky

Description

@azuredsky

superclip/training/train.py", line 432, in maybe_compute_generative_loss
return F.cross_entropy(token_logits.permute(0, 2, 1), token_labels)
RuntimeError: permute(sparse_coo): number of dimensions in the tensor input does not match the length of the desired ordering of dimensions i.e. input.dim() = 2 is not equal to len(dims) = 3
run===== torch.Size([32, 49408]) torch.Size([32, 77]) torch.Size([32, 512])run=====

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions