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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph break: torch._dynamo.exc.Unsupported: non-function or method super: <slot wrapper '__setitem__' of 'collections.OrderedDict' objects> #126027

Open
ezyang opened this issue May 12, 2024 · 1 comment
Assignees
Labels
high priority module: dynamo oncall: pt2 triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@ezyang
Copy link
Contributor

ezyang commented May 12, 2024

馃悰 Describe the bug

Internal xref: fb.workplace.com/groups/1075192433118967/posts/1426726281298912

Repro script: gist.github.com/ezyang/ff84e2d4b90bb6f9d83171b1582a237c

DEBUG:torch._dynamo.symbolic_convert.__graph_breaks:Graph break: from user code at:
  File "/data/users/ezyang/b/transformers/src/transformers/utils/generic.py", line 345, in __setitem__
    super().__setitem__(key, value)
Traceback (most recent call last):
  File "/data/users/ezyang/b/pytorch/torch/_dynamo/symbolic_convert.py", line 494, in wrapper
    return inner_fn(self, inst)
  File "/data/users/ezyang/b/pytorch/torch/_dynamo/symbolic_convert.py", line 1253, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/data/users/ezyang/b/pytorch/torch/_dynamo/symbolic_convert.py", line 737, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/data/users/ezyang/b/pytorch/torch/_dynamo/variables/misc.py", line 667, in call_function
    return self.obj.call_method(tx, self.name, args, kwargs)
  File "/data/users/ezyang/b/pytorch/torch/_dynamo/variables/misc.py", line 179, in call_method
    unimplemented(f"non-function or method super: {inner_fn}")
  File "/data/users/ezyang/b/pytorch/torch/_dynamo/exc.py", line 216, in unimplemented
    raise Unsupported(msg)
torch._dynamo.exc.Unsupported: non-function or method super: <slot wrapper '__setitem__' of 'collections.OrderedDict' objects>

I guess this is high priority since it's a utilty function in HF, so it is likely to affect many models.

Versions

main

cc @gchanan @zou3519 @kadeng @msaroufim @bdhirsh @anijain2305 @chauhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78

@ezyang ezyang changed the title torch._dynamo.exc.Unsupported: non-function or method super: <slot wrapper '__setitem__' of 'collections.OrderedDict' objects> Graph break: torch._dynamo.exc.Unsupported: non-function or method super: <slot wrapper '__setitem__' of 'collections.OrderedDict' objects> May 12, 2024
@bdhirsh bdhirsh added triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module and removed triage review labels May 14, 2024
@williamwen42
Copy link
Member

This and #126028 likely have the same cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority module: dynamo oncall: pt2 triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

3 participants