{
  "run_date": "2026-10-26",
  "torch_version": "2.14.1+cu130",
  "device": "cpu",
  "dtype_for_added_checks": "float64",
  "cpu_threads": 1,
  "source_sha256": {
    "positional_encoding_experiment.py": "f8d87c8fe7d49a836e1bcaf41e46195ff21c79f7ba16e9bee21cbb355041375f",
    "decoder_only.py": "b7ead24c45d37e62f8c0e426d871a824539a93c1d952b973c6dfbe190b58a710"
  },
  "original_sinusoidal_experiment": {
    "dtype": "float32",
    "identity_qkv": true,
    "token_embedding": [
      1.0,
      0.0,
      1.0,
      0.0
    ],
    "positional_encoding": [
      [
        0.0,
        1.0,
        0.0,
        1.0
      ],
      [
        0.8414709568023682,
        0.5403023362159729,
        0.009999833069741726,
        0.9999499917030334
      ],
      [
        0.9092974066734314,
        -0.416146844625473,
        0.019998665899038315,
        0.9998000264167786
      ]
    ],
    "weights_without_position": [
      [
        0.3333333432674408,
        0.3333333432674408,
        0.3333333432674408
      ],
      [
        0.3333333432674408,
        0.3333333432674408,
        0.3333333432674408
      ],
      [
        0.3333333432674408,
        0.3333333432674408,
        0.3333333432674408
      ]
    ],
    "weights_with_position": [
      [
        0.3333090841770172,
        0.4054233431816101,
        0.2612675130367279
      ],
      [
        0.22134816646575928,
        0.42638641595840454,
        0.3522654175758362
      ],
      [
        0.14923939108848572,
        0.3685537874698639,
        0.482206791639328
      ]
    ],
    "context_without_position": [
      [
        1.0,
        0.0,
        1.0,
        0.0
      ],
      [
        1.0,
        0.0,
        1.0,
        0.0
      ],
      [
        1.0,
        0.0,
        1.0,
        0.0
      ]
    ],
    "context_with_position": [
      [
        1.5787217617034912,
        0.44363462924957275,
        1.0092791318893433,
        0.9999274611473083
      ],
      [
        1.6791057586669922,
        0.30513158440589905,
        1.0113086700439453,
        0.9999082684516907
      ],
      [
        1.7485966682434082,
        0.14770102500915527,
        1.0133289098739624,
        0.999885082244873
      ]
    ],
    "maximum_weight_change": 0.18409395217895508
  },
  "permutation": {
    "seed": 7,
    "input_shape": [
      1,
      4,
      4
    ],
    "mask": null,
    "permutation": [
      2,
      0,
      3,
      1
    ],
    "weights": [
      [
        0.38985154236793546,
        0.09706673269874123,
        0.4592202392685714,
        0.05386148566475182
      ],
      [
        0.5013629740233057,
        0.12685898112680538,
        0.35079076814279175,
        0.020987276707097092
      ],
      [
        0.21286572722867222,
        0.20070919563203476,
        0.2665854871945014,
        0.31983958994479156
      ],
      [
        0.25942863216401535,
        0.20262168109391743,
        0.29217238342709095,
        0.24577730331497638
      ]
    ],
    "permuted_weights": [
      [
        0.2665854871945014,
        0.21286572722867222,
        0.31983958994479156,
        0.20070919563203476
      ],
      [
        0.4592202392685714,
        0.38985154236793546,
        0.05386148566475182,
        0.09706673269874123
      ],
      [
        0.29217238342709095,
        0.25942863216401535,
        0.24577730331497638,
        0.20262168109391743
      ],
      [
        0.35079076814279186,
        0.5013629740233058,
        0.0209872767070971,
        0.1268589811268054
      ]
    ],
    "without_position_output_max_error": 2.220446049250313e-16,
    "without_position_weights_max_error": 1.1102230246251565e-16,
    "fixed_position_output_max_difference": 0.7268236778191417,
    "fixed_position_weights": [
      [
        0.7450934205252885,
        0.028427030583840412,
        0.2174449917637566,
        0.00903455712711449
      ],
      [
        0.6231566122896123,
        0.02800896185774224,
        0.3441181056322986,
        0.004716320220346741
      ],
      [
        0.5570048471597205,
        0.06433671972889374,
        0.27859807220710653,
        0.10006036090427926
      ],
      [
        0.38468231920421947,
        0.08431910592071748,
        0.35628424664991865,
        0.17471432822514427
      ]
    ],
    "tokens_permuted_positions_fixed_weights": [
      [
        0.4882541578408295,
        0.30972986980511014,
        0.045098362289684696,
        0.15691761006437568
      ],
      [
        0.7367713074677277,
        0.2203292925935285,
        0.0025211773440508905,
        0.040378222594693064
      ],
      [
        0.5448695506150149,
        0.27424380945045673,
        0.053826399017187436,
        0.12706024091734103
      ],
      [
        0.5649956901438802,
        0.33587204249232233,
        0.007239073453712829,
        0.09189319391008453
      ]
    ]
  },
  "additive_positions": {
    "d_model": 8,
    "base": 10000.0,
    "inverse_frequencies": [
      1.0,
      0.1,
      0.01,
      0.001
    ],
    "pe_inner_product": [
      {
        "m": 3,
        "n": 5,
        "pe_dot": 2.563717747961344,
        "cosine_sum": 2.5637177479613436
      },
      {
        "m": 13,
        "n": 15,
        "pe_dot": 2.5637177479613436,
        "cosine_sum": 2.5637177479613436
      },
      {
        "m": 3,
        "n": 6,
        "pe_dot": 1.9648895262775232,
        "cosine_sum": 1.9648895262775232
      }
    ],
    "additive_dot_terms": [
      {
        "m": 3,
        "n": 5,
        "content_content": 2.9641223608948986,
        "content_position": 2.730882149749941,
        "position_content": 0.3681951870866195,
        "position_position_after_projection": 0.5443378132773878,
        "total_raw_dot": 6.607537511008847,
        "sum_error": 0.0
      },
      {
        "m": 13,
        "n": 15,
        "content_content": 2.9641223608948986,
        "content_position": 5.172142869903714,
        "position_content": 0.9351713996216763,
        "position_position_after_projection": 2.5019022248336222,
        "total_raw_dot": 11.573338855253912,
        "sum_error": 0.0
      }
    ],
    "term_order": [
      "content-content",
      "content-position",
      "position-content",
      "position-position"
    ]
  },
  "rope": {
    "pair_layout": "adjacent even/odd pairs",
    "base": 10000.0,
    "q_k_shape": [
      1,
      2,
      4,
      8
    ],
    "v_rotated": false,
    "norm_max_error_float64": 8.881784197001252e-16,
    "same_position_dot_max_error_float64": 8.881784197001252e-16,
    "shared_shift_score_max_error_float64": 1.5543122344752192e-15,
    "shared_shift_score_max_error_float32": 4.76837158203125e-07,
    "float32_vs_float64_score_max_error": 8.923300232055453e-07,
    "head_0_scores": [
      [
        1.7009914738796592,
        2.785566484704094,
        1.6653060922850247,
        1.0481157078601897
      ],
      [
        -4.993551212035889,
        -8.94234072372284,
        -4.8655567782632385,
        -4.61238364990899
      ],
      [
        2.79537139879829,
        -3.213187181659243,
        -1.494013214522248,
        1.888468125426064
      ],
      [
        1.1093257385891815,
        3.501776849752325,
        0.5585044954167392,
        4.828620091348519
      ]
    ],
    "head_0_scores_shared_shift_10": [
      [
        1.700991473879659,
        2.785566484704095,
        1.6653060922850251,
        1.0481157078601901
      ],
      [
        -4.99355121203589,
        -8.94234072372284,
        -4.8655567782632385,
        -4.61238364990899
      ],
      [
        2.79537139879829,
        -3.2131871816592428,
        -1.4940132145222484,
        1.8884681254260656
      ],
      [
        1.1093257385891815,
        3.501776849752324,
        0.5585044954167394,
        4.828620091348518
      ]
    ],
    "fixed_content_position_pairs": [
      {
        "m": 3,
        "n": 5,
        "head_0_raw_dot": 1.359859375498567,
        "relative_formula_error": 2.220446049250313e-16
      },
      {
        "m": 13,
        "n": 15,
        "head_0_raw_dot": 1.359859375498567,
        "relative_formula_error": 4.440892098500626e-16
      },
      {
        "m": 3,
        "n": 6,
        "head_0_raw_dot": 0.4851463525825077,
        "relative_formula_error": 8.881784197001252e-16
      }
    ],
    "batched_position_shape_checked": [
      2,
      4
    ]
  },
  "cache_positions": {
    "model": "Original TinyDecoderOnly, learned absolute position table",
    "untrained_model": true,
    "dtype": "float64",
    "seed": 7,
    "config": {
      "vocab_size": 20,
      "d_model": 16,
      "n_heads": 4,
      "d_ff": 32,
      "n_layers": 2,
      "max_seq_len": 16
    },
    "input_ids": [
      [
        2,
        7,
        3,
        11,
        5,
        9
      ]
    ],
    "prefill_length": 4,
    "full_position_ids": [
      0,
      1,
      2,
      3,
      4,
      5
    ],
    "correct_cached_position_ids": [
      4,
      5
    ],
    "reset_position_ids": [
      0,
      1
    ],
    "prefill_logits_max_error": 0.0,
    "correct_cached_logits_max_error": 3.3306690738754696e-16,
    "reset_embedding_logits_max_difference": 1.1713306421930323,
    "one_token_cached_logits_max_error": 3.885780586188048e-16,
    "correct_attention_query_positions": [
      4,
      5
    ],
    "correct_attention_key_positions": [
      0,
      1,
      2,
      3,
      4,
      5
    ],
    "full_last_token_logits": [
      0.10692599625656046,
      -0.189411273749369,
      0.3328668412388446,
      -0.14582151935178755,
      0.946532317026324,
      0.4478711424337355,
      -0.48339414858073904,
      -0.2928213308794134,
      0.4794925940064414,
      0.8627747227902196,
      -0.5755268147906889,
      -0.764217200318165,
      1.0401633479878016,
      -0.10560285794644003,
      0.671519957604686,
      0.14542295685400186,
      0.2505812903733205,
      -0.41350337173107166,
      -0.931937931201266,
      -0.7599105097412538
    ],
    "correct_cached_last_token_logits": [
      0.10692599625656046,
      -0.18941127374936895,
      0.3328668412388446,
      -0.14582151935178758,
      0.9465323170263239,
      0.44787114243373555,
      -0.48339414858073904,
      -0.29282133087941326,
      0.4794925940064415,
      0.8627747227902195,
      -0.5755268147906889,
      -0.7642172003181649,
      1.0401633479878016,
      -0.10560285794644009,
      0.671519957604686,
      0.14542295685400164,
      0.25058129037332044,
      -0.41350337173107166,
      -0.9319379312012659,
      -0.7599105097412538
    ],
    "wrong_cached_last_token_logits": [
      0.16992609829703842,
      0.11561344480913188,
      0.5319347628459348,
      0.13180908790502477,
      1.1539303635858256,
      -0.12380599231850681,
      -0.28570723974077594,
      -0.5301200760448351,
      0.3938504394766783,
      0.03646232023459203,
      -0.4142725690635973,
      -0.7380147475800146,
      0.4940486177310771,
      -0.2541040353276054,
      0.7386773930368056,
      0.26012468362837066,
      0.21736897323706106,
      -0.12724667320415742,
      -0.521372230651402,
      -0.4125290734346323
    ],
    "final_cache_shape_per_layer": [
      1,
      4,
      6,
      4
    ],
    "intervention": "pre-hook changes only pos_emb lookup [4,5] to [0,1]; cache length and causal Mask remain 4-based"
  }
}
