-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
Regression - Phi3 has graph breaks in 4.48 but not in 4.47.1 #35716
Comments
Will have a look asap! |
You have repro'ed it correctly as we can see Alternatively, you can put the repro code in a script |
Line if hasattr(self.config, "original_max_position_embeddings"):
original_max_position_embeddings = self.config.original_max_position_embeddings
else:
original_max_position_embeddings = self.config.max_position_embeddings I would have expected this to be compilable, but possibly @kshitij12345, if you're comfortable, can you try:
|
Hey all! I've been looking at this issue for a while and identified the points of graph breaks. The two main changes are manual device movement here
and the fact that we stopped inferring seq length from inputs shape (below), rather we infer it from
cc'ing also @Cyrilvallez for RoPE refactoring |
Thanks for the ping and investigation @zucchini-nlp! For the first issue, making |
Second point is related to what I faced in #35681 in order to never break graph |
@Cyrilvallez great, thanks for proposing solutions. Feel free to submit a PR :) |
System Info
transformers
version: 4.48.0Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
For 4.48, we see 4 subgraphs while with previous 4.47.1 we see only 1 subgraph.
Running with
TORCH_LOGS="graph_breaks"
printsExpected behavior
Should have a single subgraph ideally like before.
The text was updated successfully, but these errors were encountered: