Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ dependencies = [
# API clients
"openai",
"google-genai",
# Security fix for starlette transitive dependency
"starlette>=0.47.2",
]

[tool.hatch.build.targets.wheel]
Expand All @@ -73,25 +75,25 @@ dev = [
]

# CUDA version extras - flash-attn installed separately via prebuild wheels
cu124 = [] # CUDA 12.4 with PyTorch 2.6
cu128 = [] # CUDA 12.8 with PyTorch 2.7
cu126 = [] # CUDA 12.6 with PyTorch 2.8
cu128 = [] # CUDA 12.8 with PyTorch 2.8

[tool.uv.sources]
# CUDA version selection using extras
# Usage examples:
# uv sync --extra cu124 # for CUDA 12.4 (PyTorch 2.6)
# uv sync --extra cu128 # for CUDA 12.8 (PyTorch 2.7)
# uv sync --extra cu126 # for CUDA 12.6 (PyTorch 2.8)
# uv sync --extra cu128 # for CUDA 12.8 (PyTorch 2.8)
# Defaults to CUDA 12.8 for Linux if no extra is specified
torch = [
{ index = "pytorch-cpu", marker = "sys_platform == 'darwin'" },
{ index = "pytorch-cuda-124", marker = "sys_platform == 'linux' and extra == 'cu124'" },
{ index = "pytorch-cuda-128", marker = "sys_platform == 'linux' and extra != 'cu124'" },
{ index = "pytorch-cuda-126", marker = "sys_platform == 'linux' and extra == 'cu126'" },
{ index = "pytorch-cuda-128", marker = "sys_platform == 'linux' and extra != 'cu126'" },
]

torchaudio = [
{ index = "pytorch-cpu", marker = "sys_platform == 'darwin'" },
{ index = "pytorch-cuda-124", marker = "sys_platform == 'linux' and extra == 'cu124'" },
{ index = "pytorch-cuda-128", marker = "sys_platform == 'linux' and extra != 'cu124'" },
{ index = "pytorch-cuda-126", marker = "sys_platform == 'linux' and extra == 'cu126'" },
{ index = "pytorch-cuda-128", marker = "sys_platform == 'linux' and extra != 'cu126'" },
]
nemo_text_processing = [
{ git = "https://github.com/NVIDIA/NeMo-text-processing.git", rev = "48ca992c755001de930d577e2dfd2eda17d871bc", marker = "sys_platform == 'linux'" },
Expand All @@ -103,19 +105,19 @@ name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true

# CUDA indexes for Linux - simplified to support only cu124 and cu128
# Default: cu128 (PyTorch 2.7), Available: cu124 (PyTorch 2.6), cu128 (PyTorch 2.7)
# CUDA indexes for Linux - simplified to support only cu126 and cu128
# Default: cu128 (PyTorch 2.8), Available: cu126 (PyTorch 2.8), cu128 (PyTorch 2.8)

# CUDA 12.8 index for Linux (default) - PyTorch 2.7
# CUDA 12.8 index for Linux (default) - PyTorch 2.8
[[tool.uv.index]]
name = "pytorch-cuda-128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true

# CUDA 12.4 index for Linux - PyTorch 2.6
# CUDA 12.6 index for Linux - PyTorch 2.8
[[tool.uv.index]]
name = "pytorch-cuda-124"
url = "https://download.pytorch.org/whl/cu124"
name = "pytorch-cuda-126"
url = "https://download.pytorch.org/whl/cu126"
explicit = true

[tool.hatch.version]
Expand Down
Loading