|
| 1 | +[project] |
| 2 | +name = "lighthouse" |
| 3 | +version = "0.1.0a1" |
| 4 | +requires-python = ">=3.10,<3.13" # Bounds are due to torch-mlir's packaging |
| 5 | +dependencies = [ |
| 6 | + "mlir-python-bindings==20251011+3af43e303", |
| 7 | +] |
| 8 | + |
| 9 | +[project.optional-dependencies] |
| 10 | +# Additional "targets" which pull in optional dependencies -- use `uv sync --extra TARGET` |
| 11 | +ingress_torch_cpu = [ |
| 12 | + "torch==v2.8.0+cpu", |
| 13 | + "torch-mlir==20251003.589" |
| 14 | +] |
| 15 | +ingress_torch_nvidia = [ |
| 16 | + "torch==2.8.0", # Nvidia-enabled version of torch |
| 17 | + "torch-mlir==20251003.589" |
| 18 | +] |
| 19 | +ingress_torch_rocm = [ |
| 20 | + "torch==2.8.0+rocm6.4", # AMD-enabled version of torch |
| 21 | + "torch-mlir==20251003.589", |
| 22 | + "pytorch_triton_rocm" # Transitive dependency listed explicitly so that we can state which package repository it is supposed to come from |
| 23 | +] |
| 24 | +ingress_torch_xpu = [ |
| 25 | + "torch==2.8.0+xpu", # Intel-enabled version of torch |
| 26 | + "torch-mlir==20251003.589", |
| 27 | + "pytorch_triton_xpu" # Transitive dependency listed explicitly so that we can state which package repository it is supposed to come from |
| 28 | +] |
| 29 | + |
| 30 | +[tool.uv] |
| 31 | +# Declare that the following "targets" are mutually exclusive of one another |
| 32 | +conflicts = [ |
| 33 | + [ |
| 34 | + {extra = "ingress_torch_cpu" }, |
| 35 | + {extra = "ingress_torch_nvidia" }, |
| 36 | + {extra = "ingress_torch_rocm" }, |
| 37 | + {extra = "ingress_torch_xpu" } |
| 38 | + ] |
| 39 | +] |
| 40 | + |
| 41 | +[tool.uv.sources] |
| 42 | +# Bind packages to particular package repositories |
| 43 | +mlir_python_bindings = { index = "eudsl" } |
| 44 | +torch = { index = "pytorch" } |
| 45 | +pytorch_triton_xpu = { index = "pytorch" } |
| 46 | +pytorch_triton_rocm = { index = "pytorch" } |
| 47 | +torch_mlir = { index = "torch_mlir" } |
| 48 | + |
| 49 | +# The following are the different non-Pypi package repositories we depend on |
| 50 | +[[tool.uv.index]] |
| 51 | +name = "eudsl" |
| 52 | +url = "https://llvm.github.io/eudsl" |
| 53 | +explicit = true |
| 54 | +format = "flat" |
| 55 | + |
| 56 | +[[tool.uv.index]] |
| 57 | +name = "pytorch" |
| 58 | +url = "https://download.pytorch.org/whl" |
| 59 | +explicit = true |
| 60 | + |
| 61 | +[[tool.uv.index]] |
| 62 | +name = "torch_mlir" |
| 63 | +url = "https://github.com/llvm/torch-mlir-release/releases/expanded_assets/dev-wheels" |
| 64 | +explicit = true |
0 commit comments