SPIRA v2: entropy-patch tokenization + hierarchical dopamine-gated spiking cortex + hippocampal one-shot memory with replay consolidation
032a961 verified Download python/spira/__init__.py from thefinalboss/SPIRA: direct link, hf CLI and curl.
- Browser
- Download file 969 Bytes
-
https://huggingface.co/thefinalboss/SPIRA/resolve/main/python/spira/__init__.py
- Command line
-
hf download hf://thefinalboss/SPIRA/python/spira/__init__.py
-
curl -L -o __init__.py https://huggingface.co/thefinalboss/SPIRA/resolve/main/python/spira/__init__.py
969 Bytes
| """SPIRA — Spiking Plastic Recurrent Architecture. | |
| A CPU-only sequence-learning system outside the transformer/BPE paradigm: | |
| * EPT: entropy-patch tokenization (constant-information quanta, | |
| content-addressed, zero vocabulary training); | |
| * SpikingCore: LIF reservoir with Dale's law, homeostatic thresholds, | |
| reward-modulated STDP (three-factor learning, no backpropagation); | |
| * Hippocampus: one-shot associative memory with lane-redundant indexing | |
| for episodic recall and pattern completion under corruption. | |
| """ | |
| __version__ = "0.1.0" | |
| from .ept import EPT | |
| from .hashing import fnv1a64, splitmix64, lane_key32, input_neurons, Mulberry32 | |
| from .hippocampus import Hippocampus | |
| from .spiking import SpikingCore | |
| from .model import SPIRA, SPIRAConfig, PatchRegistry | |
| __all__ = [ | |
| "EPT", "Hippocampus", "SpikingCore", "SPIRA", "SPIRAConfig", | |
| "PatchRegistry", "fnv1a64", "splitmix64", "lane_key32", "input_neurons", | |
| "Mulberry32", "__version__", | |
| ] | |