guide to run on Windows with CUDA
#2
by
froilo
- opened
replace the project.toml with
[project]
name = "nari-tts"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"descript-audio-codec>=1.0.0",
"gradio>=5.25.2",
"huggingface-hub>=0.30.2",
"numpy>=2.2.4",
"pydantic>=2.11.3",
"soundfile>=0.13.1",
# Specify CPU versions as default or for other platforms
"torch>=2.6.0",
"torchaudio>=2.6.0",
]
[tool.uv]
# Define custom index for PyTorch CUDA wheels
[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true # Recommended to avoid conflicts with other packages
# Override torch and torchaudio for Windows to use the CUDA index
[tool.uv.sources]
torch = [
{ index = "pytorch-cu124", marker = "sys_platform == 'win32'" },
]
torchaudio = [
{ index = "pytorch-cu124", marker = "sys_platform == 'win32'" },
]
[tool.ruff]
# Never enforce `E501` (line length violations).
lint.ignore = ["C901", "E501", "E741", "W605"]
lint.select = ["C", "E", "F", "I", "W"]
line-length = 119
# Ignore import violations in all `__init__.py` files.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
[tool.ruff.lint.isort]
lines-after-imports = 2
provided you have uv installed run uv sync
then uv run app.py