WCNegentropy commited on
Commit
d8c9f63
·
verified ·
1 Parent(s): eab0cde

🚀 Refined BitTransformerLM: Organized codebase with best practices

Browse files
Files changed (1) hide show
  1. pyproject.toml +85 -6
pyproject.toml CHANGED
@@ -4,22 +4,60 @@ build-backend = "setuptools.build_meta"
4
 
5
  [project]
6
  name = "bit-transformer-lm"
7
- version = "1.0.0-rc1"
8
- description = "Production-grade bit-native transformer with built-in safety telemetry and enterprise features"
9
  readme = "README.md"
10
  requires-python = ">=3.10"
11
- license = {text = "All Rights Reserved"}
12
  authors = [{name = "WCNegentropy", email = "research@wcnegentropy.com"}]
13
- keywords = ["transformer", "language-model", "safety", "telemetry", "distributed-training", "quantization"]
 
 
 
 
 
 
 
 
 
 
14
  classifiers = [
15
- "Development Status :: 5 - Production/Stable",
16
  "Intended Audience :: Developers",
17
- "Intended Audience :: Science/Research",
18
  "Topic :: Scientific/Engineering :: Artificial Intelligence",
19
  "Topic :: Software Development :: Libraries :: Python Modules",
 
20
  "Programming Language :: Python :: 3",
21
  "Programming Language :: Python :: 3.10",
22
  "Programming Language :: Python :: 3.11",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  ]
24
 
25
  [project.urls]
@@ -28,5 +66,46 @@ Documentation = "https://github.com/WCNegentropy/BitTransformerLM/blob/main/READ
28
  Repository = "https://github.com/WCNegentropy/BitTransformerLM"
29
  Issues = "https://github.com/WCNegentropy/BitTransformerLM/issues"
30
 
 
 
 
 
 
31
  [tool.setuptools.packages.find]
32
  include = ["bit_transformer"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  [project]
6
  name = "bit-transformer-lm"
7
+ version = "1.0.0"
8
+ description = "Bit-native transformer with reversible layers, safety telemetry, and enterprise features"
9
  readme = "README.md"
10
  requires-python = ">=3.10"
11
+ license = {text = "AGPL-3.0"}
12
  authors = [{name = "WCNegentropy", email = "research@wcnegentropy.com"}]
13
+ keywords = [
14
+ "transformer",
15
+ "language-model",
16
+ "bit-native",
17
+ "reversible",
18
+ "safety",
19
+ "telemetry",
20
+ "distributed-training",
21
+ "quantization",
22
+ "pytorch"
23
+ ]
24
  classifiers = [
25
+ "Development Status :: 4 - Beta",
26
  "Intended Audience :: Developers",
27
+ "Intended Audience :: Science/Research",
28
  "Topic :: Scientific/Engineering :: Artificial Intelligence",
29
  "Topic :: Software Development :: Libraries :: Python Modules",
30
+ "License :: OSI Approved :: GNU Affero General Public License v3",
31
  "Programming Language :: Python :: 3",
32
  "Programming Language :: Python :: 3.10",
33
  "Programming Language :: Python :: 3.11",
34
+ "Programming Language :: Python :: 3.12",
35
+ ]
36
+ dependencies = [
37
+ "torch>=2.0.0",
38
+ "numpy>=1.21.0",
39
+ "scikit-learn>=1.0.0",
40
+ "matplotlib>=3.5.0",
41
+ "datasets>=2.0.0",
42
+ "huggingface-hub>=0.10.0",
43
+ "requests>=2.25.0",
44
+ ]
45
+
46
+ [project.optional-dependencies]
47
+ dashboard = [
48
+ "gradio>=4.0.0",
49
+ "flask>=2.0.0",
50
+ "watchdog>=2.0.0",
51
+ ]
52
+ distributed = [
53
+ "accelerate>=0.20.0",
54
+ ]
55
+ dev = [
56
+ "pytest>=7.0.0",
57
+ "black>=22.0.0",
58
+ "isort>=5.10.0",
59
+ "mypy>=1.0.0",
60
+ "ruff>=0.1.0",
61
  ]
62
 
63
  [project.urls]
 
66
  Repository = "https://github.com/WCNegentropy/BitTransformerLM"
67
  Issues = "https://github.com/WCNegentropy/BitTransformerLM/issues"
68
 
69
+ [project.scripts]
70
+ bit-transformer-train = "bit_transformer.cli:train_cli"
71
+ bit-transformer-infer = "bit_transformer.cli:infer_cli"
72
+ bit-transformer-dashboard = "bit_transformer.cli:dashboard_cli"
73
+
74
  [tool.setuptools.packages.find]
75
  include = ["bit_transformer"]
76
+
77
+ [tool.black]
78
+ line-length = 88
79
+ target-version = ["py310", "py311", "py312"]
80
+
81
+ [tool.isort]
82
+ profile = "black"
83
+ multi_line_output = 3
84
+
85
+ [tool.mypy]
86
+ python_version = "3.10"
87
+ warn_return_any = true
88
+ warn_unused_configs = true
89
+ disallow_untyped_defs = true
90
+
91
+ [tool.ruff]
92
+ target-version = "py310"
93
+ line-length = 88
94
+
95
+ [tool.ruff.lint]
96
+ select = [
97
+ "E", # pycodestyle errors
98
+ "W", # pycodestyle warnings
99
+ "F", # pyflakes
100
+ "I", # isort
101
+ "B", # flake8-bugbear
102
+ "C4", # flake8-comprehensions
103
+ "UP", # pyupgrade
104
+ ]
105
+ ignore = []
106
+
107
+ [tool.pytest.ini_options]
108
+ testpaths = ["tests", "scripts/testing"]
109
+ python_files = "test_*.py"
110
+ python_functions = "test_*"
111
+ addopts = "-v --tb=short"