Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit transformers != 4.38 #531

Merged
merged 1 commit into from
Mar 29, 2024
Merged

Conversation

HIT-cwh
Copy link
Collaborator

@HIT-cwh HIT-cwh commented Mar 29, 2024

Registering a causal mask in LlamaModel (in transformers 4.38) is not friendly for very large max_position_embeddings. Refer to https://github.com/huggingface/transformers/blob/v4.38.0/src/transformers/models/llama/modeling_llama.py#L921-L923

@pppppM pppppM merged commit 0b5708c into InternLM:main Mar 29, 2024
1 of 3 checks passed
@HIT-cwh HIT-cwh deleted the fix_requirements branch March 29, 2024 10:24
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.

None yet

2 participants