Open gchun88 opened 1 year ago
Hi @gchun88, have you tried running python -m torch_ort.configure
after installing onnxruntime-training
and torch-ort? If not, please try it first.
@gchun88 add
%python -m torch_ort.configure
after %pip install torch-ort
and you should be good to go
Hi @gchun88, have you tried running
python -m torch_ort.configure
after installing onnxruntime-training and torch-ort? If not, please try it first.
I have tried that command, but it did not work out. The message showed cannot find the torch_ort library which I can import it in python.
The environment is actually under databricks. So it's a bit tricky on my end to deal with python wheel with the correct environment, but I ran it with the magin function %python -m torch_ort.configure
Describe the issue
I got an error while doing the below code :
ORTModuleInitException: ORTModule's extensions were not detected at '/local_disk0/.ephemeral_nfs/envs/pythonEnv.../lib/python3.9/site-packages/onnxruntime/training/ortmodule/torch_cpp_extensions' folder. Run
python -m torch_ort.configure
before usingORTModule
frontend.I have 0 idea where to look at and start debugging it.
To reproduce
Please run the above code and I am doing it in the below libraries
Urgency
I have to finish it by end of this week at least and need to figure this out fast.
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.7.0
PyTorch Version
3.9
Execution Provider
CUDA
Execution Provider Library Version
cuda 11.3