-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (58 loc) · 1.56 KB
/
pyproject.toml
File metadata and controls
66 lines (58 loc) · 1.56 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
[project]
name = "cs336_basics"
version = "1.0.6"
description = "CS336 Assignment 1"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"einops>=0.8.1", # tensor operations
"einx>=0.3.0", # more general tensor operations
"jaxtyping>=0.3.0", # type hints for pytorch/jax/numpy
"numpy",
"psutil>=6.1.1",
"pytest>=8.3.4",
"regex>=2024.11.6", # more powerful regex than the builtin `re` module
"submitit>=1.5.2", # job submission for SLURM
"tiktoken>=0.9.0",
"torch~=2.6.0; sys_platform != 'darwin' or platform_machine != 'x86_64'",
"torch~=2.2.2; sys_platform == 'darwin' and platform_machine == 'x86_64'", # Intel Macs
"tqdm>=4.67.1",
"wandb>=0.19.7",
"ty>=0.0.1a16",
"hydra-core>=1.3.2",
"pandas>=2.3.2",
"tensorboard>=2.20.0",
"nvidia-ml-py>=13.580.82",
"nvitop>=1.5.3",
"memory-profiler>=0.61.0",
"debugpy>=1.8.17",
"pybind11>=3.0.1",
"tokenizers>=0.22.1",
"rich>=14.1.0",
]
[build-system]
requires = ["uv_build>=0.8.3,<0.9.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "cs336_basics"
module-root = ""
[[tool.uv.index]]
url = "https://mirrors.aliyun.com/pypi/simple"
default = true
[tool.uv]
package = true
python-preference = "managed"
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "WARNING"
addopts = "-s"
[tool.ruff]
line-length = 120
[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"
]