38 lines
1.1 KiB
TOML
38 lines
1.1 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "single-gpu-model-server"
|
|
version = "0.1.0"
|
|
description = "Sequential API server for Whisper, Pyannote, HuBERT emotion recognition, and Qwen"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"fastapi>=0.115,<1",
|
|
"uvicorn[standard]>=0.30,<1",
|
|
"python-multipart>=0.0.9,<1",
|
|
"pydantic-settings>=2.4,<3",
|
|
"torch>=2.4,<3",
|
|
"transformers>=4.45,<5",
|
|
"huggingface-hub>=0.26,<1",
|
|
"accelerate>=0.34,<2",
|
|
"bitsandbytes>=0.43,<1; platform_system == 'Linux'",
|
|
"faster-whisper>=1.0,<2",
|
|
# CTranslate2 wheels currently target CUDA 12 even when PyTorch uses CUDA 13.
|
|
"nvidia-cublas-cu12>=12,<13; platform_system == 'Linux' and platform_machine == 'x86_64'",
|
|
"pyannote.audio>=4.0.4,<5",
|
|
]
|
|
|
|
[project.scripts]
|
|
llmserver-download-models = "app.download_models:main"
|
|
|
|
[project.optional-dependencies]
|
|
test = ["httpx>=0.27,<1", "pytest>=8,<9", "pytest-asyncio>=0.23,<1"]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["app"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|