Files

72 lines
1.4 KiB
TOML
Raw Permalink Normal View History

2025-10-13 06:49:24 -07:00
[project]
name = "nanochat"
version = "0.1.0"
description = "the minimal full-stack ChatGPT clone"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"datasets>=4.0.0",
"fastapi>=0.117.1",
"kernels>=0.11.7",
2025-10-13 06:49:24 -07:00
"psutil>=7.1.0",
"rustbpe>=0.1.0",
2025-10-13 06:49:24 -07:00
"tiktoken>=0.11.0",
"tokenizers>=0.22.0",
2026-02-03 20:51:26 +00:00
"torch==2.9.1",
2025-10-13 06:49:24 -07:00
"uvicorn>=0.36.0",
"wandb>=0.21.3",
]
[dependency-groups]
dev = [
"ipykernel>=7.1.0",
"matplotlib>=3.10.8",
2025-10-13 06:49:24 -07:00
"pytest>=8.0.0",
"python-dotenv>=1.2.1",
"transformers>=4.57.3",
2025-10-13 06:49:24 -07:00
]
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
2025-10-20 06:51:52 +02:00
# target torch to cuda 12.8 or CPU
2025-10-20 06:51:52 +02:00
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", extra = "cpu" },
{ index = "pytorch-cu128", extra = "gpu" },
2025-10-20 06:51:52 +02:00
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://mirror.sjtu.edu.cn/pytorch-wheels/cpu"
2025-10-20 10:44:07 +02:00
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://mirror.sjtu.edu.cn/pytorch-wheels/cu128"
explicit = true
[project.optional-dependencies]
cpu = [
2026-04-13 10:50:57 +02:00
"setuptools>=65.0.0",
2026-02-03 20:51:26 +00:00
"torch==2.9.1",
]
gpu = [
2026-02-03 20:51:26 +00:00
"torch==2.9.1",
]
[tool.uv]
default-groups = []
conflicts = [
[
{ extra = "cpu" },
{ extra = "gpu" },
],
2026-01-04 19:29:22 +00:00
]