-
Notifications
You must be signed in to change notification settings - Fork 416
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (119 loc) · 2.79 KB
/
pyproject.toml
File metadata and controls
134 lines (119 loc) · 2.79 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
dynamic = ["version"]
name = "xtuner"
description = "A Next-Generation Training Engine Built for Ultra-Large MoE Models"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Apache License 2.0"}
authors = [
{name = "The XTuner Authors", email = "openmmlab@gmail.com"}
]
keywords = ["large language model", "parameter-efficient", "fine-tuning"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
]
dependencies = [
"astor",
"bitsandbytes==0.45.0",
"datasets<4.0.0",
"einops",
"loguru",
"mmengine==0.11.0rc0",
"openpyxl",
"peft>=0.14.0",
"scikit-image",
"scipy",
"SentencePiece",
"tiktoken",
"torch>=2.6.0",
"torchvision",
"transformers==4.57.0",
"cyclopts",
"transformers_stream_generator",
"opencv-python-headless<=4.12.0.88",
"pydantic",
"tensorboard",
"xxhash",
"imageio",
"timm",
"codetiming",
"GitPython",
"mathruler",
"pylatexenc",
"py-libnuma",
"pyarrow",
]
[project.urls]
Homepage = "https://github.com/InternLM/xtuner"
Documentation = "https://xtuner.readthedocs.io/zh-cn/latest/"
Repository = "https://github.com/InternLM/xtuner"
[tool.hatch.version]
path = "xtuner/version.py"
[tool.hatch.metadata]
allow-direct-references = true
[project.optional-dependencies]
rl = [
"ray[default]",
"httpx",
"fastapi",
"uvicorn",
"mathruler",
"pylatexenc"
]
video = [
"decord",
"av",
]
all = [
"jsonlines",
"decord",
"av",
"ray[default]",
"httpx",
"fastapi",
"uvicorn",
"liger-kernel",
"parametrize",
"mathruler",
"pylatexenc",
"flash-linear-attention"
]
[tool.mypy]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "xtuner.v1.*"
ignore_missing_imports = false
# Copied from huggingface
[tool.ruff]
line-length = 119
exclude = [
"modeling_*"
]
[tool.ruff.lint]
# Never enforce `E501` (line length violations).
ignore = ["C901", "E501", "E741", "F402", "F823", "C408"]
select = ["C", "E", "F", "I", "W"]
# Ignore import violations in all `__init__.py` files.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["transformers"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"