{
  "config": "prisme_103m",
  "T": 512,
  "assumptions": "Analytic operation counts (2 x multiply-adds = \"ops\") per generated token at context length T.\n\nThis is an ARITHMETIC model of the reference implementation, not a hardware timing model. Conventions:\n  * one multiply-add = 2 ops; softmax/normalisation/activation costs are ignored (they are O(dim), not O(dim^2));\n  * decode-step accounting: the backbone attends over the whole context T (KV cache), the LM head is included;\n  * source-bank projections are incremental (only the new position is projected);\n  * the editor re-reads the full bank (T keys) for every active query of every block, and refreshes the slot K/V\n    of all M slots in every block (reference implementation; an optimised kernel could cache unchanged slots);\n  * controller: one shared state MLP per step + one w x w projection per candidate action (A = M + M/2);\n  * readout: two attention reads (final and initial state) + the U projection.\n",
  "rows": {
    "backbone_only": {
      "backbone_linear": 148674048,
      "backbone_attention": 18874368,
      "lm_head": 50331648,
      "bank_projection": 0,
      "editor_source_attn": 0,
      "editor_slot_attn": 0,
      "editor_ffn": 0,
      "editor_gate": 0,
      "controller": 0,
      "readout": 0,
      "backbone": 217880064,
      "workspace": 0,
      "total": 217880064
    },
    "4_actions_k1": {
      "backbone_linear": 148674048,
      "backbone_attention": 18874368,
      "lm_head": 50331648,
      "bank_projection": 1179648,
      "editor_source_attn": 6291456,
      "editor_slot_attn": 35782656,
      "editor_ffn": 9437184,
      "editor_gate": 4096,
      "controller": 22533120,
      "readout": 4751360,
      "backbone": 217880064,
      "workspace": 79979520,
      "total": 297859584
    },
    "4_actions_k2": {
      "backbone_linear": 148674048,
      "backbone_attention": 18874368,
      "lm_head": 50331648,
      "bank_projection": 1179648,
      "editor_source_attn": 12582912,
      "editor_slot_attn": 38010880,
      "editor_ffn": 18874368,
      "editor_gate": 8192,
      "controller": 22533120,
      "readout": 4751360,
      "backbone": 217880064,
      "workspace": 97940480,
      "total": 315820544
    },
    "8_actions_k2": {
      "backbone_linear": 148674048,
      "backbone_attention": 18874368,
      "lm_head": 50331648,
      "bank_projection": 1179648,
      "editor_source_attn": 25165824,
      "editor_slot_attn": 76021760,
      "editor_ffn": 37748736,
      "editor_gate": 16384,
      "controller": 36052992,
      "readout": 4751360,
      "backbone": 217880064,
      "workspace": 180936704,
      "total": 398816768
    },
    "8_actions_dense16": {
      "backbone_linear": 148674048,
      "backbone_attention": 18874368,
      "lm_head": 50331648,
      "bank_projection": 1179648,
      "editor_source_attn": 201326592,
      "editor_slot_attn": 138412032,
      "editor_ffn": 301989888,
      "editor_gate": 131072,
      "controller": 36052992,
      "readout": 4751360,
      "backbone": 217880064,
      "workspace": 683843584,
      "total": 901723648
    }
  },
  "brief_reference_459m_T4096": {
    "backbone_only": 1296000000.0,
    "4_actions_k1": 1645000000.0,
    "4_actions_k2": 1767000000.0,
    "8_actions_k2": 2195000000.0,
    "8_actions_dense16": 5608000000.0
  },
  "action_cost_proxy": [
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.07979377131080703,
    0.10040254072993113,
    0.10040254072993113,
    0.10040254072993113,
    0.10040254072993113,
    0.10040254072993113,
    0.10040254072993113,
    0.10040254072993113,
    0.10040254072993113
  ]
}