Skip to content

torch._dynamo.exc.Unsupported: unexpected sourceless type bases: (<class 'torchrec.streamable.Pipelineable'>,) #110315

@suo

Description

@suo

This is happening when trying to use torch.export on some code involving KJTs.

Internal stack trace: P840857345
Repro: P840859224

Notes:

  • This is happening when we trace the construction of KJT, then pass that KJT as input to a module that we have configured to be preserve_module_call_signature.
  • If I remove the KJT construction, and pass a KJT we got directly from the input, things work (strange!)
  • Ed suggested commenting out this check. When we do this, things will pass, although I gather that this is unsafe because we would not be properly installing guards.

@ezyang says he knows what's going on and can post an OSS repro when he has some time

cc @ezyang @anijain2305 @chauhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @ydwu4 @msaroufim @wconstab @bdhirsh @zou3519 @aakhundov @Xia-Weiwen

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions