Skip to content

Commit

Permalink
Use platform_system to install ort-directml on Windows (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfowers authored Nov 20, 2024
1 parent 50996bb commit b2689e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
# ImportError: DLL load failed while importing onnx_cpp2py_export
"onnx>=1.11.0,<1.16.2",
"onnxmltools==1.10.0",
"onnxruntime >=1.10.1",
"onnxruntime >=1.10.1;platform_system=='Linux'",
"onnxruntime-directml==1.19.0;platform_system=='Windows'",
"torch>=1.12.1",
"pyyaml>=5.4",
"typeguard>=2.3.13",
Expand All @@ -61,7 +62,7 @@
"uvicorn[standard]",
],
"llm-oga-dml": [
"onnxruntime-directml==1.19.0",
# "onnxruntime-directml==1.19.0",
"onnxruntime-genai-directml==0.4.0",
"tqdm",
"torch>=2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/turnkeyml/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.0.4"
__version__ = "4.0.5"

0 comments on commit b2689e3

Please sign in to comment.