-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (51 loc) · 1.15 KB
/
pyproject.toml
File metadata and controls
57 lines (51 loc) · 1.15 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
[project]
name = "Transformer-HandwrittenFromZero"
version = "0.1.0"
description = "Handwritten project of transformer from scratch"
authors = [{name = "Nethan Hu", email = "r1qianhu@gmail.com"}]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"torch>=2.6.0",
"torchvision>=0.21.0",
"numpy>=1.24.0",
"pandas>=2.0.0",
"datasets>=2.16.0",
"tokenizers>=0.15.0",
"sentencepiece>=0.1.99",
"requests>=2.31.0",
"tiktoken>=0.11.0",
"tqdm>=4.65.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
]
profiling = [
"matplotlib>=3.10.1",
"torch-tb-profiler>=0.4.0",
"tensorboard>=2.0.0",
"nvtx>=0.2.0",
]
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = [
"naive_attention",
"flash_attention",
"kv_cache",
"grouped_query_attention",
"linear_attention",
"sparse_attention",
"RoPE",
"paged_attention"
]
[tool.setuptools.package-dir]
"" = "."
[tool.pytest.ini_options]
testpaths = ["test"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"