-
Notifications
You must be signed in to change notification settings - Fork 85
/
pyproject.toml
116 lines (107 loc) · 2.79 KB
/
pyproject.toml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "levanter"
version = "1.2"
authors = [
{ name = "David Hall", email = "[email protected]" },
{ name = "Jason Wang"},
{ name = "Ahmed Ahmed"},
{ name = "Ivan Zhou", email = "[email protected]" },
{ name = "Will Held"},
{ name = "Virginia Adams"}
]
description = "Scalable Training for Foundation Models with Named Tensors and JAX"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
]
dependencies = [
"haliax>=1.4.dev324",
"equinox>=0.11.7",
"jaxtyping>=0.2.34",
"tokenizers>=0.15.2",
"transformers>=4.41.2,<4.49.0",
"optax>=0.1.9",
"wandb>=0.17.8",
"draccus>=0.9.3",
"pyarrow>=11.0.0",
"zstandard>=0.20.0",
"datasets>=3.1.0,<4.0",
"gcsfs>=2024.2,<2025",
"braceexpand>=0.1.7",
"jmp>=0.0.3",
"fsspec[http]>=2024.2,<2025",
"tensorstore>=0.1.65",
"pytimeparse>=1.1.8",
"humanfriendly==10.0",
"safetensors[numpy]~=0.4.2",
"matplotlib>=3.7.0",
"tblib>=1.7.0,<4.0.0",
"dataclasses-json~=0.6.4",
"ray[default]>=2.34.0",
"pydantic<3",
"filelock~=3.13",
"async-lru~=2.0",
"tqdm-loggable>=0.2",
"deepdiff",
# "lm-eval==0.4.2",
# "lm-eval @ git+https://github.com/dlwh/lm-evaluation-harness.git@no_torch"
]
[project.urls]
"Homepage" = "https://github.com/stanford-crfm/levanter"
"Bug Tracker" = "https://github.com/stanford-crfm/levanter/issues"
[tool.black]
line-length = 119
target-version = ["py310"]
preview = true
[tool.isort]
profile = "black"
multi_line_output = 3
lines_after_imports = 2
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 119
src_paths = ["src", "tests"]
known_haliax = ["haliax"]
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"HALIAX",
"FIRSTPARTY",
"LOCALFOLDER",
]
[tool.mypy]
python_version = "3.10"
mypy_path = ["src"]
[tool.mypy-haliax.core]
ignore_missing_imports = true
[tool.pytest.ini_options]
pythonpath = ["src", "tests"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"entry: marks tests as entry point tests (deselect with '-m \"not entry\"')",
"ray: marks tests that require Ray (deselect with '-m \"not ray\"')",
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-forked",
"pytest-asyncio",
"flake8",
"soundfile",
"librosa",
]
[tool.setuptools.packages.find]
where = ["src"]
include = ["levanter", "levanter.*"]