anima-python 0.13.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anima_py/README.md +39 -0
- anima_py/__init__.py +28 -0
- anima_py/__main__.py +7 -0
- anima_py/cli/__init__.py +1 -0
- anima_py/cli/anima.py +271 -0
- anima_py/cli/corpus.py +150 -0
- anima_py/cli/evaluate.py +1350 -0
- anima_py/cli/rho_axon.py +801 -0
- anima_py/cli/serialize.py +174 -0
- anima_py/cli/serialize_bind.py +100 -0
- anima_py/cli/sweep.py +509 -0
- anima_py/cli/train.py +1667 -0
- anima_py/core/__init__.py +1 -0
- anima_py/core/brain.py +601 -0
- anima_py/core/clm_serialize_v2.py +486 -0
- anima_py/core/clml.py +155 -0
- anima_py/core/decode.py +1386 -0
- anima_py/core/engine_cli.py +10307 -0
- anima_py/core/engine_g.py +129 -0
- anima_py/core/generator.py +318 -0
- anima_py/core/hippo_lane.py +133 -0
- anima_py/core/model.py +462 -0
- anima_py/core/pure_field.py +334 -0
- anima_py/core/rho_fan.py +442 -0
- anima_py/core/serialize.py +826 -0
- anima_py/core/serialize_standalone.py +186 -0
- anima_py/core/slw.py +211 -0
- anima_py/core/verify_clm_v2.py +844 -0
- anima_python-0.13.1.dist-info/METADATA +52 -0
- anima_python-0.13.1.dist-info/RECORD +34 -0
- anima_python-0.13.1.dist-info/WHEEL +5 -0
- anima_python-0.13.1.dist-info/entry_points.txt +2 -0
- anima_python-0.13.1.dist-info/licenses/LICENSE +21 -0
- anima_python-0.13.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: anima-python
|
|
3
|
+
Version: 0.13.1
|
|
4
|
+
Summary: anima substrate-native consciousness engine — py CLI (measurement/eval · serialize · corpus · sweep), hexa-toolchain-free numpy distribution
|
|
5
|
+
Requires-Python: >=3.9
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Dist: numpy>=1.24
|
|
9
|
+
Provides-Extra: train
|
|
10
|
+
Requires-Dist: torch>=2.1; extra == "train"
|
|
11
|
+
Requires-Dist: datasets; extra == "train"
|
|
12
|
+
Dynamic: license-file
|
|
13
|
+
|
|
14
|
+
# anima-python
|
|
15
|
+
|
|
16
|
+
**anima** 의 py CLI 를 pip 로 배포하는 채널 — **hexa 툴체인 불필요**. 엔진 측정/직렬화/코퍼스 경로가 numpy 하나만으로 돈다 (pi5 등 hexa-less 호스트용).
|
|
17
|
+
|
|
18
|
+
> 단일진입 보존(`a_cli_single_entry`): `anima-python` 콘솔 명령 = `cli/anima.py:main` 디스패처의 pip 바인딩. hexa 채널 `anima`(`hx install anima`) 와 **동일 디스패처, 설치 채널만 2개** — 2nd entry 아님. 이름을 `anima-python` 로 둔 이유 = hexa `anima` 와 PATH 충돌 회피.
|
|
19
|
+
|
|
20
|
+
## 설치
|
|
21
|
+
|
|
22
|
+
**PyPI 발행 후** (권장):
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install anima-python # base — numpy 만 (evaluate · corpus · chat-stub)
|
|
26
|
+
pip install "anima-python[train]" # +torch +datasets (serialize · train · sweep)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
> ⏳ **PyPI 발행 대기 중**: 위 명령은 `anima-python` 가 PyPI 에 발행된 뒤 동작한다. 발행은 `release.yml` 의 `pypi-publish` job(OIDC trusted-publishing)이 `v*` 태그에서 자동 수행하며, 오너의 1회 설정이 선결(① pypi.org 에 anima-python pending-publisher 등록: Owner=dancinlab·Repo=anima·Workflow=release.yml·Env=pypi ② repo 변수 `PYPI_PUBLISH=true`). 그 전까지는 아래 소스 설치를 쓴다.
|
|
30
|
+
|
|
31
|
+
**소스에서 바로 설치** (PyPI 없이 지금 가능):
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pip install "git+https://github.com/dancinlab/anima.git" # base
|
|
35
|
+
pip install "anima-python[train] @ git+https://github.com/dancinlab/anima.git" # +torch
|
|
36
|
+
# 또는 레포 클론 후: pip install . / pip install ".[train]"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 명령 매트릭스
|
|
40
|
+
|
|
41
|
+
| 동사 | 티어 | torch 없이 동작 | 비고 |
|
|
42
|
+
|---|---|---|---|
|
|
43
|
+
| `anima-python evaluate <clm> [--corpus …] [--gen N]` | base | ✅ numpy | py 2-production 측정 = ρ·AXON reach / 구 G0-G6. terminal-eligible (`a_eval_py_canonical`) |
|
|
44
|
+
| `anima-python corpus <derivtrace\|flat> --out F …` | base | ✅ 순수 stdlib | 절차적 학습-코퍼스 생성 (data-format 레버) |
|
|
45
|
+
| `anima-python chat <clm>` | base | ✅ (stub) | 의식 A⇄G 루프는 hexa-native → hexa 진입 포인터 출력 |
|
|
46
|
+
| `anima-python serialize <pt> <clm>` | `[train]` | ❌ torch | `.pt` unpickle 에 torch 필요 (+ held-out DESCENT 게이트) |
|
|
47
|
+
| `anima-python sweep --arms … --objectives …` | `[train]` | ❌ | 셀마다 train.py spawn → torch 필요 |
|
|
48
|
+
| `anima-python train <args>` | `[train]` | ❌ torch+datasets | production Lane-P 학습 |
|
|
49
|
+
|
|
50
|
+
## verdict 규율
|
|
51
|
+
|
|
52
|
+
`anima-python evaluate <clm>` = py 2-production numpy 측정 경로 — hexa det-eval 과 동일 frozen bars·byte-parity 라 **terminal 자격 동일**(`a_eval_py_canonical`, 2nd-class 미러 아님). 큰 ckpt(303M+)는 mini 금지 · pool(summer/aiden)에서 측정.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
anima_py/README.md,sha256=ILbcTnbBaPQkn5mr1ZHZauicESyHrctUNILceUgvigo,2677
|
|
2
|
+
anima_py/__init__.py,sha256=5O7m1Jt7LbtrSeGx4XpZYtSdG4TI20eDV9xgLzujqsQ,1443
|
|
3
|
+
anima_py/__main__.py,sha256=19lve-sg8MldCBCpAYuNZbFljWur2A37010UIa2Q54E,171
|
|
4
|
+
anima_py/cli/__init__.py,sha256=_MCCirJKhiBFEeJWdB_9hMe_SxqZZGwOMvwYM-gU_7w,161
|
|
5
|
+
anima_py/cli/anima.py,sha256=ZQZikYxRVbNCkBxyZCx_7FojXDGZyy5BbTFoFl7fi0E,19359
|
|
6
|
+
anima_py/cli/corpus.py,sha256=Uk4X0wjtGVn0maZl9r_ovGxa1AAtlDG33a8ztiflmtE,6030
|
|
7
|
+
anima_py/cli/evaluate.py,sha256=aC8jKA0Bd1iyKOLelC7P2ssmyU2XvfHFAQFgjRbayd4,72573
|
|
8
|
+
anima_py/cli/rho_axon.py,sha256=ayoJN-r8QbO0hO_TICHNIWBcdZebIyc6WR1zYHQKTr0,48590
|
|
9
|
+
anima_py/cli/serialize.py,sha256=f3qrwoYK8LRTYpL7LkX0OllqkkMRdDh7euQ6uR3X8MQ,7778
|
|
10
|
+
anima_py/cli/serialize_bind.py,sha256=lwgDL0BHyFMNg78ws5Df8o3drMQAkYaAo_qLVIlbzcw,4521
|
|
11
|
+
anima_py/cli/sweep.py,sha256=SViEbUBrT-eT1zhBCKfOJLT7OXpPn3OEfdoAqtCCb3Y,26146
|
|
12
|
+
anima_py/cli/train.py,sha256=Xgz1K-3bipSaqrdtpRZMXY0A4_Q6PGi1BIUZzXpzfaw,97169
|
|
13
|
+
anima_py/core/__init__.py,sha256=_MCCirJKhiBFEeJWdB_9hMe_SxqZZGwOMvwYM-gU_7w,161
|
|
14
|
+
anima_py/core/brain.py,sha256=nbcV7VUmH_nC_HJ7gmdCF3tpG-UoPYJ4HUKUQsJLMAI,22744
|
|
15
|
+
anima_py/core/clm_serialize_v2.py,sha256=ekSrnzmIANYaH1a3Puh-WZUL-CPMp1_QICq-4ijvJGY,20810
|
|
16
|
+
anima_py/core/clml.py,sha256=uPTo_5gpmUsClBypodYt2qfu8wBzqzQagNhzu5K2jXE,7771
|
|
17
|
+
anima_py/core/decode.py,sha256=ObHwIehO9FXIzdVfeoaUpfpo5YO0IGGH51vSjzV3bVM,58968
|
|
18
|
+
anima_py/core/engine_cli.py,sha256=hUYbHIOJO18Ah33qQ8nOubdzC89s_QpQr5kIi1BjJQw,301364
|
|
19
|
+
anima_py/core/engine_g.py,sha256=0o8-4ItM4o96s9YdXwpAh6HrWc-oXgpvxeXo46YaNgQ,4224
|
|
20
|
+
anima_py/core/generator.py,sha256=fpS3GtcByJIYNr7OQfQ8tCTm9cgRj8eY7gMrx3hWuiQ,17343
|
|
21
|
+
anima_py/core/hippo_lane.py,sha256=P-3Y5HK5NJbFcTamuytsTXGjSD3ZHS5NrafN0YGDt7U,6171
|
|
22
|
+
anima_py/core/model.py,sha256=KDZOsTQa4UX0EEGUtFRE-UnVB4Zmq3wDYqDh29DoOjk,21907
|
|
23
|
+
anima_py/core/pure_field.py,sha256=H2liH5k5ATKgIb95yzMnkFfpBTwjtFLrxt3mm6t4vwA,11903
|
|
24
|
+
anima_py/core/rho_fan.py,sha256=qQQVzajbmn5FdsCNsK0iZGG9b_VeDdzPqqEJnRd9tuY,20736
|
|
25
|
+
anima_py/core/serialize.py,sha256=lGH2QYoiL_xMfb9Bnk4PdTcZhdDAiHAartCeg111o3s,40637
|
|
26
|
+
anima_py/core/serialize_standalone.py,sha256=wvbbK4ufUTksFlIXcnb1MF6JPG7poXXbeNKkRvv5uhU,8752
|
|
27
|
+
anima_py/core/slw.py,sha256=2dKXCPmJ973I1kreJwGe_IYuJQC3899SAGbbsSNyyVo,10477
|
|
28
|
+
anima_py/core/verify_clm_v2.py,sha256=nzEfOIneZ4vSDlffA_1V7lVFnH60r7Ie1190N2tL55c,37750
|
|
29
|
+
anima_python-0.13.1.dist-info/licenses/LICENSE,sha256=-aNMI1apUAIjMNWrEAKtSoEWcTs_Hl7AOuFmSYTbtnY,1066
|
|
30
|
+
anima_python-0.13.1.dist-info/METADATA,sha256=FsJe5aS0bVVqT99STBXGOIA1vOHzB0pnuGiKpp5gnWQ,3132
|
|
31
|
+
anima_python-0.13.1.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
32
|
+
anima_python-0.13.1.dist-info/entry_points.txt,sha256=tjDk6DF4ijHdl_FwOalhH0uvPD1M3tKEoqZTDd8q8RU,47
|
|
33
|
+
anima_python-0.13.1.dist-info/top_level.txt,sha256=Pyifsm_D_KWZU0_X9M-0XbWt8lRnFMIuC3gMwVNYCmo,9
|
|
34
|
+
anima_python-0.13.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dancinlab
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
anima_py
|