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
srijanie03 opened this issue
Sep 23, 2024
· 1 comment
Labels
staleissues that have not been addressed in a while; categorized by a bottrainingissues related to ONNX Runtime training; typically submitted using template
I am trying to generate a training graph by specifying the model path directly. It works correctly on CUDA (12.4) but when I run the same on Windows 11, I get an error as this:
AttributeError: 'str' object has no attribute 'graph'.
When I print the forward graph I can clearly see the attribute 'graph' in it.
It does not seem to be model specific as this issue occurs for every graph I try by specifying the model path. Doing onnx.load(onnx_model_path) works but not for a model that is bigger than 2GB.
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.
staleissues that have not been addressed in a while; categorized by a bottrainingissues related to ONNX Runtime training; typically submitted using template
Describe the issue
I am trying to generate a training graph by specifying the model path directly. It works correctly on CUDA (12.4) but when I run the same on Windows 11, I get an error as this:
AttributeError: 'str' object has no attribute 'graph'
.When I print the forward graph I can clearly see the attribute 'graph' in it.
It does not seem to be model specific as this issue occurs for every graph I try by specifying the model path. Doing
onnx.load(onnx_model_path)
works but not for a model that is bigger than 2GB.To reproduce:
https://github.com/microsoft/onnxruntime-training-examples/blob/master/on_device_training/desktop/python/mnist.ipynb
#Backward graph artifacts.generate_artifacts( "mnist.onnx", optimizer=artifacts.OptimType.AdamW, loss=artifacts.LossType.CrossEntropyLoss, requires_grad=requires_grad, frozen_params=frozen_params, artifact_directory="mnist", additional_output_names=["output"])
Urgency
Very urgent
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.19.0
PyTorch Version
2.4.0
Execution Provider
Default CPU
Execution Provider Library Version
CUDA 12.4
The text was updated successfully, but these errors were encountered: