Skip to content

Pin transformers version in phi example#691

Merged
jambayk merged 1 commit intomainfrom
jambayk/phi-version-pin
Nov 2, 2023
Merged

Pin transformers version in phi example#691
jambayk merged 1 commit intomainfrom
jambayk/phi-version-pin

Conversation

@jambayk
Copy link
Contributor

@jambayk jambayk commented Nov 2, 2023

Describe your changes

The latest version of transformers (>= 4.35.0) is not compatible with the model. PRs: huggingface/transformers#27020, huggingface/transformers#27073 change the expected signature of _set_gradient_checkpointing which now doesn't match the model's https://huggingface.co/microsoft/phi-1_5/blob/main/modeling_mixformer_sequential.py#L802

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Format your code by running pre-commit run --all-files
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

@jambayk jambayk merged commit 480e2b5 into main Nov 2, 2023
@jambayk jambayk deleted the jambayk/phi-version-pin branch November 2, 2023 23:45
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