Kye Gomez commited on
Commit
299a0cd
·
1 Parent(s): 806a8da

pip and readme

Browse files
Files changed (4) hide show
  1. .gitignore +274 -52
  2. README.md +3 -3
  3. open_mythos/__init__.py +35 -0
  4. pyproject.toml +77 -0
.gitignore CHANGED
@@ -1,15 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Byte-compiled / optimized / DLL files
 
2
  __pycache__/
3
- *.py[codz]
4
  *$py.class
5
-
 
 
 
6
  # C extensions
7
  *.so
 
8
 
 
 
 
 
9
  # Distribution / packaging
10
  .Python
11
  build/
12
- experimental/
13
  develop-eggs/
14
  dist/
15
  downloads/
@@ -47,7 +128,7 @@ htmlcov/
47
  nosetests.xml
48
  coverage.xml
49
  *.cover
50
- *.py.cover
51
  .hypothesis/
52
  .pytest_cache/
53
  cover/
@@ -82,7 +163,7 @@ target/
82
  # IPython
83
  profile_default/
84
  ipython_config.py
85
-
86
  # pyenv
87
  # For a library or package, you might want to ignore these files since the code is
88
  # intended to run in multiple environments; otherwise, check them in:
@@ -95,11 +176,143 @@ ipython_config.py
95
  # install all needed dependencies.
96
  #Pipfile.lock
97
 
98
- # UV
99
- # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
  # This is especially recommended for binary packages to ensure reproducibility, and is more
101
  # commonly ignored for libraries.
102
- #uv.lock
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
 
104
  # poetry
105
  # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
@@ -107,23 +320,14 @@ ipython_config.py
107
  # commonly ignored for libraries.
108
  # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
  #poetry.lock
110
- #poetry.toml
111
 
112
  # pdm
113
  # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
- # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
- # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
  #pdm.lock
117
- #pdm.toml
118
- .pdm-python
119
- .pdm-build/
120
-
121
- # pixi
122
- # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
- #pixi.lock
124
- # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
- # in the .venv directory. It is recommended not to include this directory in version control.
126
- .pixi
127
 
128
  # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
129
  __pypackages__/
@@ -137,7 +341,6 @@ celerybeat.pid
137
 
138
  # Environments
139
  .env
140
- .envrc
141
  .venv
142
  env/
143
  venv/
@@ -175,34 +378,53 @@ cython_debug/
175
  # and can be added to the global gitignore or merged into this file. For a more nuclear
176
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
177
  #.idea/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
 
179
- # Abstra
180
- # Abstra is an AI-powered process automation framework.
181
- # Ignore directories containing user credentials, local state, and settings.
182
- # Learn more at https://abstra.io/docs
183
- .abstra/
184
-
185
- # Visual Studio Code
186
- # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
187
- # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
188
- # and can be added to the global gitignore or merged into this file. However, if you prefer,
189
- # you could uncomment the following to ignore the entire vscode folder
190
- # .vscode/
191
-
192
- # Ruff stuff:
193
- .ruff_cache/
194
-
195
- # PyPI configuration file
196
- .pypirc
197
-
198
- # Cursor
199
- # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
200
- # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
201
- # refer to https://docs.cursor.com/context/ignore-files
202
- .cursorignore
203
- .cursorindexingignore
204
-
205
- # Marimo
206
- marimo/_static/
207
- marimo/_lsp/
208
- __marimo__/
 
1
+ __pycache__/
2
+ .venv/
3
+
4
+ .env
5
+
6
+ image/
7
+ audio/
8
+ video/
9
+ artifacts_three
10
+ dataframe/
11
+ .ruff_cache
12
+ target/
13
+ Cargo.lock
14
+ .claude/
15
+ .pytest_cache
16
+ dist
17
+
18
+ databases
19
+ static/generated
20
+ conversations/
21
+ sjfdkdjad9si_dsksdjks
22
+ next_swarms_update.txt
23
+ .pytest_cache
24
+ infra.md
25
+ runs
26
+ Financial-Analysis-Agent_state.json
27
+ conversations/
28
+ models/
29
+ evolved_gpt2_models/
30
+ experimental
31
+ ffn_alternatives
32
+ artifacts_five
33
+ experimental/
34
+ encryption
35
+ errors
36
+ chroma
37
+ new_experimental/
38
+ agent_workspace
39
+ .pt
40
+ Accounting Assistant_state.json
41
+ Unit Testing Agent_state.json
42
+ sec_agent
43
+ Devin_state.json
44
+ poetry.lock
45
+ hire_researchers
46
+ agent_workspace
47
+ json_logs
48
+ Medical Image Diagnostic Agent_state.json
49
+ flight agent_state.json
50
+ D_state.json
51
+ artifacts_six
52
+ artifacts_seven
53
+ swarms/__pycache__
54
+ artifacts_once
55
+ transcript_generator.json
56
+ venv
57
+ .DS_Store
58
+ Cargo.lock
59
+ .DS_STORE
60
+ artifacts_logs
61
+ Cargo.lock
62
+ Medical Treatment Recommendation Agent_state.json
63
+ swarms/agents/.DS_Store
64
+ artifacts_two
65
+ logs
66
+ T_state.json
67
+ _build
68
+ conversation.txt
69
+ t1_state.json
70
+ stderr_log.txt
71
+ t2_state.json
72
+ .vscode
73
+ .DS_STORE
74
  # Byte-compiled / optimized / DLL files
75
+ Transcript Generator_state.json
76
  __pycache__/
77
+ *.py[cod]
78
  *$py.class
79
+ .grit
80
+ swarm-worker-01_state.json
81
+ error.txt
82
+ Devin Worker 2_state.json
83
  # C extensions
84
  *.so
85
+ .ruff_cache
86
 
87
+
88
+ errors.txt
89
+
90
+ Autonomous-Agent-XYZ1B_state.json
91
  # Distribution / packaging
92
  .Python
93
  build/
 
94
  develop-eggs/
95
  dist/
96
  downloads/
 
128
  nosetests.xml
129
  coverage.xml
130
  *.cover
131
+ *.py,cover
132
  .hypothesis/
133
  .pytest_cache/
134
  cover/
 
163
  # IPython
164
  profile_default/
165
  ipython_config.py
166
+ .DS_Store
167
  # pyenv
168
  # For a library or package, you might want to ignore these files since the code is
169
  # intended to run in multiple environments; otherwise, check them in:
 
176
  # install all needed dependencies.
177
  #Pipfile.lock
178
 
179
+ # poetry
180
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
181
  # This is especially recommended for binary packages to ensure reproducibility, and is more
182
  # commonly ignored for libraries.
183
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
184
+ #poetry.lock
185
+
186
+ # pdm
187
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
188
+ #pdm.lock
189
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
190
+ # in version control.
191
+ # https://pdm.fming.dev/#use-with-ide
192
+ .pdm.toml
193
+
194
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
195
+ __pypackages__/
196
+
197
+ # Celery stuff
198
+ celerybeat-schedule
199
+ celerybeat.pid
200
+
201
+ # SageMath parsed files
202
+ *.sage.py
203
+
204
+ # Environments
205
+ .env
206
+ .venv
207
+ env/
208
+ venv/
209
+ ENV/
210
+ env.bak/
211
+ venv.bak/
212
+
213
+ # Spyder project settings
214
+ .spyderproject
215
+ .spyproject
216
+
217
+ # Rope project settings
218
+ .ropeproject
219
+
220
+ # mkdocs documentation
221
+ /site
222
+
223
+ # mypy
224
+ .mypy_cache/
225
+ .dmypy.json
226
+ dmypy.json
227
+
228
+ # Pyre type checker
229
+ .pyre/
230
+
231
+ # pytype static type analyzer
232
+ .pytype/
233
+
234
+ # Cython debug symbols
235
+ cython_debug/
236
+
237
+ # PyCharm
238
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
239
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
240
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
241
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
242
+ #.idea/
243
+ .vscode/settings.json
244
+ # -*- mode: gitignore; -*-
245
+ *~
246
+ \#*\#
247
+ /.emacs.desktop
248
+ /.emacs.desktop.lock
249
+ *.elc
250
+ auto-save-list
251
+ tramp
252
+ .\#*
253
+
254
+ # Org-mode
255
+ .org-id-locations
256
+ *_archive
257
+
258
+ # flymake-mode
259
+ *_flymake.*
260
+
261
+ # eshell files
262
+ /eshell/history
263
+ /eshell/lastdir
264
+
265
+ # elpa packages
266
+ /elpa/
267
+
268
+ # reftex files
269
+ *.rel
270
+
271
+ # AUCTeX auto folder
272
+ /auto/
273
+
274
+ # cask packages
275
+ .cask/
276
+ dist/
277
+
278
+ # Flycheck
279
+ flycheck_*.el
280
+
281
+ # server auth directory
282
+ /server/
283
+
284
+ # projectiles files
285
+ .projectile
286
+
287
+ # directory configuration
288
+ .dir-locals.el
289
+
290
+ # network security
291
+ /network-security.data
292
+
293
+ # Agent Skills - User-created skill directories
294
+ # Keep example_skills/ committed for reference
295
+ # Ignore common user skill directory patterns
296
+ /skills/
297
+ /my_skills/
298
+ /custom_skills/
299
+ /*_skills/
300
+ !example_skills/
301
+
302
+
303
+
304
+
305
+ # pyenv
306
+ # For a library or package, you might want to ignore these files since the code is
307
+ # intended to run in multiple environments; otherwise, check them in:
308
+ # .python-version
309
+
310
+ # pipenv
311
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
312
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
313
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
314
+ # install all needed dependencies.
315
+ #Pipfile.lock
316
 
317
  # poetry
318
  # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
 
320
  # commonly ignored for libraries.
321
  # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
322
  #poetry.lock
 
323
 
324
  # pdm
325
  # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
 
 
326
  #pdm.lock
327
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
328
+ # in version control.
329
+ # https://pdm.fming.dev/#use-with-ide
330
+ .pdm.toml
 
 
 
 
 
 
331
 
332
  # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
333
  __pypackages__/
 
341
 
342
  # Environments
343
  .env
 
344
  .venv
345
  env/
346
  venv/
 
378
  # and can be added to the global gitignore or merged into this file. For a more nuclear
379
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
380
  #.idea/
381
+ .vscode/settings.json
382
+ # -*- mode: gitignore; -*-
383
+ *~
384
+ \#*\#
385
+ /.emacs.desktop
386
+ /.emacs.desktop.lock
387
+ *.elc
388
+ auto-save-list
389
+ tramp
390
+ .\#*
391
+
392
+ # Org-mode
393
+ .org-id-locations
394
+ *_archive
395
+
396
+ # flymake-mode
397
+ *_flymake.*
398
+
399
+ # eshell files
400
+ /eshell/history
401
+ /eshell/lastdir
402
+
403
+ # elpa packages
404
+ /elpa/
405
+
406
+ # reftex files
407
+ *.rel
408
+
409
+ # AUCTeX auto folder
410
+ /auto/
411
+
412
+ # cask packages
413
+ .cask/
414
+ dist/
415
+
416
+ # Flycheck
417
+ flycheck_*.el
418
+
419
+ # server auth directory
420
+ /server/
421
+
422
+ # projectiles files
423
+ .projectile
424
+
425
+ # directory configuration
426
+ .dir-locals.el
427
+
428
+ # network security
429
+ /network-security.data
430
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -8,9 +8,9 @@ OpenMythos is an open-source, theoretical implementation of the Claude Mythos mo
8
  ## Installation
9
 
10
  ```bash
11
- git clone https://github.com/The-Swarm-Corporation/OpenMythos.git
12
- cd OpenMythos
13
- pip install -r requirements.txt
14
  ```
15
 
16
  ## Usage
 
8
  ## Installation
9
 
10
  ```bash
11
+ pip install open-mythos
12
+
13
+ #uv pip install open-mythos
14
  ```
15
 
16
  ## Usage
open_mythos/__init__.py CHANGED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from open_mythos.main import (
2
+ MythosConfig,
3
+ RMSNorm,
4
+ GQAttention,
5
+ MLAttention,
6
+ Expert,
7
+ MoEFFN,
8
+ LoRAAdapter,
9
+ TransformerBlock,
10
+ LTIInjection,
11
+ ACTHalting,
12
+ RecurrentBlock,
13
+ OpenMythos,
14
+ precompute_rope_freqs,
15
+ apply_rope,
16
+ loop_index_embedding,
17
+ )
18
+
19
+ __all__ = [
20
+ "MythosConfig",
21
+ "RMSNorm",
22
+ "GQAttention",
23
+ "MLAttention",
24
+ "Expert",
25
+ "MoEFFN",
26
+ "LoRAAdapter",
27
+ "TransformerBlock",
28
+ "LTIInjection",
29
+ "ACTHalting",
30
+ "RecurrentBlock",
31
+ "OpenMythos",
32
+ "precompute_rope_freqs",
33
+ "apply_rope",
34
+ "loop_index_embedding",
35
+ ]
pyproject.toml ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [build-system]
2
+ requires = ["poetry-core>=1.0.0"]
3
+ build-backend = "poetry.core.masonry.api"
4
+
5
+
6
+ [tool.poetry]
7
+ name = "open-mythos"
8
+ version = "0.1.0"
9
+ description = "OpenMythos — open-source theoretical reconstruction of the Claude Mythos Recurrent-Depth Transformer architecture"
10
+ license = "MIT"
11
+ authors = ["Kye Gomez <kye@swarms.world>"]
12
+ homepage = "https://github.com/The-Swarm-Corporation/OpenMythos"
13
+ documentation = "https://github.com/The-Swarm-Corporation/OpenMythos/blob/main/docs/open_mythos.md"
14
+ readme = "README.md"
15
+ repository = "https://github.com/The-Swarm-Corporation/OpenMythos"
16
+ keywords = [
17
+ "artificial intelligence",
18
+ "deep learning",
19
+ "transformers",
20
+ "recurrent transformers",
21
+ "looped transformers",
22
+ "mixture of experts",
23
+ "multi-latent attention",
24
+ "grouped query attention",
25
+ "adaptive computation time",
26
+ "recurrent depth transformer",
27
+ "LTI stability",
28
+ "inference-time scaling",
29
+ ]
30
+ classifiers = [
31
+ "Development Status :: 3 - Alpha",
32
+ "Intended Audience :: Science/Research",
33
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
34
+ "License :: OSI Approved :: MIT License",
35
+ "Programming Language :: Python :: 3.10",
36
+ ]
37
+
38
+
39
+ [tool.poetry.dependencies]
40
+ python = ">=3.10,<4.0"
41
+ torch = "*"
42
+
43
+
44
+ [tool.poetry.group.lint.dependencies]
45
+ black = ">=23.1,<27.0"
46
+ ruff = ">=0.5.1,<0.15.9"
47
+
48
+
49
+ [tool.poetry.group.test.dependencies]
50
+ pytest = ">=8.1.1,<10.0.0"
51
+
52
+ [tool.poetry.group.dev.dependencies]
53
+ black = "*"
54
+ ruff = "*"
55
+ pytest = "*"
56
+
57
+ [tool.ruff]
58
+ line-length = 88
59
+
60
+ [tool.black]
61
+ target-version = ["py310"]
62
+ line-length = 88
63
+ include = '\.pyi?$'
64
+ exclude = '''
65
+ /(
66
+ \.git
67
+ | \.hg
68
+ | \.mypy_cache
69
+ | \.tox
70
+ | \.venv
71
+ | _build
72
+ | buck-out
73
+ | build
74
+ | dist
75
+ | docs
76
+ )/
77
+ '''