-
Notifications
You must be signed in to change notification settings - Fork 262
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (99 loc) · 2.5 KB
/
pyproject.toml
File metadata and controls
105 lines (99 loc) · 2.5 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
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
[project]
name = "google-tunix"
version = "0.1.7"
authors = [
{ name = "Tunix Developers", email = "tunix-dev@google.com" },
]
description = "A lightweight JAX-native LLM post-training framework."
requires-python = ">=3.11"
readme = "README.md"
license = { text = "Apache-2.0" }
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"datasets",
"flax>=0.11.1",
"fsspec", # notebook dependency
"google-metrax>=0.2.3",
"grain",
"hf_transfer", # Huggingface caching in CI
"huggingface_hub",
"jaxtyping",
"jinja2", # Huggingface chat template
"kagglehub",
"numba",
"omegaconf", # CLI config
"pillow", # Image processing
"pylatexenc", # Eval result parsing
"python-dotenv", # Huggingface API key
"perfetto", # Perfetto trace writer for metrics export
"qwix",
"sentencepiece",
"sympy", # Eval result parsing
"tensorflow_datasets",
"tqdm",
"transformers<=4.57.1", # Note: transformers==4.57.2 has a bug, see more information at https://github.com/google/tunix/issues/794
"tenacity",
]
[project.optional-dependencies]
docs = [
"sphinx>=8.2.3",
"sphinx-book-theme>=1.1.4", # Older versions fail to pin pydata-sphinx-theme
"sphinx-autodoc-typehints",
"ipython>=8.8.0", # 8.7.0 has ipython3 lexer error
"myst-nb>=1.3.0",
"matplotlib>=3.10.0",
"sphinx-gallery>=0.19.0",
"sphinx-collections>=0.0.1",
"sphinx_contributors",
]
prod = [
"jax[tpu]>=0.6.0,!=0.7.2", # Jax 0.7.2 has performance regression on OSS
]
dev = [
# Manully install vLLM & tpu-inferece, which depends on jax[tpu]==0.7.2
]
test = [
"pytest",
"pytest-xdist",
"gcsfs",
"chex",
]
[project.urls]
Source = "https://github.com/google/tunix"
[build-system]
requires = ["setuptools >= 77.0.3"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["tunix*"]
[tool.pyink]
line-length = 80
unstable = true
target-version = []
pyink-indentation = 2
pyink-use-majority-quotes = true
pyink-annotation-pragmas = [
"noqa",
"pylint:",
"type: ignore",
"pytype:",
"mypy:",
"pyright:",
"pyre-",
"@title",
"@param",
"@markdown",
"@tidy",
"@test",
]
pyink-ipynb-indentation = 2
[tool.isort]
profile = "google" # or "black", etc.
known_third_party = ["tunix"]