Add README
Browse files
README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- krystalmind
|
| 5 |
+
- pdssm
|
| 6 |
+
- pharma-crm
|
| 7 |
+
- state-space-model
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# KrystalMind Synapse (PD-SSM)
|
| 11 |
+
|
| 12 |
+
Pharma-Domain State Space Model for real-time entity divergence detection.
|
| 13 |
+
|
| 14 |
+
## Architecture
|
| 15 |
+
- **41.5M params**: PD-SSM 38.4M + concept_projector 2.0M + heads 1.1M
|
| 16 |
+
- **6 SSM layers**: Pharma-domain diagonal SSM with complex hidden state
|
| 17 |
+
- **Graph-Guided SSM (GG-SSM)**: 31,494 additional params for neighbor-aware selector blending
|
| 18 |
+
- **3 semantic tiers**: Tactical (L1-2), Relational (L3-4), Strategic (L5-6)
|
| 19 |
+
- **STATE_DIM**: 128 (complex: re + im per layer)
|
| 20 |
+
|
| 21 |
+
## Files
|
| 22 |
+
- `phase2_ggssm_routing.km` — Production baked model with GG-SSM + routing head (58 MB)
|
| 23 |
+
- `phase2_ggssm_routing.safetensors` — SafeTensors format (156 MB)
|
| 24 |
+
- `routing_head_best.pt` — MLP routing classifier (1.5 MB)
|
| 25 |
+
- `checkpoints/phase1_production.pt` — Phase 1 best checkpoint, step 1500 (460 MB)
|
| 26 |
+
|
| 27 |
+
## Training
|
| 28 |
+
- **Phase 1**: 35,700 sequences (34 entity types), avg FSA=93%, tier_corr=0.937
|
| 29 |
+
- **Phase 2**: GG-SSM graph messages, val_loss=0.66, 22/22 tests passing
|
| 30 |
+
- **Latency**: 1-2ms per entity scan
|