You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
PR #34191 introduces a new Loss API. Post this PR, Dynamo was broken, which was identified and fixed in this issue: #34402. Post this (on master), Dynamo runs without errors.
However, in this process, a new Graph Break has been introduced due to this line:
System Info
transformers
version: 4.47.0.dev0Who can help?
@ArthurZucker
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
PR #34191 introduces a new Loss API. Post this PR, Dynamo was broken, which was identified and fixed in this issue: #34402. Post this (on master), Dynamo runs without errors.
However, in this process, a new Graph Break has been introduced due to this line:
This is due to the new regex check.
Since the dispatch function actually checks for an attr on the config, the fix for this is quite simple - set the loss_type at model init time itself.
Expected behavior
No additional graph breaks.
The text was updated successfully, but these errors were encountered: