-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
96 lines (92 loc) · 2.52 KB
/
setup.py
File metadata and controls
96 lines (92 loc) · 2.52 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
from setuptools import setup, find_packages
from pathlib import Path
# Read README with explicit UTF-8 encoding (fixes Windows cp1252 issue)
this_directory = Path(__file__).parent
try:
long_description = (this_directory / "README.md").read_text(encoding='utf-8')
except Exception:
long_description = "Late: A CLI and web UI for scheduling and running training jobs on ROCm servers."
# Core dependencies for the lightweight CLI tool
core_deps = [
"click",
"pyyaml",
"flask",
"waitress",
"requests",
"Jinja2",
"matplotlib",
"openpyxl",
"pandas"
]
# Optional dependencies for a full development/training environment
extras = {
"training": [
"torch",
"transformers>=4.56.2",
"datasets",
"accelerate",
"trl",
"peft",
"wandb",
"scipy",
"numpy",
"ninja",
"cmake",
"pybind11"
],
# Note: Unsloth for AMD GPUs must be installed separately using:
# pip install --no-deps unsloth unsloth-zoo
# pip install --no-deps git+https://github.com/unslothai/unsloth-zoo.git
# pip install "unsloth[amd] @ git+https://github.com/unslothai/unsloth"
"test": [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"pytest-asyncio>=0.21.0",
"pytest-xdist>=3.0.0",
"pytest-timeout>=2.1.0",
"responses>=0.23.0",
"hypothesis>=6.0.0",
],
"dev": [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"pytest-xdist>=3.0.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"pre-commit>=3.0.0",
],
}
setup(
name="late",
version="0.1.0",
packages=find_packages(),
include_package_data=True,
install_requires=core_deps,
extras_require=extras,
entry_points={
"console_scripts": [
"late = late.cli:cli",
],
},
package_data={
"late": [
"server/templates/*.html",
"server/static/*.css",
],
},
author="Your Name",
author_email="your.email@example.com",
description="A CLI and web UI for scheduling and running training jobs on ROCm servers.",
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/TesslateAI/Late",
python_requires=">=3.8",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)