-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (62 loc) · 1.63 KB
/
pyproject.toml
File metadata and controls
69 lines (62 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[project]
name = "tinygpt"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "avolxn", email = "vladislav.eldashov@gmail.com" }
]
requires-python = ">=3.12"
dependencies = [
"accelerate>=1.1.0",
"torch>=2.7.0",
"kernels>=0.11.7",
"tokenizers>=0.21.0",
"datasets>=3.0.0",
"wandb>=0.18.0",
"regex>=2024.0.0",
"tabulate>=0.9.0",
"psutil>=5.9.0",
"transformers>=4.40.0",
"huggingface-hub>=0.30.0",
"tiktoken>=0.9.0",
]
# Flash Attention (all optional, auto-detected at runtime, best available is used):
# FA4 (Hopper/Blackwell SM90+): pip install flash-attn-4
# FA3 (Hopper SM90, pre-built): pip install kernels (already a hard dep; loads kernels-community/flash-attn3)
# FA2 (Ampere SM80+): pip install flash-attn --no-build-isolation
# On CPU/MPS only SDPA is used automatically.
[build-system]
requires = ["uv_build>=0.10.9,<0.11.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"mypy>=1.19.1",
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.1.0",
"pytest-mock>=3.15.1",
"ruff>=0.15.7",
]
[tool.ruff]
line-length = 120
target-version = "py312"
src = ["src"]
[tool.ruff.lint]
select = ["E", "W", "F", "B", "I", "UP"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.12"
strict = true
ignore_missing_imports = true
pretty = true
show_error_codes = true
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --strict-markers"
asyncio_mode = "auto"