[ONNX] dynamo_export always uses external ONNX weights if the argument is ExportedProgram, even for small models #126479
Labels
module: onnx
Related to torch.onnx
onnx-triaged
triaged by ONNX team
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃悰 Describe the bug
dynamo_export always uses external ONNX weights if the argument is ExportedProgram.
dynamo_export never uses external ONNX weights if the argument is Module - I filed separate issue for that.
This behavior is inconsistent with what onnx.export() had and forces users to calculate memory requirements themselves and branch on that.
Versions
Pytorch nightly 05/14/24
The text was updated successfully, but these errors were encountered: