Skip to content

The best ChatGPT that $100 can buy.

Python

add check for linux on cpu

burtenshawc7ae920a774f
diff --git a/pyproject.toml b/pyproject.toml
index 8d2c8f0..78873e8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -43,3 +43,14 @@ testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
+
+# target torch to cuda 12.8
+[tool.uv.sources]
+torch = [
+ { index = "pytorch-cu128", marker = "platform_system == 'linux'"},
+]
+
+[[tool.uv.index]]
+name = "pytorch-cu128"
+url = "https://download.pytorch.org/whl/cu128"
+explicit = true
\ No newline at end of file