The best ChatGPT that $100 can buy.
Python
add both sides of the source check
burtenshaw0abb0fa2e3e2
diff --git a/pyproject.toml b/pyproject.tomlindex 78873e8..26625fc 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -47,9 +47,15 @@ python_functions = ["test_*"]# target torch to cuda 12.8[tool.uv.sources]torch = [- { index = "pytorch-cu128", marker = "platform_system == 'linux'"},+ { index = "pytorch-cpu", marker = "sys_platform != 'linux'" },+ { index = "pytorch-cu128", marker = "sys_platform == 'linux'" },]+[[tool.uv.index]]+name = "pytorch-cpu"+url = "https://download.pytorch.org/whl/cpu"+explicit = true+[[tool.uv.index]]name = "pytorch-cu128"url = "https://download.pytorch.org/whl/cu128"