Files
leleka/crates/serving-policy/tests/fixtures/cvec_oracle.json
T
Pavlo Ratushnyi da8c974f68 Drop the stale engine/strata paths and retired generator names from comments, doc strings and generated fixtures (STRA-407)
Rust comments that named scripts/offline/*, gen_goldens.py, oracle/gen_*.{sh,cpp,py}, build_oracle.sh and similar retired generators now say where the data
came from (the Original's code, Strata 41cf05a0) or drop the sentence. The path/generator text of seven generated fixtures (sampler_oracle.json, sampling_keys.json,
memory_plan_golden.json, rope_golden.json, cvec_oracle.json, stra161 fixtures.json, commentary-tool-prompt.json) is reworded; no test reads those fields and no pin
covers their bytes. cmd_time/doc.rs: the two path texts in the format string; its lines are re-broken so they stay within 120 columns (the string is unchanged
otherwise). Comment-only except those data/string spots; no behaviour change.
2026-11-23 22:37:17 +01:00

33 lines
14 KiB
JSON

{
"source": "src/program/generate.cpp load_control_vectors (verbatim) over GGUF files written by the fixture builder",
"n_layers": 6, "n_embd": 5, "hc": 2,
"blobs": ["474755460300000003000000000000000200000000000000140000000000000067656e6572616c2e617263686974656374757265080000000d00000000000000636f6e74726f6c766563746f721800000000000000636f6e74726f6c766563746f722e6d6f64656c5f68696e740800000008000000000000007177656e346578700b00000000000000646972656374696f6e2e310100000005000000000000000000000000000000000000000b00000000000000646972656374696f6e2e320100000005000000000000000000000020000000000000000b00000000000000646972656374696f6e2e340100000005000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000003f295caf3f52b8de3f7c14ce3f52b81e40000000000000000000000000000080bfb81e05be90c2753eb047e13d48e17a3f0000000000000000000000000000c03f14ae1740295c2f403e0a274052b85e40000000000000000000000000","474755460300000002000000000000000200000000000000140000000000000067656e6572616c2e617263686974656374757265080000000d00000000000000636f6e74726f6c766563746f721800000000000000636f6e74726f6c766563746f722e6d6f64656c5f68696e740800000008000000000000007177656e346578700b00000000000000646972656374696f6e2e320100000005000000000000000000000000000000000000000b00000000000000646972656374696f6e2e33010000000500000000000000000000002000000000000000000000000000000000000080beec51b83ed7a3f03e08d7a33dd7a3303f0000000000000000000000000000204014ae5740295c6f403e0a6740295c8f40000000000000000000000000","474755460300000001000000000000000100000000000000140000000000000067656e6572616c2e6172636869746563747572650800000005000000000000006c6c616d610b00000000000000646972656374696f6e2e31010000000500000000000000000000000000000000000000000000000000000000000000000000000000003f295caf3f52b8de3f7c14ce3f52b81e40000000000000000000000000","474755460300000001000000000000000200000000000000140000000000000067656e6572616c2e617263686974656374757265080000000d00000000000000636f6e74726f6c766563746f721800000000000000636f6e74726f6c766563746f722e6d6f64656c5f68696e740800000008000000000000007177656e3465787007000000000000006f746865722e310100000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f295caf3f52b8de3f7c14ce3f52b81e40000000000000000000000000","474755460300000001000000000000000200000000000000140000000000000067656e6572616c2e617263686974656374757265080000000d00000000000000636f6e74726f6c766563746f721800000000000000636f6e74726f6c766563746f722e6d6f64656c5f68696e740800000008000000000000007177656e346578700b00000000000000646972656374696f6e2e3101000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000003f295caf3f52b8de3f7c14ce3f52b81e40666636400000000000000000","474755460300000001000000000000000200000000000000140000000000000067656e6572616c2e617263686974656374757265080000000d00000000000000636f6e74726f6c766563746f721800000000000000636f6e74726f6c766563746f722e6d6f64656c5f68696e740800000008000000000000007177656e346578700b00000000000000646972656374696f6e2e3101000000050000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","474755460300000005000000000000000200000000000000140000000000000067656e6572616c2e617263686974656374757265080000000d00000000000000636f6e74726f6c766563746f721800000000000000636f6e74726f6c766563746f722e6d6f64656c5f68696e740800000008000000000000007177656e346578700b00000000000000646972656374696f6e2e300100000005000000000000000000000000000000000000000b00000000000000646972656374696f6e2e360100000005000000000000000000000020000000000000000c00000000000000646972656374696f6e2e39390100000005000000000000000000000040000000000000000d00000000000000646972656374696f6e2e6162630100000005000000000000000000000060000000000000000c00000000000000646972656374696f6e2e3033010000000500000000000000000000008000000000000000000000000000084185eb15410ad71b418fc2194114ae27410000000000000000000000000000084185eb15410ad71b418fc2194114ae27410000000000000000000000000000084185eb15410ad71b418fc2194114ae27410000000000000000000000000000084185eb15410ad71b418fc2194114ae27410000000000000000000000000000803e295c8f3f52b8be3f7b14ae3f52b80e40000000000000000000000000","474755460300000002000000000000000200000000000000140000000000000067656e6572616c2e617263686974656374757265080000000d00000000000000636f6e74726f6c766563746f721800000000000000636f6e74726f6c766563746f722e6d6f64656c5f68696e740800000008000000000000007177656e346578700b00000000000000646972656374696f6e2e310100000005000000000000000000000000000000000000000b00000000000000646972656374696f6e2e3201000000050000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","474755460300000001000000000000000200000000000000140000000000000067656e6572616c2e617263686974656374757265080000000d00000000000000636f6e74726f6c766563746f721800000000000000636f6e74726f6c766563746f722e6d6f64656c5f68696e740800000005000000000000006c6c616d610b00000000000000646972656374696f6e2e3101000000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f295caf3f52b8de3f7c14ce3f52b81e40000000000000000000000000","474755460300000001000000000000000100000000000000140000000000000067656e6572616c2e617263686974656374757265080000000d00000000000000636f6e74726f6c766563746f720b00000000000000646972656374696f6e2e3501000000050000000000000000000000000000000000000000000000000000000000c0bfae4721bfb81e85be14aec7be90c2f53e000000000000000000000000"],
"cases": [
{"name": "add, one file, default range", "files": [[0, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": true, "err": "", "summary": "add:1-5", "up": {"mode": 1, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,1056964608,1068457001,1071560786,1070470268,1075755090,3212836864,3188006584,1047904912,1038174128,1065017672,0,0,0,0,0,1069547520,1075293716,1076845609,1076300350,1079949394,0,0,0,0,0], "s_bits": [0,1065353216,1065353216,0,1065353216,0]}},
{"name": "add, two files scaled and summed", "files": [[0, 1056964608],[1, 3221225472]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": true, "err": "", "summary": "add:1-5", "up": {"mode": 1, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,1048576000,1060068393,1063172178,1062081660,1067366482,0,3209229763,3209816965,3184986680,3210991370,3231711232,3235360276,3236912169,3236366910,3239009321,1061158912,1066905108,1068457001,1067911742,1071560786,0,0,0,0,0], "s_bits": [0,1065353216,1065353216,1065353216,1065353216,0]}},
{"name": "project, one file", "files": [[0, 1065353216]], "first": -1, "last": -1, "mode": "project", "single": -1, "ok": true, "err": "", "summary": "project:1-5", "up": {"mode": 0, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,1040799755,1052518722,1055849081,1054678956,1059737204,3207785947,3183089175,1043056032,1033729321,1060067773,0,0,0,0,0,1048781743,1053766466,1055886406,1055141563,1058545447,0,0,0,0,0], "s_bits": [0,1080989028,1068966475,0,1086023510,0]}},
{"name": "project, two files", "files": [[0, 1069547520],[1, 1065353216]], "first": -1, "last": -1, "mode": "project", "single": -1, "ok": true, "err": "", "summary": "project:1-5", "up": {"mode": 0, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,1040799755,1052518722,1055849082,1054678956,1059737204,3206127572,1030209752,1049737537,1034686251,1061002695,1050616516,1054245851,1055789361,1055247047,1057920495,1048781743,1053766465,1055886406,1055141563,1058545447,0,0,0,0,0], "s_bits": [0,1085468683,1077584665,1090564595,1091341696,0]}},
{"name": "add, layer range 2..3", "files": [[0, 1065353216],[1, 1065353216]], "first": 2, "last": 3, "mode": "add", "single": -1, "ok": true, "err": "", "summary": "add:2-3", "up": {"mode": 1, "first": 2, "last": 3, "dir_bits": [0,0,0,0,0,0,0,0,0,0,3214934016,1047233824,1060487824,1044549468,1070973584,1075838976,1079488020,1081039913,1080494654,1083137065,0,0,0,0,0,0,0,0,0,0], "s_bits": [0,0,1065353216,1065353216,0,0]}},
{"name": "add, range past the model", "files": [[0, 1065353216]], "first": 1, "last": 99, "mode": "add", "single": -1, "ok": true, "err": "", "summary": "add:1-5", "up": {"mode": 1, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,1056964608,1068457001,1071560786,1070470268,1075755090,3212836864,3188006584,1047904912,1038174128,1065017672,0,0,0,0,0,1069547520,1075293716,1076845609,1076300350,1079949394,0,0,0,0,0], "s_bits": [0,1065353216,1065353216,0,1065353216,0]}},
{"name": "project, range first only", "files": [[0, 1065353216]], "first": 3, "last": -1, "mode": "project", "single": -1, "ok": true, "err": "", "summary": "project:3-5", "up": {"mode": 0, "first": 3, "last": 5, "dir_bits": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1048781743,1053766466,1055886406,1055141563,1058545447,0,0,0,0,0], "s_bits": [0,0,0,0,1086023510,0]}},
{"name": "project single:2", "files": [[0, 1065353216]], "first": -1, "last": -1, "mode": "project", "single": 2, "ok": true, "err": "", "summary": "project:1-5:single2", "up": {"mode": 0, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,3207785947,3183089175,1043056032,1033729321,1060067773,3207785947,3183089175,1043056032,1033729321,1060067773,3207785947,3183089175,1043056032,1033729321,1060067773,3207785947,3183089175,1043056032,1033729321,1060067773,3207785947,3183089175,1043056032,1033729321,1060067773], "s_bits": [0,1068966475,1068966475,1068966475,1068966475,1068966475]}},
{"name": "project single:2 over a range", "files": [[0, 1065353216],[1, 1065353216]], "first": 2, "last": 5, "mode": "project", "single": 2, "ok": true, "err": "", "summary": "project:2-5:single2", "up": {"mode": 0, "first": 2, "last": 5, "dir_bits": [0,0,0,0,0,0,0,0,0,0,3205490886,1037292959,1050901279,1034878561,1061176135,3205490886,1037292959,1050901279,1034878561,1061176135,3205490886,1037292959,1050901279,1034878561,1061176135,3205490886,1037292959,1050901279,1034878561,1061176135], "s_bits": [0,0,1074679768,1074679768,1074679768,1074679768]}},
{"name": "add ignores single", "files": [[0, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": 2, "ok": true, "err": "", "summary": "add:1-5", "up": {"mode": 1, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,1056964608,1068457001,1071560786,1070470268,1075755090,3212836864,3188006584,1047904912,1038174128,1065017672,0,0,0,0,0,1069547520,1075293716,1076845609,1076300350,1079949394,0,0,0,0,0], "s_bits": [0,1065353216,1065353216,0,1065353216,0]}},
{"name": "project single without a direction", "files": [[0, 1065353216]], "first": -1, "last": -1, "mode": "project", "single": 3, "ok": false, "err": "--cvec-dir single:3: the vector has no direction for that layer", "summary": ""},
{"name": "project single past the model", "files": [[0, 1065353216]], "first": -1, "last": -1, "mode": "project", "single": 6, "ok": false, "err": "--cvec-dir single:6: the vector has no direction for that layer", "summary": ""},
{"name": "scale zero adds nothing but still counts as found", "files": [[0, 0]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": true, "err": "", "summary": "add:1-5", "up": {"mode": 1, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "s_bits": [0,1065353216,1065353216,0,1065353216,0]}},
{"name": "scale zero in project mode steers nothing", "files": [[0, 0]], "first": -1, "last": -1, "mode": "project", "single": -1, "ok": false, "err": "the control vector has no direction in layers 1..5", "summary": ""},
{"name": "layers 0 / past-model / non-numeric ignored, 03 is layer 3", "files": [[6, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": true, "err": "", "summary": "add:1-5", "up": {"mode": 1, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1048576000,1066359849,1069463634,1068373115,1074706514,0,0,0,0,0,0,0,0,0,0], "s_bits": [0,0,0,1065353216,0,0]}},
{"name": "not a control vector", "files": [[2, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": false, "err": "FILE2: not a control vector GGUF (general.architecture is not 'controlvector')", "summary": ""},
{"name": "no direction tensors", "files": [[3, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": false, "err": "FILE3: no direction.<layer> tensors", "summary": ""},
{"name": "wrong tensor size", "files": [[4, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": false, "err": "FILE4: direction.1 must be 5 f32", "summary": ""},
{"name": "wrong tensor type", "files": [[5, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": false, "err": "FILE5: direction.1 must be 5 f32", "summary": ""},
{"name": "all-zero directions in project mode", "files": [[7, 1065353216]], "first": -1, "last": -1, "mode": "project", "single": -1, "ok": false, "err": "the control vector has no direction in layers 1..5", "summary": ""},
{"name": "all-zero directions in add mode", "files": [[7, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": true, "err": "", "summary": "add:1-5", "up": {"mode": 1, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "s_bits": [0,1065353216,1065353216,0,0,0]}},
{"name": "another model's hint still loads", "files": [[8, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": true, "err": "", "summary": "add:1-5", "up": {"mode": 1, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,1056964608,1068457001,1071560786,1070470268,1075755090,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "s_bits": [0,1065353216,0,0,0,0]}},
{"name": "no hint", "files": [[9, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": true, "err": "", "summary": "add:1-5", "up": {"mode": 1, "first": 1, "last": 5, "dir_bits": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3217031168,3206629294,3196395192,3200757268,1056293520], "s_bits": [0,0,0,0,0,1065353216]}},
{"name": "second file bad", "files": [[0, 1065353216],[3, 1065353216]], "first": -1, "last": -1, "mode": "add", "single": -1, "ok": false, "err": "FILE3: no direction.<layer> tensors", "summary": ""},
{"name": "no steered layer in the range", "files": [[0, 1065353216]], "first": 5, "last": 5, "mode": "add", "single": -1, "ok": false, "err": "the control vector has no direction in layers 5..5", "summary": ""}
]
}