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

Add position_ids argument to DistributedFalconModel #525

Merged
merged 1 commit into from
Oct 8, 2023
Merged

Conversation

mryab
Copy link
Member

@mryab mryab commented Oct 8, 2023

In huggingface/transformers@a796f7e, Falcon started supporting the position_ids argument and passing it to the model. The current code for DistributedFalconModel.forward does not handle this argument, which results in errors when running tests. This PR fixes the problem by handling position_ids similarly to the LLaMA model.

@mryab mryab requested a review from borzunov October 8, 2023 18:48
@mryab mryab marked this pull request as ready for review October 8, 2023 18:48
@mryab mryab merged commit ae19b65 into main Oct 8, 2023
11 checks passed
@mryab mryab deleted the fix_falcon branch October 8, 2023 19:09
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.

2 participants