{
  "config": "prisme_459m",
  "T": 4096,
  "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": 792824832,
      "backbone_attention": 402653184,
      "lm_head": 100663296,
      "bank_projection": 0,
      "editor_source_attn": 0,
      "editor_slot_attn": 0,
      "editor_ffn": 0,
      "editor_gate": 0,
      "controller": 0,
      "readout": 0,
      "backbone": 1296141312,
      "workspace": 0,
      "total": 1296141312
    },
    "4_actions_k1": {
      "backbone_linear": 792824832,
      "backbone_attention": 402653184,
      "lm_head": 100663296,
      "bank_projection": 4718592,
      "editor_source_attn": 75497472,
      "editor_slot_attn": 142868480,
      "editor_ffn": 37748736,
      "editor_gate": 8192,
      "controller": 89630720,
      "readout": 18939904,
      "backbone": 1296141312,
      "workspace": 369412096,
      "total": 1665553408
    },
    "4_actions_k2": {
      "backbone_linear": 792824832,
      "backbone_attention": 402653184,
      "lm_head": 100663296,
      "bank_projection": 4718592,
      "editor_source_attn": 150994944,
      "editor_slot_attn": 151519232,
      "editor_ffn": 75497472,
      "editor_gate": 16384,
      "controller": 89630720,
      "readout": 18939904,
      "backbone": 1296141312,
      "workspace": 491317248,
      "total": 1787458560
    },
    "8_actions_k2": {
      "backbone_linear": 792824832,
      "backbone_attention": 402653184,
      "lm_head": 100663296,
      "bank_projection": 4718592,
      "editor_source_attn": 301989888,
      "editor_slot_attn": 303038464,
      "editor_ffn": 150994944,
      "editor_gate": 32768,
      "controller": 143409152,
      "readout": 18939904,
      "backbone": 1296141312,
      "workspace": 923123712,
      "total": 2219265024
    },
    "8_actions_dense16": {
      "backbone_linear": 792824832,
      "backbone_attention": 402653184,
      "lm_head": 100663296,
      "bank_projection": 4718592,
      "editor_source_attn": 2415919104,
      "editor_slot_attn": 545259520,
      "editor_ffn": 1207959552,
      "editor_gate": 262144,
      "controller": 143409152,
      "readout": 18939904,
      "backbone": 1296141312,
      "workspace": 4336467968,
      "total": 5632609280
    }
  },
  "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.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.06323142642026983,
    0.08674451694353524,
    0.08674451694353524,
    0.08674451694353524,
    0.08674451694353524,
    0.08674451694353524,
    0.08674451694353524,
    0.08674451694353524,
    0.08674451694353524
  ]
}