-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
181 lines (176 loc) · 5.41 KB
/
Copy pathsetup.py
File metadata and controls
181 lines (176 loc) · 5.41 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
#!/usr/bin/env python3
"""
Setup script for TRM Book Package
Building Tiny Recursive Models from Scratch
"""
from setuptools import setup, find_packages
import os
# Read the README file
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# Read requirements
with open("requirements.txt", "r", encoding="utf-8") as fh:
requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]
# Read version from __init__.py
def get_version():
"""Get version from package __init__.py"""
version_file = os.path.join("trm", "__init__.py")
if os.path.exists(version_file):
with open(version_file, "r", encoding="utf-8") as f:
for line in f:
if line.startswith("__version__"):
return line.split("=")[1].strip().strip('"\'')
return "1.0.0"
setup(
name="trm-book",
version=get_version(),
author="TRM Research Team",
author_email="research@trm-project.org",
description="Building Tiny Recursive Models from Scratch - Complete Guide",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/trm-project/book-trm",
project_urls={
"Bug Tracker": "https://github.com/trm-project/book-trm/issues",
"Documentation": "https://trm-project.org/book",
"Source Code": "https://github.com/trm-project/book-trm",
"Community": "https://discord.gg/trm-project",
},
packages=find_packages(exclude=["tests", "tests.*", "docs", "docs.*"]),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Education",
"Topic :: Documentation",
],
python_requires=">=3.8",
install_requires=[
"torch>=2.0.0",
"numpy>=1.21.0",
"matplotlib>=3.5.0",
"seaborn>=0.11.0",
"pandas>=1.3.0",
"tqdm>=4.62.0",
"transformers>=4.20.0",
"datasets>=2.0.0",
"scipy>=1.7.0",
"scikit-learn>=1.0.0",
"plotly>=5.10.0",
"requests>=2.28.0",
"pydantic>=1.10.0",
"click>=8.0.0",
"rich>=12.0.0",
],
extras_require={
"dev": [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=22.0.0",
"isort>=5.10.0",
"flake8>=5.0.0",
"mypy>=0.991",
"pre-commit>=2.20.0",
"jupyter>=1.0.0",
"ipywidgets>=7.6.0",
],
"docs": [
"sphinx>=5.0.0",
"sphinx-rtd-theme>=1.0.0",
"mkdocs>=1.4.0",
"mkdocs-material>=8.5.0",
],
"gpu": [
"onnx>=1.12.0",
"onnxruntime-gpu>=1.12.0",
],
"web": [
"fastapi>=0.85.0",
"uvicorn>=0.18.0",
"httpx>=0.23.0",
],
"tracking": [
"wandb>=0.13.0",
"tensorboard>=2.10.0",
"mlflow>=2.0.0",
],
"cloud": [
"boto3>=1.24.0",
"google-cloud-storage>=2.5.0",
"azure-storage-blob>=12.12.0",
],
"all": [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=22.0.0",
"isort>=5.10.0",
"flake8>=5.0.0",
"mypy>=0.991",
"pre-commit>=2.20.0",
"jupyter>=1.0.0",
"ipywidgets>=7.6.0",
"sphinx>=5.0.0",
"sphinx-rtd-theme>=1.0.0",
"mkdocs>=1.4.0",
"mkdocs-material>=8.5.0",
"onnx>=1.12.0",
"onnxruntime-gpu>=1.12.0",
"fastapi>=0.85.0",
"uvicorn>=0.18.0",
"httpx>=0.23.0",
"wandb>=0.13.0",
"tensorboard>=2.10.0",
"mlflow>=2.0.0",
"boto3>=1.24.0",
"google-cloud-storage>=2.5.0",
"azure-storage-blob>=12.12.0",
],
},
entry_points={
"console_scripts": [
"trm-train=trm.cli.train:main",
"trm-generate=trm.cli.generate:main",
"trm-evaluate=trm.cli.evaluate:main",
"trm-serve=trm.cli.serve:main",
"trm-book=trm.cli.book:main",
],
},
include_package_data=True,
package_data={
"trm": [
"data/*.txt",
"data/*.json",
"models/*.pt",
"models/*.pth",
"configs/*.yaml",
"configs/*.json",
"examples/*.py",
"utils/*.py",
],
},
zip_safe=False,
keywords=[
"artificial intelligence",
"machine learning",
"deep learning",
"natural language processing",
"transformers",
"recursive models",
"tiny models",
"efficient computing",
"neural networks",
"pytorch",
],
license="MIT",
platforms=["any"],
)