Skip to content

normed_output = model.generate(normed_seqs, max_new_tokens=prediction_length) #58

Open
@Alex19970228

Description

@Alex19970228

debug:
File "/home/zhanghuanhome/miniconda3/lib/python3.12/site-packages/transformers/modeling_attn_mask_utils.py", line 331, in _prepare_4d_causal_attention_mask
attention_mask = attn_mask_converter.to_4d(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zhanghuanhome/miniconda3/lib/python3.12/site-packages/transformers/modeling_attn_mask_utils.py", line 139, in to_4d
expanded_attn_mask = causal_4d_mask.masked_fill(expanded_attn_mask.bool(), torch.finfo(dtype).min)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: The size of tensor a (2880) must match the size of tensor b (30) at non-singleton dimension 3

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