-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
96 lines (92 loc) · 3.14 KB
/
Copy pathsetup.py
File metadata and controls
96 lines (92 loc) · 3.14 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
#!/usr/bin/env python3
"""
Setup configuration for ITC (Information Transform Compression)
"""
from setuptools import setup, find_packages
from pathlib import Path
# Read README for long description
readme_path = Path(__file__).parent / "README.md"
if readme_path.exists():
with open(readme_path, "r", encoding="utf-8") as f:
long_description = f.read()
else:
long_description = "Information Transform Compression - A revolutionary framework for neural network optimization through information theory"
# Read requirements
requirements_path = Path(__file__).parent / "requirements.txt"
if requirements_path.exists():
with open(requirements_path, "r", encoding="utf-8") as f:
requirements = [line.strip() for line in f if line.strip() and not line.startswith("#")]
else:
requirements = [
"torch>=1.9.0",
"transformers>=4.0.0",
"numpy>=1.19.0",
"jsonschema>=3.2.0",
]
setup(
name="itc-compression",
version="1.0.0",
author="Christopher Makanga",
author_email="your.email@example.com",
description="Information Transform Compression - Information-theoretic neural network optimization",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/makangachristopher/Information-Transform-Compression",
project_urls={
"Bug Tracker": "https://github.com/makangachristopher/Information-Transform-Compression/issues",
"Documentation": "https://github.com/makangachristopher/Information-Transform-Compression",
"Source Code": "https://github.com/makangachristopher/Information-Transform-Compression",
},
packages=find_packages(exclude=["tests*", "examples*", "benchmarks*", "deploy*"]),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"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",
],
python_requires=">=3.7",
install_requires=requirements,
extras_require={
"dev": [
"pytest>=6.0.0",
"black>=21.0",
"flake8>=3.9.0",
"mypy>=0.900",
],
"onnx": [
"onnx>=1.10.0",
"onnxruntime>=1.10.0",
],
},
entry_points={
"console_scripts": [
"itc=itc:main",
],
},
keywords=[
"neural-network",
"compression",
"quantization",
"pruning",
"information-theory",
"deep-learning",
"model-optimization",
"mixed-precision",
"transformer",
"bert",
"gpt",
],
include_package_data=True,
package_data={
"": ["schemas/*.json"],
},
zip_safe=False,
)