Download src/routing/__init__.py from Snapkitty/sovereign-engine-v2: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/Snapkitty/sovereign-engine-v2/resolve/main/src/routing/__init__.py
- Command line
-
hf download hf://Snapkitty/sovereign-engine-v2/src/routing/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Snapkitty/sovereign-engine-v2/resolve/main/src/routing/__init__.py
1.32 kB
| """ | |
| Sovereign Routing Engine | |
| Custom sparse-activation MoE pipeline | |
| Stages: | |
| 1. RegexParser β tokenize + extract signals | |
| 2. ASTBuilder β structured parse tree | |
| 3. SymbolicGraph β weighted adjacency matrix | |
| 4. JordanTransformer β eigendecompose, stability scores | |
| 5. JacobianLens β routing sensitivity analysis | |
| 6. ConstraintEval β filter invalid expert paths | |
| 7. SparseActivation β top-k gating + routing weights | |
| 8. RoutingNodes β per-expert gating functions | |
| 9. NANDFilter β conflict resolution | |
| 10. AgentDispatch β fire selected experts | |
| 11. MergeOutput β weighted recombine | |
| """ | |
| from .pipeline import RoutingPipeline | |
| from .sparse import SparseActivation, RoutingWeights | |
| from .dispatch import AgentDispatch, DispatchResult | |
| from .jordan_moe import JordanMoEGate, SpinFactor, SwarmComposer | |
| from .parser import RegexParser | |
| from .symbolic import SymbolicGraph | |
| from .jacobian import JacobianLens | |
| from .constraints import ConstraintEval | |
| __all__ = [ | |
| "RoutingPipeline", | |
| "SparseActivation", | |
| "RoutingWeights", | |
| "AgentDispatch", | |
| "DispatchResult", | |
| "JordanMoEGate", | |
| "SpinFactor", | |
| "SwarmComposer", | |
| "RegexParser", | |
| "SymbolicGraph", | |
| "JacobianLens", | |
| "ConstraintEval", | |
| ] | |