forked from huggingface/autotrain-advanced
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
190 lines (168 loc) · 3.92 KB
/
pyproject.toml
File metadata and controls
190 lines (168 loc) · 3.92 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "aitraining"
version = "0.0.53"
description = "Advanced Machine Learning Training Platform - IN DEVELOPMENT"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "Apache 2.0"}
authors = [
{name = "Andrew Correa", email = "andrew@monostate.ai"}
]
keywords = ["automl", "autonlp", "autotrain", "huggingface", "machine learning", "deep learning", "fine-tuning", "llm"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
# Core ML libraries
"torch>=1.10.0",
"transformers>=5.3.0",
"accelerate>=1.13.0",
"peft>=0.18.1",
"trl>=0.29.0",
"datasets[vision]~=3.2.0",
# Training utilities
"tensorboard==2.18.0",
"scikit-learn==1.6.0",
"evaluate==0.4.3",
"sentence-transformers>=5.2.3",
# Data processing
"albumentations==1.4.23",
"Pillow==11.0.0",
"pandas==2.2.3",
"numpy",
# NLP utilities
"sentencepiece>=0.1.99",
"tiktoken==0.8.0",
"nltk==3.9.1",
"sacremoses==0.1.1",
"seqeval==1.2.2",
"ipadic==1.0.0",
# Vision utilities
"timm==1.0.22",
"torchmetrics==1.6.0",
"faster-coco-eval==1.7.0",
"pycocotools==2.0.8",
# Optimization
"optuna==4.1.0",
"xgboost==2.1.3",
# HuggingFace ecosystem
"huggingface_hub>=1.6.0",
"hf-transfer",
# Web framework (for API/app mode)
"fastapi>=0.129.0",
"starlette",
"uvicorn==0.34.0",
"python-multipart==0.0.20",
"werkzeug==3.1.3",
"pyngrok==7.2.1",
"authlib==1.4.0",
"itsdangerous==2.2.0",
"httpx==0.28.1",
# Utilities
"loguru==0.7.3",
"requests==2.32.3",
"pydantic>=2.12.5",
"pyyaml==6.0.2",
"tqdm==4.67.1",
"joblib==1.4.2",
"einops==0.8.0",
"packaging==24.2",
"cryptography==44.0.0",
"nvitop==1.3.2",
"py7zr==0.22.0",
"safetensors",
"psutil",
"diffusers",
"ipywidgets",
"wandb>=0.23.0",
# TUI dependencies
"textual==0.86.1",
"rich==13.9.4",
# Metrics
"rouge_score==0.1.2",
"jiwer==3.0.5",
# Platform-specific
"bitsandbytes>=0.45.0; sys_platform == 'linux'",
]
[project.optional-dependencies]
dev = [
"black",
"isort",
"flake8",
"pytest",
"pytest-asyncio",
]
test = [
"pytest>=7.0.0",
"pytest-asyncio",
"playwright>=1.40.0",
"httpx>=0.25.0",
]
vllm = [
"vllm>=0.14.0",
]
quality = [
"black",
"isort",
"flake8",
]
docs = [
"recommonmark",
"sphinx",
"sphinx-markdown-tables",
"sphinx-rtd-theme",
"sphinx-copybutton",
]
# [project.urls]
# Removed for initial development release
[project.scripts]
aitraining = "autotrain.cli.autotrain:main"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
autotrain = [
"app/static/**/*",
"app/templates/**/*",
"cli/tui/styles.tcss",
"cli/tui/theme.tcss",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.isort]
ensure_newline_before_comments = true
force_grid_wrap = 0
include_trailing_comma = true
line_length = 119
lines_after_imports = 2
multi_line_output = 3
use_parentheses = true
[tool.flake8]
ignore = ["E203", "E501", "W503"]
max-line-length = 119
per-file-ignores = [
"__init__.py:F401,E402",
"src/autotrain/params.py:F401"
]
exclude = [
".git",
".venv",
"__pycache__",
"dist",
"build"
]