Skip to content

The expanded size of the tensor (707) must match the existing size (512) at non-singleton dimension 1. #116

@MethanJess

Description

@MethanJess

I get this error whenever I run train_finetune.py
(I am using WSL2)

 File "/home/mastaldal/anaconda3/envs/StyleTTS2/lib/python3.10/site-packages/transformers/models/albert/modeling_albert.py", line 719, in forward
    buffered_token_type_ids_expanded = buffered_token_type_ids.expand(batch_size, seq_length)
RuntimeError: The expanded size of the tensor (707) must match the existing size (512) at non-singleton dimension 1.  Target sizes: [1, 707].  Tensor sizes: [1, 512]

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions