forked from stanford-cs336/assignment2-systems
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (59 loc) · 1.55 KB
/
Copy pathpyproject.toml
File metadata and controls
71 lines (59 loc) · 1.55 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
70
71
[project]
name = "cs336-systems"
version = "26.1.4"
description = "CS336 Assignment 2 - Systems"
readme = "README.md"
requires-python = ">=3.12,<3.14"
dependencies = [
"cs336-basics",
"humanfriendly",
"matplotlib",
"numpy",
"pytest>=8",
"regex>=2026.3.32",
"torch==2.5.1+cu121",
"triton==3.6.0; python_version >= '3.13'",
"tqdm>=4.67.1",
"wandb>=0.19.7",
"pandas>=2",
"ty>=0.0.29",
"ruff>=0.15.10",
]
[build-system]
requires = ["uv_build>=0.11.6,<0.12"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "cs336_systems"
module-root = ""
[tool.uv]
package = true
python-preference = "managed"
environments = ["sys_platform == 'linux'"]
[tool.uv.sources]
cs336-basics = { path = "./cs336-basics", editable = true } # Change this path to your assignment1-basics repo you want to use your own implementation!
torch = { index = "pytorch-cu121" }
[[tool.uv.index]]
name = "pypi-tuna"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
[[tool.uv.index]]
name = "pytorch-cu121"
url = "https://download.pytorch.org/whl/cu121"
explicit = true
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "WARNING"
addopts = "-s"
filterwarnings = [
"ignore::DeprecationWarning:torch.jit.*",
"ignore:Attempting to run cuBLAS:UserWarning",
"ignore:TensorFloat32:UserWarning",
]
[tool.ruff]
line-length = 180
[tool.ruff.lint.extend-per-file-ignores]
# Also ignore `E402` in all `__init__.py` files.
"__init__.py" = ["E402", "F401", "F403", "E501"]
[tool.ruff.lint]
extend-select = ["UP"]
ignore = ["F722"]