Skip to content

Fix reshape error in mamba#1369

Merged
regisss merged 1 commit into
transformers_futurefrom
hsub_mamba_fix
Sep 28, 2024
Merged

Fix reshape error in mamba#1369
regisss merged 1 commit into
transformers_futurefrom
hsub_mamba_fix

Conversation

@hsubramony
Copy link
Copy Markdown
Collaborator

@hsubramony hsubramony commented Sep 27, 2024

What does this PR do?

attention_mask not set to none in the default case ie use_cache and token_idx not none

Fixes # (issue)

Runtime error seen on Transformer 4.45 future branch.
GAUDI2_CI=1 RUN_SLOW=1 python3.10 -m pytest tests/test_text_generation_example.py -s -v -k "mamba"
6626 RuntimeError: Reshape doesnt support change in number of elements: [1536, 1536, 110] Size of output: [2359296]

@regisss regisss merged commit 047e7ff into transformers_future Sep 28, 2024
@regisss regisss deleted the hsub_mamba_fix branch September 28, 2024 11:11
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

Successfully merging this pull request may close these issues.

3 participants