diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_01_merge.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_01_merge.json new file mode 100644 index 0000000000000000000000000000000000000000..e1ec47ec0abbc3778964bcc3f915f697564b4959 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_01_merge.json @@ -0,0 +1,1538 @@ +{ + "cycle": 1, + "anchor": 12, + "removed_original_layer": 13, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.1270451660560696, + 2.123763872529156, + 2.5495269349077487, + 2.6668278419949014, + 2.6221918114453913, + 2.834988518027483, + 2.8922729066492625, + 3.1908798982034323, + 3.194260294621024, + 3.159925893688281, + 2.912077546379141, + 2.523976484946916, + 2.0873363367429096, + 2.0307487480485555, + 2.0998309783853064, + 1.892793019265785, + 1.2323749979709726, + 1.1554985550276557, + 1.6361373095610952, + 1.5091229131714066, + 1.5332473219580085, + 1.7281610575128585, + 1.3395909707398532, + 1.1117591517605714 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.2131003982189865, + 2.2530984101947746, + 2.675500859881959, + 2.703823042992612, + 2.690730038643846, + 2.8137952658155116, + 2.8884770056591518, + 3.2706936679338376, + 3.2906151212592096, + 3.2819402041940564, + 3.10814926185079, + 2.5581890670837786, + 2.1575961176050846, + 2.1510365414378714, + 2.1949098319479874, + 2.0618927253539225, + 1.304162272554706, + 1.298578647251505, + 1.7157864919666488, + 1.60382209502527, + 1.6471070913050834, + 1.7565851227256437, + 1.5055403784604025, + 1.1287707704578307 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.231263403712327, + 2.2666584628306836, + 2.6942629359080232, + 2.8362033602916394, + 2.7609862401099754, + 3.01987908296117, + 3.052706992464676, + 3.3402565009815977, + 3.354916682310258, + 3.3778728078973383, + 3.117534765825235, + 2.3605599508840873, + 2.0530017235362035, + 2.0464924855917928, + 2.112078320349174, + 1.8608378912090402, + 1.2222872380310943, + 1.2990359054560536, + 1.673049857398633, + 1.6102657441285892, + 1.615535355400224, + 1.7438885901750216, + 1.4002416452003645, + 1.0359435013629148 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.4754890920822006, + 2.578027319204853, + 3.1032077688738497, + 2.9481085803956644, + 2.6440814623259006, + 2.930383945514166, + 3.020408932198757, + 3.560716317835037, + 3.5253675227014254, + 3.3890395839546086, + 3.2714541505007237, + 2.3458471378368295, + 2.090218003239939, + 2.0603663956246576, + 2.1358882822000393, + 1.9515888171905973, + 1.4314242801348327, + 1.3835735513343532, + 1.5841428896011802, + 1.4892682420200092, + 1.5286444381812188, + 1.5582897635109576, + 1.136664371553417, + 1.113444495136599 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.436236285632656, + 2.5103800559910563, + 2.7799342846631823, + 2.6454465346815654, + 2.4008707407895544, + 2.6045912965021834, + 2.7572475578105533, + 3.1075674387788346, + 3.0187641528373192, + 2.8916450158880838, + 2.7353755027323556, + 2.070496971034631, + 1.8499864901659524, + 1.7444053887034863, + 1.7484197990566548, + 1.589818660061575, + 1.3091561219894234, + 1.191334047404436, + 1.4508408959134182, + 1.1566996057657548, + 1.171462292143678, + 1.24736435725554, + 1.0223291937084347, + 0.8438147443122362 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.591952971515432, + 2.6148843051988284, + 2.635361446836386, + 2.581586077135584, + 2.2621838262308804, + 2.4610620454880707, + 2.593166820601701, + 3.1238474120843027, + 3.0225458840286183, + 2.8286014437366647, + 2.81360019494018, + 1.9648777720598098, + 1.7113170686458719, + 1.7348233738764618, + 1.7825813590297923, + 1.5780584111304434, + 1.319108936095601, + 1.1332158798596677, + 1.44417706110947, + 1.136060795426327, + 1.221935386199036, + 1.2441307123037417, + 0.9901598805204426, + 0.8898267459937319 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.504860460453064, + 2.568734554515605, + 2.6819835542753556, + 2.734831292277967, + 2.4530946907141895, + 2.7327092194610363, + 2.8604565636035595, + 3.10673088694393, + 3.0088528678598365, + 2.855045555994516, + 2.7735568188266715, + 2.0256522516265836, + 1.7736696204303577, + 1.7267598432304099, + 1.7597922527112062, + 1.5573512506146105, + 1.3751644232244615, + 1.1406914317382841, + 1.390200478907952, + 1.0609191028795646, + 1.0695992398101668, + 1.187599709357724, + 0.9375080848315025, + 0.7551864080202297 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.4652884154964454, + 2.534327021750114, + 2.7234145076017615, + 2.7988422968971665, + 2.471174104089814, + 2.714886851558257, + 2.82319168264932, + 3.0040540789351615, + 2.9534004040767345, + 2.8686699322608753, + 2.752557301374667, + 2.0178333002565143, + 1.7759254655381718, + 1.7217262173657801, + 1.8523563991835827, + 1.6699879274275604, + 1.3662172137722333, + 1.2325254530790066, + 1.4191672404161844, + 1.1918953027631722, + 1.1546802433586727, + 1.2033217938745673, + 0.9138262687037109, + 0.7052304296020949 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.4854204405615006, + 2.5878280803110947, + 2.6827638953379696, + 2.6541354293737043, + 2.3930603475420975, + 2.6117427788570504, + 2.7367951859240778, + 3.1685772218311237, + 3.113798318328056, + 3.0688203719999856, + 2.971525229218135, + 2.209860302272856, + 1.9447425204453042, + 1.9234415921525554, + 2.093195415594123, + 1.8724290092661566, + 1.4900325603011977, + 1.3001835116335378, + 1.5592172331169845, + 1.2145378770702984, + 1.1467017054235111, + 1.248574489756711, + 0.9425908831706167, + 0.7640825875680176 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.3957430156365436, + 2.346307736720229, + 3.0097909909981135, + 2.79097772259688, + 2.4874002952301013, + 2.800233877794583, + 2.9486201492645456, + 3.3027540605970587, + 3.41031292280659, + 3.2639903476705556, + 3.018405282935397, + 2.3247200818328064, + 2.2747786419694793, + 2.2428956838232703, + 2.3772280583008896, + 2.227864740690477, + 1.5007847392800722, + 1.5503786607476264, + 1.660553322673839, + 1.3296147487820291, + 1.1649642179648472, + 1.2612006275214989, + 1.0622536237436497, + 0.8544718879638702 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 2.569679991154589, + 2.599006005362874, + 3.237590288221056, + 3.1502304389279705, + 2.7435218170320503, + 2.981124959584841, + 3.1731055968114874, + 3.841397196933097, + 3.9020807158797677, + 3.7060111050136464, + 3.478674621342708, + 2.617055016379998, + 2.4802945545754356, + 2.455495559655865, + 2.5664242821133914, + 2.4153810911774087, + 1.5245945445968723, + 1.5562138253708768, + 1.772382492022484, + 1.336536220805509, + 1.281205508859415, + 1.363892335502077, + 1.1615312519352017, + 0.8855618120504487 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 2.8271867664678747, + 2.842787479534727, + 3.1018961257640028, + 2.886462431760435, + 2.574896707529257, + 2.8430770723248315, + 2.9893657460578913, + 3.221700471547909, + 3.14967735712804, + 3.0070693689280477, + 2.942042115189412, + 2.236018557634299, + 1.9096403639282222, + 1.894450005912043, + 1.9956909807298007, + 1.882030084002398, + 1.510034002772697, + 1.3646436341642285, + 1.469793602065526, + 1.0555553471965182, + 1.02459243850127, + 1.1259213821097562, + 0.8984627746701634, + 0.6386254602456857 + ], + [ + 2.1270451660560696, + 2.2131003982189865, + 2.231263403712327, + 2.4754890920822006, + 2.436236285632656, + 2.591952971515432, + 2.504860460453064, + 2.4652884154964454, + 2.4854204405615006, + 2.3957430156365436, + 2.569679991154589, + 2.8271867664678747, + 3.812662698820945, + 3.3317575935949395, + 2.7854088126972494, + 2.7615157562158426, + 2.422851666536677, + 2.7373545269883564, + 2.8309107242350593, + 3.0535498438417137, + 2.9367829092428543, + 2.6685166631884876, + 2.6520392846282053, + 1.9685974830136408, + 1.8681834228049579, + 1.7839248116400461, + 1.8781519144317937, + 1.7180747899053552, + 1.3595250426795165, + 1.109927072692434, + 1.4736389690920333, + 1.0685055488155717, + 1.2063414335419105, + 1.3015396915833224, + 0.904167556149851, + 0.7549288394598197 + ], + [ + 2.123763872529156, + 2.2530984101947746, + 2.2666584628306836, + 2.578027319204853, + 2.5103800559910563, + 2.6148843051988284, + 2.568734554515605, + 2.534327021750114, + 2.5878280803110947, + 2.346307736720229, + 2.599006005362874, + 2.842787479534727, + 3.3317575935949395, + 3.820309516352677, + 2.9089456403116065, + 2.745087587093582, + 2.332153750959724, + 2.6392703125198462, + 2.84303451320742, + 2.982284077904956, + 2.9236149278173764, + 2.7356631706281522, + 2.65969439557133, + 1.9843613574928805, + 1.7907001379566398, + 1.7458862097114825, + 1.8945015653272739, + 1.7103414645756603, + 1.3630988201827707, + 1.071663527313717, + 1.4474214720038143, + 1.0212893666103973, + 1.1848339437301723, + 1.3001179677088908, + 0.9317517594130832, + 0.7222333629736347 + ], + [ + 2.5495269349077487, + 2.675500859881959, + 2.6942629359080232, + 3.1032077688738497, + 2.7799342846631823, + 2.635361446836386, + 2.6819835542753556, + 2.7234145076017615, + 2.6827638953379696, + 3.0097909909981135, + 3.237590288221056, + 3.1018961257640028, + 2.7854088126972494, + 2.9089456403116065, + 4.299089970353988, + 3.555337725787184, + 3.0189490111514776, + 3.3758214881702364, + 3.6521199992994533, + 3.6242033317546523, + 3.4609330485657717, + 3.2293454711282283, + 3.066163494055312, + 2.338396692958152, + 1.9698097818410572, + 1.9747344102650393, + 2.1356250367138543, + 1.998144858099896, + 1.3531717996896562, + 1.3684876354505549, + 1.4818454656250617, + 1.1173410045239887, + 1.0986568017878269, + 1.2271336502542167, + 0.9765235734909726, + 0.823735656853221 + ], + [ + 2.6668278419949014, + 2.703823042992612, + 2.8362033602916394, + 2.9481085803956644, + 2.6454465346815654, + 2.581586077135584, + 2.734831292277967, + 2.7988422968971665, + 2.6541354293737043, + 2.79097772259688, + 3.1502304389279705, + 2.886462431760435, + 2.7615157562158426, + 2.745087587093582, + 3.555337725787184, + 4.680683056201329, + 3.634424687619012, + 4.017699316478667, + 4.237325197746933, + 3.8260586299648, + 3.572258634318387, + 3.289965018455628, + 3.0578325218372906, + 2.2774128673287604, + 1.8826561996613425, + 1.8329116355557453, + 1.9767043841942658, + 1.7938335301543111, + 1.1202710089578178, + 1.0779874250819925, + 1.4483150615256646, + 1.0244594629381738, + 1.0083103829397622, + 1.1497672697130805, + 1.0429375634752587, + 0.7917520234147246 + ], + [ + 2.6221918114453913, + 2.690730038643846, + 2.7609862401099754, + 2.6440814623259006, + 2.4008707407895544, + 2.2621838262308804, + 2.4530946907141895, + 2.471174104089814, + 2.3930603475420975, + 2.4874002952301013, + 2.7435218170320503, + 2.574896707529257, + 2.422851666536677, + 2.332153750959724, + 3.0189490111514776, + 3.634424687619012, + 4.740015546406883, + 4.315260850600788, + 4.178945386391538, + 3.4452308159673795, + 3.1587445477918776, + 3.066248299474256, + 2.799566604400168, + 2.126109355154, + 1.7994761155933356, + 1.76769182410245, + 1.9011178318696713, + 1.7155540443356807, + 1.0377847871488473, + 1.0386909473614994, + 1.3325120317894406, + 0.9270411026490498, + 0.9735937351493019, + 1.051323225227053, + 0.9274629459107973, + 0.8050472328146363 + ], + [ + 2.834988518027483, + 2.8137952658155116, + 3.01987908296117, + 2.930383945514166, + 2.6045912965021834, + 2.4610620454880707, + 2.7327092194610363, + 2.714886851558257, + 2.6117427788570504, + 2.800233877794583, + 2.981124959584841, + 2.8430770723248315, + 2.7373545269883564, + 2.6392703125198462, + 3.3758214881702364, + 4.017699316478667, + 4.315260850600788, + 5.089181110259708, + 4.395720051977264, + 3.9466677429945762, + 3.685489464039797, + 3.4160448924461644, + 3.144376944651456, + 2.2645010089046105, + 1.9069030680970513, + 1.945614248302221, + 2.123865029931966, + 1.8888565249498932, + 1.1831778281069016, + 1.1847292700448848, + 1.5374256594893978, + 1.0225168675451546, + 1.0546030102052792, + 1.1773312843618118, + 1.123006785741699, + 0.8933998967343877 + ], + [ + 2.8922729066492625, + 2.8884770056591518, + 3.052706992464676, + 3.020408932198757, + 2.7572475578105533, + 2.593166820601701, + 2.8604565636035595, + 2.82319168264932, + 2.7367951859240778, + 2.9486201492645456, + 3.1731055968114874, + 2.9893657460578913, + 2.8309107242350593, + 2.84303451320742, + 3.6521199992994533, + 4.237325197746933, + 4.178945386391538, + 4.395720051977264, + 5.319154540321637, + 4.052051607029074, + 3.8306071485782707, + 3.5685676882579465, + 3.276844739099829, + 2.4709875714234957, + 2.1339012986892016, + 2.0916400142412415, + 2.226806251908289, + 1.9767909808759936, + 1.2272325597741451, + 1.1867531036630428, + 1.5073684679316288, + 1.0384951745881563, + 1.0951948706669947, + 1.2690089823478756, + 1.1369923869760008, + 0.9382665428863548 + ], + [ + 3.1908798982034323, + 3.2706936679338376, + 3.3402565009815977, + 3.560716317835037, + 3.1075674387788346, + 3.1238474120843027, + 3.10673088694393, + 3.0040540789351615, + 3.1685772218311237, + 3.3027540605970587, + 3.841397196933097, + 3.221700471547909, + 3.0535498438417137, + 2.982284077904956, + 3.6242033317546523, + 3.8260586299648, + 3.4452308159673795, + 3.9466677429945762, + 4.052051607029074, + 6.030635074506439, + 5.373502658488682, + 4.755588196311479, + 4.408340928265699, + 3.050002737161297, + 2.644663285812439, + 2.6301439885930145, + 2.794433815754178, + 2.5324938042856595, + 1.4739363755906232, + 1.4969524529010731, + 1.9021793608885131, + 1.5687080015982926, + 1.591871074645982, + 1.7837800559201187, + 1.4003555719327998, + 1.1380685685295455 + ], + [ + 3.194260294621024, + 3.2906151212592096, + 3.354916682310258, + 3.5253675227014254, + 3.0187641528373192, + 3.0225458840286183, + 3.0088528678598365, + 2.9534004040767345, + 3.113798318328056, + 3.41031292280659, + 3.9020807158797677, + 3.14967735712804, + 2.9367829092428543, + 2.9236149278173764, + 3.4609330485657717, + 3.572258634318387, + 3.1587445477918776, + 3.685489464039797, + 3.8306071485782707, + 5.373502658488682, + 5.726666773834767, + 4.96736011980298, + 4.416268076825157, + 3.202751350198948, + 2.6629691513453335, + 2.633247512593971, + 2.849688956453912, + 2.6332479164292724, + 1.5520623665562931, + 1.5647521351445735, + 2.0151679796236945, + 1.637924594419455, + 1.6600001002475147, + 1.8301299727996319, + 1.5173834431377982, + 1.1612451274153273 + ], + [ + 3.159925893688281, + 3.2819402041940564, + 3.3778728078973383, + 3.3890395839546086, + 2.8916450158880838, + 2.8286014437366647, + 2.855045555994516, + 2.8686699322608753, + 3.0688203719999856, + 3.2639903476705556, + 3.7060111050136464, + 3.0070693689280477, + 2.6685166631884876, + 2.7356631706281522, + 3.2293454711282283, + 3.289965018455628, + 3.066248299474256, + 3.4160448924461644, + 3.5685676882579465, + 4.755588196311479, + 4.96736011980298, + 5.35957793692388, + 4.468271377289655, + 3.343998967982652, + 2.6949635180701157, + 2.6687372186202025, + 2.9974498650199415, + 2.7413713745662864, + 1.583505273708417, + 1.606412603619795, + 2.062098628619096, + 1.6256028754238172, + 1.691747980153108, + 1.8299986034983793, + 1.586524868721254, + 1.0931487294174285 + ], + [ + 2.912077546379141, + 3.10814926185079, + 3.117534765825235, + 3.2714541505007237, + 2.7353755027323556, + 2.81360019494018, + 2.7735568188266715, + 2.752557301374667, + 2.971525229218135, + 3.018405282935397, + 3.478674621342708, + 2.942042115189412, + 2.6520392846282053, + 2.65969439557133, + 3.066163494055312, + 3.0578325218372906, + 2.799566604400168, + 3.144376944651456, + 3.276844739099829, + 4.408340928265699, + 4.416268076825157, + 4.468271377289655, + 5.059169100508454, + 3.394973583036432, + 2.776881384690432, + 2.760579633927592, + 3.072933245631255, + 2.8978196974938184, + 1.6646218190648874, + 1.733708713824975, + 2.028918100495332, + 1.6121655299217434, + 1.6257168975324168, + 1.7069000145703237, + 1.4325747824851467, + 1.0856925424560175 + ], + [ + 2.523976484946916, + 2.5581890670837786, + 2.3605599508840873, + 2.3458471378368295, + 2.070496971034631, + 1.9648777720598098, + 2.0256522516265836, + 2.0178333002565143, + 2.209860302272856, + 2.3247200818328064, + 2.617055016379998, + 2.236018557634299, + 1.9685974830136408, + 1.9843613574928805, + 2.338396692958152, + 2.2774128673287604, + 2.126109355154, + 2.2645010089046105, + 2.4709875714234957, + 3.050002737161297, + 3.202751350198948, + 3.343998967982652, + 3.394973583036432, + 4.519650309030202, + 2.767460765583157, + 2.714201424788431, + 2.853602737959896, + 2.813461087616291, + 1.6177386809214458, + 1.7443011079882076, + 2.1112523664163225, + 1.5795890644547845, + 1.6022995313259423, + 1.6776882004405225, + 1.6051943377379274, + 1.244378162917985 + ], + [ + 2.0873363367429096, + 2.1575961176050846, + 2.0530017235362035, + 2.090218003239939, + 1.8499864901659524, + 1.7113170686458719, + 1.7736696204303577, + 1.7759254655381718, + 1.9447425204453042, + 2.2747786419694793, + 2.4802945545754356, + 1.9096403639282222, + 1.8681834228049579, + 1.7907001379566398, + 1.9698097818410572, + 1.8826561996613425, + 1.7994761155933356, + 1.9069030680970513, + 2.1339012986892016, + 2.644663285812439, + 2.6629691513453335, + 2.6949635180701157, + 2.776881384690432, + 2.767460765583157, + 4.917050310486877, + 4.257039906395875, + 3.808692126270025, + 3.6763714070197575, + 2.0270791978126397, + 2.0835602545828813, + 2.8833400474341744, + 2.109980179044883, + 2.0576259801507772, + 2.1149094396230472, + 1.9000257895227817, + 1.5446542938469605 + ], + [ + 2.0307487480485555, + 2.1510365414378714, + 2.0464924855917928, + 2.0603663956246576, + 1.7444053887034863, + 1.7348233738764618, + 1.7267598432304099, + 1.7217262173657801, + 1.9234415921525554, + 2.2428956838232703, + 2.455495559655865, + 1.894450005912043, + 1.7839248116400461, + 1.7458862097114825, + 1.9747344102650393, + 1.8329116355557453, + 1.76769182410245, + 1.945614248302221, + 2.0916400142412415, + 2.6301439885930145, + 2.633247512593971, + 2.6687372186202025, + 2.760579633927592, + 2.714201424788431, + 4.257039906395875, + 5.145821066016456, + 4.269952168985326, + 4.0402431070688225, + 2.071389038763347, + 2.2046695849784044, + 2.9189082408208096, + 2.0337904556153292, + 1.8822223322468716, + 1.9731293435572848, + 1.7448665882850762, + 1.5753702246930679 + ], + [ + 2.0998309783853064, + 2.1949098319479874, + 2.112078320349174, + 2.1358882822000393, + 1.7484197990566548, + 1.7825813590297923, + 1.7597922527112062, + 1.8523563991835827, + 2.093195415594123, + 2.3772280583008896, + 2.5664242821133914, + 1.9956909807298007, + 1.8781519144317937, + 1.8945015653272739, + 2.1356250367138543, + 1.9767043841942658, + 1.9011178318696713, + 2.123865029931966, + 2.226806251908289, + 2.794433815754178, + 2.849688956453912, + 2.9974498650199415, + 3.072933245631255, + 2.853602737959896, + 3.808692126270025, + 4.269952168985326, + 5.9621803984756845, + 5.165936836613327, + 2.455912849698523, + 2.5237440753841174, + 3.328105075432791, + 2.0347596378619204, + 1.8651393002716692, + 1.911799190288745, + 1.868220183274588, + 1.3776230572762422 + ], + [ + 1.892793019265785, + 2.0618927253539225, + 1.8608378912090402, + 1.9515888171905973, + 1.589818660061575, + 1.5780584111304434, + 1.5573512506146105, + 1.6699879274275604, + 1.8724290092661566, + 2.227864740690477, + 2.4153810911774087, + 1.882030084002398, + 1.7180747899053552, + 1.7103414645756603, + 1.998144858099896, + 1.7938335301543111, + 1.7155540443356807, + 1.8888565249498932, + 1.9767909808759936, + 2.5324938042856595, + 2.6332479164292724, + 2.7413713745662864, + 2.8978196974938184, + 2.813461087616291, + 3.6763714070197575, + 4.0402431070688225, + 5.165936836613327, + 6.309418142054022, + 3.0193832756733054, + 3.0621250194592022, + 3.598081796083498, + 2.2567753795679257, + 2.043817132990763, + 2.063481427913692, + 2.163622684029622, + 1.4320223943077788 + ], + [ + 1.2323749979709726, + 1.304162272554706, + 1.2222872380310943, + 1.4314242801348327, + 1.3091561219894234, + 1.319108936095601, + 1.3751644232244615, + 1.3662172137722333, + 1.4900325603011977, + 1.5007847392800722, + 1.5245945445968723, + 1.510034002772697, + 1.3595250426795165, + 1.3630988201827707, + 1.3531717996896562, + 1.1202710089578178, + 1.0377847871488473, + 1.1831778281069016, + 1.2272325597741451, + 1.4739363755906232, + 1.5520623665562931, + 1.583505273708417, + 1.6646218190648874, + 1.6177386809214458, + 2.0270791978126397, + 2.071389038763347, + 2.455912849698523, + 3.0193832756733054, + 3.77697405977638, + 2.8294279817413215, + 2.8524728806662822, + 1.6707738199074762, + 1.3393016397835837, + 1.364261236123678, + 1.5765481852550356, + 1.0714798764931923 + ], + [ + 1.1554985550276557, + 1.298578647251505, + 1.2990359054560536, + 1.3835735513343532, + 1.191334047404436, + 1.1332158798596677, + 1.1406914317382841, + 1.2325254530790066, + 1.3001835116335378, + 1.5503786607476264, + 1.5562138253708768, + 1.3646436341642285, + 1.109927072692434, + 1.071663527313717, + 1.3684876354505549, + 1.0779874250819925, + 1.0386909473614994, + 1.1847292700448848, + 1.1867531036630428, + 1.4969524529010731, + 1.5647521351445735, + 1.606412603619795, + 1.733708713824975, + 1.7443011079882076, + 2.0835602545828813, + 2.2046695849784044, + 2.5237440753841174, + 3.0621250194592022, + 2.8294279817413215, + 4.500137042933295, + 3.4219012148108106, + 2.0937251200589717, + 1.652030631015508, + 1.8073432962068121, + 2.111049974866841, + 1.1599114377986668 + ], + [ + 1.6361373095610952, + 1.7157864919666488, + 1.673049857398633, + 1.5841428896011802, + 1.4508408959134182, + 1.44417706110947, + 1.390200478907952, + 1.4191672404161844, + 1.5592172331169845, + 1.660553322673839, + 1.772382492022484, + 1.469793602065526, + 1.4736389690920333, + 1.4474214720038143, + 1.4818454656250617, + 1.4483150615256646, + 1.3325120317894406, + 1.5374256594893978, + 1.5073684679316288, + 1.9021793608885131, + 2.0151679796236945, + 2.062098628619096, + 2.028918100495332, + 2.1112523664163225, + 2.8833400474341744, + 2.9189082408208096, + 3.328105075432791, + 3.598081796083498, + 2.8524728806662822, + 3.4219012148108106, + 5.785907291934449, + 3.2127957440854464, + 2.7940517453804774, + 2.7458259888984244, + 2.7534611138880143, + 1.5348024556330402 + ], + [ + 1.5091229131714066, + 1.60382209502527, + 1.6102657441285892, + 1.4892682420200092, + 1.1566996057657548, + 1.136060795426327, + 1.0609191028795646, + 1.1918953027631722, + 1.2145378770702984, + 1.3296147487820291, + 1.336536220805509, + 1.0555553471965182, + 1.0685055488155717, + 1.0212893666103973, + 1.1173410045239887, + 1.0244594629381738, + 0.9270411026490498, + 1.0225168675451546, + 1.0384951745881563, + 1.5687080015982926, + 1.637924594419455, + 1.6256028754238172, + 1.6121655299217434, + 1.5795890644547845, + 2.109980179044883, + 2.0337904556153292, + 2.0347596378619204, + 2.2567753795679257, + 1.6707738199074762, + 2.0937251200589717, + 3.2127957440854464, + 4.02263959453308, + 3.2610240487371422, + 2.970380141454948, + 2.47774614498879, + 1.4732632701207096 + ], + [ + 1.5332473219580085, + 1.6471070913050834, + 1.615535355400224, + 1.5286444381812188, + 1.171462292143678, + 1.221935386199036, + 1.0695992398101668, + 1.1546802433586727, + 1.1467017054235111, + 1.1649642179648472, + 1.281205508859415, + 1.02459243850127, + 1.2063414335419105, + 1.1848339437301723, + 1.0986568017878269, + 1.0083103829397622, + 0.9735937351493019, + 1.0546030102052792, + 1.0951948706669947, + 1.591871074645982, + 1.6600001002475147, + 1.691747980153108, + 1.6257168975324168, + 1.6022995313259423, + 2.0576259801507772, + 1.8822223322468716, + 1.8651393002716692, + 2.043817132990763, + 1.3393016397835837, + 1.652030631015508, + 2.7940517453804774, + 3.2610240487371422, + 4.039080580257261, + 3.33137090395557, + 2.6108808565558577, + 1.6172904504047905 + ], + [ + 1.7281610575128585, + 1.7565851227256437, + 1.7438885901750216, + 1.5582897635109576, + 1.24736435725554, + 1.2441307123037417, + 1.187599709357724, + 1.2033217938745673, + 1.248574489756711, + 1.2612006275214989, + 1.363892335502077, + 1.1259213821097562, + 1.3015396915833224, + 1.3001179677088908, + 1.2271336502542167, + 1.1497672697130805, + 1.051323225227053, + 1.1773312843618118, + 1.2690089823478756, + 1.7837800559201187, + 1.8301299727996319, + 1.8299986034983793, + 1.7069000145703237, + 1.6776882004405225, + 2.1149094396230472, + 1.9731293435572848, + 1.911799190288745, + 2.063481427913692, + 1.364261236123678, + 1.8073432962068121, + 2.7458259888984244, + 2.970380141454948, + 3.33137090395557, + 4.089278489112553, + 2.9295552577623636, + 1.76472528852034 + ], + [ + 1.3395909707398532, + 1.5055403784604025, + 1.4002416452003645, + 1.136664371553417, + 1.0223291937084347, + 0.9901598805204426, + 0.9375080848315025, + 0.9138262687037109, + 0.9425908831706167, + 1.0622536237436497, + 1.1615312519352017, + 0.8984627746701634, + 0.904167556149851, + 0.9317517594130832, + 0.9765235734909726, + 1.0429375634752587, + 0.9274629459107973, + 1.123006785741699, + 1.1369923869760008, + 1.4003555719327998, + 1.5173834431377982, + 1.586524868721254, + 1.4325747824851467, + 1.6051943377379274, + 1.9000257895227817, + 1.7448665882850762, + 1.868220183274588, + 2.163622684029622, + 1.5765481852550356, + 2.111049974866841, + 2.7534611138880143, + 2.47774614498879, + 2.6108808565558577, + 2.9295552577623636, + 5.723673633440012, + 2.586185417698912 + ], + [ + 1.1117591517605714, + 1.1287707704578307, + 1.0359435013629148, + 1.113444495136599, + 0.8438147443122362, + 0.8898267459937319, + 0.7551864080202297, + 0.7052304296020949, + 0.7640825875680176, + 0.8544718879638702, + 0.8855618120504487, + 0.6386254602456857, + 0.7549288394598197, + 0.7222333629736347, + 0.823735656853221, + 0.7917520234147246, + 0.8050472328146363, + 0.8933998967343877, + 0.9382665428863548, + 1.1380685685295455, + 1.1612451274153273, + 1.0931487294174285, + 1.0856925424560175, + 1.244378162917985, + 1.5446542938469605, + 1.5753702246930679, + 1.3776230572762422, + 1.4320223943077788, + 1.0714798764931923, + 1.1599114377986668, + 1.5348024556330402, + 1.4732632701207096, + 1.6172904504047905, + 1.76472528852034, + 2.586185417698912, + 4.535905116906884 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.4111329371397993, + -0.4107944627584447, + -0.3709441682662928, + -0.3712205684433753, + -0.35343240767287604, + -0.34152432382624814, + -0.3419198421173894, + -0.29014772631424307, + -0.30516631069564987, + -0.3379388936772931, + -0.3444230911381742, + -0.36868789800176577, + -0.3288747242250069, + -0.32431136462076376, + -0.3155910759382881, + -0.2847631125505851, + -0.39761539021067777, + -0.3664402491496291, + -0.2790347772653468, + -0.3643296960015641, + -0.3665443480384761, + -0.3650034614104159, + -0.33289112571954477, + -0.3505767320899869 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6223093790055023, + "transport_matrix_sha256": "ea43767088fa2f8cc0b7ba197024635f7b8a7e19fdd34170b499f470c2461672", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.060115993022919e-05, + "gram_mean_diagonal": 0.06060115993022919, + "calibration_nmse": 0.12798181447783583, + "calibration_cosine": 0.9338195359584089, + "calibration_norm_ratio": 0.9329591782339236, + "transport_relative_identity_distance": 0.4961368441581726, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "67540e2474547f1d622b738128696574720591fddabb8157d2f6812ecc3af308", + "self_attn.k_proj.weight": "efbe8b71b99ef90277849155ebc45e9aad5ffe746f2958c077c7c7130d783c7b", + "self_attn.v_proj.weight": "c53545e1ac9a6447efa83242434a0b28bcda5fe12ef3866e173dd13c3da45e38", + "self_attn.o_proj.weight": "8812afef76626e47fb5dffe3a77a0cb07a07e8a7f5cf3a97453368a1284b0ffa", + "self_attn.q_norm.weight": "79bbb659cb1c2af322ca85abf7d26b088c837bcd284e70efa95a6449f69b5673", + "self_attn.k_norm.weight": "e50a57833625792c16439de078eeb810df393e1a49ef7bbe43f5af6a93923adc", + "mlp.gate_proj.weight": "6bc0a4412e6639d40e3a7d5c9099a5a05f2573bd12744019550fc11da2c52c55", + "mlp.up_proj.weight": "8715dd4fa81b5d58a577a1b2fdfb24592b23775921014b36f832fe8dbf2bbf51", + "mlp.down_proj.weight": "032dc5aba56bd954e7498918ca13b8589c12587c97ad88560480e8d28c18883b", + "input_layernorm.weight": "c419d161cc4932ecddf0ec98cbe5737b92688f0d5aa71a7e95d2006ca824ffca", + "post_attention_layernorm.weight": "ee6a9a96c2b4f35eb0807060229f10bc28080072ed9ecfa0a17e1aaa3cb4df40" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "67540e2474547f1d622b738128696574720591fddabb8157d2f6812ecc3af308", + "self_attn.k_proj.weight": "efbe8b71b99ef90277849155ebc45e9aad5ffe746f2958c077c7c7130d783c7b", + "self_attn.v_proj.weight": "c53545e1ac9a6447efa83242434a0b28bcda5fe12ef3866e173dd13c3da45e38", + "self_attn.o_proj.weight": "8812afef76626e47fb5dffe3a77a0cb07a07e8a7f5cf3a97453368a1284b0ffa", + "self_attn.q_norm.weight": "79bbb659cb1c2af322ca85abf7d26b088c837bcd284e70efa95a6449f69b5673", + "self_attn.k_norm.weight": "e50a57833625792c16439de078eeb810df393e1a49ef7bbe43f5af6a93923adc", + "mlp.gate_proj.weight": "655a66345118a70ec952e549407ec7f19222782a04bf0db39c5ee8372372a2bf", + "mlp.up_proj.weight": "cb86cdbce20a724154f50658e0c2cfc3ec3d63e3802388217035698470825d82", + "mlp.down_proj.weight": "032dc5aba56bd954e7498918ca13b8589c12587c97ad88560480e8d28c18883b", + "input_layernorm.weight": "c419d161cc4932ecddf0ec98cbe5737b92688f0d5aa71a7e95d2006ca824ffca", + "post_attention_layernorm.weight": "ee6a9a96c2b4f35eb0807060229f10bc28080072ed9ecfa0a17e1aaa3cb4df40" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6223093790055023, + "lambda_right": 0.3776906209944977, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "7a34a8a9bcc1a25c928397e3be5c409081b9de0ec283d13425482c0020e6db43", + "mlp.up_proj.weight": "1f3dacc4c4a3af2a55d6273cfc2374077a2eda18cec7cf8237e05c54cc1b8ea5", + "mlp.gate_proj.weight": "3e138d6d890dfaeeeb88ae9b8a48c084aea69752230749e87f1586b975880ddd", + "self_attn.k_proj.weight": "8d6f656be7538039543561a8c96dca260b3db7bdcb26946d9dca9a10101bb58f", + "self_attn.o_proj.weight": "e3c5cc19864068b28a406400c10d2704664356085511c7e44b587a1eab278d92", + "self_attn.q_proj.weight": "1b6c758076acef0ff0bbf34e9ee7be3808252f432a10b0015a99b07a232ddf79", + "self_attn.v_proj.weight": "ae85148c6da3808090619c005e94364db614bdec475df91ba4e312cb026fa377" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "67540e2474547f1d622b738128696574720591fddabb8157d2f6812ecc3af308", + "self_attn.k_proj.weight": "efbe8b71b99ef90277849155ebc45e9aad5ffe746f2958c077c7c7130d783c7b", + "self_attn.v_proj.weight": "c53545e1ac9a6447efa83242434a0b28bcda5fe12ef3866e173dd13c3da45e38", + "self_attn.o_proj.weight": "8812afef76626e47fb5dffe3a77a0cb07a07e8a7f5cf3a97453368a1284b0ffa", + "self_attn.q_norm.weight": "79bbb659cb1c2af322ca85abf7d26b088c837bcd284e70efa95a6449f69b5673", + "self_attn.k_norm.weight": "e50a57833625792c16439de078eeb810df393e1a49ef7bbe43f5af6a93923adc", + "mlp.gate_proj.weight": "655a66345118a70ec952e549407ec7f19222782a04bf0db39c5ee8372372a2bf", + "mlp.up_proj.weight": "cb86cdbce20a724154f50658e0c2cfc3ec3d63e3802388217035698470825d82", + "mlp.down_proj.weight": "032dc5aba56bd954e7498918ca13b8589c12587c97ad88560480e8d28c18883b", + "input_layernorm.weight": "c419d161cc4932ecddf0ec98cbe5737b92688f0d5aa71a7e95d2006ca824ffca", + "post_attention_layernorm.weight": "ee6a9a96c2b4f35eb0807060229f10bc28080072ed9ecfa0a17e1aaa3cb4df40" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "95732a59144d689baf46fef38c0b43ffe9d4c4663cf160e2494d6146957f00e5", + "mlp.up_proj.weight": "2bf9bc06f266d744623ff42d772eb1d8c29012ef0d46f116eae908dbb08a89b8", + "mlp.gate_proj.weight": "95e7d27498b2eec4f1d4b641f8a528c393e6abee78b172b6284f69920f385125", + "self_attn.k_proj.weight": "c09a39b4dfd4e9121fcca782d6b4aa9603af01e398239090034c492af0cd887a", + "self_attn.o_proj.weight": "e39994b63ebe97dbd6d6d5405206a1673f3d2151a262572b8aff783a32a918e0", + "self_attn.q_proj.weight": "fe50101d44f36f6e7161e07949c2bc6c3eb25830f053bdaf06efc1b1c94f5f0f", + "self_attn.v_proj.weight": "c31fbee7c61e87cfa00e10371fc6d7f72d85f7b22cfab7b3e4390fe26508d6c7" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_01_transport.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_01_transport.pt new file mode 100644 index 0000000000000000000000000000000000000000..e58dab4f7fe06e20db5edaf72b51682dd62858cb --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_01_transport.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce29905e20c096a8d0a555134ba437d93e2e81d3e91cbfdff0b3e62513583bbb +size 67110518 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_02_merge.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_02_merge.json new file mode 100644 index 0000000000000000000000000000000000000000..7e87e1f413cccfa772a1980643540a88e9a62e41 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_02_merge.json @@ -0,0 +1,1464 @@ +{ + "cycle": 2, + "anchor": 12, + "removed_original_layer": 14, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.3460994946178024, + 2.3766555685616604, + 2.1660702768334765, + 1.5995648153972046, + 1.9039105990240157, + 2.317596408258066, + 2.4985278926945913, + 2.982298868508639, + 3.0121955967210168, + 2.658900943392461, + 2.6819167225857217, + 1.8257508607136372, + 1.9600940822577222, + 1.942752629151272, + 1.5693947828989996, + 1.0847383761454246, + 1.1261161765414247, + 1.698877362568659, + 1.2977168776485808, + 1.38720492450309, + 1.618789649034315, + 1.3053316760921456, + 1.1954305709860293 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.4113981182591977, + 2.4675569894943536, + 2.298714721340813, + 1.7470257494011263, + 1.980820224200878, + 2.416840554055094, + 2.6634514723924316, + 3.1774466897177294, + 3.189373346017945, + 2.8542676187243288, + 2.7901272347159676, + 1.9672712275889204, + 2.1328748003870768, + 2.152445994717053, + 1.7911692129918657, + 1.2325445482031443, + 1.2631285020925673, + 1.7581771211883654, + 1.4384783593002088, + 1.5302211383233428, + 1.6762132401906602, + 1.359274805778048, + 1.1952136942582152 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.518743912446343, + 2.550517752403105, + 2.333388414197134, + 1.810508792699171, + 2.0927696450407915, + 2.5783728916242836, + 2.775002312076615, + 3.2180018233186876, + 3.208114868135302, + 2.8910813462180194, + 2.6292710101420793, + 1.838199475928631, + 2.022506929738739, + 2.052502367874252, + 1.674312408368456, + 1.2166799589893798, + 1.325752571119606, + 1.7593862788547172, + 1.4071038274179397, + 1.4836611609073158, + 1.6699298590429534, + 1.2841219933574295, + 1.1345407135904007 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8284108250107707, + 2.8025305723514524, + 2.705512594065184, + 1.8867730294010843, + 2.287658004675237, + 2.5342612031110927, + 3.0411743725308327, + 3.459349056558749, + 3.418956140049179, + 3.259012742426114, + 2.6626927390197457, + 1.8331363378434844, + 2.0692600706078177, + 2.115673819852997, + 1.8330868508301452, + 1.449871122737371, + 1.4028214683039892, + 1.6702474584361513, + 1.248358677127305, + 1.4629487713380784, + 1.625676489165812, + 1.0499808535281512, + 1.118907156949541 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.696297500079943, + 2.6157337902848683, + 2.6648191119907354, + 1.8072442034249283, + 1.9945555112575153, + 2.155748459440918, + 2.571767840802845, + 2.926626490337606, + 2.946148594808052, + 2.6964568132060998, + 2.382411859735795, + 1.7137303458493387, + 1.8332384289371035, + 1.6981471964375652, + 1.4045533553532168, + 1.264607154293088, + 1.2204256383875012, + 1.4608859107318808, + 1.0535669102034275, + 1.1873438732052684, + 1.296585461610222, + 1.0907751396531875, + 0.9159084508309889 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.900215317980636, + 2.8020830262800787, + 2.480106416161784, + 1.8293829176535925, + 1.9671036161357154, + 2.1773011379652676, + 2.5823157955417937, + 2.9780744394414573, + 2.958323405075513, + 2.7103747505128393, + 2.2859336524484744, + 1.617629996603677, + 1.7387832654395032, + 1.7172962306792858, + 1.4127422890478287, + 1.2912705583998834, + 1.1264407139617774, + 1.3763175593869776, + 1.0359683122525731, + 1.2434429029958154, + 1.2648755869143877, + 0.939970108571266, + 0.987916205768816 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.807871372942674, + 2.7136039715815876, + 2.6556364486873103, + 1.8486182491608716, + 2.049116199401574, + 2.257536760831622, + 2.577889247414705, + 2.982647228087871, + 2.940621961605023, + 2.697894071737526, + 2.2800404889826744, + 1.6614162319272257, + 1.7800837006233292, + 1.7535883439830895, + 1.4527796271154203, + 1.3186525203475008, + 1.1642342654370599, + 1.3691860876993445, + 1.0310357584105359, + 1.1373290404363625, + 1.1710359835589554, + 1.0251707889630164, + 0.8442449571524366 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.7914918032961755, + 2.689514636816605, + 2.703190952440022, + 1.8767695791261763, + 2.0744228063394057, + 2.341825986907151, + 2.5593784823460743, + 2.9645097654818593, + 2.951751515417861, + 2.7287867375880146, + 2.3354948850573956, + 1.6663292408322201, + 1.7643821848318193, + 1.8298677124686078, + 1.512606363347052, + 1.312913551365708, + 1.3017669793931275, + 1.4279954730907891, + 1.1212760449231889, + 1.211342343793892, + 1.2488870452955416, + 1.026809747826745, + 0.7825108866922259 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.8898641090986676, + 2.8141512967721916, + 2.6673011757981064, + 1.869378749682932, + 2.0413188469681254, + 2.27118444013681, + 2.583648182390222, + 3.0776429488510484, + 3.096111034766446, + 2.8967812344453105, + 2.5023700069301906, + 1.7064903934350013, + 1.9112113251235057, + 1.9997154467301224, + 1.7447859583043093, + 1.3924541448658543, + 1.300719860980909, + 1.4338985995408828, + 1.0956340355389615, + 1.1788973798687417, + 1.2275586824999118, + 0.9599318959325378, + 0.830027412952144 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.7412737970029655, + 2.7060795516629446, + 2.7174354198093655, + 1.7690816460663168, + 2.089357691057759, + 2.403294590875812, + 2.8206662760962704, + 3.2260576185135226, + 3.2403046618954736, + 3.005975438404832, + 2.5500565591739845, + 2.0901829020039755, + 2.19872446189915, + 2.226893494938799, + 1.9881630000848824, + 1.435495848849056, + 1.4970807403803095, + 1.6411521825885067, + 1.166393816760872, + 1.2426504858383758, + 1.2929528634803762, + 1.041328330242362, + 0.9263982390375748 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 2.9978716535723575, + 2.950149508061185, + 2.8770405127390695, + 1.9064248468862524, + 2.3366986466372413, + 2.6826215340379824, + 3.254563722920821, + 3.7596375480064785, + 3.7164734680642773, + 3.376357058247065, + 2.948172496076496, + 2.287295760113314, + 2.4779345790123197, + 2.534006687207946, + 2.137505298806588, + 1.4421328334574037, + 1.5742889742691262, + 1.67693083764926, + 1.1780487517177762, + 1.2711147829936178, + 1.412752570413598, + 1.106421594113146, + 0.9912777697064321 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.370365972877624, + 3.2745666300176595, + 3.054311031734535, + 1.990604145381186, + 2.2584227373109713, + 2.4203727167829023, + 2.679993985117518, + 3.121726641609722, + 3.0421043191857735, + 2.8332398165546313, + 2.4720008772657187, + 1.8021338556226372, + 1.9627324168089326, + 2.0391930492518093, + 1.708768644256868, + 1.3853584617997567, + 1.434750354417122, + 1.3213941067439472, + 0.9963627523171967, + 1.0806253221399131, + 1.1180243717561449, + 0.9211486521083271, + 0.6797937210976216 + ], + [ + 2.3460994946178024, + 2.4113981182591977, + 2.518743912446343, + 2.8284108250107707, + 2.696297500079943, + 2.900215317980636, + 2.807871372942674, + 2.7914918032961755, + 2.8898641090986676, + 2.7412737970029655, + 2.9978716535723575, + 3.370365972877624, + 4.269134605136387, + 3.902058962324325, + 3.000470051643377, + 2.0966046019740685, + 2.274334922689901, + 2.549204663140267, + 2.6819658998782403, + 3.2231845237130092, + 3.100889724293477, + 2.9023967370903163, + 2.5253827694368245, + 1.8729984037780094, + 2.01836470627381, + 2.0804457310910736, + 1.694598424017695, + 1.3946858093809469, + 1.3768691286795196, + 1.4193146378040438, + 1.0650534499427424, + 1.2501266084163154, + 1.3015620057910038, + 0.9295930885071017, + 0.8329664432697043 + ], + [ + 2.3766555685616604, + 2.4675569894943536, + 2.550517752403105, + 2.8025305723514524, + 2.6157337902848683, + 2.8020830262800787, + 2.7136039715815876, + 2.689514636816605, + 2.8141512967721916, + 2.7060795516629446, + 2.950149508061185, + 3.2745666300176595, + 3.902058962324325, + 4.2117688341768424, + 2.9313427177541436, + 2.0330873212688063, + 2.177298424351198, + 2.4468254944447936, + 2.671070651955814, + 3.194736225084671, + 3.084773787649234, + 2.9065528946876857, + 2.523278908979153, + 1.9009335889475998, + 2.067425342202768, + 2.1002239710937456, + 1.7267840792121913, + 1.390796730026711, + 1.3536858922707409, + 1.4372533017612836, + 1.0376653430410985, + 1.2746837554169372, + 1.3242915910330701, + 0.9171297529485747, + 0.8285008364952394 + ], + [ + 2.1660702768334765, + 2.298714721340813, + 2.333388414197134, + 2.705512594065184, + 2.6648191119907354, + 2.480106416161784, + 2.6556364486873103, + 2.703190952440022, + 2.6673011757981064, + 2.7174354198093655, + 2.8770405127390695, + 3.054311031734535, + 3.000470051643377, + 2.9313427177541436, + 3.7106514834733133, + 2.021496042859979, + 2.3422861190899735, + 2.5588504101392093, + 2.7675940492060946, + 3.076343139875276, + 2.889189890704588, + 2.7455949662934005, + 2.3404432771767465, + 1.6403041377017564, + 1.83004357354458, + 1.8427798899343681, + 1.5284757313937025, + 1.2263220612662133, + 1.2725640055664202, + 1.272830971461503, + 0.9283668523997565, + 1.0600737224238204, + 1.0225190435369835, + 0.9607256643901847, + 0.6661878984014443 + ], + [ + 1.5995648153972046, + 1.7470257494011263, + 1.810508792699171, + 1.8867730294010843, + 1.8072442034249283, + 1.8293829176535925, + 1.8486182491608716, + 1.8767695791261763, + 1.869378749682932, + 1.7690816460663168, + 1.9064248468862524, + 1.990604145381186, + 2.0966046019740685, + 2.0330873212688063, + 2.021496042859979, + 3.3425359885856505, + 2.5881515808779243, + 2.547241300692336, + 2.3032290451438913, + 2.49054797641926, + 2.3522772232296196, + 2.131749190570782, + 1.8715137539037114, + 1.3442008566086954, + 1.3385716748307224, + 1.3058566917804801, + 1.0536036139900715, + 0.8744931215548148, + 0.8268480983327124, + 0.9635508002600905, + 0.8194671226869618, + 0.8248408246244702, + 0.8915893737625095, + 0.740678829094287, + 0.5508459763918322 + ], + [ + 1.9039105990240157, + 1.980820224200878, + 2.0927696450407915, + 2.287658004675237, + 1.9945555112575153, + 1.9671036161357154, + 2.049116199401574, + 2.0744228063394057, + 2.0413188469681254, + 2.089357691057759, + 2.3366986466372413, + 2.2584227373109713, + 2.274334922689901, + 2.177298424351198, + 2.3422861190899735, + 2.5881515808779243, + 3.5893158552867654, + 3.0527735935129225, + 2.7108874098124383, + 2.9584861837358876, + 2.6802221670587114, + 2.488629270498948, + 2.222950736518668, + 1.5692694145133517, + 1.604665992614145, + 1.6137958031121589, + 1.2959547166974847, + 0.9057204545777741, + 0.8984784523256504, + 1.0770096729333427, + 0.8731110125662055, + 0.8633736564654112, + 0.8588679618152188, + 0.6579695914011778, + 0.658613118001356 + ], + [ + 2.317596408258066, + 2.416840554055094, + 2.5783728916242836, + 2.5342612031110927, + 2.155748459440918, + 2.1773011379652676, + 2.257536760831622, + 2.341825986907151, + 2.27118444013681, + 2.403294590875812, + 2.6826215340379824, + 2.4203727167829023, + 2.549204663140267, + 2.4468254944447936, + 2.5588504101392093, + 2.547241300692336, + 3.0527735935129225, + 4.438712234795112, + 3.227388451634585, + 3.578539270557382, + 3.2670785298944867, + 2.903002601725292, + 2.591816317037175, + 1.7974719261713243, + 1.8025153762656232, + 1.8189916161174717, + 1.3728842475581566, + 0.9410108052358526, + 0.9680809986978666, + 1.2148313078661384, + 0.9286436260370562, + 1.0081668526872523, + 0.9666216629595575, + 0.7021632723030131, + 0.5724152455931204 + ], + [ + 2.4985278926945913, + 2.6634514723924316, + 2.775002312076615, + 3.0411743725308327, + 2.571767840802845, + 2.5823157955417937, + 2.577889247414705, + 2.5593784823460743, + 2.583648182390222, + 2.8206662760962704, + 3.254563722920821, + 2.679993985117518, + 2.6819658998782403, + 2.671070651955814, + 2.7675940492060946, + 2.3032290451438913, + 2.7108874098124383, + 3.227388451634585, + 4.829430784774722, + 4.668583027395963, + 4.245653743546512, + 3.839901353864509, + 3.165785315310753, + 2.101045427594832, + 2.252936775964287, + 2.366281071796832, + 1.9085675066876417, + 1.2626385509934217, + 1.2866538557482279, + 1.4634875679650245, + 1.0617335014957514, + 1.1046955463667694, + 1.184828506894162, + 0.8303793482758284, + 0.7913909581772823 + ], + [ + 2.982298868508639, + 3.1774466897177294, + 3.2180018233186876, + 3.459349056558749, + 2.926626490337606, + 2.9780744394414573, + 2.982647228087871, + 2.9645097654818593, + 3.0776429488510484, + 3.2260576185135226, + 3.7596375480064785, + 3.121726641609722, + 3.2231845237130092, + 3.194736225084671, + 3.076343139875276, + 2.49054797641926, + 2.9584861837358876, + 3.578539270557382, + 4.668583027395963, + 6.011401055168464, + 5.2012473303854465, + 4.494286271186834, + 3.732897294661687, + 2.6130230912320833, + 2.88490345257779, + 2.9035769756852976, + 2.337288218425385, + 1.4524510568936164, + 1.6154758428677078, + 1.7934092544312048, + 1.3389642819150764, + 1.4306937316458634, + 1.542302249513181, + 1.2323197174933946, + 1.1885199509403959 + ], + [ + 3.0121955967210168, + 3.189373346017945, + 3.208114868135302, + 3.418956140049179, + 2.946148594808052, + 2.958323405075513, + 2.940621961605023, + 2.951751515417861, + 3.096111034766446, + 3.2403046618954736, + 3.7164734680642773, + 3.0421043191857735, + 3.100889724293477, + 3.084773787649234, + 2.889189890704588, + 2.3522772232296196, + 2.6802221670587114, + 3.2670785298944867, + 4.245653743546512, + 5.2012473303854465, + 5.629599224071484, + 4.622772584327096, + 3.7986747515254513, + 2.5899689833516697, + 2.8316925801544075, + 2.921922438110233, + 2.387370701272687, + 1.5037329671442454, + 1.6225571858618422, + 1.922619006211545, + 1.4478077760477883, + 1.5113339675974458, + 1.66758238966184, + 1.3736454959417648, + 1.1944981922692168 + ], + [ + 2.658900943392461, + 2.8542676187243288, + 2.8910813462180194, + 3.259012742426114, + 2.6964568132060998, + 2.7103747505128393, + 2.697894071737526, + 2.7287867375880146, + 2.8967812344453105, + 3.005975438404832, + 3.376357058247065, + 2.8332398165546313, + 2.9023967370903163, + 2.9065528946876857, + 2.7455949662934005, + 2.131749190570782, + 2.488629270498948, + 2.903002601725292, + 3.839901353864509, + 4.494286271186834, + 4.622772584327096, + 5.031292988857355, + 3.7761439890236397, + 2.4537179283806, + 2.8036599433691465, + 2.910611810486001, + 2.502767450934093, + 1.6313219467143314, + 1.7284828387505766, + 1.791378763370347, + 1.3299686147127816, + 1.3746964740567698, + 1.4451646694822364, + 1.1387956303640974, + 1.0287860499235055 + ], + [ + 2.6819167225857217, + 2.7901272347159676, + 2.6292710101420793, + 2.6626927390197457, + 2.382411859735795, + 2.2859336524484744, + 2.2800404889826744, + 2.3354948850573956, + 2.5023700069301906, + 2.5500565591739845, + 2.948172496076496, + 2.4720008772657187, + 2.5253827694368245, + 2.523278908979153, + 2.3404432771767465, + 1.8715137539037114, + 2.222950736518668, + 2.591816317037175, + 3.165785315310753, + 3.732897294661687, + 3.7986747515254513, + 3.7761439890236397, + 4.824779550364668, + 2.6591069666952944, + 2.975842110552478, + 3.075264557047393, + 2.747530069987737, + 1.6984971508313702, + 1.7926913597568706, + 2.0447459635621037, + 1.4851637419197965, + 1.544164206098156, + 1.6233444377285602, + 1.5084104412217776, + 1.3587329061064106 + ], + [ + 1.8257508607136372, + 1.9672712275889204, + 1.838199475928631, + 1.8331363378434844, + 1.7137303458493387, + 1.617629996603677, + 1.6614162319272257, + 1.6663292408322201, + 1.7064903934350013, + 2.0901829020039755, + 2.287295760113314, + 1.8021338556226372, + 1.8729984037780094, + 1.9009335889475998, + 1.6403041377017564, + 1.3442008566086954, + 1.5692694145133517, + 1.7974719261713243, + 2.101045427594832, + 2.6130230912320833, + 2.5899689833516697, + 2.4537179283806, + 2.6591069666952944, + 4.34784475920183, + 3.9134155310762697, + 3.389373640241742, + 2.9834439839976294, + 1.6684767400790235, + 1.8674435702953391, + 2.2616410704733765, + 1.7600663931201856, + 1.7080129395777501, + 1.8355497765526327, + 1.7451736906922874, + 1.5138653640946587 + ], + [ + 1.9600940822577222, + 2.1328748003870768, + 2.022506929738739, + 2.0692600706078177, + 1.8332384289371035, + 1.7387832654395032, + 1.7800837006233292, + 1.7643821848318193, + 1.9112113251235057, + 2.19872446189915, + 2.4779345790123197, + 1.9627324168089326, + 2.01836470627381, + 2.067425342202768, + 1.83004357354458, + 1.3385716748307224, + 1.604665992614145, + 1.8025153762656232, + 2.252936775964287, + 2.88490345257779, + 2.8316925801544075, + 2.8036599433691465, + 2.975842110552478, + 3.9134155310762697, + 5.137990140927136, + 4.327916387218441, + 3.6929096997829265, + 2.0783598404471393, + 2.192105827208751, + 2.4677558585539634, + 1.835850231244013, + 1.6943966053070132, + 1.8751827749653784, + 1.7882231227094776, + 1.6151780013830135 + ], + [ + 1.942752629151272, + 2.152445994717053, + 2.052502367874252, + 2.115673819852997, + 1.6981471964375652, + 1.7172962306792858, + 1.7535883439830895, + 1.8298677124686078, + 1.9997154467301224, + 2.226893494938799, + 2.534006687207946, + 2.0391930492518093, + 2.0804457310910736, + 2.1002239710937456, + 1.8427798899343681, + 1.3058566917804801, + 1.6137958031121589, + 1.8189916161174717, + 2.366281071796832, + 2.9035769756852976, + 2.921922438110233, + 2.910611810486001, + 3.075264557047393, + 3.389373640241742, + 4.327916387218441, + 5.936310547966041, + 4.721052599330354, + 2.4125866134040086, + 2.420048397540707, + 2.5749719962373683, + 1.8398821242350887, + 1.7880844487325063, + 1.7691764672129087, + 1.8526515543932067, + 1.7011508309943804 + ], + [ + 1.5693947828989996, + 1.7911692129918657, + 1.674312408368456, + 1.8330868508301452, + 1.4045533553532168, + 1.4127422890478287, + 1.4527796271154203, + 1.512606363347052, + 1.7447859583043093, + 1.9881630000848824, + 2.137505298806588, + 1.708768644256868, + 1.694598424017695, + 1.7267840792121913, + 1.5284757313937025, + 1.0536036139900715, + 1.2959547166974847, + 1.3728842475581566, + 1.9085675066876417, + 2.337288218425385, + 2.387370701272687, + 2.502767450934093, + 2.747530069987737, + 2.9834439839976294, + 3.6929096997829265, + 4.721052599330354, + 5.589099073215265, + 2.819507579435277, + 2.8515549161285754, + 2.5899973366666704, + 1.9230865052047008, + 1.6863519239629916, + 1.6732099659449706, + 2.100544459375609, + 1.6603843637317464 + ], + [ + 1.0847383761454246, + 1.2325445482031443, + 1.2166799589893798, + 1.449871122737371, + 1.264607154293088, + 1.2912705583998834, + 1.3186525203475008, + 1.312913551365708, + 1.3924541448658543, + 1.435495848849056, + 1.4421328334574037, + 1.3853584617997567, + 1.3946858093809469, + 1.390796730026711, + 1.2263220612662133, + 0.8744931215548148, + 0.9057204545777741, + 0.9410108052358526, + 1.2626385509934217, + 1.4524510568936164, + 1.5037329671442454, + 1.6313219467143314, + 1.6984971508313702, + 1.6684767400790235, + 2.0783598404471393, + 2.4125866134040086, + 2.819507579435277, + 3.966216818766383, + 3.003259662626549, + 2.1748847026612514, + 1.5804774275258264, + 1.1930834413558686, + 1.2792015332642812, + 1.6163388534679872, + 1.2802362067117334 + ], + [ + 1.1261161765414247, + 1.2631285020925673, + 1.325752571119606, + 1.4028214683039892, + 1.2204256383875012, + 1.1264407139617774, + 1.1642342654370599, + 1.3017669793931275, + 1.300719860980909, + 1.4970807403803095, + 1.5742889742691262, + 1.434750354417122, + 1.3768691286795196, + 1.3536858922707409, + 1.2725640055664202, + 0.8268480983327124, + 0.8984784523256504, + 0.9680809986978666, + 1.2866538557482279, + 1.6154758428677078, + 1.6225571858618422, + 1.7284828387505766, + 1.7926913597568706, + 1.8674435702953391, + 2.192105827208751, + 2.420048397540707, + 2.8515549161285754, + 3.003259662626549, + 4.830566031503098, + 2.6501030280087234, + 2.059805161661137, + 1.607523068452763, + 1.683374143379282, + 2.2929671728791945, + 1.5971181810758361 + ], + [ + 1.698877362568659, + 1.7581771211883654, + 1.7593862788547172, + 1.6702474584361513, + 1.4608859107318808, + 1.3763175593869776, + 1.3691860876993445, + 1.4279954730907891, + 1.4338985995408828, + 1.6411521825885067, + 1.67693083764926, + 1.3213941067439472, + 1.4193146378040438, + 1.4372533017612836, + 1.272830971461503, + 0.9635508002600905, + 1.0770096729333427, + 1.2148313078661384, + 1.4634875679650245, + 1.7934092544312048, + 1.922619006211545, + 1.791378763370347, + 2.0447459635621037, + 2.2616410704733765, + 2.4677558585539634, + 2.5749719962373683, + 2.5899973366666704, + 2.1748847026612514, + 2.6501030280087234, + 4.531414608663701, + 2.816394180306384, + 2.4785983024722706, + 2.588450247430289, + 2.476592308600095, + 1.9821090626341347 + ], + [ + 1.2977168776485808, + 1.4384783593002088, + 1.4071038274179397, + 1.248358677127305, + 1.0535669102034275, + 1.0359683122525731, + 1.0310357584105359, + 1.1212760449231889, + 1.0956340355389615, + 1.166393816760872, + 1.1780487517177762, + 0.9963627523171967, + 1.0650534499427424, + 1.0376653430410985, + 0.9283668523997565, + 0.8194671226869618, + 0.8731110125662055, + 0.9286436260370562, + 1.0617335014957514, + 1.3389642819150764, + 1.4478077760477883, + 1.3299686147127816, + 1.4851637419197965, + 1.7600663931201856, + 1.835850231244013, + 1.8398821242350887, + 1.9230865052047008, + 1.5804774275258264, + 2.059805161661137, + 2.816394180306384, + 3.4593584569318567, + 2.6671834076401693, + 2.4828041712158226, + 2.346689830269671, + 1.7845020209753761 + ], + [ + 1.38720492450309, + 1.5302211383233428, + 1.4836611609073158, + 1.4629487713380784, + 1.1873438732052684, + 1.2434429029958154, + 1.1373290404363625, + 1.211342343793892, + 1.1788973798687417, + 1.2426504858383758, + 1.2711147829936178, + 1.0806253221399131, + 1.2501266084163154, + 1.2746837554169372, + 1.0600737224238204, + 0.8248408246244702, + 0.8633736564654112, + 1.0081668526872523, + 1.1046955463667694, + 1.4306937316458634, + 1.5113339675974458, + 1.3746964740567698, + 1.544164206098156, + 1.7080129395777501, + 1.6943966053070132, + 1.7880844487325063, + 1.6863519239629916, + 1.1930834413558686, + 1.607523068452763, + 2.4785983024722706, + 2.6671834076401693, + 3.457411387820302, + 2.933564252951035, + 2.569281040844969, + 1.9552587831490518 + ], + [ + 1.618789649034315, + 1.6762132401906602, + 1.6699298590429534, + 1.625676489165812, + 1.296585461610222, + 1.2648755869143877, + 1.1710359835589554, + 1.2488870452955416, + 1.2275586824999118, + 1.2929528634803762, + 1.412752570413598, + 1.1180243717561449, + 1.3015620057910038, + 1.3242915910330701, + 1.0225190435369835, + 0.8915893737625095, + 0.8588679618152188, + 0.9666216629595575, + 1.184828506894162, + 1.542302249513181, + 1.66758238966184, + 1.4451646694822364, + 1.6233444377285602, + 1.8355497765526327, + 1.8751827749653784, + 1.7691764672129087, + 1.6732099659449706, + 1.2792015332642812, + 1.683374143379282, + 2.588450247430289, + 2.4828041712158226, + 2.933564252951035, + 3.7721515698251973, + 2.721340136689427, + 2.047030006402578 + ], + [ + 1.3053316760921456, + 1.359274805778048, + 1.2841219933574295, + 1.0499808535281512, + 1.0907751396531875, + 0.939970108571266, + 1.0251707889630164, + 1.026809747826745, + 0.9599318959325378, + 1.041328330242362, + 1.106421594113146, + 0.9211486521083271, + 0.9295930885071017, + 0.9171297529485747, + 0.9607256643901847, + 0.740678829094287, + 0.6579695914011778, + 0.7021632723030131, + 0.8303793482758284, + 1.2323197174933946, + 1.3736454959417648, + 1.1387956303640974, + 1.5084104412217776, + 1.7451736906922874, + 1.7882231227094776, + 1.8526515543932067, + 2.100544459375609, + 1.6163388534679872, + 2.2929671728791945, + 2.476592308600095, + 2.346689830269671, + 2.569281040844969, + 2.721340136689427, + 6.2262459244812565, + 3.1491415574049597 + ], + [ + 1.1954305709860293, + 1.1952136942582152, + 1.1345407135904007, + 1.118907156949541, + 0.9159084508309889, + 0.987916205768816, + 0.8442449571524366, + 0.7825108866922259, + 0.830027412952144, + 0.9263982390375748, + 0.9912777697064321, + 0.6797937210976216, + 0.8329664432697043, + 0.8285008364952394, + 0.6661878984014443, + 0.5508459763918322, + 0.658613118001356, + 0.5724152455931204, + 0.7913909581772823, + 1.1885199509403959, + 1.1944981922692168, + 1.0287860499235055, + 1.3587329061064106, + 1.5138653640946587, + 1.6151780013830135, + 1.7011508309943804, + 1.6603843637317464, + 1.2802362067117334, + 1.5971181810758361, + 1.9821090626341347, + 1.7845020209753761, + 1.9552587831490518, + 2.047030006402578, + 3.1491415574049597, + 5.098644410668987 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3875203127630426, + -0.38982495527687305, + -0.4126353717850901, + -0.39281617177042766, + -0.3946403083239856, + -0.3666696994881257, + -0.35106344176074783, + -0.29038492195001425, + -0.3250329352471217, + -0.3582161072975027, + -0.35871848460734773, + -0.3615302885289184, + -0.31911363595721404, + -0.31000074934878746, + -0.3168124882263969, + -0.37916100613398623, + -0.34130179758911144, + -0.31823147587010364, + -0.39965976839596057, + -0.3979480194177509, + -0.3811916682569962, + -0.3083793468989284, + -0.3435598442934717 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6230683039754933, + "transport_matrix_sha256": "3429c7d7435cdd7cfd9bdf8fab675931f68e1968c36fe4ef4f63e7c4d0a0c83c", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.053740531206131e-05, + "gram_mean_diagonal": 0.06053740531206131, + "calibration_nmse": 0.04398877978906868, + "calibration_cosine": 0.9777586792322014, + "calibration_norm_ratio": 0.9768561256506773, + "transport_relative_identity_distance": 0.3179902136325836, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "f57ad388d57bb515af2ac9324d86dc9e19c4cc44bc73879a7b409f9c07597c15", + "self_attn.k_proj.weight": "09cba09d72eea6b683087478aeaaf6d321423335a9eb57d47006adbc1f336c63", + "self_attn.v_proj.weight": "af4adee7b325a938beb530808104ab27a70afc0d494134b3de1f5ea8ef060773", + "self_attn.o_proj.weight": "6888fff18d668ea322341951eb6ab19a3fbbc4cf94b758ed0f8dba411a262d1f", + "self_attn.q_norm.weight": "e3e9ec56f12aa5ec410018bbac99e6953ad52f3b8b796d73c5bd0cc6545fb93b", + "self_attn.k_norm.weight": "a5bf1576b21d93da019094f1a61912669136a5d9e89e8d2301c88f6bf2def290", + "mlp.gate_proj.weight": "1d90e8cf937190e4027f0c7bc34bbabd5bb43c5f3d081537e0d866da8a3efe3f", + "mlp.up_proj.weight": "dc867f2d0718d761bb166f69bd21878837006daf9ae392c955a2e9578a15ad97", + "mlp.down_proj.weight": "0ac1fc28ab86d85f9cb5f40fbde4485ceac5d2d531a13f5f05d81910ebd8b48d", + "input_layernorm.weight": "c21d58d80fa7aca24ff0dac67092f8204b3876926fa095bb7e6ceb3a16060706", + "post_attention_layernorm.weight": "1e599b9bd0ed7fdbcef34cff94651bf467bf923745a76a96d33a74ae551ad5d5" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "f57ad388d57bb515af2ac9324d86dc9e19c4cc44bc73879a7b409f9c07597c15", + "self_attn.k_proj.weight": "09cba09d72eea6b683087478aeaaf6d321423335a9eb57d47006adbc1f336c63", + "self_attn.v_proj.weight": "af4adee7b325a938beb530808104ab27a70afc0d494134b3de1f5ea8ef060773", + "self_attn.o_proj.weight": "6888fff18d668ea322341951eb6ab19a3fbbc4cf94b758ed0f8dba411a262d1f", + "self_attn.q_norm.weight": "e3e9ec56f12aa5ec410018bbac99e6953ad52f3b8b796d73c5bd0cc6545fb93b", + "self_attn.k_norm.weight": "a5bf1576b21d93da019094f1a61912669136a5d9e89e8d2301c88f6bf2def290", + "mlp.gate_proj.weight": "51888e91cfe1c9c9bc6ece30477da7f5c33bbcaff3827937e935c006c81f4d97", + "mlp.up_proj.weight": "885e7858c15bbd1456c7d26c25f3e7ce9e171653d770244e860435dcc3eefb00", + "mlp.down_proj.weight": "0ac1fc28ab86d85f9cb5f40fbde4485ceac5d2d531a13f5f05d81910ebd8b48d", + "input_layernorm.weight": "c21d58d80fa7aca24ff0dac67092f8204b3876926fa095bb7e6ceb3a16060706", + "post_attention_layernorm.weight": "1e599b9bd0ed7fdbcef34cff94651bf467bf923745a76a96d33a74ae551ad5d5" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6230683039754933, + "lambda_right": 0.3769316960245067, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "95732a59144d689baf46fef38c0b43ffe9d4c4663cf160e2494d6146957f00e5", + "mlp.up_proj.weight": "2bf9bc06f266d744623ff42d772eb1d8c29012ef0d46f116eae908dbb08a89b8", + "mlp.gate_proj.weight": "95e7d27498b2eec4f1d4b641f8a528c393e6abee78b172b6284f69920f385125", + "self_attn.k_proj.weight": "c09a39b4dfd4e9121fcca782d6b4aa9603af01e398239090034c492af0cd887a", + "self_attn.o_proj.weight": "e39994b63ebe97dbd6d6d5405206a1673f3d2151a262572b8aff783a32a918e0", + "self_attn.q_proj.weight": "fe50101d44f36f6e7161e07949c2bc6c3eb25830f053bdaf06efc1b1c94f5f0f", + "self_attn.v_proj.weight": "c31fbee7c61e87cfa00e10371fc6d7f72d85f7b22cfab7b3e4390fe26508d6c7" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "f57ad388d57bb515af2ac9324d86dc9e19c4cc44bc73879a7b409f9c07597c15", + "self_attn.k_proj.weight": "09cba09d72eea6b683087478aeaaf6d321423335a9eb57d47006adbc1f336c63", + "self_attn.v_proj.weight": "af4adee7b325a938beb530808104ab27a70afc0d494134b3de1f5ea8ef060773", + "self_attn.o_proj.weight": "6888fff18d668ea322341951eb6ab19a3fbbc4cf94b758ed0f8dba411a262d1f", + "self_attn.q_norm.weight": "e3e9ec56f12aa5ec410018bbac99e6953ad52f3b8b796d73c5bd0cc6545fb93b", + "self_attn.k_norm.weight": "a5bf1576b21d93da019094f1a61912669136a5d9e89e8d2301c88f6bf2def290", + "mlp.gate_proj.weight": "51888e91cfe1c9c9bc6ece30477da7f5c33bbcaff3827937e935c006c81f4d97", + "mlp.up_proj.weight": "885e7858c15bbd1456c7d26c25f3e7ce9e171653d770244e860435dcc3eefb00", + "mlp.down_proj.weight": "0ac1fc28ab86d85f9cb5f40fbde4485ceac5d2d531a13f5f05d81910ebd8b48d", + "input_layernorm.weight": "c21d58d80fa7aca24ff0dac67092f8204b3876926fa095bb7e6ceb3a16060706", + "post_attention_layernorm.weight": "1e599b9bd0ed7fdbcef34cff94651bf467bf923745a76a96d33a74ae551ad5d5" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "b76a10548dc24bd7497d10d001a9371df638adca19bfce75a56b0cfb27b6d065", + "mlp.up_proj.weight": "cc493840ce3a8e36490a2c80b25b2a5d90e9b0c366939c41740094d74ba5b184", + "mlp.gate_proj.weight": "30f9b1815d6369eeb6a1af9b0cd42e84e9f333e727e66e7cafbc63216d5d1f0f", + "self_attn.k_proj.weight": "9cd64498b33ff399a47d26bb60035f41cf2e1e27240d5bb0e12c5a38a72c366f", + "self_attn.o_proj.weight": "272948af1d61022705cc295ddb40b6214632b9fbe6e254d6b74a2a4507a49386", + "self_attn.q_proj.weight": "a49e9fe8337d0eecf534da70ba4af6662b57ed652fa49f1fd9d56c2d03684d2d", + "self_attn.v_proj.weight": "de40e6d4feaccef517aefdb991834ce833f6e7cfbf5f720a582ede927cec626e" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_02_transport.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_02_transport.pt new file mode 100644 index 0000000000000000000000000000000000000000..64e6f5d23f9d544d510cd74846090a2025ec7d12 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_02_transport.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9142b9e3366a4df59a373bb6c7022736e872020800072640af161fa7eddcef9 +size 67110518 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_03_merge.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_03_merge.json new file mode 100644 index 0000000000000000000000000000000000000000..66c7cbe4a6186951fb5ea228bc2ff05ca9d5a824 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_03_merge.json @@ -0,0 +1,1392 @@ +{ + "cycle": 3, + "anchor": 12, + "removed_original_layer": 15, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.2961740712446, + 2.2265408292569866, + 2.2294054536626784, + 2.20098168697199, + 2.750217699868455, + 2.744210339116167, + 3.0126632396199367, + 3.0681516371199, + 2.7827717106446754, + 1.779085744401428, + 1.9536840148377879, + 2.04529017365314, + 1.8968990542294144, + 1.6619700305370837, + 1.3287976956696048, + 1.0382251033231709, + 0.9974960152468008, + 0.9573822722400741, + 1.2327719262006276, + 1.269856142627865, + 1.278023707807586, + 1.216651572001522 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3854832635725245, + 2.296634639112775, + 2.408340609191363, + 2.2950504815933708, + 2.8115592883300904, + 2.9003865790265837, + 3.1270172215564287, + 3.2124079812590427, + 2.9869982118708838, + 1.8357929451819401, + 2.055928949099102, + 2.133747533980767, + 1.9840977164152918, + 1.7797733432446612, + 1.4062026564406804, + 1.0706111472864237, + 0.9883264678809361, + 1.0242670427010205, + 1.3342284561822984, + 1.3947177595654372, + 1.2960967242861405, + 1.3016142849512344 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.517411246570175, + 2.351843485013661, + 2.438247615105358, + 2.3358914268395137, + 3.03933113627953, + 2.947194515159887, + 3.1722479475622634, + 3.2391139369499315, + 2.971603885826749, + 1.74629638788516, + 1.9578099310937491, + 1.9701151200724099, + 1.8929979577419394, + 1.752398664281938, + 1.401423111514532, + 1.080574998691414, + 1.0303684971958667, + 1.027586356182353, + 1.2630423031875806, + 1.3720492502598325, + 1.1991783796826554, + 1.1671289318987268 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8228944093417385, + 2.692900638600751, + 2.7433894539238044, + 2.671665303609923, + 3.1506372639810074, + 3.32720364849532, + 3.255099497290125, + 3.4822715497993606, + 3.288240448259374, + 1.5846801835702071, + 2.0348193798844, + 2.161422618344603, + 2.0202140574695147, + 1.9556592903200267, + 1.2966168304867696, + 1.2535111591082295, + 1.0197007830486204, + 0.8566943380657652, + 1.204791361963996, + 1.2859580835177253, + 1.1500928872331737, + 1.0423537507225114 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.659267269167063, + 2.6882033306228843, + 2.733478079583862, + 2.536183503033427, + 2.791336854190576, + 2.7791445044117316, + 2.7458855712941177, + 2.7610831872456805, + 2.573140556247712, + 1.3773011148847771, + 1.7812947944102586, + 1.8066734207052417, + 1.6716434082023317, + 1.5459198777905163, + 1.0756161589167792, + 1.1028250754736775, + 0.9452393722012978, + 0.776647474506018, + 1.0533628992622066, + 1.0626027762632444, + 1.0716273433416739, + 0.8752272188160353 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.8655447414344155, + 2.5515251460437884, + 2.4879734387551045, + 2.5059546790814755, + 2.7664578712950614, + 2.8348788424866123, + 2.7455961913252915, + 2.8085384884222284, + 2.6275728468038726, + 1.2947685388083994, + 1.598529889595198, + 1.6728784660498024, + 1.5268589919681923, + 1.3896335469501893, + 1.1241964520018815, + 1.005739371273883, + 0.9452761164689318, + 0.7949861732261122, + 1.069509360953034, + 1.0590108307002604, + 0.9334732055880408, + 0.9646700898008067 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.7089250350546648, + 2.7870591850823523, + 2.646757956413812, + 2.6472013762253153, + 2.8450884720289515, + 2.762254975170635, + 2.7991111332919503, + 2.8323919762906113, + 2.5936448995813293, + 1.3122519585999812, + 1.6631677290112643, + 1.8202776681634036, + 1.6953899943493935, + 1.518191683082889, + 1.095937921841216, + 0.990514898603994, + 0.8926510435149461, + 0.7877889935659383, + 1.0020562354897726, + 1.0311389492259289, + 1.005268204660791, + 0.7959378214677061 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.7909636504037665, + 2.745253645766233, + 2.6822342942864457, + 2.562164365361802, + 2.8509304945694303, + 2.8182392320905976, + 2.7946271352731893, + 2.820158870011841, + 2.621699481602493, + 1.3052202930543506, + 1.7056956208767164, + 1.851281127270344, + 1.7349825337237061, + 1.6324585071739135, + 1.0971536873988512, + 1.0254610947195324, + 0.9183343752021358, + 0.8202263584587571, + 1.0346375425859482, + 1.0736078539883465, + 1.061703077903756, + 0.750928251918323 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.8626162139124416, + 2.868956644258049, + 2.6770162771885304, + 2.6713052288430803, + 2.8573960299180756, + 2.9045192602435574, + 2.909017754944431, + 2.940039654310432, + 2.8097752723839715, + 1.403436344193912, + 1.8810514394194797, + 2.0258294176021483, + 1.916046097860197, + 1.7735405049967192, + 1.2274120767221903, + 1.1653412570112063, + 0.9455512756751892, + 0.8519207845162863, + 1.0569597825996038, + 1.0679543221536223, + 1.0722998665067685, + 0.7857556816476677 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.799225835445906, + 2.8021608318113747, + 2.768613983379058, + 2.5612675221575207, + 3.043627947666004, + 3.1501889816525943, + 3.3351953920895854, + 3.40093246088817, + 3.2139927040849052, + 1.6308656728731434, + 2.2118682726744514, + 2.3891780480159532, + 2.203074123361157, + 2.0823842977296385, + 1.337159378677997, + 1.2178214568847878, + 1.0745302587679781, + 0.9880862293740414, + 1.128937788170324, + 1.118530715957504, + 1.1024368424997146, + 0.8211965440969131 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.089726204009028, + 2.966725190506758, + 2.9606918557049786, + 2.7470426567463755, + 3.4038245275455425, + 3.6291639932445916, + 3.7921193907518194, + 3.868442129904957, + 3.6501640281142556, + 1.8167413257218272, + 2.506664436621829, + 2.656321361539469, + 2.438680780704985, + 2.331471197826345, + 1.439399007923354, + 1.2779004782331687, + 1.0655010656168842, + 0.9555220335562823, + 1.1759321485459868, + 1.212693817241577, + 1.0874032193844418, + 0.8605743334958192 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.5308877512031924, + 3.4277156009186185, + 3.0563037437805685, + 3.149215949969835, + 3.100257983473962, + 2.987242647626295, + 2.9858423600178883, + 2.9266810109153116, + 2.8930073395735625, + 1.3639813313910698, + 1.8336531892193926, + 2.011429086620516, + 1.8186484276299015, + 1.773079498721575, + 1.1743970701065511, + 1.1631342051012237, + 0.9442230726008511, + 0.8105429744665921, + 1.0638786347040834, + 1.066785818022557, + 0.9661809267239458, + 0.6091327572189656 + ], + [ + 2.2961740712446, + 2.3854832635725245, + 2.517411246570175, + 2.8228944093417385, + 2.659267269167063, + 2.8655447414344155, + 2.7089250350546648, + 2.7909636504037665, + 2.8626162139124416, + 2.799225835445906, + 3.089726204009028, + 3.5308877512031924, + 4.074322116170248, + 3.330501339012661, + 3.0695110569647515, + 3.1339577044289157, + 3.187921726848283, + 3.0036610233922025, + 2.933811961206664, + 2.9353006716955843, + 2.9072433582899437, + 1.4194591663267446, + 1.8213487332268485, + 2.0018401174075393, + 1.8039546118867704, + 1.7290064064076904, + 1.1695812496781601, + 1.1425284982582389, + 0.9238574387899572, + 0.8395715724918208, + 1.1174902290837152, + 1.084405323626235, + 0.9389445094392284, + 0.7408847801884659 + ], + [ + 2.2265408292569866, + 2.296634639112775, + 2.351843485013661, + 2.692900638600751, + 2.6882033306228843, + 2.5515251460437884, + 2.7870591850823523, + 2.745253645766233, + 2.868956644258049, + 2.8021608318113747, + 2.966725190506758, + 3.4277156009186185, + 3.330501339012661, + 3.829494230870588, + 3.2658775991031708, + 3.3114882029249575, + 3.2211206354372957, + 3.0064511382031127, + 2.914163929846155, + 2.8093544225666, + 2.7004700629018035, + 1.2413606784756277, + 1.6680267240979694, + 1.7635822675382058, + 1.5879112578778187, + 1.5650694305819517, + 1.080940257582835, + 1.052615379150727, + 0.8511619904583895, + 0.7189668996617486, + 0.973206925277746, + 0.9256190976317537, + 0.9437641639402778, + 0.5668379983715642 + ], + [ + 2.2294054536626784, + 2.408340609191363, + 2.438247615105358, + 2.7433894539238044, + 2.733478079583862, + 2.4879734387551045, + 2.646757956413812, + 2.6822342942864457, + 2.6770162771885304, + 2.768613983379058, + 2.9606918557049786, + 3.0563037437805685, + 3.0695110569647515, + 3.2658775991031708, + 3.894781619819532, + 3.074719287081214, + 3.3024011032690592, + 3.112750892115238, + 2.990642149218585, + 2.920985094026071, + 2.7802197376628577, + 1.307210966239604, + 1.82234359494184, + 1.9440830095577433, + 1.6530946152717028, + 1.5950935690826553, + 0.9688494500959705, + 1.0138470729295956, + 0.8073867321971719, + 0.7348959353947062, + 0.9603041398586265, + 0.9055060263203509, + 0.9008572726882466, + 0.5954307161876768 + ], + [ + 2.20098168697199, + 2.2950504815933708, + 2.3358914268395137, + 2.671665303609923, + 2.536183503033427, + 2.5059546790814755, + 2.6472013762253153, + 2.562164365361802, + 2.6713052288430803, + 2.5612675221575207, + 2.7470426567463755, + 3.149215949969835, + 3.1339577044289157, + 3.3114882029249575, + 3.074719287081214, + 3.836883143768107, + 3.2803286761157673, + 2.934749047604581, + 2.800295732347418, + 2.7324417924928266, + 2.7145383227531736, + 1.2109991814746202, + 1.6804120596983405, + 1.8265264576958595, + 1.5850423417658608, + 1.5824086019390577, + 0.972901948636424, + 1.0546774115292759, + 0.8156520414306422, + 0.714056942550904, + 0.9759021323961402, + 0.934386527135768, + 0.9083999377960941, + 0.5822911456650849 + ], + [ + 2.750217699868455, + 2.8115592883300904, + 3.03933113627953, + 3.1506372639810074, + 2.791336854190576, + 2.7664578712950614, + 2.8450884720289515, + 2.8509304945694303, + 2.8573960299180756, + 3.043627947666004, + 3.4038245275455425, + 3.100257983473962, + 3.187921726848283, + 3.2211206354372957, + 3.3024011032690592, + 3.2803286761157673, + 4.936588413857563, + 3.6945893682183533, + 3.7193677218593972, + 3.6050689854583573, + 3.396048244406109, + 1.599257251228684, + 2.1136429319244447, + 2.236689784567688, + 2.049294625420705, + 1.9022043179834245, + 1.2002526826740785, + 1.0170644609101833, + 1.010998465327648, + 0.9222649100459831, + 1.122620566276374, + 1.130817514246351, + 1.0637525291712338, + 0.8107364603471738 + ], + [ + 2.744210339116167, + 2.9003865790265837, + 2.947194515159887, + 3.32720364849532, + 2.7791445044117316, + 2.8348788424866123, + 2.762254975170635, + 2.8182392320905976, + 2.9045192602435574, + 3.1501889816525943, + 3.6291639932445916, + 2.987242647626295, + 3.0036610233922025, + 3.0064511382031127, + 3.112750892115238, + 2.934749047604581, + 3.6945893682183533, + 5.259252199049146, + 4.773095561515951, + 4.535521737141902, + 4.252636603189827, + 1.9411612256577266, + 2.657796672128589, + 2.8276631552585627, + 2.5733232069682166, + 2.4097343593973823, + 1.3701486869004502, + 1.3055064584919385, + 1.116424898436383, + 0.9874489872560568, + 1.248828348192916, + 1.2056224669943416, + 1.1553120341304408, + 1.0623007897422523 + ], + [ + 3.0126632396199367, + 3.1270172215564287, + 3.1722479475622634, + 3.255099497290125, + 2.7458855712941177, + 2.7455961913252915, + 2.7991111332919503, + 2.7946271352731893, + 2.909017754944431, + 3.3351953920895854, + 3.7921193907518194, + 2.9858423600178883, + 2.933811961206664, + 2.914163929846155, + 2.990642149218585, + 2.800295732347418, + 3.7193677218593972, + 4.773095561515951, + 5.458562778026551, + 4.903611382501226, + 4.452108303383686, + 2.172672092331945, + 2.8560640528492085, + 3.0164495557495266, + 2.774910573416932, + 2.539687089173365, + 1.4933083447007152, + 1.3580926270655178, + 1.1960011565748747, + 1.1043924060935744, + 1.3129079030169561, + 1.2971334800433423, + 1.228866541925978, + 1.0202576151333456 + ], + [ + 3.0681516371199, + 3.2124079812590427, + 3.2391139369499315, + 3.4822715497993606, + 2.7610831872456805, + 2.8085384884222284, + 2.8323919762906113, + 2.820158870011841, + 2.940039654310432, + 3.40093246088817, + 3.868442129904957, + 2.9266810109153116, + 2.9353006716955843, + 2.8093544225666, + 2.920985094026071, + 2.7324417924928266, + 3.6050689854583573, + 4.535521737141902, + 4.903611382501226, + 5.622918872842758, + 4.72938048098086, + 2.27691407566306, + 2.858269469130371, + 3.039154027907367, + 2.7996851406382652, + 2.6045363664247105, + 1.5324446977263786, + 1.330270886841789, + 1.1937695113454727, + 1.1070141470825148, + 1.3718587761599492, + 1.3956472553283836, + 1.3257227847495872, + 1.0523757354830439 + ], + [ + 2.7827717106446754, + 2.9869982118708838, + 2.971603885826749, + 3.288240448259374, + 2.573140556247712, + 2.6275728468038726, + 2.5936448995813293, + 2.621699481602493, + 2.8097752723839715, + 3.2139927040849052, + 3.6501640281142556, + 2.8930073395735625, + 2.9072433582899437, + 2.7004700629018035, + 2.7802197376628577, + 2.7145383227531736, + 3.396048244406109, + 4.252636603189827, + 4.452108303383686, + 4.72938048098086, + 5.440895259529153, + 2.3740068874800944, + 3.1635511548422293, + 3.3466138779574703, + 3.14043243955404, + 2.9991085983397725, + 1.6595648708727313, + 1.5667955164519978, + 1.1904845594763174, + 1.072607651639629, + 1.2193618761963534, + 1.2814424332744843, + 1.2456438111979147, + 1.1246503991311638 + ], + [ + 1.779085744401428, + 1.8357929451819401, + 1.74629638788516, + 1.5846801835702071, + 1.3773011148847771, + 1.2947685388083994, + 1.3122519585999812, + 1.3052202930543506, + 1.403436344193912, + 1.6308656728731434, + 1.8167413257218272, + 1.3639813313910698, + 1.4194591663267446, + 1.2413606784756277, + 1.307210966239604, + 1.2109991814746202, + 1.599257251228684, + 1.9411612256577266, + 2.172672092331945, + 2.27691407566306, + 2.3740068874800944, + 3.4459281206895205, + 2.5905090343117085, + 2.625191785717486, + 2.274676018541524, + 2.1784813512146415, + 1.421877163823473, + 1.1540158447402287, + 1.0348707752809365, + 1.2420151843256224, + 1.258546637917256, + 1.288419588879108, + 1.1699311083058812, + 1.0932828393542537 + ], + [ + 1.9536840148377879, + 2.055928949099102, + 1.9578099310937491, + 2.0348193798844, + 1.7812947944102586, + 1.598529889595198, + 1.6631677290112643, + 1.7056956208767164, + 1.8810514394194797, + 2.2118682726744514, + 2.506664436621829, + 1.8336531892193926, + 1.8213487332268485, + 1.6680267240979694, + 1.82234359494184, + 1.6804120596983405, + 2.1136429319244447, + 2.657796672128589, + 2.8560640528492085, + 2.858269469130371, + 3.1635511548422293, + 2.5905090343117085, + 6.229371094517207, + 4.982056256159368, + 4.505782699183832, + 4.31600568995782, + 2.188168891171191, + 2.057007108414921, + 1.7166415433712034, + 1.6854646213687092, + 1.7246419357742153, + 1.6415104162359435, + 1.831417550301263, + 1.5855939772355068 + ], + [ + 2.04529017365314, + 2.133747533980767, + 1.9701151200724099, + 2.161422618344603, + 1.8066734207052417, + 1.6728784660498024, + 1.8202776681634036, + 1.851281127270344, + 2.0258294176021483, + 2.3891780480159532, + 2.656321361539469, + 2.011429086620516, + 2.0018401174075393, + 1.7635822675382058, + 1.9440830095577433, + 1.8265264576958595, + 2.236689784567688, + 2.8276631552585627, + 3.0164495557495266, + 3.039154027907367, + 3.3466138779574703, + 2.625191785717486, + 4.982056256159368, + 6.056947007106078, + 5.0367432865999975, + 4.670738921676782, + 2.2630938676105705, + 1.8868285906341824, + 1.5983707781263092, + 1.6189975468341289, + 1.5781412540086597, + 1.5617807034774085, + 1.6929259133370707, + 1.5647015057220164 + ], + [ + 1.8968990542294144, + 1.9840977164152918, + 1.8929979577419394, + 2.0202140574695147, + 1.6716434082023317, + 1.5268589919681923, + 1.6953899943493935, + 1.7349825337237061, + 1.916046097860197, + 2.203074123361157, + 2.438680780704985, + 1.8186484276299015, + 1.8039546118867704, + 1.5879112578778187, + 1.6530946152717028, + 1.5850423417658608, + 2.049294625420705, + 2.5733232069682166, + 2.774910573416932, + 2.7996851406382652, + 3.14043243955404, + 2.274676018541524, + 4.505782699183832, + 5.0367432865999975, + 6.170425743000087, + 5.226707629317684, + 2.2259254010142127, + 2.0582106140440137, + 1.651341034919874, + 1.563203986491781, + 1.4904957634661484, + 1.4433514160563297, + 1.81508557571789, + 1.612279763842038 + ], + [ + 1.6619700305370837, + 1.7797733432446612, + 1.752398664281938, + 1.9556592903200267, + 1.5459198777905163, + 1.3896335469501893, + 1.518191683082889, + 1.6324585071739135, + 1.7735405049967192, + 2.0823842977296385, + 2.331471197826345, + 1.773079498721575, + 1.7290064064076904, + 1.5650694305819517, + 1.5950935690826553, + 1.5824086019390577, + 1.9022043179834245, + 2.4097343593973823, + 2.539687089173365, + 2.6045363664247105, + 2.9991085983397725, + 2.1784813512146415, + 4.31600568995782, + 4.670738921676782, + 5.226707629317684, + 6.484197062569403, + 2.5033156559366256, + 2.575402051960755, + 1.9079716703733862, + 1.8325477095743776, + 1.7291822623997113, + 1.6148085670343204, + 2.067591522845982, + 1.5661674833574266 + ], + [ + 1.3287976956696048, + 1.4062026564406804, + 1.401423111514532, + 1.2966168304867696, + 1.0756161589167792, + 1.1241964520018815, + 1.095937921841216, + 1.0971536873988512, + 1.2274120767221903, + 1.337159378677997, + 1.439399007923354, + 1.1743970701065511, + 1.1695812496781601, + 1.080940257582835, + 0.9688494500959705, + 0.972901948636424, + 1.2002526826740785, + 1.3701486869004502, + 1.4933083447007152, + 1.5324446977263786, + 1.6595648708727313, + 1.421877163823473, + 2.188168891171191, + 2.2630938676105705, + 2.2259254010142127, + 2.5033156559366256, + 3.1129267568733487, + 1.9742157207684738, + 1.5103246940287773, + 1.3042731644652559, + 1.355683701594508, + 1.392118316061973, + 1.5116042910781324, + 1.2344697766668473 + ], + [ + 1.0382251033231709, + 1.0706111472864237, + 1.080574998691414, + 1.2535111591082295, + 1.1028250754736775, + 1.005739371273883, + 0.990514898603994, + 1.0254610947195324, + 1.1653412570112063, + 1.2178214568847878, + 1.2779004782331687, + 1.1631342051012237, + 1.1425284982582389, + 1.052615379150727, + 1.0138470729295956, + 1.0546774115292759, + 1.0170644609101833, + 1.3055064584919385, + 1.3580926270655178, + 1.330270886841789, + 1.5667955164519978, + 1.1540158447402287, + 2.057007108414921, + 1.8868285906341824, + 2.0582106140440137, + 2.575402051960755, + 1.9742157207684738, + 4.900169722904286, + 1.9734675491760252, + 1.7509947382814433, + 1.459299951487052, + 1.478836783362774, + 2.0288416291527365, + 1.2548721845908442 + ], + [ + 0.9974960152468008, + 0.9883264678809361, + 1.0303684971958667, + 1.0197007830486204, + 0.9452393722012978, + 0.9452761164689318, + 0.8926510435149461, + 0.9183343752021358, + 0.9455512756751892, + 1.0745302587679781, + 1.0655010656168842, + 0.9442230726008511, + 0.9238574387899572, + 0.8511619904583895, + 0.8073867321971719, + 0.8156520414306422, + 1.010998465327648, + 1.116424898436383, + 1.1960011565748747, + 1.1937695113454727, + 1.1904845594763174, + 1.0348707752809365, + 1.7166415433712034, + 1.5983707781263092, + 1.651341034919874, + 1.9079716703733862, + 1.5103246940287773, + 1.9734675491760252, + 2.7549509632764417, + 2.0173472511574344, + 1.6796236558986635, + 1.584573675743107, + 1.5325888271499963, + 1.1015711516371718 + ], + [ + 0.9573822722400741, + 1.0242670427010205, + 1.027586356182353, + 0.8566943380657652, + 0.776647474506018, + 0.7949861732261122, + 0.7877889935659383, + 0.8202263584587571, + 0.8519207845162863, + 0.9880862293740414, + 0.9555220335562823, + 0.8105429744665921, + 0.8395715724918208, + 0.7189668996617486, + 0.7348959353947062, + 0.714056942550904, + 0.9222649100459831, + 0.9874489872560568, + 1.1043924060935744, + 1.1070141470825148, + 1.072607651639629, + 1.2420151843256224, + 1.6854646213687092, + 1.6189975468341289, + 1.563203986491781, + 1.8325477095743776, + 1.3042731644652559, + 1.7509947382814433, + 2.0173472511574344, + 2.783097168691554, + 2.09703916792321, + 1.9083950524798377, + 1.7747413494130309, + 1.3098353406917949 + ], + [ + 1.2327719262006276, + 1.3342284561822984, + 1.2630423031875806, + 1.204791361963996, + 1.0533628992622066, + 1.069509360953034, + 1.0020562354897726, + 1.0346375425859482, + 1.0569597825996038, + 1.128937788170324, + 1.1759321485459868, + 1.0638786347040834, + 1.1174902290837152, + 0.973206925277746, + 0.9603041398586265, + 0.9759021323961402, + 1.122620566276374, + 1.248828348192916, + 1.3129079030169561, + 1.3718587761599492, + 1.2193618761963534, + 1.258546637917256, + 1.7246419357742153, + 1.5781412540086597, + 1.4904957634661484, + 1.7291822623997113, + 1.355683701594508, + 1.459299951487052, + 1.6796236558986635, + 2.09703916792321, + 3.040583716895786, + 2.4696838750005137, + 2.061981809373004, + 1.5715303097943691 + ], + [ + 1.269856142627865, + 1.3947177595654372, + 1.3720492502598325, + 1.2859580835177253, + 1.0626027762632444, + 1.0590108307002604, + 1.0311389492259289, + 1.0736078539883465, + 1.0679543221536223, + 1.118530715957504, + 1.212693817241577, + 1.066785818022557, + 1.084405323626235, + 0.9256190976317537, + 0.9055060263203509, + 0.934386527135768, + 1.130817514246351, + 1.2056224669943416, + 1.2971334800433423, + 1.3956472553283836, + 1.2814424332744843, + 1.288419588879108, + 1.6415104162359435, + 1.5617807034774085, + 1.4433514160563297, + 1.6148085670343204, + 1.392118316061973, + 1.478836783362774, + 1.584573675743107, + 1.9083950524798377, + 2.4696838750005137, + 3.237709207512389, + 2.161683828181645, + 1.711490238758212 + ], + [ + 1.278023707807586, + 1.2960967242861405, + 1.1991783796826554, + 1.1500928872331737, + 1.0716273433416739, + 0.9334732055880408, + 1.005268204660791, + 1.061703077903756, + 1.0722998665067685, + 1.1024368424997146, + 1.0874032193844418, + 0.9661809267239458, + 0.9389445094392284, + 0.9437641639402778, + 0.9008572726882466, + 0.9083999377960941, + 1.0637525291712338, + 1.1553120341304408, + 1.228866541925978, + 1.3257227847495872, + 1.2456438111979147, + 1.1699311083058812, + 1.831417550301263, + 1.6929259133370707, + 1.81508557571789, + 2.067591522845982, + 1.5116042910781324, + 2.0288416291527365, + 1.5325888271499963, + 1.7747413494130309, + 2.061981809373004, + 2.161683828181645, + 5.172976698787038, + 2.824647337941047 + ], + [ + 1.216651572001522, + 1.3016142849512344, + 1.1671289318987268, + 1.0423537507225114, + 0.8752272188160353, + 0.9646700898008067, + 0.7959378214677061, + 0.750928251918323, + 0.7857556816476677, + 0.8211965440969131, + 0.8605743334958192, + 0.6091327572189656, + 0.7408847801884659, + 0.5668379983715642, + 0.5954307161876768, + 0.5822911456650849, + 0.8107364603471738, + 1.0623007897422523, + 1.0202576151333456, + 1.0523757354830439, + 1.1246503991311638, + 1.0932828393542537, + 1.5855939772355068, + 1.5647015057220164, + 1.612279763842038, + 1.5661674833574266, + 1.2344697766668473, + 1.2548721845908442, + 1.1015711516371718, + 1.3098353406917949, + 1.5715303097943691, + 1.711490238758212, + 2.824647337941047, + 5.105147818704216 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.38944230427320486, + -0.4086471163222382, + -0.3980981363397869, + -0.4062306305399949, + -0.34938605307768383, + -0.32004282163274883, + -0.3170595556608155, + -0.3184024228631234, + -0.3326079993445777, + -0.39845035553048863, + -0.2891275881543313, + -0.3030250211732945, + -0.310174250289404, + -0.2940529831853839, + -0.4366641228322912, + -0.3365568439267927, + -0.4720012588689791, + -0.4726108904263335, + -0.436199044607594, + -0.4278269302238534, + -0.3600793930363095, + -0.3676631040292044 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6246677319752422, + "transport_matrix_sha256": "92240dc08b641dff66cf38ea210d31aba569eb4f8091ce99c4a8b75f433cadd4", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.097011640667916e-05, + "gram_mean_diagonal": 0.06097011640667915, + "calibration_nmse": 0.03808019200585718, + "calibration_cosine": 0.9807755634286893, + "calibration_norm_ratio": 0.9798280272973131, + "transport_relative_identity_distance": 0.2715636193752289, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "6005f741b04aefb4b83452f774f7d013b010b6218020e382a98c92a45d8878ac", + "self_attn.k_proj.weight": "e4d7d1464c351cfcb69799eb3e3bf63cc597383cbfb0d07263236ba2d8eb3d5b", + "self_attn.v_proj.weight": "25063dfdce05fdcb1a48c5d71c3e0107d7a894b7fb6c0f7defa2e768c68ba3d7", + "self_attn.o_proj.weight": "e96bf888e3b0629075b2ee05288e147fd875119467d978c2269ecfeb3b0db4eb", + "self_attn.q_norm.weight": "d77168c19fe27a0d64a2611360be089b4435adc62444d0e82a986419be1d9b44", + "self_attn.k_norm.weight": "2cbb9d53874b3fe1d350a9c9031d64cd138a1dbac549529d07da2927106a10ff", + "mlp.gate_proj.weight": "3acdf3c7c3b8dd224f2837ef92c5e72e8bc7963baa021e9ba2a032da6084c86a", + "mlp.up_proj.weight": "6a0bdd43c6eab5e133991697799089710e9077591b56bcbde02440054dbfebbc", + "mlp.down_proj.weight": "1f66d7843032883982c0b98e73d9193144e181de07f5506b718d1cea3edb23ea", + "input_layernorm.weight": "3f2e5d516a4c80f8d93f0221e5ecbc2e7e692f111118c7c629f210ee9d03419d", + "post_attention_layernorm.weight": "3a237234fa5182946c09967a08faec9d9060f4bd780bdd6627f6159edebe2f98" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "6005f741b04aefb4b83452f774f7d013b010b6218020e382a98c92a45d8878ac", + "self_attn.k_proj.weight": "e4d7d1464c351cfcb69799eb3e3bf63cc597383cbfb0d07263236ba2d8eb3d5b", + "self_attn.v_proj.weight": "25063dfdce05fdcb1a48c5d71c3e0107d7a894b7fb6c0f7defa2e768c68ba3d7", + "self_attn.o_proj.weight": "e96bf888e3b0629075b2ee05288e147fd875119467d978c2269ecfeb3b0db4eb", + "self_attn.q_norm.weight": "d77168c19fe27a0d64a2611360be089b4435adc62444d0e82a986419be1d9b44", + "self_attn.k_norm.weight": "2cbb9d53874b3fe1d350a9c9031d64cd138a1dbac549529d07da2927106a10ff", + "mlp.gate_proj.weight": "4066467968c4094943a227fdcf248b608a8990239e31840a275968d85f1b6716", + "mlp.up_proj.weight": "8fd58dd8a4e80ae482ac26be9f41504980492887ba8aef6e3d0c5bbc8304c743", + "mlp.down_proj.weight": "1f66d7843032883982c0b98e73d9193144e181de07f5506b718d1cea3edb23ea", + "input_layernorm.weight": "3f2e5d516a4c80f8d93f0221e5ecbc2e7e692f111118c7c629f210ee9d03419d", + "post_attention_layernorm.weight": "3a237234fa5182946c09967a08faec9d9060f4bd780bdd6627f6159edebe2f98" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6246677319752422, + "lambda_right": 0.37533226802475783, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "b76a10548dc24bd7497d10d001a9371df638adca19bfce75a56b0cfb27b6d065", + "mlp.up_proj.weight": "cc493840ce3a8e36490a2c80b25b2a5d90e9b0c366939c41740094d74ba5b184", + "mlp.gate_proj.weight": "30f9b1815d6369eeb6a1af9b0cd42e84e9f333e727e66e7cafbc63216d5d1f0f", + "self_attn.k_proj.weight": "9cd64498b33ff399a47d26bb60035f41cf2e1e27240d5bb0e12c5a38a72c366f", + "self_attn.o_proj.weight": "272948af1d61022705cc295ddb40b6214632b9fbe6e254d6b74a2a4507a49386", + "self_attn.q_proj.weight": "a49e9fe8337d0eecf534da70ba4af6662b57ed652fa49f1fd9d56c2d03684d2d", + "self_attn.v_proj.weight": "de40e6d4feaccef517aefdb991834ce833f6e7cfbf5f720a582ede927cec626e" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "6005f741b04aefb4b83452f774f7d013b010b6218020e382a98c92a45d8878ac", + "self_attn.k_proj.weight": "e4d7d1464c351cfcb69799eb3e3bf63cc597383cbfb0d07263236ba2d8eb3d5b", + "self_attn.v_proj.weight": "25063dfdce05fdcb1a48c5d71c3e0107d7a894b7fb6c0f7defa2e768c68ba3d7", + "self_attn.o_proj.weight": "e96bf888e3b0629075b2ee05288e147fd875119467d978c2269ecfeb3b0db4eb", + "self_attn.q_norm.weight": "d77168c19fe27a0d64a2611360be089b4435adc62444d0e82a986419be1d9b44", + "self_attn.k_norm.weight": "2cbb9d53874b3fe1d350a9c9031d64cd138a1dbac549529d07da2927106a10ff", + "mlp.gate_proj.weight": "4066467968c4094943a227fdcf248b608a8990239e31840a275968d85f1b6716", + "mlp.up_proj.weight": "8fd58dd8a4e80ae482ac26be9f41504980492887ba8aef6e3d0c5bbc8304c743", + "mlp.down_proj.weight": "1f66d7843032883982c0b98e73d9193144e181de07f5506b718d1cea3edb23ea", + "input_layernorm.weight": "3f2e5d516a4c80f8d93f0221e5ecbc2e7e692f111118c7c629f210ee9d03419d", + "post_attention_layernorm.weight": "3a237234fa5182946c09967a08faec9d9060f4bd780bdd6627f6159edebe2f98" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "589d2d560b63011f41524f9e4902e6b2453440cd645b4b500a28538a1cf4704d", + "mlp.up_proj.weight": "35d04fcf67ab22adbf6bcb1250c54bf267aea4a73f4bf2998beca5d4e5eccfff", + "mlp.gate_proj.weight": "2521e18eaf36850c9e28e3885e3f87dd0c9091aa16b24011b8753a9295247377", + "self_attn.k_proj.weight": "ce465b2cc7ff0c4ee4bd155b75efe66c5afcba97bba8dae2b852b0629cf4e8c3", + "self_attn.o_proj.weight": "8d49531ce242f536d1d27a2882f3562fdf3e7b2b1ba901c604e6ab2528857817", + "self_attn.q_proj.weight": "ba87131bcd890976f15ffd199dc564012b8aa6c1f3202f184596557259cd92b7", + "self_attn.v_proj.weight": "3631a170e4e61c2d0dcf2617a77489bca1f8d94c407d14ac10bb8a54cda02fbe" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_03_transport.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_03_transport.pt new file mode 100644 index 0000000000000000000000000000000000000000..b1f6b0eea986c81121cb707143197753d5b1c2c2 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_03_transport.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19a93a865ac591cb00929dcc8d986f6f7fb55b7342a57a2ae29a89885a2a8192 +size 67110518 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_04_merge.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_04_merge.json new file mode 100644 index 0000000000000000000000000000000000000000..da52204aa1f9a6282f55d3b06582530d17c7ff83 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_04_merge.json @@ -0,0 +1,1322 @@ +{ + "cycle": 4, + "anchor": 12, + "removed_original_layer": 16, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.314300027105734, + 2.461919023433335, + 2.1525834524304894, + 2.2878599993587736, + 2.649216707734476, + 3.0156422135045475, + 3.122213040882858, + 2.735158415906826, + 2.8335350264143155, + 1.4476710763864702, + 1.6757910880417386, + 1.560077749109066, + 1.3105082884760846, + 1.3449146523213704, + 0.7867328199618516, + 1.0295279842914145, + 0.9976450629962423, + 1.0551311627117597, + 1.2135039258282794, + 1.3591603339230407, + 1.3953358624052978 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.403737161174292, + 2.597638610440688, + 2.264245884321682, + 2.3787100324982844, + 2.7277612956390977, + 3.1370637154368013, + 3.1696762295247107, + 2.9053430196477175, + 2.9992099691196215, + 1.6601984109646992, + 1.8354434405034292, + 1.7692311047970397, + 1.4514514803062588, + 1.455614489064811, + 0.8824892077111548, + 1.1137565329190535, + 1.1446827227156666, + 1.1310017970761124, + 1.2841266505454594, + 1.2945064357520133, + 1.3687794265131663 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.471676830375396, + 2.6490549773173284, + 2.287733838137879, + 2.437948935797838, + 2.821196618198155, + 3.22855616118193, + 3.2361888698373007, + 2.8956234872659334, + 2.9475113511326088, + 1.534689597529067, + 1.7481715931721336, + 1.7311299784369338, + 1.3549313023902774, + 1.419796533720719, + 0.8434019475919747, + 1.155251913975692, + 1.1178256592299947, + 1.1234932190884592, + 1.254512839091728, + 1.2419221049979003, + 1.218965095759463 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8097931203426354, + 3.009127293528697, + 2.566939930248229, + 2.824178768362589, + 3.06898893017062, + 3.2318720075944545, + 3.294301487573008, + 3.236104916150143, + 3.0298012160053225, + 1.8665905775445029, + 2.0020961767889873, + 1.843589545069702, + 1.5829701034661072, + 1.5864523507153467, + 0.9842629092970591, + 1.0833663819825314, + 1.0527711926543772, + 1.1302960072342605, + 1.2276297727276524, + 1.2682545105507188, + 1.281760629487778 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.684485421074143, + 2.710291631374167, + 2.3660928534026255, + 2.5021354745974405, + 2.7170570690583133, + 2.875442437072025, + 2.820028991822822, + 2.5706342498102113, + 2.5550329073120106, + 1.977044926904529, + 1.8439292062450405, + 1.6496830759987995, + 1.4721869550367672, + 1.4120372043709835, + 0.8161292366014105, + 0.9722650270236017, + 0.8477892108457493, + 0.9310834882602305, + 1.0302026270062674, + 1.148183987826183, + 1.0495423912360902 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.665742955821557, + 2.5794981154812304, + 2.342328835701662, + 2.447579475586948, + 2.6835443814538675, + 2.7608555994198474, + 2.634072528968371, + 2.5402087703565397, + 2.467476627692352, + 1.8071922155323132, + 1.6949663731773699, + 1.570303251246303, + 1.4143723722330284, + 1.365852011357938, + 0.8525749710753611, + 0.9825293700325594, + 0.8967780561942892, + 0.9444128194705904, + 1.001342143085715, + 1.072680225680396, + 1.295470380551076 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.810376446493185, + 2.6736977416647965, + 2.469645286596305, + 2.4861124142551194, + 2.6342022458406373, + 2.791618824788654, + 2.7069341876780633, + 2.5442820215971675, + 2.4445793489663017, + 1.9332649780278837, + 1.821922281557604, + 1.700187574806416, + 1.4839556767277615, + 1.413448759759593, + 0.8243704980245724, + 0.9313336387577859, + 0.8613350801923607, + 0.9431387629266099, + 0.9926589042391588, + 1.092739505581484, + 1.0462822337188293 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8604326518430807, + 2.752539599097301, + 2.4821132952428675, + 2.552230042937554, + 2.6587391965380647, + 2.891160217752835, + 2.860405920703912, + 2.626952983049047, + 2.5316669670984147, + 1.9043515786609861, + 1.8517012881252881, + 1.7475179504543674, + 1.4106259012845308, + 1.43847577063438, + 0.8069107914890946, + 0.972672384792874, + 0.9251104498215555, + 0.9958138686818863, + 1.0492769922561158, + 1.0890026759950953, + 0.9841123918210369 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.9708735865724574, + 2.73446934898001, + 2.586290481358667, + 2.5035650130784552, + 2.6304524969642205, + 2.8110631483320008, + 2.786189742174216, + 2.7121451734863506, + 2.622847342698003, + 1.8989955635181268, + 1.8747969939832225, + 1.8039727756960982, + 1.5473793084442458, + 1.570183010230387, + 0.8517991444075295, + 0.987086974883477, + 0.9476852799698333, + 0.9682259719700246, + 1.0666754568337995, + 1.0733110805534485, + 0.9899130507077791 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9243201398914542, + 3.067048761828838, + 2.5550835039284294, + 2.8371328612271056, + 2.901021170165633, + 3.1394835575391844, + 3.1076712216569073, + 3.0661818722694756, + 2.992499578110458, + 1.9784082138290793, + 2.112733961764548, + 1.9183625720284727, + 1.5754124136951366, + 1.579384286558107, + 0.8668212383108905, + 1.1116202500276509, + 1.1316271873153823, + 1.1275585551913094, + 1.1551859501110775, + 1.0834525349085238, + 0.8663890394901907 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.156237628612337, + 3.22763168797825, + 2.73868710779468, + 3.0449663058740315, + 3.2609220872069793, + 3.5853485176514597, + 3.55540397894272, + 3.516410805692872, + 3.457223234011531, + 2.058031323370723, + 2.265294235313926, + 2.149293336638887, + 1.7909503230947812, + 1.6350031347072727, + 0.895429961189473, + 1.120159080807125, + 1.080969991837595, + 1.0764722275586287, + 1.1635649050678059, + 1.0871307070163994, + 0.8988686133923639 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.7309871323170603, + 3.1697635966094198, + 2.9815883755229695, + 2.8706449248327366, + 2.7637379656283234, + 2.926399935409853, + 2.8069899461613677, + 2.782435228242578, + 2.6178603228142676, + 1.8281113295451992, + 1.8940490086059527, + 1.8324282044926903, + 1.5903296487262761, + 1.5925891286631313, + 0.7103705884241744, + 0.9742590427712182, + 0.9074007246987084, + 0.9405837864919065, + 0.9653002131210144, + 0.9716574943682296, + 0.7075053295536702 + ], + [ + 2.314300027105734, + 2.403737161174292, + 2.471676830375396, + 2.8097931203426354, + 2.684485421074143, + 2.665742955821557, + 2.810376446493185, + 2.8604326518430807, + 2.9708735865724574, + 2.9243201398914542, + 3.156237628612337, + 3.7309871323170603, + 3.930110731448644, + 3.172226992044064, + 2.9930181264204223, + 2.8622298357810667, + 2.7950413460541097, + 2.9375260085039856, + 2.7818981117731854, + 2.823966256893959, + 2.5967992990416917, + 1.8371983864997607, + 1.930693920629306, + 1.8312668092917004, + 1.6297347311890982, + 1.590342860366293, + 0.758068397101918, + 0.9855179645361212, + 0.9206874522819447, + 0.9471145924052544, + 0.9646477762334961, + 0.9842017201935188, + 0.7881220435062507 + ], + [ + 2.461919023433335, + 2.597638610440688, + 2.6490549773173284, + 3.009127293528697, + 2.710291631374167, + 2.5794981154812304, + 2.6736977416647965, + 2.752539599097301, + 2.73446934898001, + 3.067048761828838, + 3.22763168797825, + 3.1697635966094198, + 3.172226992044064, + 4.035081665752084, + 2.939290367346883, + 3.2855856778188324, + 3.1022074358861733, + 3.2434380825548583, + 2.9611568416170573, + 2.8083200440471563, + 2.616588132988076, + 1.8701275212550186, + 1.9626337009647723, + 1.8332344588363338, + 1.5315531347610734, + 1.3761963647729136, + 0.7615105506425894, + 0.9584874065307398, + 0.8832127284362556, + 0.9764170264661503, + 1.0167790137683346, + 1.0681571015390157, + 0.818919375117991 + ], + [ + 2.1525834524304894, + 2.264245884321682, + 2.287733838137879, + 2.566939930248229, + 2.3660928534026255, + 2.342328835701662, + 2.469645286596305, + 2.4821132952428675, + 2.586290481358667, + 2.5550835039284294, + 2.73868710779468, + 2.9815883755229695, + 2.9930181264204223, + 2.939290367346883, + 3.54298760125702, + 2.921527870550785, + 2.7483279693040963, + 2.8409775478574666, + 2.582925497768195, + 2.5143138199746344, + 2.3242644618808024, + 1.704633437412501, + 1.6773689678541912, + 1.6633119366913098, + 1.4153329172895461, + 1.5110900607395281, + 0.7627869709742732, + 0.9792399828469156, + 0.921689544430509, + 0.9851010273173267, + 1.015888700473225, + 1.055010937731094, + 0.8600265413524133 + ], + [ + 2.2878599993587736, + 2.3787100324982844, + 2.437948935797838, + 2.824178768362589, + 2.5021354745974405, + 2.447579475586948, + 2.4861124142551194, + 2.552230042937554, + 2.5035650130784552, + 2.8371328612271056, + 3.0449663058740315, + 2.8706449248327366, + 2.8622298357810667, + 3.2855856778188324, + 2.921527870550785, + 3.989889752665237, + 3.2105765691424217, + 3.205854992735177, + 2.9495276151007803, + 2.80577186205303, + 2.6039381688698398, + 1.9158155823324203, + 1.918068359685552, + 1.859059220886696, + 1.490544681999069, + 1.42152200322146, + 0.8256450365013723, + 0.9227987482439577, + 0.8419148226750538, + 0.9090979553138583, + 0.9876992114609472, + 1.11318027180485, + 0.897826980101583 + ], + [ + 2.649216707734476, + 2.7277612956390977, + 2.821196618198155, + 3.06898893017062, + 2.7170570690583133, + 2.6835443814538675, + 2.6342022458406373, + 2.6587391965380647, + 2.6304524969642205, + 2.901021170165633, + 3.2609220872069793, + 2.7637379656283234, + 2.7950413460541097, + 3.1022074358861733, + 2.7483279693040963, + 3.2105765691424217, + 4.7274008071415885, + 4.38098084783146, + 3.8502719802545187, + 3.7208657576381747, + 3.245223804381355, + 2.1499059349338636, + 2.365672701976562, + 2.1824613432316853, + 1.7786986929696287, + 1.6846157997484135, + 0.9622552867832426, + 1.0520608470397097, + 1.0401326790826153, + 1.1067779547477345, + 1.0999227111890348, + 1.1508544691025184, + 1.169515037282032 + ], + [ + 3.0156422135045475, + 3.1370637154368013, + 3.22855616118193, + 3.2318720075944545, + 2.875442437072025, + 2.7608555994198474, + 2.791618824788654, + 2.891160217752835, + 2.8110631483320008, + 3.1394835575391844, + 3.5853485176514597, + 2.926399935409853, + 2.9375260085039856, + 3.2434380825548583, + 2.8409775478574666, + 3.205854992735177, + 4.38098084783146, + 5.3037711447961575, + 4.4809239514048835, + 4.012760087028986, + 3.7401869628618276, + 2.2355950808922027, + 2.494227717737122, + 2.284219091232866, + 1.8598940761303475, + 1.7661991266693997, + 0.935047804677864, + 1.1393992797459442, + 1.1231809786337004, + 1.1519141825757822, + 1.1549949072252053, + 1.2333150141343838, + 1.200391335441381 + ], + [ + 3.122213040882858, + 3.1696762295247107, + 3.2361888698373007, + 3.294301487573008, + 2.820028991822822, + 2.634072528968371, + 2.7069341876780633, + 2.860405920703912, + 2.786189742174216, + 3.1076712216569073, + 3.55540397894272, + 2.8069899461613677, + 2.7818981117731854, + 2.9611568416170573, + 2.582925497768195, + 2.9495276151007803, + 3.8502719802545187, + 4.4809239514048835, + 5.306791688691005, + 4.131984698665956, + 4.030514704329098, + 2.2748944062117094, + 2.464640668724879, + 2.260154943705265, + 1.895376217718618, + 1.7805126164537326, + 0.9967152289904879, + 1.1899153252039334, + 1.130133463617499, + 1.1658109967831987, + 1.237127216811226, + 1.3502222931299264, + 1.2858726154933944 + ], + [ + 2.735158415906826, + 2.9053430196477175, + 2.8956234872659334, + 3.236104916150143, + 2.5706342498102113, + 2.5402087703565397, + 2.5442820215971675, + 2.626952983049047, + 2.7121451734863506, + 3.0661818722694756, + 3.516410805692872, + 2.782435228242578, + 2.823966256893959, + 2.8083200440471563, + 2.5143138199746344, + 2.80577186205303, + 3.7208657576381747, + 4.012760087028986, + 4.131984698665956, + 4.997935820179628, + 3.962636732284426, + 2.4747369016634724, + 2.7212739467253444, + 2.3513848388521, + 2.1624253347828892, + 2.0638583633735874, + 1.1048584391414855, + 1.1776002132319525, + 1.260497729733739, + 1.1974236119522488, + 1.209242733399492, + 1.3456393585688418, + 1.2996019104753054 + ], + [ + 2.8335350264143155, + 2.9992099691196215, + 2.9475113511326088, + 3.0298012160053225, + 2.5550329073120106, + 2.467476627692352, + 2.4445793489663017, + 2.5316669670984147, + 2.622847342698003, + 2.992499578110458, + 3.457223234011531, + 2.6178603228142676, + 2.5967992990416917, + 2.616588132988076, + 2.3242644618808024, + 2.6039381688698398, + 3.245223804381355, + 3.7401869628618276, + 4.030514704329098, + 3.962636732284426, + 5.424582695669656, + 2.6709932797011553, + 2.9109871982624167, + 2.5879330187056824, + 2.3588714636750794, + 2.2394388292920926, + 1.0353286120679521, + 1.334329990729527, + 1.3615573865691337, + 1.3653986617292104, + 1.4438250800166432, + 1.531797641897138, + 1.4995929307961264 + ], + [ + 1.4476710763864702, + 1.6601984109646992, + 1.534689597529067, + 1.8665905775445029, + 1.977044926904529, + 1.8071922155323132, + 1.9332649780278837, + 1.9043515786609861, + 1.8989955635181268, + 1.9784082138290793, + 2.058031323370723, + 1.8281113295451992, + 1.8371983864997607, + 1.8701275212550186, + 1.704633437412501, + 1.9158155823324203, + 2.1499059349338636, + 2.2355950808922027, + 2.2748944062117094, + 2.4747369016634724, + 2.6709932797011553, + 3.379131425981329, + 2.651530645654673, + 2.342599610812365, + 2.079936760442765, + 1.7187760810924886, + 0.7559185079850282, + 1.1777505999280131, + 1.0215960774092963, + 0.9367182764084494, + 0.9552406542818174, + 1.030976435758569, + 1.0083506902108008 + ], + [ + 1.6757910880417386, + 1.8354434405034292, + 1.7481715931721336, + 2.0020961767889873, + 1.8439292062450405, + 1.6949663731773699, + 1.821922281557604, + 1.8517012881252881, + 1.8747969939832225, + 2.112733961764548, + 2.265294235313926, + 1.8940490086059527, + 1.930693920629306, + 1.9626337009647723, + 1.6773689678541912, + 1.918068359685552, + 2.365672701976562, + 2.494227717737122, + 2.464640668724879, + 2.7212739467253444, + 2.9109871982624167, + 2.651530645654673, + 3.700480385834811, + 2.7274619208958346, + 2.4593391984596837, + 1.8006567967637055, + 0.7658942517923812, + 1.143022798771677, + 1.068164116581762, + 0.9167734362036271, + 0.8345832873694562, + 0.9954551213088274, + 0.921797273840585 + ], + [ + 1.560077749109066, + 1.7692311047970397, + 1.7311299784369338, + 1.843589545069702, + 1.6496830759987995, + 1.570303251246303, + 1.700187574806416, + 1.7475179504543674, + 1.8039727756960982, + 1.9183625720284727, + 2.149293336638887, + 1.8324282044926903, + 1.8312668092917004, + 1.8332344588363338, + 1.6633119366913098, + 1.859059220886696, + 2.1824613432316853, + 2.284219091232866, + 2.260154943705265, + 2.3513848388521, + 2.5879330187056824, + 2.342599610812365, + 2.7274619208958346, + 3.6363728657784233, + 2.6947085597538543, + 1.7746544951910237, + 0.6941655086565679, + 1.1690169013172815, + 1.035344224716548, + 0.8418969131638131, + 0.8250764754864821, + 0.9864211199831681, + 0.9556058874829595 + ], + [ + 1.3105082884760846, + 1.4514514803062588, + 1.3549313023902774, + 1.5829701034661072, + 1.4721869550367672, + 1.4143723722330284, + 1.4839556767277615, + 1.4106259012845308, + 1.5473793084442458, + 1.5754124136951366, + 1.7909503230947812, + 1.5903296487262761, + 1.6297347311890982, + 1.5315531347610734, + 1.4153329172895461, + 1.490544681999069, + 1.7786986929696287, + 1.8598940761303475, + 1.895376217718618, + 2.1624253347828892, + 2.3588714636750794, + 2.079936760442765, + 2.4593391984596837, + 2.6947085597538543, + 3.9600165881456326, + 2.244853333853068, + 0.7762316889570585, + 1.3851960910922103, + 1.2174581134169675, + 0.9213630782693091, + 0.9112985108066699, + 1.0036026898581505, + 0.9691482431827392 + ], + [ + 1.3449146523213704, + 1.455614489064811, + 1.419796533720719, + 1.5864523507153467, + 1.4120372043709835, + 1.365852011357938, + 1.413448759759593, + 1.43847577063438, + 1.570183010230387, + 1.579384286558107, + 1.6350031347072727, + 1.5925891286631313, + 1.590342860366293, + 1.3761963647729136, + 1.5110900607395281, + 1.42152200322146, + 1.6846157997484135, + 1.7661991266693997, + 1.7805126164537326, + 2.0638583633735874, + 2.2394388292920926, + 1.7187760810924886, + 1.8006567967637055, + 1.7746544951910237, + 2.244853333853068, + 4.126862603559787, + 1.8307068464132223, + 1.6892578951113346, + 1.5602236850273088, + 1.301467776140766, + 1.355598569157209, + 1.3825216818671957, + 1.1932043341070957 + ], + [ + 0.7867328199618516, + 0.8824892077111548, + 0.8434019475919747, + 0.9842629092970591, + 0.8161292366014105, + 0.8525749710753611, + 0.8243704980245724, + 0.8069107914890946, + 0.8517991444075295, + 0.8668212383108905, + 0.895429961189473, + 0.7103705884241744, + 0.758068397101918, + 0.7615105506425894, + 0.7627869709742732, + 0.8256450365013723, + 0.9622552867832426, + 0.935047804677864, + 0.9967152289904879, + 1.1048584391414855, + 1.0353286120679521, + 0.7559185079850282, + 0.7658942517923812, + 0.6941655086565679, + 0.7762316889570585, + 1.8307068464132223, + 3.2226666395910537, + 1.263493495183496, + 1.2065912891888106, + 1.0422827571401898, + 1.167915965143054, + 1.2379748751752127, + 1.2971150963787008 + ], + [ + 1.0295279842914145, + 1.1137565329190535, + 1.155251913975692, + 1.0833663819825314, + 0.9722650270236017, + 0.9825293700325594, + 0.9313336387577859, + 0.972672384792874, + 0.987086974883477, + 1.1116202500276509, + 1.120159080807125, + 0.9742590427712182, + 0.9855179645361212, + 0.9584874065307398, + 0.9792399828469156, + 0.9227987482439577, + 1.0520608470397097, + 1.1393992797459442, + 1.1899153252039334, + 1.1776002132319525, + 1.334329990729527, + 1.1777505999280131, + 1.143022798771677, + 1.1690169013172815, + 1.3851960910922103, + 1.6892578951113346, + 1.263493495183496, + 2.805180941646163, + 1.9190041484067935, + 1.589520778149614, + 1.555121151872259, + 1.2738054364504456, + 1.2600595639073078 + ], + [ + 0.9976450629962423, + 1.1446827227156666, + 1.1178256592299947, + 1.0527711926543772, + 0.8477892108457493, + 0.8967780561942892, + 0.8613350801923607, + 0.9251104498215555, + 0.9476852799698333, + 1.1316271873153823, + 1.080969991837595, + 0.9074007246987084, + 0.9206874522819447, + 0.8832127284362556, + 0.921689544430509, + 0.8419148226750538, + 1.0401326790826153, + 1.1231809786337004, + 1.130133463617499, + 1.260497729733739, + 1.3615573865691337, + 1.0215960774092963, + 1.068164116581762, + 1.035344224716548, + 1.2174581134169675, + 1.5602236850273088, + 1.2065912891888106, + 1.9190041484067935, + 2.7554258296757266, + 1.938038648948368, + 1.781189792047324, + 1.4376687473222314, + 1.3775397250173684 + ], + [ + 1.0551311627117597, + 1.1310017970761124, + 1.1234932190884592, + 1.1302960072342605, + 0.9310834882602305, + 0.9444128194705904, + 0.9431387629266099, + 0.9958138686818863, + 0.9682259719700246, + 1.1275585551913094, + 1.0764722275586287, + 0.9405837864919065, + 0.9471145924052544, + 0.9764170264661503, + 0.9851010273173267, + 0.9090979553138583, + 1.1067779547477345, + 1.1519141825757822, + 1.1658109967831987, + 1.1974236119522488, + 1.3653986617292104, + 0.9367182764084494, + 0.9167734362036271, + 0.8418969131638131, + 0.9213630782693091, + 1.301467776140766, + 1.0422827571401898, + 1.589520778149614, + 1.938038648948368, + 2.8012456953203824, + 2.213163009832198, + 1.7779756318043214, + 1.5564826744953513 + ], + [ + 1.2135039258282794, + 1.2841266505454594, + 1.254512839091728, + 1.2276297727276524, + 1.0302026270062674, + 1.001342143085715, + 0.9926589042391588, + 1.0492769922561158, + 1.0666754568337995, + 1.1551859501110775, + 1.1635649050678059, + 0.9653002131210144, + 0.9646477762334961, + 1.0167790137683346, + 1.015888700473225, + 0.9876992114609472, + 1.0999227111890348, + 1.1549949072252053, + 1.237127216811226, + 1.209242733399492, + 1.4438250800166432, + 0.9552406542818174, + 0.8345832873694562, + 0.8250764754864821, + 0.9112985108066699, + 1.355598569157209, + 1.167915965143054, + 1.555121151872259, + 1.781189792047324, + 2.213163009832198, + 2.9700067248715416, + 1.910223378463109, + 1.749278752453771 + ], + [ + 1.3591603339230407, + 1.2945064357520133, + 1.2419221049979003, + 1.2682545105507188, + 1.148183987826183, + 1.072680225680396, + 1.092739505581484, + 1.0890026759950953, + 1.0733110805534485, + 1.0834525349085238, + 1.0871307070163994, + 0.9716574943682296, + 0.9842017201935188, + 1.0681571015390157, + 1.055010937731094, + 1.11318027180485, + 1.1508544691025184, + 1.2333150141343838, + 1.3502222931299264, + 1.3456393585688418, + 1.531797641897138, + 1.030976435758569, + 0.9954551213088274, + 0.9864211199831681, + 1.0036026898581505, + 1.3825216818671957, + 1.2379748751752127, + 1.2738054364504456, + 1.4376687473222314, + 1.7779756318043214, + 1.910223378463109, + 4.867109220537086, + 3.2877996158340754 + ], + [ + 1.3953358624052978, + 1.3687794265131663, + 1.218965095759463, + 1.281760629487778, + 1.0495423912360902, + 1.295470380551076, + 1.0462822337188293, + 0.9841123918210369, + 0.9899130507077791, + 0.8663890394901907, + 0.8988686133923639, + 0.7075053295536702, + 0.7881220435062507, + 0.818919375117991, + 0.8600265413524133, + 0.897826980101583, + 1.169515037282032, + 1.200391335441381, + 1.2858726154933944, + 1.2996019104753054, + 1.4995929307961264, + 1.0083506902108008, + 0.921797273840585, + 0.9556058874829595, + 0.9691482431827392, + 1.1932043341070957, + 1.2971150963787008, + 1.2600595639073078, + 1.3775397250173684, + 1.5564826744953513, + 1.749278752453771, + 3.2877996158340754, + 6.785350938802596 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.39629581536575914, + -0.39392408968380227, + -0.4249299366788886, + -0.3858839856956466, + -0.3413208391183487, + -0.3231474525675428, + -0.32045481597735254, + -0.33767751962196185, + -0.3303917205137287, + -0.4347258131497242, + -0.39758334223454067, + -0.3944413347919116, + -0.3859768635984357, + -0.37205332031609534, + -0.4163590927666799, + -0.46259253830850405, + -0.4794860295820968, + -0.45219894423816637, + -0.44479066197100775, + -0.34358299724361435, + -0.2797879744610617 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.621696986035118, + "transport_matrix_sha256": "7a007f3fdd875ef86f1976706799e8f654c8fd9e93d7851f85e6b8a8a2f23d17", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.113433837890625e-05, + "gram_mean_diagonal": 0.06113433837890625, + "calibration_nmse": 0.02677125200720686, + "calibration_cosine": 0.9865240183756301, + "calibration_norm_ratio": 0.9855801755880016, + "transport_relative_identity_distance": 0.2614944577217102, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "a9874967bd53acfd480ed2bd5552fab4e1a06f610af242d411e176c279e0191a", + "self_attn.k_proj.weight": "0a285bc594b54a921f698937c566bce629295ff4befcebb203038dd0d97eb3f0", + "self_attn.v_proj.weight": "dd8847c5b10e200df29bf79b30321ec7f1d90427ab9b3d273e18a4cbd83e597d", + "self_attn.o_proj.weight": "e6afd2a9ba7c9e6f1911d773062b9d37442a01ead339c9aa9255ff20f146b196", + "self_attn.q_norm.weight": "48de60cd86dec981224231f275146bc8d17990394835783504bbf5f0e9c5bb1a", + "self_attn.k_norm.weight": "d6ef88be0fc007a2bc5e9f1a0a70b7eac493495b5b54b4f72582378340b9bb4d", + "mlp.gate_proj.weight": "171beb5701a83f117d0a59a14a78be2936a062c7aa5700ec39efd9c816af96db", + "mlp.up_proj.weight": "e04d543903d934aae9062d2034f71ac4d3fb1ac69bd5f31d365f404c764e535e", + "mlp.down_proj.weight": "c297d40f8af2ed96c90ff2f616877b4aaeed4bc2918f0e3b56ea769203724ce1", + "input_layernorm.weight": "45d58615dedc0906944d998c52fed1d0d139338362abd51fc1b98ae12edec92a", + "post_attention_layernorm.weight": "af332049d823017194704880c92765ab0cf4a519c8819753d0539106ea951cef" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "a9874967bd53acfd480ed2bd5552fab4e1a06f610af242d411e176c279e0191a", + "self_attn.k_proj.weight": "0a285bc594b54a921f698937c566bce629295ff4befcebb203038dd0d97eb3f0", + "self_attn.v_proj.weight": "dd8847c5b10e200df29bf79b30321ec7f1d90427ab9b3d273e18a4cbd83e597d", + "self_attn.o_proj.weight": "e6afd2a9ba7c9e6f1911d773062b9d37442a01ead339c9aa9255ff20f146b196", + "self_attn.q_norm.weight": "48de60cd86dec981224231f275146bc8d17990394835783504bbf5f0e9c5bb1a", + "self_attn.k_norm.weight": "d6ef88be0fc007a2bc5e9f1a0a70b7eac493495b5b54b4f72582378340b9bb4d", + "mlp.gate_proj.weight": "e585ef500e837ee8ba120cdf78c68222cd5d33cce3cace60bb0916e239526f4d", + "mlp.up_proj.weight": "006510c182eac74fd119cccb59f5a21f56be6ae8ad84582247abf117ef4b00af", + "mlp.down_proj.weight": "c297d40f8af2ed96c90ff2f616877b4aaeed4bc2918f0e3b56ea769203724ce1", + "input_layernorm.weight": "45d58615dedc0906944d998c52fed1d0d139338362abd51fc1b98ae12edec92a", + "post_attention_layernorm.weight": "af332049d823017194704880c92765ab0cf4a519c8819753d0539106ea951cef" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.621696986035118, + "lambda_right": 0.378303013964882, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "589d2d560b63011f41524f9e4902e6b2453440cd645b4b500a28538a1cf4704d", + "mlp.up_proj.weight": "35d04fcf67ab22adbf6bcb1250c54bf267aea4a73f4bf2998beca5d4e5eccfff", + "mlp.gate_proj.weight": "2521e18eaf36850c9e28e3885e3f87dd0c9091aa16b24011b8753a9295247377", + "self_attn.k_proj.weight": "ce465b2cc7ff0c4ee4bd155b75efe66c5afcba97bba8dae2b852b0629cf4e8c3", + "self_attn.o_proj.weight": "8d49531ce242f536d1d27a2882f3562fdf3e7b2b1ba901c604e6ab2528857817", + "self_attn.q_proj.weight": "ba87131bcd890976f15ffd199dc564012b8aa6c1f3202f184596557259cd92b7", + "self_attn.v_proj.weight": "3631a170e4e61c2d0dcf2617a77489bca1f8d94c407d14ac10bb8a54cda02fbe" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "a9874967bd53acfd480ed2bd5552fab4e1a06f610af242d411e176c279e0191a", + "self_attn.k_proj.weight": "0a285bc594b54a921f698937c566bce629295ff4befcebb203038dd0d97eb3f0", + "self_attn.v_proj.weight": "dd8847c5b10e200df29bf79b30321ec7f1d90427ab9b3d273e18a4cbd83e597d", + "self_attn.o_proj.weight": "e6afd2a9ba7c9e6f1911d773062b9d37442a01ead339c9aa9255ff20f146b196", + "self_attn.q_norm.weight": "48de60cd86dec981224231f275146bc8d17990394835783504bbf5f0e9c5bb1a", + "self_attn.k_norm.weight": "d6ef88be0fc007a2bc5e9f1a0a70b7eac493495b5b54b4f72582378340b9bb4d", + "mlp.gate_proj.weight": "e585ef500e837ee8ba120cdf78c68222cd5d33cce3cace60bb0916e239526f4d", + "mlp.up_proj.weight": "006510c182eac74fd119cccb59f5a21f56be6ae8ad84582247abf117ef4b00af", + "mlp.down_proj.weight": "c297d40f8af2ed96c90ff2f616877b4aaeed4bc2918f0e3b56ea769203724ce1", + "input_layernorm.weight": "45d58615dedc0906944d998c52fed1d0d139338362abd51fc1b98ae12edec92a", + "post_attention_layernorm.weight": "af332049d823017194704880c92765ab0cf4a519c8819753d0539106ea951cef" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "b435c15455b9acea20e4c29c945a6c82e17f681d8d7e66ad87acb8fac7170d83", + "mlp.up_proj.weight": "fbf0e81a87ba5cc794a443b499a5b146e8852438e93e6d63e089d797b3cbcea1", + "mlp.gate_proj.weight": "4fa198abc19c57731465efea76911d71ffa46ff751d5fe8a60b44c576e10f6e7", + "self_attn.k_proj.weight": "032c027fe01cb5fab5f4c1e3dc67e7cf0df68ec9aaa6d17ec2e475e82d3c1e55", + "self_attn.o_proj.weight": "9f0e48310cf38889f4ed316f139295db2cf5e538bf7e55485aad5e71e23ecd5e", + "self_attn.q_proj.weight": "3bc8c412dc5060b6e560e3239eeae87e063ebc8dab8004e85753243c608887e1", + "self_attn.v_proj.weight": "60ce6d426d898b9dfafeb8708e5cd7ab0ab1ed9ecb72406ed7ced29ddf241f92" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_04_transport.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_04_transport.pt new file mode 100644 index 0000000000000000000000000000000000000000..7d947e5413db966570a0b96ef08b1daa56732603 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_04_transport.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3a3edf52772a8e750b33361066e0d4152d55ad82e88091ed708a0f4b6ae9444 +size 67110518 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_05_merge.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_05_merge.json new file mode 100644 index 0000000000000000000000000000000000000000..66c59281e64e18c2fd8758b57c3ccd765eeb26dc --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_05_merge.json @@ -0,0 +1,1254 @@ +{ + "cycle": 5, + "anchor": 12, + "removed_original_layer": 17, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.2973014672443273, + 2.402313465345035, + 2.7751658007372124, + 2.431967012817301, + 2.555949570500245, + 2.9490550065873617, + 2.933062839998181, + 2.985586109185286, + 1.393497006924735, + 1.5549888324033396, + 1.6172032381708137, + 1.2895455137771423, + 1.3305508398944483, + 0.809612793475257, + 0.96576077948826, + 0.9678482963357555, + 1.076437300927, + 1.1106831656359657, + 1.2818385237479304, + 1.367331307834341 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3593836873266576, + 2.4969686514309237, + 2.761282372061731, + 2.514009710327687, + 2.678313267524417, + 3.0385727050761773, + 3.146421624678776, + 3.1126286988238836, + 1.4966492525721014, + 1.7356666744877467, + 1.760067430971546, + 1.3822790019247668, + 1.44865621676555, + 0.8706680369307369, + 1.087681668858802, + 1.016765063089871, + 1.168092624762163, + 1.240202514748782, + 1.2512539741859132, + 1.5289417353969423 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.472799166107413, + 2.5487305066435324, + 2.862739133796854, + 2.459992013000342, + 2.6895761883196476, + 3.0540897711329347, + 3.1636333863106842, + 2.956284068558032, + 1.427682139973012, + 1.666052580315572, + 1.6172506596558796, + 1.3478479434049486, + 1.4524278573457412, + 0.8472268087342227, + 1.0915963974461942, + 1.0233891066594845, + 1.1170455724981618, + 1.189972476000872, + 1.204138405946318, + 1.4489879568487152 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.826623250750395, + 2.829128529870874, + 3.2520301403879524, + 2.855804693529714, + 3.0138645684949963, + 3.41710960611837, + 3.308103776833983, + 2.862256429918106, + 1.5543731860514867, + 2.032282844095036, + 1.8485855337863513, + 1.5356195883615302, + 1.5954369023407893, + 1.1125602833908146, + 1.0939111250358495, + 0.9625166787034021, + 1.1018882409886093, + 1.221910865722635, + 1.2988461323624159, + 1.3737590918672091 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.740993573260234, + 2.7078545559894063, + 2.808013590210768, + 2.7302198303918033, + 2.6733525405195957, + 2.9306109298562504, + 2.724838391647251, + 2.4668328844542935, + 1.382441321958602, + 1.843551366503246, + 1.691076875650992, + 1.2705448428608754, + 1.4552881932284591, + 0.9296751122667901, + 0.9863193465434471, + 0.7896427441625843, + 0.870606594507396, + 1.0034121877274516, + 1.1606232700187604, + 1.1671181849656456 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.614220787093429, + 2.6501461085544795, + 2.731432821325423, + 2.665173718303485, + 2.529184666025586, + 2.747125470323815, + 2.730871060839862, + 2.4255575688637157, + 1.4399598585545985, + 1.7393478905969277, + 1.6833521238772298, + 1.3394242790383133, + 1.4772322241979203, + 1.0018227306191279, + 1.0514234553417974, + 0.898569320285732, + 0.9275928769055607, + 1.0328114187502706, + 1.2249622386495047, + 1.249906287774621 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8357127176867145, + 2.7175887262467424, + 2.810749227598172, + 2.6396113340815632, + 2.610701692748886, + 2.865836600395961, + 2.7201746726471985, + 2.376016027573937, + 1.3548302877521203, + 1.7813569087158272, + 1.7431930238989644, + 1.3193022606522211, + 1.4935638799943822, + 0.8907893733515545, + 0.9541463292028871, + 0.8076943037291087, + 0.8314839027100833, + 0.9526857565002524, + 1.0656383876649953, + 1.043281432100314 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8895048272012303, + 2.7809944225774386, + 2.8859910412636007, + 2.6382373642462347, + 2.6344756125377433, + 2.955985931473798, + 2.759363968261283, + 2.4185247447673555, + 1.3498300313754128, + 1.7333495052521455, + 1.684202508148144, + 1.31790487922462, + 1.5481601596292842, + 0.8667593274210247, + 0.9706611467753349, + 0.8327209980937196, + 0.8290287059936796, + 0.962538409183641, + 1.0024617353618726, + 1.0392645329380419 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0698740923791608, + 2.9039236660401033, + 2.885517872292078, + 2.7205889657416087, + 2.729609472173427, + 2.9254031628239963, + 2.8947586207155362, + 2.5344803496790393, + 1.3752413744530156, + 1.8392546121026203, + 1.7394218576958254, + 1.3351316714512602, + 1.5927354985510551, + 0.8643039502278661, + 1.0066776903105028, + 0.8417119057336107, + 0.8499465349219155, + 0.9379137996971791, + 1.06155710262533, + 1.0577599205726012 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.981353692057144, + 2.9416116014811853, + 3.1978591518906905, + 2.8033148259375067, + 2.978134204609236, + 3.3500533488820174, + 3.248905158339224, + 3.01273866422778, + 1.4928379209748757, + 2.0924587099912397, + 1.7548677066584348, + 1.2369197720830687, + 1.524747419944472, + 0.9006708186297612, + 1.1102994045064498, + 0.9265597470579497, + 0.9631736463922361, + 1.0518952278190978, + 1.0687943067750203, + 1.0312919104536666 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.1462477950594425, + 3.197764002772733, + 3.5145079587265986, + 3.0963171168830788, + 3.376910422849725, + 3.8097273751913714, + 3.7128669817900093, + 3.369007918369798, + 1.601815791683029, + 2.2794413850211392, + 1.958799524682474, + 1.4267650342785887, + 1.5981651898152902, + 1.010415534218139, + 1.1526793324075288, + 0.9586410845387935, + 0.9939020368009012, + 1.1163003101618856, + 1.110389294859144, + 1.0823317673509731 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.742356002929944, + 3.383371706835006, + 3.3924240199074394, + 2.8649469601508533, + 2.8585780244852512, + 3.0953476446887365, + 2.9867173626254933, + 2.7205950369429406, + 1.3211525124858672, + 1.9314244774738658, + 1.778438445338661, + 1.2462945730282928, + 1.4966216237493208, + 0.9035245075969893, + 0.9981064040212014, + 0.7704070877183071, + 0.8470461781091146, + 0.9009734489294722, + 0.907101625722732, + 0.8051401540773183 + ], + [ + 2.2973014672443273, + 2.3593836873266576, + 2.472799166107413, + 2.826623250750395, + 2.740993573260234, + 2.614220787093429, + 2.8357127176867145, + 2.8895048272012303, + 3.0698740923791608, + 2.981353692057144, + 3.1462477950594425, + 3.742356002929944, + 3.926896195886476, + 3.378387193141527, + 3.40639052240984, + 2.901356735718054, + 2.8452156256952406, + 3.0510592363605302, + 2.947438147038787, + 2.6499170368364497, + 1.3258955764285345, + 1.893871414298415, + 1.7568690902004291, + 1.2429056819733337, + 1.469791917632966, + 0.9365202592561014, + 1.004637568041793, + 0.7828648605184062, + 0.8330063452812045, + 0.8843537874750571, + 0.9185482308646887, + 0.8080135947050936 + ], + [ + 2.402313465345035, + 2.4969686514309237, + 2.5487305066435324, + 2.829128529870874, + 2.7078545559894063, + 2.6501461085544795, + 2.7175887262467424, + 2.7809944225774386, + 2.9039236660401033, + 2.9416116014811853, + 3.197764002772733, + 3.383371706835006, + 3.378387193141527, + 3.977717511296361, + 3.3957283734533923, + 3.1466679050000828, + 2.990727096977889, + 3.22903601241262, + 3.3032477564880938, + 2.8382784084862847, + 1.444539873757418, + 2.101374619522435, + 1.8370410783297462, + 1.2770064769215446, + 1.5434148937022019, + 0.9240100500797772, + 1.0793408063954195, + 0.8847784953583515, + 0.9438680711395592, + 1.0283057129304165, + 0.9970837608559847, + 0.868986464026517 + ], + [ + 2.7751658007372124, + 2.761282372061731, + 2.862739133796854, + 3.2520301403879524, + 2.808013590210768, + 2.731432821325423, + 2.810749227598172, + 2.8859910412636007, + 2.885517872292078, + 3.1978591518906905, + 3.5145079587265986, + 3.3924240199074394, + 3.40639052240984, + 3.3957283734533923, + 4.892215542768703, + 3.1740534654334596, + 3.321833699142465, + 3.6589134914425383, + 3.63390900227163, + 3.180349577486336, + 1.5989628805855263, + 2.1830519220782056, + 2.144417546208945, + 1.4174847424003068, + 1.5951068262493873, + 1.0244748288118561, + 1.0841754468016427, + 0.974834022828838, + 1.0481723689210447, + 1.098285987385861, + 1.135548717844255, + 1.0941816270646254 + ], + [ + 2.431967012817301, + 2.514009710327687, + 2.459992013000342, + 2.855804693529714, + 2.7302198303918033, + 2.665173718303485, + 2.6396113340815632, + 2.6382373642462347, + 2.7205889657416087, + 2.8033148259375067, + 3.0963171168830788, + 2.8649469601508533, + 2.901356735718054, + 3.1466679050000828, + 3.1740534654334596, + 3.9937463096980435, + 3.2892693731094194, + 3.362995995453261, + 3.2820594914322996, + 2.9379288712078795, + 1.517146685539057, + 2.1505826674201907, + 1.9336302740148246, + 1.3748626102577917, + 1.587569614006051, + 0.9792879160948031, + 1.0461209849114563, + 0.8259884927845619, + 0.8811686570437808, + 0.9785137877000379, + 1.127827705135187, + 1.1299096754924907 + ], + [ + 2.555949570500245, + 2.678313267524417, + 2.6895761883196476, + 3.0138645684949963, + 2.6733525405195957, + 2.529184666025586, + 2.610701692748886, + 2.6344756125377433, + 2.729609472173427, + 2.978134204609236, + 3.376910422849725, + 2.8585780244852512, + 2.8452156256952406, + 2.990727096977889, + 3.321833699142465, + 3.2892693731094194, + 4.163008311074229, + 3.9690584539072478, + 3.6519173618617806, + 3.2242557399783744, + 1.6410061439206283, + 2.2918670182603424, + 2.0878782343313675, + 1.4316718192558455, + 1.6377007628378921, + 0.9904978093895298, + 1.0743450115299802, + 0.8834000312529767, + 0.9322221128868772, + 1.0129472995324105, + 1.2665063037524904, + 1.132887344840433 + ], + [ + 2.9490550065873617, + 3.0385727050761773, + 3.0540897711329347, + 3.41710960611837, + 2.9306109298562504, + 2.747125470323815, + 2.865836600395961, + 2.955985931473798, + 2.9254031628239963, + 3.3500533488820174, + 3.8097273751913714, + 3.0953476446887365, + 3.0510592363605302, + 3.22903601241262, + 3.6589134914425383, + 3.362995995453261, + 3.9690584539072478, + 5.047886961735841, + 4.275349958339594, + 3.7707458819401136, + 1.8294959169854674, + 2.4545366487281703, + 2.2664141218564233, + 1.5745255179962556, + 1.752542746445554, + 1.0800613648428137, + 1.230985966321403, + 0.9507795887895371, + 0.9769855341349886, + 1.1100384736074926, + 1.351214034030075, + 1.3367682085177501 + ], + [ + 2.933062839998181, + 3.146421624678776, + 3.1636333863106842, + 3.308103776833983, + 2.724838391647251, + 2.730871060839862, + 2.7201746726471985, + 2.759363968261283, + 2.8947586207155362, + 3.248905158339224, + 3.7128669817900093, + 2.9867173626254933, + 2.947438147038787, + 3.3032477564880938, + 3.63390900227163, + 3.2820594914322996, + 3.6519173618617806, + 4.275349958339594, + 5.426031556242451, + 4.149988710776244, + 2.080162689795472, + 2.764652358825801, + 2.5397823837630455, + 1.81100182883071, + 1.9611577176484447, + 1.1619509149657, + 1.3315860486791715, + 1.1272128544317608, + 1.060654069484848, + 1.2303075516476945, + 1.2886692408533105, + 1.2709965464820308 + ], + [ + 2.985586109185286, + 3.1126286988238836, + 2.956284068558032, + 2.862256429918106, + 2.4668328844542935, + 2.4255575688637157, + 2.376016027573937, + 2.4185247447673555, + 2.5344803496790393, + 3.01273866422778, + 3.369007918369798, + 2.7205950369429406, + 2.6499170368364497, + 2.8382784084862847, + 3.180349577486336, + 2.9379288712078795, + 3.2242557399783744, + 3.7707458819401136, + 4.149988710776244, + 5.760680057504002, + 2.5433746993647866, + 2.940625393953212, + 2.675974706286473, + 1.7988875255035213, + 2.1125439422500314, + 1.1983649393968143, + 1.4995825238836793, + 1.2963236347184819, + 1.2967534923001087, + 1.4926260852969229, + 1.3754856915417923, + 1.3118021479573374 + ], + [ + 1.393497006924735, + 1.4966492525721014, + 1.427682139973012, + 1.5543731860514867, + 1.382441321958602, + 1.4399598585545985, + 1.3548302877521203, + 1.3498300313754128, + 1.3752413744530156, + 1.4928379209748757, + 1.601815791683029, + 1.3211525124858672, + 1.3258955764285345, + 1.444539873757418, + 1.5989628805855263, + 1.517146685539057, + 1.6410061439206283, + 1.8294959169854674, + 2.080162689795472, + 2.5433746993647866, + 3.2415823320350934, + 2.136247080734255, + 1.7509282992203057, + 1.7605169443473938, + 1.597933569087796, + 0.9771971856262035, + 1.081744762728614, + 0.9839543776707738, + 0.951335897899678, + 1.0498730662286713, + 1.0009268238033238, + 1.0254695008636976 + ], + [ + 1.5549888324033396, + 1.7356666744877467, + 1.666052580315572, + 2.032282844095036, + 1.843551366503246, + 1.7393478905969277, + 1.7813569087158272, + 1.7333495052521455, + 1.8392546121026203, + 2.0924587099912397, + 2.2794413850211392, + 1.9314244774738658, + 1.893871414298415, + 2.101374619522435, + 2.1830519220782056, + 2.1505826674201907, + 2.2918670182603424, + 2.4545366487281703, + 2.764652358825801, + 2.940625393953212, + 2.136247080734255, + 3.7433293114626203, + 2.6522568801224247, + 1.7812082253107901, + 1.7655319712353623, + 0.9934748802586484, + 1.2358469784832062, + 0.9900622855122434, + 1.0029436774472766, + 1.043426011805801, + 1.115318024248577, + 0.9907595105539888 + ], + [ + 1.6172032381708137, + 1.760067430971546, + 1.6172506596558796, + 1.8485855337863513, + 1.691076875650992, + 1.6833521238772298, + 1.7431930238989644, + 1.684202508148144, + 1.7394218576958254, + 1.7548677066584348, + 1.958799524682474, + 1.778438445338661, + 1.7568690902004291, + 1.8370410783297462, + 2.144417546208945, + 1.9336302740148246, + 2.0878782343313675, + 2.2664141218564233, + 2.5397823837630455, + 2.675974706286473, + 1.7509282992203057, + 2.6522568801224247, + 3.929784173912892, + 1.9032373556992475, + 1.79303664362297, + 0.8167595914171575, + 1.126547276720132, + 0.8831167206913367, + 0.8410660045930087, + 0.9127028248523051, + 1.0594927498670856, + 0.9185604690429728 + ], + [ + 1.2895455137771423, + 1.3822790019247668, + 1.3478479434049486, + 1.5356195883615302, + 1.2705448428608754, + 1.3394242790383133, + 1.3193022606522211, + 1.31790487922462, + 1.3351316714512602, + 1.2369197720830687, + 1.4267650342785887, + 1.2462945730282928, + 1.2429056819733337, + 1.2770064769215446, + 1.4174847424003068, + 1.3748626102577917, + 1.4316718192558455, + 1.5745255179962556, + 1.81100182883071, + 1.7988875255035213, + 1.7605169443473938, + 1.7812082253107901, + 1.9032373556992475, + 3.1634133870706007, + 1.7442408529919895, + 1.142280174983554, + 1.123337897272546, + 0.990091530579744, + 0.8748908514181322, + 0.908115314705634, + 1.107390592919758, + 1.1015997433903038 + ], + [ + 1.3305508398944483, + 1.44865621676555, + 1.4524278573457412, + 1.5954369023407893, + 1.4552881932284591, + 1.4772322241979203, + 1.4935638799943822, + 1.5481601596292842, + 1.5927354985510551, + 1.524747419944472, + 1.5981651898152902, + 1.4966216237493208, + 1.469791917632966, + 1.5434148937022019, + 1.5951068262493873, + 1.587569614006051, + 1.6377007628378921, + 1.752542746445554, + 1.9611577176484447, + 2.1125439422500314, + 1.597933569087796, + 1.7655319712353623, + 1.79303664362297, + 1.7442408529919895, + 4.095072905352145, + 1.6993387694896525, + 1.5891175184671247, + 1.474397437057268, + 1.3310095646121312, + 1.3414743923513788, + 1.7182292618138892, + 1.4635013370395875 + ], + [ + 0.809612793475257, + 0.8706680369307369, + 0.8472268087342227, + 1.1125602833908146, + 0.9296751122667901, + 1.0018227306191279, + 0.8907893733515545, + 0.8667593274210247, + 0.8643039502278661, + 0.9006708186297612, + 1.010415534218139, + 0.9035245075969893, + 0.9365202592561014, + 0.9240100500797772, + 1.0244748288118561, + 0.9792879160948031, + 0.9904978093895298, + 1.0800613648428137, + 1.1619509149657, + 1.1983649393968143, + 0.9771971856262035, + 0.9934748802586484, + 0.8167595914171575, + 1.142280174983554, + 1.6993387694896525, + 3.366825461799139, + 1.3991243730423708, + 1.2097247492612313, + 1.0003841276177026, + 1.1110568418443512, + 1.338417660190867, + 1.17022008082777 + ], + [ + 0.96576077948826, + 1.087681668858802, + 1.0915963974461942, + 1.0939111250358495, + 0.9863193465434471, + 1.0514234553417974, + 0.9541463292028871, + 0.9706611467753349, + 1.0066776903105028, + 1.1102994045064498, + 1.1526793324075288, + 0.9981064040212014, + 1.004637568041793, + 1.0793408063954195, + 1.0841754468016427, + 1.0461209849114563, + 1.0743450115299802, + 1.230985966321403, + 1.3315860486791715, + 1.4995825238836793, + 1.081744762728614, + 1.2358469784832062, + 1.126547276720132, + 1.123337897272546, + 1.5891175184671247, + 1.3991243730423708, + 2.879460227813676, + 1.9757119382044999, + 1.6111652175439402, + 1.5326104886531977, + 1.319866031177833, + 1.141507322989192 + ], + [ + 0.9678482963357555, + 1.016765063089871, + 1.0233891066594845, + 0.9625166787034021, + 0.7896427441625843, + 0.898569320285732, + 0.8076943037291087, + 0.8327209980937196, + 0.8417119057336107, + 0.9265597470579497, + 0.9586410845387935, + 0.7704070877183071, + 0.7828648605184062, + 0.8847784953583515, + 0.974834022828838, + 0.8259884927845619, + 0.8834000312529767, + 0.9507795887895371, + 1.1272128544317608, + 1.2963236347184819, + 0.9839543776707738, + 0.9900622855122434, + 0.8831167206913367, + 0.990091530579744, + 1.474397437057268, + 1.2097247492612313, + 1.9757119382044999, + 2.7779162408224236, + 2.1035654385907288, + 1.9039810372217418, + 1.5922120206718369, + 1.3697557328928607 + ], + [ + 1.076437300927, + 1.168092624762163, + 1.1170455724981618, + 1.1018882409886093, + 0.870606594507396, + 0.9275928769055607, + 0.8314839027100833, + 0.8290287059936796, + 0.8499465349219155, + 0.9631736463922361, + 0.9939020368009012, + 0.8470461781091146, + 0.8330063452812045, + 0.9438680711395592, + 1.0481723689210447, + 0.8811686570437808, + 0.9322221128868772, + 0.9769855341349886, + 1.060654069484848, + 1.2967534923001087, + 0.951335897899678, + 1.0029436774472766, + 0.8410660045930087, + 0.8748908514181322, + 1.3310095646121312, + 1.0003841276177026, + 1.6111652175439402, + 2.1035654385907288, + 2.8825074365192322, + 2.3249462560764216, + 1.8677781215246263, + 1.5449633983228568 + ], + [ + 1.1106831656359657, + 1.240202514748782, + 1.189972476000872, + 1.221910865722635, + 1.0034121877274516, + 1.0328114187502706, + 0.9526857565002524, + 0.962538409183641, + 0.9379137996971791, + 1.0518952278190978, + 1.1163003101618856, + 0.9009734489294722, + 0.8843537874750571, + 1.0283057129304165, + 1.098285987385861, + 0.9785137877000379, + 1.0129472995324105, + 1.1100384736074926, + 1.2303075516476945, + 1.4926260852969229, + 1.0498730662286713, + 1.043426011805801, + 0.9127028248523051, + 0.908115314705634, + 1.3414743923513788, + 1.1110568418443512, + 1.5326104886531977, + 1.9039810372217418, + 2.3249462560764216, + 3.07466532933071, + 2.0437135782636835, + 1.8100946203763444 + ], + [ + 1.2818385237479304, + 1.2512539741859132, + 1.204138405946318, + 1.2988461323624159, + 1.1606232700187604, + 1.2249622386495047, + 1.0656383876649953, + 1.0024617353618726, + 1.06155710262533, + 1.0687943067750203, + 1.110389294859144, + 0.907101625722732, + 0.9185482308646887, + 0.9970837608559847, + 1.135548717844255, + 1.127827705135187, + 1.2665063037524904, + 1.351214034030075, + 1.2886692408533105, + 1.3754856915417923, + 1.0009268238033238, + 1.115318024248577, + 1.0594927498670856, + 1.107390592919758, + 1.7182292618138892, + 1.338417660190867, + 1.319866031177833, + 1.5922120206718369, + 1.8677781215246263, + 2.0437135782636835, + 5.299513926176732, + 3.090275892253667 + ], + [ + 1.367331307834341, + 1.5289417353969423, + 1.4489879568487152, + 1.3737590918672091, + 1.1671181849656456, + 1.249906287774621, + 1.043281432100314, + 1.0392645329380419, + 1.0577599205726012, + 1.0312919104536666, + 1.0823317673509731, + 0.8051401540773183, + 0.8080135947050936, + 0.868986464026517, + 1.0941816270646254, + 1.1299096754924907, + 1.132887344840433, + 1.3367682085177501, + 1.2709965464820308, + 1.3118021479573374, + 1.0254695008636976, + 0.9907595105539888, + 0.9185604690429728, + 1.1015997433903038, + 1.4635013370395875, + 1.17022008082777, + 1.141507322989192, + 1.3697557328928607, + 1.5449633983228568, + 1.8100946203763444, + 3.090275892253667, + 5.518869361273439 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3934658606024219, + -0.39259187412147983, + -0.3377555977647751, + -0.37632650044476507, + -0.37895259447481705, + -0.33392298685326866, + -0.3322073896733531, + -0.3115842881436845, + -0.42857010958813097, + -0.40717918768662403, + -0.3753846787143737, + -0.41459418954074917, + -0.36942472289547384, + -0.41046340496550865, + -0.4555393320829025, + -0.4710645819454757, + -0.45749422779620924, + -0.43821164092214854, + -0.3244608195565201, + -0.3303627830225326 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6210185221513229, + "transport_matrix_sha256": "5f4b2d203b216049aa97250ed4151e66943ff55080663d2235aab5fd1f7da3b7", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.142368912696839e-05, + "gram_mean_diagonal": 0.061423689126968384, + "calibration_nmse": 0.02465241517369944, + "calibration_cosine": 0.9875973430746754, + "calibration_norm_ratio": 0.9866344194757573, + "transport_relative_identity_distance": 0.24454472959041595, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "93af1649dbcf27dcc906cff079a1448af3e0b78dc0ae7fcd0038e95d05f79fdc", + "self_attn.k_proj.weight": "919f1a2454b2957fa1f611232b1c0aaccdab718aed512b435923cf972cd52015", + "self_attn.v_proj.weight": "2a660e851663561147921fae640f303f3f599da61afc8d68545fed320cc9b63d", + "self_attn.o_proj.weight": "bfb11d528abdacfc054070ed7a55f90ddde74fb17704bc742ceffa065adcc717", + "self_attn.q_norm.weight": "a4538fa22891825dbfbac330127ff29569ac04b5ab0ee89e60db7e7bc64f26a3", + "self_attn.k_norm.weight": "f26654e4f51003513e7ff0cd2f23e99387481dc5c639b01444903ec9632ae685", + "mlp.gate_proj.weight": "1ec134d886ea6246b31de9cb6cbb4c451fddfb333fca1e90375f8659eb27d81c", + "mlp.up_proj.weight": "b7549bcdd3b5089f09aebb1847587e2049463294f52f4335b88b7e64888edd45", + "mlp.down_proj.weight": "2b6fe52a74f5b15de22764a2c9b51acdfc75070dac110580366d2dcd9d207e0f", + "input_layernorm.weight": "70025e492885453112e0108ebf4311dfd994db35383e90da14292277834fb949", + "post_attention_layernorm.weight": "41357e377104509608d219bc3f4d8a51dde14749a9a6e6b592f6d4f4594faa85" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "93af1649dbcf27dcc906cff079a1448af3e0b78dc0ae7fcd0038e95d05f79fdc", + "self_attn.k_proj.weight": "919f1a2454b2957fa1f611232b1c0aaccdab718aed512b435923cf972cd52015", + "self_attn.v_proj.weight": "2a660e851663561147921fae640f303f3f599da61afc8d68545fed320cc9b63d", + "self_attn.o_proj.weight": "bfb11d528abdacfc054070ed7a55f90ddde74fb17704bc742ceffa065adcc717", + "self_attn.q_norm.weight": "a4538fa22891825dbfbac330127ff29569ac04b5ab0ee89e60db7e7bc64f26a3", + "self_attn.k_norm.weight": "f26654e4f51003513e7ff0cd2f23e99387481dc5c639b01444903ec9632ae685", + "mlp.gate_proj.weight": "0328abc908aeeb430c28f7ba29d16795dbb63b5ea0edd7154a0122eda63c1bdc", + "mlp.up_proj.weight": "6e0aa5ee42d201a8ba2113bbccdd85e38104b4373d3ce0b76c361993bdc40cf4", + "mlp.down_proj.weight": "2b6fe52a74f5b15de22764a2c9b51acdfc75070dac110580366d2dcd9d207e0f", + "input_layernorm.weight": "70025e492885453112e0108ebf4311dfd994db35383e90da14292277834fb949", + "post_attention_layernorm.weight": "41357e377104509608d219bc3f4d8a51dde14749a9a6e6b592f6d4f4594faa85" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6210185221513229, + "lambda_right": 0.3789814778486771, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "b435c15455b9acea20e4c29c945a6c82e17f681d8d7e66ad87acb8fac7170d83", + "mlp.up_proj.weight": "fbf0e81a87ba5cc794a443b499a5b146e8852438e93e6d63e089d797b3cbcea1", + "mlp.gate_proj.weight": "4fa198abc19c57731465efea76911d71ffa46ff751d5fe8a60b44c576e10f6e7", + "self_attn.k_proj.weight": "032c027fe01cb5fab5f4c1e3dc67e7cf0df68ec9aaa6d17ec2e475e82d3c1e55", + "self_attn.o_proj.weight": "9f0e48310cf38889f4ed316f139295db2cf5e538bf7e55485aad5e71e23ecd5e", + "self_attn.q_proj.weight": "3bc8c412dc5060b6e560e3239eeae87e063ebc8dab8004e85753243c608887e1", + "self_attn.v_proj.weight": "60ce6d426d898b9dfafeb8708e5cd7ab0ab1ed9ecb72406ed7ced29ddf241f92" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "93af1649dbcf27dcc906cff079a1448af3e0b78dc0ae7fcd0038e95d05f79fdc", + "self_attn.k_proj.weight": "919f1a2454b2957fa1f611232b1c0aaccdab718aed512b435923cf972cd52015", + "self_attn.v_proj.weight": "2a660e851663561147921fae640f303f3f599da61afc8d68545fed320cc9b63d", + "self_attn.o_proj.weight": "bfb11d528abdacfc054070ed7a55f90ddde74fb17704bc742ceffa065adcc717", + "self_attn.q_norm.weight": "a4538fa22891825dbfbac330127ff29569ac04b5ab0ee89e60db7e7bc64f26a3", + "self_attn.k_norm.weight": "f26654e4f51003513e7ff0cd2f23e99387481dc5c639b01444903ec9632ae685", + "mlp.gate_proj.weight": "0328abc908aeeb430c28f7ba29d16795dbb63b5ea0edd7154a0122eda63c1bdc", + "mlp.up_proj.weight": "6e0aa5ee42d201a8ba2113bbccdd85e38104b4373d3ce0b76c361993bdc40cf4", + "mlp.down_proj.weight": "2b6fe52a74f5b15de22764a2c9b51acdfc75070dac110580366d2dcd9d207e0f", + "input_layernorm.weight": "70025e492885453112e0108ebf4311dfd994db35383e90da14292277834fb949", + "post_attention_layernorm.weight": "41357e377104509608d219bc3f4d8a51dde14749a9a6e6b592f6d4f4594faa85" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "931265955af0a49db53c4639efbe90c02dce31656aa286a6cbbff86f0817e9c3", + "mlp.up_proj.weight": "a12a9422c9b7455a35fcae6e844f09123ea97d36cafb4e6db0a46f85566ef405", + "mlp.gate_proj.weight": "50273255d4e8070a1066dba24766196dba00f749cea470ff7d6bb9c8dc474c80", + "self_attn.k_proj.weight": "347fe193ed6ff1bac4c56d1a78af82943c3421f0f2f2abbcc90ac73f69d8aa8a", + "self_attn.o_proj.weight": "30adb37b1d10ef9bf2d40b0fad32c78c6e3366a3d6f91dd0aaa851ad36da2eef", + "self_attn.q_proj.weight": "ee22fb615d5ac51abd3c7cdd7fe4d35bcaa72469754363c924c38201ad763076", + "self_attn.v_proj.weight": "498b70698c015bd3df265cfffcc73fc3101a9f2ff48dee8a01d837ccdfc9674d" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_05_transport.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_05_transport.pt new file mode 100644 index 0000000000000000000000000000000000000000..55e567804c3aebf202956a9f7aaa5003e5d7cd31 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_05_transport.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f18282e903e297b5372d648c4eb73e7fc720dd7d4edc75f5b8dd859263361b37 +size 67110518 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_06_merge.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_06_merge.json new file mode 100644 index 0000000000000000000000000000000000000000..40ce410b71c00406ce7584a6a14ca34df3cb4969 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_06_merge.json @@ -0,0 +1,1188 @@ +{ + "cycle": 6, + "anchor": 12, + "removed_original_layer": 18, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.3278695372662797, + 2.412594067531639, + 2.178654644799034, + 2.2279402200443994, + 2.6401199303050675, + 2.725841466616703, + 2.7640730185852886, + 1.6716528532148598, + 1.7635099098022406, + 1.4086998893921017, + 1.477408277179992, + 0.9328266860150757, + 0.8507456755218248, + 0.9911293031073009, + 0.9290066973250799, + 0.9219584478601873, + 0.9438822003514675, + 1.4488316860802468, + 1.3904728032063813 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3947148090480765, + 2.5264878500941985, + 2.235815423269575, + 2.2848048886302554, + 2.70376198961464, + 2.7712909184035426, + 2.883846132185663, + 1.6878554089490294, + 1.901581097032974, + 1.5837229566716142, + 1.5665696499719233, + 0.960800802689899, + 0.9444828705677419, + 1.1641070293422944, + 1.0332124200817485, + 1.0454848008393454, + 1.0583577594561875, + 1.4472232707912611, + 1.523027030070537 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.4498911997606476, + 2.5859863056347585, + 2.244892531501051, + 2.289544512465232, + 2.7759845807017154, + 2.74957996626213, + 2.832445558941616, + 1.5760264193526106, + 1.7959004190903176, + 1.5031707933511986, + 1.5061694464044502, + 0.96682440816284, + 0.8504221807191988, + 1.15834611780117, + 0.9784430088533902, + 0.9884607941125881, + 1.0187399208466674, + 1.3329884026749963, + 1.2589748854089644 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8534025393630973, + 2.943226560390688, + 2.4414469288196443, + 2.461556128997419, + 3.0192338810434816, + 2.993183617618689, + 2.790780655600522, + 1.8232415508469078, + 2.2570736032213587, + 1.8878365161484372, + 1.5972833557615747, + 1.1039601794856724, + 1.1323323483478356, + 1.1301529553068477, + 1.0091837298753048, + 0.9523078121656469, + 1.0591696992981134, + 1.3661146773612052, + 1.351357274740947 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7900249601003413, + 2.719318269486715, + 2.124692068684987, + 2.4546173100296613, + 2.624650175269048, + 2.468247062545179, + 2.411410068388747, + 1.6738481733674302, + 2.0751380675044286, + 1.7313570443922968, + 1.569555321186868, + 1.0365148266795334, + 1.0533543857746497, + 0.9837583957200597, + 0.8432204879462575, + 0.7907125877514589, + 0.8482134823496299, + 1.2515500929105505, + 1.1966144600397615 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.6217295939397656, + 2.535853362351341, + 2.2901797734712157, + 2.32922864111831, + 2.426842498050469, + 2.461473508166703, + 2.332522642032023, + 1.8121784341371077, + 2.202665649321342, + 1.8134171406932, + 1.7099267813362402, + 1.3033376572734114, + 1.1441953215323046, + 1.0906179413993544, + 0.9418925405498434, + 0.8387228222835885, + 0.9171114540161461, + 1.346526005088597, + 1.356316051168337 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8619175760949243, + 2.697713873096314, + 2.134424513386433, + 2.4132862073068835, + 2.675664907822656, + 2.5196694643989055, + 2.4057444179435246, + 1.6992210188822332, + 2.081707496456699, + 1.799796582283025, + 1.7347855216250665, + 1.0654016664805235, + 0.9767957096174948, + 0.9305594930047602, + 0.8063760794780072, + 0.756161813904911, + 0.8459840258279926, + 1.2523018338129166, + 1.0482358572038428 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8807793962233808, + 2.7964916343581105, + 2.0950876861345806, + 2.4505877040429698, + 2.8277056389441837, + 2.563043523074367, + 2.4229833029153673, + 1.6250841117635486, + 2.020417304075875, + 1.7451642297785872, + 1.712876214369122, + 0.9792730959532795, + 0.9212871117747935, + 0.9841897453496665, + 0.8406634924167978, + 0.7954954044054243, + 0.8803641617473075, + 1.2166300923757931, + 1.0054481727095188 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0126451613537175, + 2.7208393914961673, + 2.1731292807425255, + 2.5417710063738754, + 2.7650430883558323, + 2.6192830250174537, + 2.426047740895965, + 1.6859062776503346, + 2.0981617334313216, + 1.7302309792696027, + 1.7220406280370137, + 1.042278246013682, + 0.9121864227441605, + 1.0038805070227452, + 0.8166968034332579, + 0.7481499062612393, + 0.8469633197704839, + 1.2345821271587656, + 0.9781786102151615 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9486560965142994, + 3.0176180191820117, + 2.2760064494349126, + 2.405311940302755, + 3.0221835964096675, + 3.0294418571597355, + 2.8591780481502034, + 1.823934595272818, + 2.0436272046589483, + 1.625945426433735, + 1.621132418283413, + 0.9278070849376074, + 0.9521865027566202, + 1.0918130617079855, + 0.9393687892945974, + 0.9245437266443934, + 0.9707073616769933, + 1.1305747787258014, + 0.994255875725664 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.126174859286365, + 3.181616502612121, + 2.5385355805316077, + 2.616826674666754, + 3.4215095140851575, + 3.524640873548172, + 3.355936033117902, + 1.9753314273929534, + 2.271644716681084, + 1.7125666564375046, + 1.702745316105221, + 0.9639932322148094, + 1.0699003344859797, + 1.1190466182405365, + 0.8997226027339599, + 0.8065204967036288, + 0.836329407805829, + 1.1365174892851748, + 0.9704065678089673 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.5601730488704098, + 3.18111812562463, + 2.219899066073203, + 2.625293135617808, + 2.67275413450134, + 2.7335886671671537, + 2.5764465342738414, + 1.7587510155997517, + 2.1018641165985055, + 1.6492769194315011, + 1.6714062038152662, + 1.0344853511120067, + 1.0315320711639988, + 1.0329821952120402, + 0.8372046375477995, + 0.7566421529762217, + 0.7361562719282517, + 1.0741978372858239, + 0.7535689613518621 + ], + [ + 2.3278695372662797, + 2.3947148090480765, + 2.4498911997606476, + 2.8534025393630973, + 2.7900249601003413, + 2.6217295939397656, + 2.8619175760949243, + 2.8807793962233808, + 3.0126451613537175, + 2.9486560965142994, + 3.126174859286365, + 3.5601730488704098, + 3.9102473983879578, + 3.3338660242895957, + 2.251831527629599, + 2.608193472911632, + 2.6848247034422346, + 2.7335593850866964, + 2.545107270396881, + 1.7359250240194444, + 2.169014151429469, + 1.6858594534321472, + 1.7042281349937507, + 1.0516198814265456, + 1.0414375473821944, + 0.9963861497413141, + 0.83346275641943, + 0.7429845932746778, + 0.7118542258672332, + 1.08522448311072, + 0.8351830287505464 + ], + [ + 2.412594067531639, + 2.5264878500941985, + 2.5859863056347585, + 2.943226560390688, + 2.719318269486715, + 2.535853362351341, + 2.697713873096314, + 2.7964916343581105, + 2.7208393914961673, + 3.0176180191820117, + 3.181616502612121, + 3.18111812562463, + 3.3338660242895957, + 4.066702992959844, + 2.2814802695296112, + 2.571621595772587, + 2.8252255370448354, + 2.8552248894807177, + 2.7343143190047936, + 1.780390818608993, + 2.214061118500761, + 1.795900453932971, + 1.8038479801512204, + 0.998433006922895, + 1.1271231786359497, + 1.1335242080562071, + 0.8970451822403432, + 0.8277082460350063, + 0.8174174055705404, + 1.0790302676507486, + 0.9106720078062971 + ], + [ + 2.178654644799034, + 2.235815423269575, + 2.244892531501051, + 2.4414469288196443, + 2.124692068684987, + 2.2901797734712157, + 2.134424513386433, + 2.0950876861345806, + 2.1731292807425255, + 2.2760064494349126, + 2.5385355805316077, + 2.219899066073203, + 2.251831527629599, + 2.2814802695296112, + 3.636545595119301, + 2.380370213512099, + 2.42766177098348, + 2.5323640830099063, + 2.4077863442397764, + 2.063756967509895, + 2.1797555185573483, + 1.6952809660081152, + 1.5515690342180866, + 1.0967582526744648, + 1.0106204650562, + 1.2337152368063558, + 1.0672215149307638, + 1.0998048139146657, + 1.0931238830142, + 1.3713813119446934, + 1.3991126064719077 + ], + [ + 2.2279402200443994, + 2.2848048886302554, + 2.289544512465232, + 2.461556128997419, + 2.4546173100296613, + 2.32922864111831, + 2.4132862073068835, + 2.4505877040429698, + 2.5417710063738754, + 2.405311940302755, + 2.616826674666754, + 2.625293135617808, + 2.608193472911632, + 2.571621595772587, + 2.380370213512099, + 3.6333770089527047, + 2.8333389250961014, + 2.706014634677106, + 2.6285583314284073, + 1.848052125282191, + 2.1339332507262956, + 1.7025142589077553, + 1.5979512046558593, + 1.1102281783351873, + 1.0630320405147327, + 1.1464618927808734, + 0.8848605570602981, + 0.8265661852954894, + 0.8843852054473551, + 1.2220743309190305, + 1.1431348202256963 + ], + [ + 2.6401199303050675, + 2.70376198961464, + 2.7759845807017154, + 3.0192338810434816, + 2.624650175269048, + 2.426842498050469, + 2.675664907822656, + 2.8277056389441837, + 2.7650430883558323, + 3.0221835964096675, + 3.4215095140851575, + 2.67275413450134, + 2.6848247034422346, + 2.8252255370448354, + 2.42766177098348, + 2.8333389250961014, + 4.148936820568242, + 3.568665661116569, + 3.3611186193204516, + 2.133034308289555, + 2.396968619333977, + 1.8731894407175904, + 1.7138163880774806, + 1.0933772747398869, + 1.0898392378204789, + 1.1350615166761873, + 0.9001693223770512, + 0.9416643702457774, + 0.9973049727824443, + 1.3421174641742952, + 1.129224847138255 + ], + [ + 2.725841466616703, + 2.7712909184035426, + 2.74957996626213, + 2.993183617618689, + 2.468247062545179, + 2.461473508166703, + 2.5196694643989055, + 2.563043523074367, + 2.6192830250174537, + 3.0294418571597355, + 3.524640873548172, + 2.7335886671671537, + 2.7335593850866964, + 2.8552248894807177, + 2.5323640830099063, + 2.706014634677106, + 3.568665661116569, + 4.604030281478637, + 3.819399446977045, + 2.283500471488039, + 2.5778816998401184, + 1.931159493520156, + 1.716040278709003, + 1.1985736993142555, + 1.1204134881078036, + 1.159403894137641, + 1.003058345126093, + 0.9414476710890552, + 0.9220678107520991, + 1.1880603647125003, + 1.1670704840814958 + ], + [ + 2.7640730185852886, + 2.883846132185663, + 2.832445558941616, + 2.790780655600522, + 2.411410068388747, + 2.332522642032023, + 2.4057444179435246, + 2.4229833029153673, + 2.426047740895965, + 2.8591780481502034, + 3.355936033117902, + 2.5764465342738414, + 2.545107270396881, + 2.7343143190047936, + 2.4077863442397764, + 2.6285583314284073, + 3.3611186193204516, + 3.819399446977045, + 4.815778289867421, + 2.3257000594040673, + 2.5034430351832624, + 2.0956483281348737, + 1.8769352875946392, + 1.0366246476848082, + 1.0600824101446409, + 1.2534184741893808, + 1.0702186264849458, + 1.1028847716758192, + 1.1373958657940275, + 1.2748962188144428, + 1.220588367238796 + ], + [ + 1.6716528532148598, + 1.6878554089490294, + 1.5760264193526106, + 1.8232415508469078, + 1.6738481733674302, + 1.8121784341371077, + 1.6992210188822332, + 1.6250841117635486, + 1.6859062776503346, + 1.823934595272818, + 1.9753314273929534, + 1.7587510155997517, + 1.7359250240194444, + 1.780390818608993, + 2.063756967509895, + 1.848052125282191, + 2.133034308289555, + 2.283500471488039, + 2.3257000594040673, + 3.511974869626656, + 2.450139574087916, + 1.7926717204015636, + 1.6630772881917042, + 1.1192716053048892, + 0.9824301970643626, + 1.3126858725776838, + 1.18741770967854, + 1.1696345022141212, + 1.1591946677183165, + 1.2308211284331536, + 1.278332031098522 + ], + [ + 1.7635099098022406, + 1.901581097032974, + 1.7959004190903176, + 2.2570736032213587, + 2.0751380675044286, + 2.202665649321342, + 2.081707496456699, + 2.020417304075875, + 2.0981617334313216, + 2.0436272046589483, + 2.271644716681084, + 2.1018641165985055, + 2.169014151429469, + 2.214061118500761, + 2.1797555185573483, + 2.1339332507262956, + 2.396968619333977, + 2.5778816998401184, + 2.5034430351832624, + 2.450139574087916, + 4.1242668127768045, + 2.6880313655643873, + 1.972117870039026, + 1.2701103750194387, + 1.1252107319814078, + 1.3030819978611685, + 1.1706611507788, + 1.075062040174633, + 1.079827290185216, + 1.3217173487802882, + 1.8093329402105287 + ], + [ + 1.4086998893921017, + 1.5837229566716142, + 1.5031707933511986, + 1.8878365161484372, + 1.7313570443922968, + 1.8134171406932, + 1.799796582283025, + 1.7451642297785872, + 1.7302309792696027, + 1.625945426433735, + 1.7125666564375046, + 1.6492769194315011, + 1.6858594534321472, + 1.795900453932971, + 1.6952809660081152, + 1.7025142589077553, + 1.8731894407175904, + 1.931159493520156, + 2.0956483281348737, + 1.7926717204015636, + 2.6880313655643873, + 3.880027837850573, + 1.8709064710964205, + 1.0825926165766335, + 0.9942986201867106, + 1.174499728176335, + 1.0390798312467808, + 1.0422951870024684, + 1.0173317181540764, + 1.3915615975931317, + 1.42945594766063 + ], + [ + 1.477408277179992, + 1.5665696499719233, + 1.5061694464044502, + 1.5972833557615747, + 1.569555321186868, + 1.7099267813362402, + 1.7347855216250665, + 1.712876214369122, + 1.7220406280370137, + 1.621132418283413, + 1.702745316105221, + 1.6714062038152662, + 1.7042281349937507, + 1.8038479801512204, + 1.5515690342180866, + 1.5979512046558593, + 1.7138163880774806, + 1.716040278709003, + 1.8769352875946392, + 1.6630772881917042, + 1.972117870039026, + 1.8709064710964205, + 3.7743066350911803, + 1.0724458294785477, + 0.9559066574930217, + 1.2092865001808728, + 1.106953432644458, + 1.0086037451725165, + 0.9870169161097767, + 0.9898000542295682, + 0.8664630314954903 + ], + [ + 0.9328266860150757, + 0.960800802689899, + 0.96682440816284, + 1.1039601794856724, + 1.0365148266795334, + 1.3033376572734114, + 1.0654016664805235, + 0.9792730959532795, + 1.042278246013682, + 0.9278070849376074, + 0.9639932322148094, + 1.0344853511120067, + 1.0516198814265456, + 0.998433006922895, + 1.0967582526744648, + 1.1102281783351873, + 1.0933772747398869, + 1.1985736993142555, + 1.0366246476848082, + 1.1192716053048892, + 1.2701103750194387, + 1.0825926165766335, + 1.0724458294785477, + 3.215958402897243, + 1.6731245094763563, + 1.1256898409959875, + 0.986378878624688, + 0.7634087900614543, + 0.7551605911340397, + 0.7697139642040289, + 0.8141969232305275 + ], + [ + 0.8507456755218248, + 0.9444828705677419, + 0.8504221807191988, + 1.1323323483478356, + 1.0533543857746497, + 1.1441953215323046, + 0.9767957096174948, + 0.9212871117747935, + 0.9121864227441605, + 0.9521865027566202, + 1.0699003344859797, + 1.0315320711639988, + 1.0414375473821944, + 1.1271231786359497, + 1.0106204650562, + 1.0630320405147327, + 1.0898392378204789, + 1.1204134881078036, + 1.0600824101446409, + 0.9824301970643626, + 1.1252107319814078, + 0.9942986201867106, + 0.9559066574930217, + 1.6731245094763563, + 3.1874624022808065, + 1.1890966789162452, + 0.9866186902346132, + 0.7057762737826563, + 0.8198788088923837, + 1.0533012487559361, + 1.0803994617619865 + ], + [ + 0.9911293031073009, + 1.1641070293422944, + 1.15834611780117, + 1.1301529553068477, + 0.9837583957200597, + 1.0906179413993544, + 0.9305594930047602, + 0.9841897453496665, + 1.0038805070227452, + 1.0918130617079855, + 1.1190466182405365, + 1.0329821952120402, + 0.9963861497413141, + 1.1335242080562071, + 1.2337152368063558, + 1.1464618927808734, + 1.1350615166761873, + 1.159403894137641, + 1.2534184741893808, + 1.3126858725776838, + 1.3030819978611685, + 1.174499728176335, + 1.2092865001808728, + 1.1256898409959875, + 1.1890966789162452, + 3.029293408640695, + 2.082369997721176, + 1.7147142215939126, + 1.6842343718438173, + 1.207531090793095, + 1.3897666078573305 + ], + [ + 0.9290066973250799, + 1.0332124200817485, + 0.9784430088533902, + 1.0091837298753048, + 0.8432204879462575, + 0.9418925405498434, + 0.8063760794780072, + 0.8406634924167978, + 0.8166968034332579, + 0.9393687892945974, + 0.8997226027339599, + 0.8372046375477995, + 0.83346275641943, + 0.8970451822403432, + 1.0672215149307638, + 0.8848605570602981, + 0.9001693223770512, + 1.003058345126093, + 1.0702186264849458, + 1.18741770967854, + 1.1706611507788, + 1.0390798312467808, + 1.106953432644458, + 0.986378878624688, + 0.9866186902346132, + 2.082369997721176, + 2.9762829951754624, + 2.156028303378821, + 1.9874604547433694, + 1.6245166764468153, + 1.444080071876557 + ], + [ + 0.9219584478601873, + 1.0454848008393454, + 0.9884607941125881, + 0.9523078121656469, + 0.7907125877514589, + 0.8387228222835885, + 0.756161813904911, + 0.7954954044054243, + 0.7481499062612393, + 0.9245437266443934, + 0.8065204967036288, + 0.7566421529762217, + 0.7429845932746778, + 0.8277082460350063, + 1.0998048139146657, + 0.8265661852954894, + 0.9416643702457774, + 0.9414476710890552, + 1.1028847716758192, + 1.1696345022141212, + 1.075062040174633, + 1.0422951870024684, + 1.0086037451725165, + 0.7634087900614543, + 0.7057762737826563, + 1.7147142215939126, + 2.156028303378821, + 2.979782129953852, + 2.484336328271396, + 1.7612041104958036, + 1.5272647406913584 + ], + [ + 0.9438822003514675, + 1.0583577594561875, + 1.0187399208466674, + 1.0591696992981134, + 0.8482134823496299, + 0.9171114540161461, + 0.8459840258279926, + 0.8803641617473075, + 0.8469633197704839, + 0.9707073616769933, + 0.836329407805829, + 0.7361562719282517, + 0.7118542258672332, + 0.8174174055705404, + 1.0931238830142, + 0.8843852054473551, + 0.9973049727824443, + 0.9220678107520991, + 1.1373958657940275, + 1.1591946677183165, + 1.079827290185216, + 1.0173317181540764, + 0.9870169161097767, + 0.7551605911340397, + 0.8198788088923837, + 1.6842343718438173, + 1.9874604547433694, + 2.484336328271396, + 3.2451726319279555, + 1.92688273234345, + 1.7268469042559054 + ], + [ + 1.4488316860802468, + 1.4472232707912611, + 1.3329884026749963, + 1.3661146773612052, + 1.2515500929105505, + 1.346526005088597, + 1.2523018338129166, + 1.2166300923757931, + 1.2345821271587656, + 1.1305747787258014, + 1.1365174892851748, + 1.0741978372858239, + 1.08522448311072, + 1.0790302676507486, + 1.3713813119446934, + 1.2220743309190305, + 1.3421174641742952, + 1.1880603647125003, + 1.2748962188144428, + 1.2308211284331536, + 1.3217173487802882, + 1.3915615975931317, + 0.9898000542295682, + 0.7697139642040289, + 1.0533012487559361, + 1.207531090793095, + 1.6245166764468153, + 1.7612041104958036, + 1.92688273234345, + 4.118550545461159, + 2.534750078997116 + ], + [ + 1.3904728032063813, + 1.523027030070537, + 1.2589748854089644, + 1.351357274740947, + 1.1966144600397615, + 1.356316051168337, + 1.0482358572038428, + 1.0054481727095188, + 0.9781786102151615, + 0.994255875725664, + 0.9704065678089673, + 0.7535689613518621, + 0.8351830287505464, + 0.9106720078062971, + 1.3991126064719077, + 1.1431348202256963, + 1.129224847138255, + 1.1670704840814958, + 1.220588367238796, + 1.278332031098522, + 1.8093329402105287, + 1.42945594766063, + 0.8664630314954903, + 0.8141969232305275, + 1.0803994617619865, + 1.3897666078573305, + 1.444080071876557, + 1.5272647406913584, + 1.7268469042559054, + 2.534750078997116, + 6.652567633480407 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3978205190736734, + -0.38841201755494065, + -0.41543926245449386, + -0.4174321627046042, + -0.3861626614464441, + -0.36754449667405936, + -0.35268198168350934, + -0.39546964792403, + -0.36855061401477046, + -0.36670771395923113, + -0.42626960767172223, + -0.40221489815317707, + -0.39432480389768837, + -0.4274842720454585, + -0.44040559712951705, + -0.44743016215938763, + -0.41919594288893797, + -0.35586032703161335, + -0.30153807610997035 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6217058706168793, + "transport_matrix_sha256": "e62fc35a452db66e796080302f8b40711233bc6f3103ea4d091b1b85a2c00bf3", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.122951209545135e-05, + "gram_mean_diagonal": 0.061229512095451355, + "calibration_nmse": 0.023367684345013368, + "calibration_cosine": 0.9882475615974408, + "calibration_norm_ratio": 0.9872845723445823, + "transport_relative_identity_distance": 0.27332234382629395, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "3d50a07d21693613e0d831209868828215164c78606ad76bb5339d0093e2b167", + "self_attn.k_proj.weight": "055922b3d6d8ae628f8a4761be8273b2b35bd979a899e599e03a4aebc9b31b15", + "self_attn.v_proj.weight": "35d50fc9ef07106a763c826a6bed55f5f8de393edeac002703ab161116d8dead", + "self_attn.o_proj.weight": "a211c679b699b735e0587b7e0bab5610d182a4c54868438be766544a8f36b4eb", + "self_attn.q_norm.weight": "41ed057917753085abc49146d705c39743047800a2ac65dba3e227fb675ad494", + "self_attn.k_norm.weight": "f01c939b42b6e7b3a03519eadb0a08a563897458717fc05d98b7c7d158621f02", + "mlp.gate_proj.weight": "a60ac64753890f45bc06d840148fad55807f022c4f14d6437d926bfe08d6e401", + "mlp.up_proj.weight": "f614342e9f77c5b73e0b93c34e9a6cbfb1692decfd132853765e9da75c5a2edc", + "mlp.down_proj.weight": "b61bbddd0e5ee13e6679fb129a28885d063105955f6cb5176c39b0ac18fbfda7", + "input_layernorm.weight": "2c7f7059994a701ae1bfd696bd109340fa7a22df9deee3bfd6c4afb890155523", + "post_attention_layernorm.weight": "d85cdb5cf77b8d6d42c74fbd6aff643661b72fcfbe4f343311c4d31db4afc67f" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "3d50a07d21693613e0d831209868828215164c78606ad76bb5339d0093e2b167", + "self_attn.k_proj.weight": "055922b3d6d8ae628f8a4761be8273b2b35bd979a899e599e03a4aebc9b31b15", + "self_attn.v_proj.weight": "35d50fc9ef07106a763c826a6bed55f5f8de393edeac002703ab161116d8dead", + "self_attn.o_proj.weight": "a211c679b699b735e0587b7e0bab5610d182a4c54868438be766544a8f36b4eb", + "self_attn.q_norm.weight": "41ed057917753085abc49146d705c39743047800a2ac65dba3e227fb675ad494", + "self_attn.k_norm.weight": "f01c939b42b6e7b3a03519eadb0a08a563897458717fc05d98b7c7d158621f02", + "mlp.gate_proj.weight": "22a05a2d80f9b5bca061ef41c4e0eeec4162a886b3189a1e718924e640066c7a", + "mlp.up_proj.weight": "d9facf666807baf62ab2e0f6ef258bc81ff85a99b0e320e2e03c06a06286cadd", + "mlp.down_proj.weight": "b61bbddd0e5ee13e6679fb129a28885d063105955f6cb5176c39b0ac18fbfda7", + "input_layernorm.weight": "2c7f7059994a701ae1bfd696bd109340fa7a22df9deee3bfd6c4afb890155523", + "post_attention_layernorm.weight": "d85cdb5cf77b8d6d42c74fbd6aff643661b72fcfbe4f343311c4d31db4afc67f" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6217058706168793, + "lambda_right": 0.3782941293831207, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "931265955af0a49db53c4639efbe90c02dce31656aa286a6cbbff86f0817e9c3", + "mlp.up_proj.weight": "a12a9422c9b7455a35fcae6e844f09123ea97d36cafb4e6db0a46f85566ef405", + "mlp.gate_proj.weight": "50273255d4e8070a1066dba24766196dba00f749cea470ff7d6bb9c8dc474c80", + "self_attn.k_proj.weight": "347fe193ed6ff1bac4c56d1a78af82943c3421f0f2f2abbcc90ac73f69d8aa8a", + "self_attn.o_proj.weight": "30adb37b1d10ef9bf2d40b0fad32c78c6e3366a3d6f91dd0aaa851ad36da2eef", + "self_attn.q_proj.weight": "ee22fb615d5ac51abd3c7cdd7fe4d35bcaa72469754363c924c38201ad763076", + "self_attn.v_proj.weight": "498b70698c015bd3df265cfffcc73fc3101a9f2ff48dee8a01d837ccdfc9674d" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "3d50a07d21693613e0d831209868828215164c78606ad76bb5339d0093e2b167", + "self_attn.k_proj.weight": "055922b3d6d8ae628f8a4761be8273b2b35bd979a899e599e03a4aebc9b31b15", + "self_attn.v_proj.weight": "35d50fc9ef07106a763c826a6bed55f5f8de393edeac002703ab161116d8dead", + "self_attn.o_proj.weight": "a211c679b699b735e0587b7e0bab5610d182a4c54868438be766544a8f36b4eb", + "self_attn.q_norm.weight": "41ed057917753085abc49146d705c39743047800a2ac65dba3e227fb675ad494", + "self_attn.k_norm.weight": "f01c939b42b6e7b3a03519eadb0a08a563897458717fc05d98b7c7d158621f02", + "mlp.gate_proj.weight": "22a05a2d80f9b5bca061ef41c4e0eeec4162a886b3189a1e718924e640066c7a", + "mlp.up_proj.weight": "d9facf666807baf62ab2e0f6ef258bc81ff85a99b0e320e2e03c06a06286cadd", + "mlp.down_proj.weight": "b61bbddd0e5ee13e6679fb129a28885d063105955f6cb5176c39b0ac18fbfda7", + "input_layernorm.weight": "2c7f7059994a701ae1bfd696bd109340fa7a22df9deee3bfd6c4afb890155523", + "post_attention_layernorm.weight": "d85cdb5cf77b8d6d42c74fbd6aff643661b72fcfbe4f343311c4d31db4afc67f" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "c7245c9dbe25165f24ba5f3c0086c83749cd9c5fcb690c38a3d8f60927216cec", + "mlp.up_proj.weight": "e2976ab21f45c3e509180bb5364531b92e802e940e8dbfd4b3740724854017b3", + "mlp.gate_proj.weight": "bd12f5c8ad5ebb331b34e02db2e88ac46a7354e0fe9b51c706a0a5f779e34ca4", + "self_attn.k_proj.weight": "f49b61266ee47a2c0ad04bf974ffdd0c21127fe614489f2ddb0f2076a034d6d8", + "self_attn.o_proj.weight": "da8ef0271df8de08ca9b525df230e9a07982d22f8da947e5b909e3226a9d41d8", + "self_attn.q_proj.weight": "c0faa3d71e6bbc52998951b3214c5f070278501f3267bfb60986f2204af63f48", + "self_attn.v_proj.weight": "c6691dbe4fd3e5bb534c4e151f5e9ba5e93e75c70b9f708f94959670ade827d6" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_06_transport.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_06_transport.pt new file mode 100644 index 0000000000000000000000000000000000000000..eb3b67d6d058c1a3da21a23d1fbb7ee38291bf74 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_06_transport.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f86d82a9678183a7225033c4d8e620ac3c32a073d6bfb228223615b60181eab3 +size 67110518 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_07_merge.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_07_merge.json new file mode 100644 index 0000000000000000000000000000000000000000..d574db9e20618d31141f00743f1001e29b65f04b --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_07_merge.json @@ -0,0 +1,1124 @@ +{ + "cycle": 7, + "anchor": 12, + "removed_original_layer": 19, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.335060653067787, + 1.9151508919498, + 2.1470476790502167, + 2.2382104224145882, + 2.482035492079157, + 2.9541623183747747, + 1.7355899186653978, + 1.6389862016834942, + 1.310776197267927, + 1.445540861674972, + 1.0557278746966603, + 0.7263011651368967, + 0.7563077739895328, + 0.78555708780847, + 0.8434020029659363, + 0.9817131964461834, + 1.1575913324896967, + 1.1485335814928896 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3750802150461072, + 1.9966194546704634, + 2.3416926258364814, + 2.3646307199697656, + 2.651764672663068, + 3.0896073133453217, + 1.8648788025080432, + 1.7680385141742023, + 1.4789101804297322, + 1.549351858682733, + 1.0636639815562277, + 0.7665259459729624, + 0.9210271442561554, + 0.9093409439886264, + 0.9889309253643355, + 1.081870129101897, + 1.218261424813981, + 1.269153958649878 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.4775990755654735, + 1.9795751310587053, + 2.324618414792716, + 2.4053275618843184, + 2.6550345187256914, + 3.028798368438027, + 1.7297992788415166, + 1.6205850193978752, + 1.3824615122439445, + 1.510439673755109, + 1.0967437788482517, + 0.7706653821299205, + 0.8629506874422704, + 0.8715741446827898, + 0.8922972515026302, + 1.035381478804706, + 1.1008205496333037, + 1.108045590796737 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8018150167083102, + 2.3396378838368115, + 2.6077546458993544, + 2.7544491300773006, + 2.9027328937488286, + 3.112539029546369, + 2.0101244838004186, + 1.7512663146114917, + 1.6994034730831251, + 1.4636880420662681, + 1.3053891261589767, + 0.916802150236169, + 0.9260510966234697, + 0.802837803285485, + 0.8261934592480294, + 0.9059512837175536, + 1.2353730155872134, + 1.1438871911111252 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7603766180970735, + 2.09245531720537, + 2.494009320317859, + 2.680352467743221, + 2.5314323877151113, + 2.65733196705272, + 2.0287553209778175, + 1.4255146653638688, + 1.6282332198606198, + 1.309752569075819, + 1.16877241599604, + 0.8019279106827464, + 0.8503715595975953, + 0.6960107441990685, + 0.7462430099545769, + 0.8055523210468205, + 1.2425621289318833, + 1.0932438771466049 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.603889724671732, + 2.30004883508431, + 2.7060687538540478, + 2.5143787627219445, + 2.3677048632298194, + 2.707565400064352, + 2.025648292993888, + 1.5269642578355482, + 1.8083655409068216, + 1.4259702866020565, + 1.500750250775114, + 0.9970580626827362, + 1.0222874472031613, + 0.8795377386331051, + 0.815051788079297, + 0.8935573121139433, + 1.3130642440577682, + 1.26007734424592 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.847520969500037, + 2.0392033506382985, + 2.514186407447737, + 2.697675984516935, + 2.452909786990882, + 2.633937297517078, + 1.994960165105681, + 1.4926270825271737, + 1.6009022209565196, + 1.33143269657914, + 1.1646262157578426, + 0.7812955895279096, + 0.8116076292957498, + 0.6807634053296279, + 0.740336689801715, + 0.7868165911783517, + 1.0930526558812224, + 1.0009504792306274 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.881354581028014, + 2.016733763369577, + 2.444807706226864, + 2.673938777952214, + 2.430156787729497, + 2.6358404420831296, + 1.9428613663993468, + 1.4084369048473353, + 1.518026766512977, + 1.3539901414251467, + 1.0464130746336255, + 0.7683486029413958, + 0.8386901915240803, + 0.6384046068507135, + 0.7448342028168569, + 0.8116704120501036, + 1.0411583610854698, + 0.8865983103216261 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0238653292175734, + 2.096878357753872, + 2.544282696680575, + 2.8100249477670807, + 2.5215617695799812, + 2.716839737952336, + 2.0683032311603218, + 1.4748677515004418, + 1.555346205251822, + 1.4523334796188776, + 1.094041824012496, + 0.7650662896346687, + 0.8590899631155138, + 0.6638319919330038, + 0.7484579971253583, + 0.7514442554241185, + 1.0388756932404553, + 0.9260038892652837 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9716204992851947, + 1.990014159078375, + 2.3932224889510496, + 2.7586891549152885, + 3.0319171138794747, + 3.184961023077555, + 2.046644158724472, + 1.4935702247175424, + 1.4155547651935, + 1.3743370076996033, + 0.9865220163190762, + 0.6987606138809618, + 0.8775588591806454, + 0.7643863078100356, + 0.8123849076131157, + 0.8185415944651515, + 1.088812229935361, + 1.024330388860401 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.142899079659547, + 2.2300848269862987, + 2.666436746152326, + 3.0080203350100283, + 3.439548839369472, + 3.5819757646893025, + 2.178945334062802, + 1.717053476493485, + 1.5439120725418845, + 1.4584713753332919, + 1.0322979410608635, + 0.7975928855188846, + 0.9158273124950627, + 0.7294274655038945, + 0.762384357947228, + 0.8008120642715584, + 1.1429469311839828, + 1.0058135790841483 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.687780773818941, + 2.0611341753159533, + 2.59527774784413, + 2.765222939052188, + 2.587079963799439, + 2.930872563570401, + 2.05654595829283, + 1.6115209963931763, + 1.6519618836416574, + 1.4915965655765555, + 1.1870371767410295, + 0.7508322300666679, + 0.8419028544418945, + 0.7184158962207927, + 0.7556317064304325, + 0.7092811826287099, + 1.0618746249918978, + 0.7889106729381317 + ], + [ + 2.335060653067787, + 2.3750802150461072, + 2.4775990755654735, + 2.8018150167083102, + 2.7603766180970735, + 2.603889724671732, + 2.847520969500037, + 2.881354581028014, + 3.0238653292175734, + 2.9716204992851947, + 3.142899079659547, + 3.687780773818941, + 3.8829142774143133, + 2.0779937683849505, + 2.58058323324637, + 2.7504398878029557, + 2.569246285480185, + 2.892389816763984, + 2.0753073706185874, + 1.6056916585243415, + 1.682410703198068, + 1.479445887951913, + 1.2202227347627026, + 0.7558254928103254, + 0.8281597513106194, + 0.681461541623871, + 0.7462858110236558, + 0.6631736687929489, + 1.0513097453000022, + 0.8210695838033376 + ], + [ + 1.9151508919498, + 1.9966194546704634, + 1.9795751310587053, + 2.3396378838368115, + 2.09245531720537, + 2.30004883508431, + 2.0392033506382985, + 2.016733763369577, + 2.096878357753872, + 1.990014159078375, + 2.2300848269862987, + 2.0611341753159533, + 2.0779937683849505, + 3.4416427102836304, + 2.5003654197019722, + 2.0631460895067195, + 2.1764290005130538, + 2.353005797834471, + 1.8550347880382718, + 1.4440750564582634, + 1.5781721751823408, + 1.436664363937981, + 1.195084732425717, + 1.0195732107191993, + 1.019409980271241, + 0.9114488673463137, + 0.9291503774714044, + 0.960255731460862, + 1.3740083911190164, + 1.1587729003607112 + ], + [ + 2.1470476790502167, + 2.3416926258364814, + 2.324618414792716, + 2.6077546458993544, + 2.494009320317859, + 2.7060687538540478, + 2.514186407447737, + 2.444807706226864, + 2.544282696680575, + 2.3932224889510496, + 2.666436746152326, + 2.59527774784413, + 2.58058323324637, + 2.5003654197019722, + 3.8869870744122736, + 2.7626207396485976, + 2.597105476047908, + 2.919639100312835, + 2.1485412027903696, + 1.6080698019742459, + 1.8609487659971795, + 1.505281546807699, + 1.294995638194655, + 0.9556628674527027, + 1.0901298716692587, + 0.9423458972209501, + 0.9501876099221909, + 0.9894552180989364, + 1.529739859337895, + 1.246139406665727 + ], + [ + 2.2382104224145882, + 2.3646307199697656, + 2.4053275618843184, + 2.7544491300773006, + 2.680352467743221, + 2.5143787627219445, + 2.697675984516935, + 2.673938777952214, + 2.8100249477670807, + 2.7586891549152885, + 3.0080203350100283, + 2.765222939052188, + 2.7504398878029557, + 2.0631460895067195, + 2.7626207396485976, + 3.9479349329115236, + 3.159328522193469, + 3.2452559007494948, + 2.269813592358904, + 1.5756899406735705, + 1.5530640737277885, + 1.5056590929943277, + 1.1705655194425106, + 0.7860663144049597, + 0.8885059103358778, + 0.7187360067239392, + 0.7935085952391593, + 0.8389232442714559, + 1.133533822916724, + 1.005304840537486 + ], + [ + 2.482035492079157, + 2.651764672663068, + 2.6550345187256914, + 2.9027328937488286, + 2.5314323877151113, + 2.3677048632298194, + 2.452909786990882, + 2.430156787729497, + 2.5215617695799812, + 3.0319171138794747, + 3.439548839369472, + 2.587079963799439, + 2.569246285480185, + 2.1764290005130538, + 2.597105476047908, + 3.159328522193469, + 4.8171851507294505, + 4.168800959304893, + 2.4893325516846336, + 1.775382036524939, + 1.6695615561673247, + 1.5748769095294133, + 1.075541842340863, + 0.8296408394508974, + 1.0398423199848308, + 0.8865446015217652, + 0.8853028665632072, + 0.8851802532429629, + 1.332072697231281, + 1.2073849680493283 + ], + [ + 2.9541623183747747, + 3.0896073133453217, + 3.028798368438027, + 3.112539029546369, + 2.65733196705272, + 2.707565400064352, + 2.633937297517078, + 2.6358404420831296, + 2.716839737952336, + 3.184961023077555, + 3.5819757646893025, + 2.930872563570401, + 2.892389816763984, + 2.353005797834471, + 2.919639100312835, + 3.2452559007494948, + 4.168800959304893, + 5.625939556469685, + 2.836420728469044, + 2.0696698049374493, + 1.9159187887356972, + 1.7345949199400814, + 1.2486668293058323, + 1.0338163046045126, + 1.1597765316104274, + 1.0265449038458745, + 1.0319384725387906, + 1.1424211083846607, + 1.3954934011367532, + 1.4562693444030974 + ], + [ + 1.7355899186653978, + 1.8648788025080432, + 1.7297992788415166, + 2.0101244838004186, + 2.0287553209778175, + 2.025648292993888, + 1.994960165105681, + 1.9428613663993468, + 2.0683032311603218, + 2.046644158724472, + 2.178945334062802, + 2.05654595829283, + 2.0753073706185874, + 1.8550347880382718, + 2.1485412027903696, + 2.269813592358904, + 2.4893325516846336, + 2.836420728469044, + 3.756756885534718, + 1.613144246991716, + 2.3294744381964936, + 1.471409747072838, + 1.1856335038656773, + 1.002860820442963, + 1.1390299554920584, + 0.9036097762989808, + 0.9360942873817044, + 0.843126941640358, + 1.2314673280711448, + 0.9863908483341315 + ], + [ + 1.6389862016834942, + 1.7680385141742023, + 1.6205850193978752, + 1.7512663146114917, + 1.4255146653638688, + 1.5269642578355482, + 1.4926270825271737, + 1.4084369048473353, + 1.4748677515004418, + 1.4935702247175424, + 1.717053476493485, + 1.6115209963931763, + 1.6056916585243415, + 1.4440750564582634, + 1.6080698019742459, + 1.5756899406735705, + 1.775382036524939, + 2.0696698049374493, + 1.613144246991716, + 3.2050139986328965, + 1.356212899834525, + 1.1997820946226645, + 0.9317094606804038, + 1.1339483613882577, + 0.8354919350865416, + 0.6846104434385133, + 0.6664804565253172, + 0.8396948443667854, + 0.8725514123593239, + 0.8344604151451003 + ], + [ + 1.310776197267927, + 1.4789101804297322, + 1.3824615122439445, + 1.6994034730831251, + 1.6282332198606198, + 1.8083655409068216, + 1.6009022209565196, + 1.518026766512977, + 1.555346205251822, + 1.4155547651935, + 1.5439120725418845, + 1.6519618836416574, + 1.682410703198068, + 1.5781721751823408, + 1.8609487659971795, + 1.5530640737277885, + 1.6695615561673247, + 1.9159187887356972, + 2.3294744381964936, + 1.356212899834525, + 3.416206219036406, + 1.5826657045262058, + 1.1129454165435082, + 0.8835317428395627, + 1.1630585568679892, + 1.0624035213403704, + 1.0055576624668554, + 0.8681777693504479, + 1.3681221757212054, + 1.1643245860437612 + ], + [ + 1.445540861674972, + 1.549351858682733, + 1.510439673755109, + 1.4636880420662681, + 1.309752569075819, + 1.4259702866020565, + 1.33143269657914, + 1.3539901414251467, + 1.4523334796188776, + 1.3743370076996033, + 1.4584713753332919, + 1.4915965655765555, + 1.479445887951913, + 1.436664363937981, + 1.505281546807699, + 1.5056590929943277, + 1.5748769095294133, + 1.7345949199400814, + 1.471409747072838, + 1.1997820946226645, + 1.5826657045262058, + 2.9435635466073036, + 1.2980398820296755, + 1.1045451385857452, + 1.0688829822121406, + 1.0944463492537697, + 0.9534468323318136, + 0.986713447997249, + 0.9813283030413763, + 0.7615277040242429 + ], + [ + 1.0557278746966603, + 1.0636639815562277, + 1.0967437788482517, + 1.3053891261589767, + 1.16877241599604, + 1.500750250775114, + 1.1646262157578426, + 1.0464130746336255, + 1.094041824012496, + 0.9865220163190762, + 1.0322979410608635, + 1.1870371767410295, + 1.2202227347627026, + 1.195084732425717, + 1.294995638194655, + 1.1705655194425106, + 1.075541842340863, + 1.2486668293058323, + 1.1856335038656773, + 0.9317094606804038, + 1.1129454165435082, + 1.2980398820296755, + 3.315992143445085, + 1.4662763003301709, + 1.083205539460729, + 0.9029044779158781, + 0.7476312776793488, + 0.7396221082271548, + 0.9387548551748491, + 0.6486265236006119 + ], + [ + 0.7263011651368967, + 0.7665259459729624, + 0.7706653821299205, + 0.916802150236169, + 0.8019279106827464, + 0.9970580626827362, + 0.7812955895279096, + 0.7683486029413958, + 0.7650662896346687, + 0.6987606138809618, + 0.7975928855188846, + 0.7508322300666679, + 0.7558254928103254, + 1.0195732107191993, + 0.9556628674527027, + 0.7860663144049597, + 0.8296408394508974, + 1.0338163046045126, + 1.002860820442963, + 1.1339483613882577, + 0.8835317428395627, + 1.1045451385857452, + 1.4662763003301709, + 3.1802755429056164, + 1.0961775563983311, + 0.9028584446836112, + 0.7389973944614426, + 0.7326991159504191, + 0.9498945356494484, + 0.7308764560552143 + ], + [ + 0.7563077739895328, + 0.9210271442561554, + 0.8629506874422704, + 0.9260510966234697, + 0.8503715595975953, + 1.0222874472031613, + 0.8116076292957498, + 0.8386901915240803, + 0.8590899631155138, + 0.8775588591806454, + 0.9158273124950627, + 0.8419028544418945, + 0.8281597513106194, + 1.019409980271241, + 1.0901298716692587, + 0.8885059103358778, + 1.0398423199848308, + 1.1597765316104274, + 1.1390299554920584, + 0.8354919350865416, + 1.1630585568679892, + 1.0688829822121406, + 1.083205539460729, + 1.0961775563983311, + 3.122100146047263, + 1.8185289145349615, + 1.3872229332512878, + 1.1959568991391398, + 1.0330771274431814, + 1.1925852530558634 + ], + [ + 0.78555708780847, + 0.9093409439886264, + 0.8715741446827898, + 0.802837803285485, + 0.6960107441990685, + 0.8795377386331051, + 0.6807634053296279, + 0.6384046068507135, + 0.6638319919330038, + 0.7643863078100356, + 0.7294274655038945, + 0.7184158962207927, + 0.681461541623871, + 0.9114488673463137, + 0.9423458972209501, + 0.7187360067239392, + 0.8865446015217652, + 1.0265449038458745, + 0.9036097762989808, + 0.6846104434385133, + 1.0624035213403704, + 1.0944463492537697, + 0.9029044779158781, + 0.9028584446836112, + 1.8185289145349615, + 2.6945045344805623, + 1.876418646156149, + 1.6552659821863145, + 1.478696417249966, + 1.4718810323832487 + ], + [ + 0.8434020029659363, + 0.9889309253643355, + 0.8922972515026302, + 0.8261934592480294, + 0.7462430099545769, + 0.815051788079297, + 0.740336689801715, + 0.7448342028168569, + 0.7484579971253583, + 0.8123849076131157, + 0.762384357947228, + 0.7556317064304325, + 0.7462858110236558, + 0.9291503774714044, + 0.9501876099221909, + 0.7935085952391593, + 0.8853028665632072, + 1.0319384725387906, + 0.9360942873817044, + 0.6664804565253172, + 1.0055576624668554, + 0.9534468323318136, + 0.7476312776793488, + 0.7389973944614426, + 1.3872229332512878, + 1.876418646156149, + 2.565809890338776, + 1.782803313293456, + 1.5627074716811857, + 1.2133802600453527 + ], + [ + 0.9817131964461834, + 1.081870129101897, + 1.035381478804706, + 0.9059512837175536, + 0.8055523210468205, + 0.8935573121139433, + 0.7868165911783517, + 0.8116704120501036, + 0.7514442554241185, + 0.8185415944651515, + 0.8008120642715584, + 0.7092811826287099, + 0.6631736687929489, + 0.960255731460862, + 0.9894552180989364, + 0.8389232442714559, + 0.8851802532429629, + 1.1424211083846607, + 0.843126941640358, + 0.8396948443667854, + 0.8681777693504479, + 0.986713447997249, + 0.7396221082271548, + 0.7326991159504191, + 1.1959568991391398, + 1.6552659821863145, + 1.782803313293456, + 2.8125165484992634, + 1.555281094134444, + 1.4418265844673068 + ], + [ + 1.1575913324896967, + 1.218261424813981, + 1.1008205496333037, + 1.2353730155872134, + 1.2425621289318833, + 1.3130642440577682, + 1.0930526558812224, + 1.0411583610854698, + 1.0388756932404553, + 1.088812229935361, + 1.1429469311839828, + 1.0618746249918978, + 1.0513097453000022, + 1.3740083911190164, + 1.529739859337895, + 1.133533822916724, + 1.332072697231281, + 1.3954934011367532, + 1.2314673280711448, + 0.8725514123593239, + 1.3681221757212054, + 0.9813283030413763, + 0.9387548551748491, + 0.9498945356494484, + 1.0330771274431814, + 1.478696417249966, + 1.5627074716811857, + 1.555281094134444, + 5.034528896538704, + 2.692335526128771 + ], + [ + 1.1485335814928896, + 1.269153958649878, + 1.108045590796737, + 1.1438871911111252, + 1.0932438771466049, + 1.26007734424592, + 1.0009504792306274, + 0.8865983103216261, + 0.9260038892652837, + 1.024330388860401, + 1.0058135790841483, + 0.7889106729381317, + 0.8210695838033376, + 1.1587729003607112, + 1.246139406665727, + 1.005304840537486, + 1.2073849680493283, + 1.4562693444030974, + 0.9863908483341315, + 0.8344604151451003, + 1.1643245860437612, + 0.7615277040242429, + 0.6486265236006119, + 0.7308764560552143, + 1.1925852530558634, + 1.4718810323832487, + 1.2133802600453527, + 1.4418265844673068, + 2.692335526128771, + 6.275216006750274 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.40225823656719, + -0.418053972510334, + -0.3997182031781498, + -0.3987454959504672, + -0.3711019616231918, + -0.3143880026596337, + -0.38441244775601685, + -0.3819347586277721, + -0.4231815585212399, + -0.47236814579757364, + -0.39228402418752356, + -0.39850851178831764, + -0.4376051592384302, + -0.48694327113139696, + -0.4970580211590117, + -0.4698274086389756, + -0.32397405546888375, + -0.3153829001171697 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6320229056860514, + "transport_matrix_sha256": "f5711125d44097953522f7ced877f6e2d8c65c0ef6e88139df158d650cc8dbf4", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.162425130605698e-05, + "gram_mean_diagonal": 0.061624251306056976, + "calibration_nmse": 0.04445477035491676, + "calibration_cosine": 0.9775203668922895, + "calibration_norm_ratio": 0.9766049193770479, + "transport_relative_identity_distance": 0.388338178396225, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "d14bc25171528405c3db791fd017b4e0fe37d06a9b07a9878cb81c1f0eb98ae6", + "self_attn.k_proj.weight": "8911d7363eb8d7e35ff407ac925183a06d54d624a8d2bd0ff41db97423515a54", + "self_attn.v_proj.weight": "4781046a7d6224a77c3e34dda92a2ef5748eb777d9d554acf5621c4e5742be2a", + "self_attn.o_proj.weight": "90f47fc1bc507ddfad16299dfcecb78a6b4efac01e21d3a6402c6ef3eae56348", + "self_attn.q_norm.weight": "6915d87fcc2402518b382dee5f5929f5774006c5d82904db327d2f118d6a5c99", + "self_attn.k_norm.weight": "cb20faa93398541fe6b2fbda2a527ea3243337db753acebdfd045bf309cbc4ae", + "mlp.gate_proj.weight": "aaf6792caf14dc5a810bfa937c966c7989238e23b21080752c784428eedbf79c", + "mlp.up_proj.weight": "5a9cf857484fc35820ab3032e13383687631e54fc1a7c7ff0443ec36e962cf17", + "mlp.down_proj.weight": "d65d2b30d50eb54acafa83fef24d9a0fa7d57b6cb6cc06a94e476c758f8812d6", + "input_layernorm.weight": "316472831e20dec19263b56944811a059efb241cc842d8ace4fce706c98a8b11", + "post_attention_layernorm.weight": "7a462c4c15d73900fe1275d32448251905112e9530f615fe6776622c416f0f52" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "d14bc25171528405c3db791fd017b4e0fe37d06a9b07a9878cb81c1f0eb98ae6", + "self_attn.k_proj.weight": "8911d7363eb8d7e35ff407ac925183a06d54d624a8d2bd0ff41db97423515a54", + "self_attn.v_proj.weight": "4781046a7d6224a77c3e34dda92a2ef5748eb777d9d554acf5621c4e5742be2a", + "self_attn.o_proj.weight": "90f47fc1bc507ddfad16299dfcecb78a6b4efac01e21d3a6402c6ef3eae56348", + "self_attn.q_norm.weight": "6915d87fcc2402518b382dee5f5929f5774006c5d82904db327d2f118d6a5c99", + "self_attn.k_norm.weight": "cb20faa93398541fe6b2fbda2a527ea3243337db753acebdfd045bf309cbc4ae", + "mlp.gate_proj.weight": "a86a2062e8c118a4474629683e24d72e8c99b88d34acc3933f226c5f3b0b84ef", + "mlp.up_proj.weight": "1484ab5f1507d90553911f2c5b3c89955db4b9a0c276f892bde6be260708b1ad", + "mlp.down_proj.weight": "d65d2b30d50eb54acafa83fef24d9a0fa7d57b6cb6cc06a94e476c758f8812d6", + "input_layernorm.weight": "316472831e20dec19263b56944811a059efb241cc842d8ace4fce706c98a8b11", + "post_attention_layernorm.weight": "7a462c4c15d73900fe1275d32448251905112e9530f615fe6776622c416f0f52" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6320229056860514, + "lambda_right": 0.36797709431394865, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "c7245c9dbe25165f24ba5f3c0086c83749cd9c5fcb690c38a3d8f60927216cec", + "mlp.up_proj.weight": "e2976ab21f45c3e509180bb5364531b92e802e940e8dbfd4b3740724854017b3", + "mlp.gate_proj.weight": "bd12f5c8ad5ebb331b34e02db2e88ac46a7354e0fe9b51c706a0a5f779e34ca4", + "self_attn.k_proj.weight": "f49b61266ee47a2c0ad04bf974ffdd0c21127fe614489f2ddb0f2076a034d6d8", + "self_attn.o_proj.weight": "da8ef0271df8de08ca9b525df230e9a07982d22f8da947e5b909e3226a9d41d8", + "self_attn.q_proj.weight": "c0faa3d71e6bbc52998951b3214c5f070278501f3267bfb60986f2204af63f48", + "self_attn.v_proj.weight": "c6691dbe4fd3e5bb534c4e151f5e9ba5e93e75c70b9f708f94959670ade827d6" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "d14bc25171528405c3db791fd017b4e0fe37d06a9b07a9878cb81c1f0eb98ae6", + "self_attn.k_proj.weight": "8911d7363eb8d7e35ff407ac925183a06d54d624a8d2bd0ff41db97423515a54", + "self_attn.v_proj.weight": "4781046a7d6224a77c3e34dda92a2ef5748eb777d9d554acf5621c4e5742be2a", + "self_attn.o_proj.weight": "90f47fc1bc507ddfad16299dfcecb78a6b4efac01e21d3a6402c6ef3eae56348", + "self_attn.q_norm.weight": "6915d87fcc2402518b382dee5f5929f5774006c5d82904db327d2f118d6a5c99", + "self_attn.k_norm.weight": "cb20faa93398541fe6b2fbda2a527ea3243337db753acebdfd045bf309cbc4ae", + "mlp.gate_proj.weight": "a86a2062e8c118a4474629683e24d72e8c99b88d34acc3933f226c5f3b0b84ef", + "mlp.up_proj.weight": "1484ab5f1507d90553911f2c5b3c89955db4b9a0c276f892bde6be260708b1ad", + "mlp.down_proj.weight": "d65d2b30d50eb54acafa83fef24d9a0fa7d57b6cb6cc06a94e476c758f8812d6", + "input_layernorm.weight": "316472831e20dec19263b56944811a059efb241cc842d8ace4fce706c98a8b11", + "post_attention_layernorm.weight": "7a462c4c15d73900fe1275d32448251905112e9530f615fe6776622c416f0f52" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "657dc1f64bd3d898d5894e974818d8a6ee15650a86a229a5861b2acee0f9b088", + "mlp.up_proj.weight": "b9870148d064b28f15148348ff85a24cc6b0c9d5f05d238eb2d53d3094328aee", + "mlp.gate_proj.weight": "44926d75745b5eb02f07c0b546ac898b7d296542b32908a8174f7bb4cbcb63e3", + "self_attn.k_proj.weight": "fed731b48c19553af379834ed7f2f4dcf42fd0bc98f6e7ba8c4f93aee94d6b50", + "self_attn.o_proj.weight": "9744ed76ae0f10005c77c4d12ab99864251e6a7ceca3a0b9974f8154a64e4d13", + "self_attn.q_proj.weight": "18db3b31a5755e8c0ef7ac707cd25132accfe2a969a558824cd0fc89be91ef3a", + "self_attn.v_proj.weight": "9da1c888324adec31ad08af91e699e3c682a3b9ff1115a0e3a715c73d06730e0" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_07_transport.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_07_transport.pt new file mode 100644 index 0000000000000000000000000000000000000000..be245c860bf599ce428b90826082ce57db1e8997 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_07_transport.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b73d4e0ebc48c6a60fc78f30a2865b80b947b618bcf49d3fa43639efed0469c +size 67110518 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_08_merge.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_08_merge.json new file mode 100644 index 0000000000000000000000000000000000000000..fa9165e3a98d82a6321cdf483fc6f3f6bf277301 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_08_merge.json @@ -0,0 +1,1062 @@ +{ + "cycle": 8, + "anchor": 12, + "removed_original_layer": 20, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.3309365228903673, + 2.7076092864496464, + 2.5828283307414557, + 2.0749659862953007, + 1.8979614932482212, + 1.1598080027339115, + 0.9672907304270633, + 0.8445215272130093, + 0.8440981478902723, + 0.8566488119015174, + 0.6571332992167694, + 0.5023196441941121, + 0.32566316749285007, + 0.38883380564887415, + 0.35209432139022473, + 0.4392291203369543, + 0.6603155047706846 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.405989787018054, + 2.7637422845239583, + 2.6409109631066072, + 2.2523696359218266, + 2.066468296027738, + 1.0707011599641276, + 1.0376263444080625, + 0.857389703634527, + 0.8567747625139767, + 0.8225140766141141, + 0.6031320426857619, + 0.491486916403898, + 0.27557926960127255, + 0.383833846407171, + 0.33847945341342583, + 0.4280067994597013, + 0.6532412871774632 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.4954062467270446, + 2.8697417706380772, + 2.7257889339964594, + 2.1704722729811854, + 2.023153201695174, + 1.075993263032202, + 1.0422793635905534, + 0.9414682463324875, + 0.8661451321692677, + 0.875799744758322, + 0.6588638613293223, + 0.5268713914536275, + 0.33841867331499653, + 0.45475373404890224, + 0.38620430422412844, + 0.3681037980647821, + 0.564554207511363 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.833696447730915, + 3.1614221583114817, + 2.9583957894293498, + 2.2258037903416095, + 2.0156942253472385, + 1.3229097043364508, + 1.2197585012656948, + 0.8759670341946174, + 1.0652078473337494, + 0.8854529800796043, + 0.6926146471738837, + 0.607424845907371, + 0.4623910240590529, + 0.5775695311816474, + 0.49617153988795293, + 0.37085318959253116, + 0.6021446812809288 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7153847200460635, + 2.8312036876666813, + 2.61277829758875, + 2.147593605314885, + 1.8902649458833995, + 1.3404355507732728, + 1.2675230516749558, + 0.7881833899249291, + 0.9627347984687167, + 0.7572455607080214, + 0.628883786808813, + 0.5090281334334943, + 0.4222692480273592, + 0.6289234765604497, + 0.6267672068235964, + 0.45982951227324276, + 0.6424982784917262 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.666635424676098, + 2.6568330363906343, + 2.3476147668818568, + 1.935170869443875, + 1.7451546005394534, + 1.2771052231969091, + 1.263298118955975, + 0.9222650423853106, + 1.154926071388586, + 0.7787611470905941, + 0.599707989600881, + 0.5147347507455198, + 0.4782011189866908, + 0.6815150208103763, + 0.6190772863921186, + 0.46985483472275247, + 0.6769790753508953 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8275903230168438, + 2.8271521158478485, + 2.587147345577654, + 1.948920475269127, + 1.7932851187358931, + 1.331509734705745, + 1.1921343724610476, + 0.8251036160191069, + 1.018559612365238, + 0.8339813671627474, + 0.6802464312482578, + 0.5239661054080991, + 0.36881181332363233, + 0.5720311361428948, + 0.5402754416053439, + 0.36187383423052877, + 0.4923000156590594 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8616855835835855, + 2.980810572843346, + 2.7919449295961, + 1.9944480872282742, + 1.8135729278965373, + 1.2519042697254033, + 1.1343416164476894, + 0.8118511794756429, + 0.9786932918581343, + 0.7557512073885176, + 0.5702026076559154, + 0.447623711804456, + 0.33706558020716904, + 0.5358704899706146, + 0.5153548561783989, + 0.3516229720450111, + 0.5197393815527795 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0638693263033883, + 2.949341751103695, + 2.8061340958890635, + 2.039301796845377, + 1.9016639473832662, + 1.34751689561985, + 1.2058908049060586, + 0.8002074175588133, + 0.9976383048607629, + 0.8074598014510884, + 0.682603610047435, + 0.5656838072141143, + 0.40495504386653874, + 0.5767909557361679, + 0.5238521641898339, + 0.4305755417786651, + 0.5046278110871457 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9719062730805663, + 3.2804921180478996, + 3.1506235549322157, + 2.358249044198347, + 2.100291029500201, + 1.5228904375417096, + 1.3403517084090089, + 0.9394278887187737, + 1.002835491211815, + 0.8301201238979781, + 0.6171105254619391, + 0.5120051300248155, + 0.46352334784178245, + 0.5297341402970216, + 0.5474499124140347, + 0.45915536720643313, + 0.506353112130403 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.1886729098128264, + 3.596193277979301, + 3.4274081509473544, + 2.6294576267684318, + 2.2575485674282825, + 1.5331959391624363, + 1.3999020734055807, + 0.9427618803574035, + 1.0138260631382647, + 0.8571841410018289, + 0.6547503214716471, + 0.5696265803587445, + 0.4800564467778891, + 0.5721758055454501, + 0.5835517573598624, + 0.5773531282005996, + 0.5446788979495212 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.764349207195852, + 3.2840094044095656, + 2.8499861187409694, + 2.0793631077044763, + 1.888278646196623, + 1.4607331553612526, + 1.3167571224183574, + 0.8454124903915474, + 0.9542652481245173, + 0.8234688819380526, + 0.6425072690994564, + 0.5027617871925458, + 0.41182465838769056, + 0.6086370410593199, + 0.5976496501310937, + 0.40677227709404207, + 0.5105061342743143 + ], + [ + 2.3309365228903673, + 2.405989787018054, + 2.4954062467270446, + 2.833696447730915, + 2.7153847200460635, + 2.666635424676098, + 2.8275903230168438, + 2.8616855835835855, + 3.0638693263033883, + 2.9719062730805663, + 3.1886729098128264, + 3.764349207195852, + 3.9204464452072068, + 3.276955566585207, + 2.8332851883230403, + 2.0728637967866637, + 1.8685674075236853, + 1.4665176781822364, + 1.3264734794316646, + 0.8397044445741981, + 0.9946398203044753, + 0.8459905502635207, + 0.6795072671971512, + 0.5564186531280123, + 0.44725191379425205, + 0.6192714663116863, + 0.6023716586640435, + 0.4330405475355302, + 0.4975801048677152 + ], + [ + 2.7076092864496464, + 2.7637422845239583, + 2.8697417706380772, + 3.1614221583114817, + 2.8312036876666813, + 2.6568330363906343, + 2.8271521158478485, + 2.980810572843346, + 2.949341751103695, + 3.2804921180478996, + 3.596193277979301, + 3.2840094044095656, + 3.276955566585207, + 4.450160083532561, + 3.354581508307865, + 2.4506232900595717, + 2.0166760000018664, + 1.3737167581177256, + 1.2717341538220308, + 0.8653757870712303, + 0.9308252518305845, + 0.6956120367593819, + 0.5373193274772248, + 0.442540545525281, + 0.4120116346295056, + 0.5605135113309031, + 0.49855397278279723, + 0.4703669283142906, + 0.5613620344815683 + ], + [ + 2.5828283307414557, + 2.6409109631066072, + 2.7257889339964594, + 2.9583957894293498, + 2.61277829758875, + 2.3476147668818568, + 2.587147345577654, + 2.7919449295961, + 2.8061340958890635, + 3.1506235549322157, + 3.4274081509473544, + 2.8499861187409694, + 2.8332851883230403, + 3.354581508307865, + 3.8941965929822517, + 2.512258216561545, + 2.109944816498539, + 1.5221555611808821, + 1.3008074911284095, + 0.8622915032500171, + 0.9886899472844323, + 0.7967312679936626, + 0.6480705264378424, + 0.5166219675235342, + 0.5118713003918643, + 0.668291846365047, + 0.61445542233892, + 0.4938389409718524, + 0.6555957845420977 + ], + [ + 2.0749659862953007, + 2.2523696359218266, + 2.1704722729811854, + 2.2258037903416095, + 2.147593605314885, + 1.935170869443875, + 1.948920475269127, + 1.9944480872282742, + 2.039301796845377, + 2.358249044198347, + 2.6294576267684318, + 2.0793631077044763, + 2.0728637967866637, + 2.4506232900595717, + 2.512258216561545, + 4.90743187825186, + 3.2425119775186513, + 2.125119281876137, + 1.7834078262191897, + 1.1391505216442175, + 1.2052969718575213, + 1.0993786643889853, + 0.9388189018389506, + 0.9510551284121005, + 0.863083659807576, + 1.067900319214004, + 1.0300870183661899, + 0.7798765125666617, + 0.7145790687609579 + ], + [ + 1.8979614932482212, + 2.066468296027738, + 2.023153201695174, + 2.0156942253472385, + 1.8902649458833995, + 1.7451546005394534, + 1.7932851187358931, + 1.8135729278965373, + 1.9016639473832662, + 2.100291029500201, + 2.2575485674282825, + 1.888278646196623, + 1.8685674075236853, + 2.0166760000018664, + 2.109944816498539, + 3.2425119775186513, + 4.266436093566324, + 2.257737910329508, + 1.7805828299253046, + 1.099406982739901, + 1.1406763086919225, + 1.075988678383306, + 0.9797226633091868, + 1.0446832173745924, + 0.9705576509784317, + 1.1324981320047498, + 1.112673044182778, + 0.9777242419671022, + 0.8156873108649764 + ], + [ + 1.1598080027339115, + 1.0707011599641276, + 1.075993263032202, + 1.3229097043364508, + 1.3404355507732728, + 1.2771052231969091, + 1.331509734705745, + 1.2519042697254033, + 1.34751689561985, + 1.5228904375417096, + 1.5331959391624363, + 1.4607331553612526, + 1.4665176781822364, + 1.3737167581177256, + 1.5221555611808821, + 2.125119281876137, + 2.257737910329508, + 3.5279131147070037, + 1.8303800681950804, + 1.4590627593580845, + 1.659529784219106, + 2.0348852544248035, + 1.727490463356549, + 1.4813387866952683, + 1.2056497577423677, + 1.260379537568893, + 1.2863159214992974, + 1.0568912756028728, + 0.7198573076682224 + ], + [ + 0.9672907304270633, + 1.0376263444080625, + 1.0422793635905534, + 1.2197585012656948, + 1.2675230516749558, + 1.263298118955975, + 1.1921343724610476, + 1.1343416164476894, + 1.2058908049060586, + 1.3403517084090089, + 1.3999020734055807, + 1.3167571224183574, + 1.3264734794316646, + 1.2717341538220308, + 1.3008074911284095, + 1.7834078262191897, + 1.7805828299253046, + 1.8303800681950804, + 3.2970597610256607, + 1.2818910671717847, + 1.3632384798959274, + 1.266646346691466, + 1.1135469239785525, + 1.0805289008429617, + 1.0336263724346257, + 1.0950131004183015, + 1.0144802194455806, + 0.7843761189319597, + 0.5001545142419945 + ], + [ + 0.8445215272130093, + 0.857389703634527, + 0.9414682463324875, + 0.8759670341946174, + 0.7881833899249291, + 0.9222650423853106, + 0.8251036160191069, + 0.8118511794756429, + 0.8002074175588133, + 0.9394278887187737, + 0.9427618803574035, + 0.8454124903915474, + 0.8397044445741981, + 0.8653757870712303, + 0.8622915032500171, + 1.1391505216442175, + 1.099406982739901, + 1.4590627593580845, + 1.2818910671717847, + 2.719110261240313, + 1.3694577407078374, + 1.572516860127116, + 1.4481590429362807, + 1.10721158710782, + 0.9120886707248242, + 0.8466345756616924, + 0.8731484821026729, + 0.7917154525986383, + 0.4157543559332934 + ], + [ + 0.8440981478902723, + 0.8567747625139767, + 0.8661451321692677, + 1.0652078473337494, + 0.9627347984687167, + 1.154926071388586, + 1.018559612365238, + 0.9786932918581343, + 0.9976383048607629, + 1.002835491211815, + 1.0138260631382647, + 0.9542652481245173, + 0.9946398203044753, + 0.9308252518305845, + 0.9886899472844323, + 1.2052969718575213, + 1.1406763086919225, + 1.659529784219106, + 1.3632384798959274, + 1.3694577407078374, + 3.262293047290917, + 2.362002646403123, + 2.1315002304126036, + 1.730453971905019, + 1.3334436505809015, + 1.2351334056598986, + 1.2833466486389273, + 1.0671390908815683, + 0.43958593807564617 + ], + [ + 0.8566488119015174, + 0.8225140766141141, + 0.875799744758322, + 0.8854529800796043, + 0.7572455607080214, + 0.7787611470905941, + 0.8339813671627474, + 0.7557512073885176, + 0.8074598014510884, + 0.8301201238979781, + 0.8571841410018289, + 0.8234688819380526, + 0.8459905502635207, + 0.6956120367593819, + 0.7967312679936626, + 1.0993786643889853, + 1.075988678383306, + 2.0348852544248035, + 1.266646346691466, + 1.572516860127116, + 2.362002646403123, + 4.696747519272648, + 3.9275108846674445, + 2.986102587232692, + 2.4629770239322157, + 1.97136094303752, + 1.9647998472799757, + 1.6395909476241857, + 0.5870369292723031 + ], + [ + 0.6571332992167694, + 0.6031320426857619, + 0.6588638613293223, + 0.6926146471738837, + 0.628883786808813, + 0.599707989600881, + 0.6802464312482578, + 0.5702026076559154, + 0.682603610047435, + 0.6171105254619391, + 0.6547503214716471, + 0.6425072690994564, + 0.6795072671971512, + 0.5373193274772248, + 0.6480705264378424, + 0.9388189018389506, + 0.9797226633091868, + 1.727490463356549, + 1.1135469239785525, + 1.4481590429362807, + 2.1315002304126036, + 3.9275108846674445, + 4.746275193005467, + 3.157970292245538, + 2.7732997107524424, + 2.2155651252168247, + 2.184003027387029, + 1.8831891986078493, + 0.6702791846867505 + ], + [ + 0.5023196441941121, + 0.491486916403898, + 0.5268713914536275, + 0.607424845907371, + 0.5090281334334943, + 0.5147347507455198, + 0.5239661054080991, + 0.447623711804456, + 0.5656838072141143, + 0.5120051300248155, + 0.5696265803587445, + 0.5027617871925458, + 0.5564186531280123, + 0.442540545525281, + 0.5166219675235342, + 0.9510551284121005, + 1.0446832173745924, + 1.4813387866952683, + 1.0805289008429617, + 1.10721158710782, + 1.730453971905019, + 2.986102587232692, + 3.157970292245538, + 4.616151115450268, + 3.2932920399318277, + 2.8016596679898846, + 2.606793400087374, + 2.2988642541587714, + 0.7264989864776129 + ], + [ + 0.32566316749285007, + 0.27557926960127255, + 0.33841867331499653, + 0.4623910240590529, + 0.4222692480273592, + 0.4782011189866908, + 0.36881181332363233, + 0.33706558020716904, + 0.40495504386653874, + 0.46352334784178245, + 0.4800564467778891, + 0.41182465838769056, + 0.44725191379425205, + 0.4120116346295056, + 0.5118713003918643, + 0.863083659807576, + 0.9705576509784317, + 1.2056497577423677, + 1.0336263724346257, + 0.9120886707248242, + 1.3334436505809015, + 2.4629770239322157, + 2.7732997107524424, + 3.2932920399318277, + 4.728953162844408, + 3.662165790263802, + 3.131333228509583, + 2.7234418208402, + 0.9758023506113968 + ], + [ + 0.38883380564887415, + 0.383833846407171, + 0.45475373404890224, + 0.5775695311816474, + 0.6289234765604497, + 0.6815150208103763, + 0.5720311361428948, + 0.5358704899706146, + 0.5767909557361679, + 0.5297341402970216, + 0.5721758055454501, + 0.6086370410593199, + 0.6192714663116863, + 0.5605135113309031, + 0.668291846365047, + 1.067900319214004, + 1.1324981320047498, + 1.260379537568893, + 1.0950131004183015, + 0.8466345756616924, + 1.2351334056598986, + 1.97136094303752, + 2.2155651252168247, + 2.8016596679898846, + 3.662165790263802, + 5.043940915809106, + 3.9769495525067367, + 2.891689460947579, + 1.4565140949390514 + ], + [ + 0.35209432139022473, + 0.33847945341342583, + 0.38620430422412844, + 0.49617153988795293, + 0.6267672068235964, + 0.6190772863921186, + 0.5402754416053439, + 0.5153548561783989, + 0.5238521641898339, + 0.5474499124140347, + 0.5835517573598624, + 0.5976496501310937, + 0.6023716586640435, + 0.49855397278279723, + 0.61445542233892, + 1.0300870183661899, + 1.112673044182778, + 1.2863159214992974, + 1.0144802194455806, + 0.8731484821026729, + 1.2833466486389273, + 1.9647998472799757, + 2.184003027387029, + 2.606793400087374, + 3.131333228509583, + 3.9769495525067367, + 4.783271182718377, + 3.1281726349846193, + 1.441437731689 + ], + [ + 0.4392291203369543, + 0.4280067994597013, + 0.3681037980647821, + 0.37085318959253116, + 0.45982951227324276, + 0.46985483472275247, + 0.36187383423052877, + 0.3516229720450111, + 0.4305755417786651, + 0.45915536720643313, + 0.5773531282005996, + 0.40677227709404207, + 0.4330405475355302, + 0.4703669283142906, + 0.4938389409718524, + 0.7798765125666617, + 0.9777242419671022, + 1.0568912756028728, + 0.7843761189319597, + 0.7917154525986383, + 1.0671390908815683, + 1.6395909476241857, + 1.8831891986078493, + 2.2988642541587714, + 2.7234418208402, + 2.891689460947579, + 3.1281726349846193, + 4.82235319409226, + 1.5822018048674753 + ], + [ + 0.6603155047706846, + 0.6532412871774632, + 0.564554207511363, + 0.6021446812809288, + 0.6424982784917262, + 0.6769790753508953, + 0.4923000156590594, + 0.5197393815527795, + 0.5046278110871457, + 0.506353112130403, + 0.5446788979495212, + 0.5105061342743143, + 0.4975801048677152, + 0.5613620344815683, + 0.6555957845420977, + 0.7145790687609579, + 0.8156873108649764, + 0.7198573076682224, + 0.5001545142419945, + 0.4157543559332934, + 0.43958593807564617, + 0.5870369292723031, + 0.6702791846867505, + 0.7264989864776129, + 0.9758023506113968, + 1.4565140949390514, + 1.441437731689, + 1.5822018048674753, + 4.407041142306895 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3931526237695033, + -0.36951939261723216, + -0.413975195553756, + -0.34623825414016357, + -0.36202212133681827, + -0.4086193744162315, + -0.4189445882058546, + -0.474844644258788, + -0.426843370972324, + -0.3637193914001952, + -0.351305868935799, + -0.3502024839981304, + -0.34813704053617117, + -0.3272967409915019, + -0.3438184399055548, + -0.3460114968867764, + -0.3804017419758176 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6197847717397531, + "transport_matrix_sha256": "d4755841394082a812a7b01d533bbededa02bbccd9c1e1bbd968dd4c56ac6c35", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.112820282578468e-05, + "gram_mean_diagonal": 0.06112820282578468, + "calibration_nmse": 0.026729135765656057, + "calibration_cosine": 0.9865453606596748, + "calibration_norm_ratio": 0.9856049326804817, + "transport_relative_identity_distance": 0.3915551006793976, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "6bdb1d9174c7bf6d06b12d5d55b3a7649f4f880714e3e2d5a6f90c1449ad1a50", + "self_attn.k_proj.weight": "e3a98bfec07bba4f0fc6aa01b510f13fce379d8a5fdce7a70ce0870da65a2e43", + "self_attn.v_proj.weight": "f250ec94ab67ea3d397297fa0c70e7e24c7f77ca609a3a83cc8f7e792e4bc608", + "self_attn.o_proj.weight": "18f0f0ec64b28cbc88f0937245cb010fd86dcf094de2d96d1bd2162b76020229", + "self_attn.q_norm.weight": "2172344fe2c1fda6f261ece920fbd07a4b03d2385d2c0848c497aae4f07e69b5", + "self_attn.k_norm.weight": "a2c8f7815e194c45bad87d1e291c9ff2ad3a36929b1201d024354ec501563a4e", + "mlp.gate_proj.weight": "8334c424ddf9edb282ccb34d6f90321e9530eff5e81b7881ba9b3d74417a9672", + "mlp.up_proj.weight": "db91586fd2907e8ecccb075f036e5c180641fa35f7cd899a3f81411caa9d10df", + "mlp.down_proj.weight": "4d5fefc568246a3abfa21725082f7fdf4dd62e7c580a1280aebe0ec60a2230cd", + "input_layernorm.weight": "96fb39db2f64c716ae6891acb4e4e7f2a1276921a97d0d9a50d746727e4bbcd0", + "post_attention_layernorm.weight": "cd331d158252933122eae174cda361e7f3eb260b867b079b375650b368a4ae06" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "6bdb1d9174c7bf6d06b12d5d55b3a7649f4f880714e3e2d5a6f90c1449ad1a50", + "self_attn.k_proj.weight": "e3a98bfec07bba4f0fc6aa01b510f13fce379d8a5fdce7a70ce0870da65a2e43", + "self_attn.v_proj.weight": "f250ec94ab67ea3d397297fa0c70e7e24c7f77ca609a3a83cc8f7e792e4bc608", + "self_attn.o_proj.weight": "18f0f0ec64b28cbc88f0937245cb010fd86dcf094de2d96d1bd2162b76020229", + "self_attn.q_norm.weight": "2172344fe2c1fda6f261ece920fbd07a4b03d2385d2c0848c497aae4f07e69b5", + "self_attn.k_norm.weight": "a2c8f7815e194c45bad87d1e291c9ff2ad3a36929b1201d024354ec501563a4e", + "mlp.gate_proj.weight": "59f0c61a08c61036a25ef4e7d124df5605da010332feb29f6f749e1927ba5565", + "mlp.up_proj.weight": "402d52b4eeefe5c1f052613d0dc0c2395733ef11267a6f15a28a5a16221b633b", + "mlp.down_proj.weight": "4d5fefc568246a3abfa21725082f7fdf4dd62e7c580a1280aebe0ec60a2230cd", + "input_layernorm.weight": "96fb39db2f64c716ae6891acb4e4e7f2a1276921a97d0d9a50d746727e4bbcd0", + "post_attention_layernorm.weight": "cd331d158252933122eae174cda361e7f3eb260b867b079b375650b368a4ae06" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6197847717397531, + "lambda_right": 0.3802152282602469, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "657dc1f64bd3d898d5894e974818d8a6ee15650a86a229a5861b2acee0f9b088", + "mlp.up_proj.weight": "b9870148d064b28f15148348ff85a24cc6b0c9d5f05d238eb2d53d3094328aee", + "mlp.gate_proj.weight": "44926d75745b5eb02f07c0b546ac898b7d296542b32908a8174f7bb4cbcb63e3", + "self_attn.k_proj.weight": "fed731b48c19553af379834ed7f2f4dcf42fd0bc98f6e7ba8c4f93aee94d6b50", + "self_attn.o_proj.weight": "9744ed76ae0f10005c77c4d12ab99864251e6a7ceca3a0b9974f8154a64e4d13", + "self_attn.q_proj.weight": "18db3b31a5755e8c0ef7ac707cd25132accfe2a969a558824cd0fc89be91ef3a", + "self_attn.v_proj.weight": "9da1c888324adec31ad08af91e699e3c682a3b9ff1115a0e3a715c73d06730e0" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "6bdb1d9174c7bf6d06b12d5d55b3a7649f4f880714e3e2d5a6f90c1449ad1a50", + "self_attn.k_proj.weight": "e3a98bfec07bba4f0fc6aa01b510f13fce379d8a5fdce7a70ce0870da65a2e43", + "self_attn.v_proj.weight": "f250ec94ab67ea3d397297fa0c70e7e24c7f77ca609a3a83cc8f7e792e4bc608", + "self_attn.o_proj.weight": "18f0f0ec64b28cbc88f0937245cb010fd86dcf094de2d96d1bd2162b76020229", + "self_attn.q_norm.weight": "2172344fe2c1fda6f261ece920fbd07a4b03d2385d2c0848c497aae4f07e69b5", + "self_attn.k_norm.weight": "a2c8f7815e194c45bad87d1e291c9ff2ad3a36929b1201d024354ec501563a4e", + "mlp.gate_proj.weight": "59f0c61a08c61036a25ef4e7d124df5605da010332feb29f6f749e1927ba5565", + "mlp.up_proj.weight": "402d52b4eeefe5c1f052613d0dc0c2395733ef11267a6f15a28a5a16221b633b", + "mlp.down_proj.weight": "4d5fefc568246a3abfa21725082f7fdf4dd62e7c580a1280aebe0ec60a2230cd", + "input_layernorm.weight": "96fb39db2f64c716ae6891acb4e4e7f2a1276921a97d0d9a50d746727e4bbcd0", + "post_attention_layernorm.weight": "cd331d158252933122eae174cda361e7f3eb260b867b079b375650b368a4ae06" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "f926ad9c3c3f97ea0981a49912e70a874892421e7e3be53d739da8c33c3733c4", + "mlp.up_proj.weight": "15df00e706f8be49186d2d459a8692be3c37a3f3a36511c2a9cee08d6671bef4", + "mlp.gate_proj.weight": "bc8d924ace2b9eb5f75c4967bf454b643694bdd2ec244376b525540048ba3375", + "self_attn.k_proj.weight": "3a295ef70c850e301d4a125159ac91820b49729061dd25b2a90c4d511e49395e", + "self_attn.o_proj.weight": "2b6fba36fc4b06e46e6afdff3f11d23aec9cda1286a6f075354c1fb8df3f3a31", + "self_attn.q_proj.weight": "82c9e9730b8ad6984087b423049cfc8996595d5b40f404ab9d4312fd784a4b14", + "self_attn.v_proj.weight": "48edbfeb6b967df8697c7c36be5816eb088856bba380604801a54492378cef3a" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_08_transport.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_08_transport.pt new file mode 100644 index 0000000000000000000000000000000000000000..a3dd724f9da3f3d74cec3e71d50666688a11c316 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_08_transport.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff442f44dacc19afd5faec278f2c2cd0a879baa08d29b042fe1bdde2e68cebaf +size 67110518 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_09_merge.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_09_merge.json new file mode 100644 index 0000000000000000000000000000000000000000..142c5aee7d475fcbe7790d8e6b7b07f5c2cd95c8 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_09_merge.json @@ -0,0 +1,1002 @@ +{ + "cycle": 9, + "anchor": 12, + "removed_original_layer": 21, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.354904735045606, + 2.312837006069805, + 0.3307119798264093, + 0.38882979531465905, + 1.3287478362742415, + 1.4392382897821736, + 0.9615229262925192, + 1.2278997650317163, + 0.8263828612781615, + 1.1193242283958542, + 1.0201956237367105, + 0.9109442596255879, + 0.749378969563884, + 0.90322487606263, + 0.8635046798315051, + 0.7446489743439781 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.415775219637126, + 2.362970422189651, + 0.48600688936814973, + 0.41891121339867415, + 1.2717239849236417, + 1.2946769973587537, + 0.8517998016019664, + 1.2357249620929298, + 0.8224324293049441, + 1.167170866440037, + 1.1223524160172733, + 0.9711281109627545, + 0.755306201435458, + 0.8803498455117649, + 0.7499715840746748, + 0.6158216690064374 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.5127952452221116, + 2.40186050988633, + 0.42061537235726365, + 0.41508573338492766, + 1.2293368071179154, + 1.2654087240074934, + 0.8138520586542975, + 1.1374628585667586, + 0.8251048692716371, + 1.1218500861105365, + 1.057826850914651, + 0.9370539597703822, + 0.6883427896153081, + 0.8087319848354482, + 0.7350440039238897, + 0.6390224355159521 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8298172809503326, + 2.6733576317928294, + 0.27891768076106005, + 0.3345382667124743, + 1.1920848009593235, + 1.2273268388454024, + 0.8693423129068647, + 1.1988810948671296, + 0.9570404158372792, + 1.2287689820028347, + 1.2185128384653263, + 1.037214160089925, + 0.7681530454115186, + 0.8938725914929445, + 0.7555569535361598, + 0.558535957103443 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7566340722157374, + 2.5824900119327636, + 0.39788015132379284, + 0.363146003815999, + 0.9241769214948886, + 1.0087801369047389, + 0.7673273357913692, + 1.0617748845970556, + 0.7679554215431607, + 1.0469198965978141, + 0.9874397401659214, + 0.8506796705084928, + 0.7271441086291381, + 0.676016192226224, + 0.49610000091316014, + 0.4178031943607356 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.618581097813819, + 2.5456965872894637, + 0.5415195973544007, + 0.31977074889857493, + 0.9795479535096984, + 1.051772279356039, + 0.7925510445506377, + 1.147224356265611, + 0.8706240926354653, + 1.0734239153570844, + 0.9314014558669682, + 0.8096236531063354, + 0.683821524896421, + 0.7838861318726456, + 0.5974212218310718, + 0.4026841284371468 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8495146416569086, + 2.6289078958745504, + 0.3046562670577072, + 0.2967348415425515, + 0.870028778566192, + 1.0106856838436287, + 0.7316192389657744, + 0.9639152899822973, + 0.7552783600964255, + 0.950713764858555, + 0.7955043629484608, + 0.7035173902979468, + 0.675169086110335, + 0.7061658873566447, + 0.4603092419814475, + 0.3697175589632769 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.895778787118561, + 2.7298059363772573, + 0.3375690222307773, + 0.3379296504973858, + 0.8797947355929516, + 0.9905049611101461, + 0.7302062013805602, + 0.9949397733039065, + 0.7173160054338853, + 0.9020932168965605, + 0.8586203708740789, + 0.7539692891525165, + 0.6854442631498163, + 0.7054575422629963, + 0.48223814856357294, + 0.37546072791741264 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0285667123475686, + 2.7801168441440427, + 0.4378755621211716, + 0.3533273947926343, + 0.9555675621630234, + 1.0400006691675523, + 0.8015828018274135, + 1.0602732731318416, + 0.7766809594813818, + 0.9581276124326714, + 0.9422705876565094, + 0.8762575567072247, + 0.7757395497887083, + 0.7947456226798513, + 0.5837055463649709, + 0.4354921655100933 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.996587805188197, + 2.755891018415263, + 0.4587399421548764, + 0.3011473445040103, + 0.9625056704050592, + 1.0639470825051633, + 0.7538632673077167, + 0.9892050840503231, + 0.7360648692158933, + 0.8915597887543809, + 0.9905106791338412, + 0.9202107008952923, + 0.7489924347735547, + 0.8867549136842681, + 0.797813008643516, + 0.6422275896876818 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.1628933305346587, + 2.9808571018582457, + 0.49724982360602865, + 0.41500706439726925, + 1.133566766951892, + 1.2096549184964591, + 0.8331025603005594, + 1.085031335606536, + 0.7683552737423831, + 0.9355569891034842, + 1.079788087690286, + 0.9851562304439355, + 0.7838484102334218, + 1.0413190688721983, + 1.0308354850424926, + 0.7613066501685022 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.7044595925112382, + 3.126136862833155, + 0.3307996052401007, + 0.2868875647594833, + 0.9494501550721898, + 1.0654209831016133, + 0.7972204483574115, + 0.9907688626768275, + 0.7670533802097879, + 0.9401008693507901, + 0.8742794106060604, + 0.841111271021977, + 0.7010345508382346, + 0.756655742862572, + 0.5635161438826931, + 0.5150841575472963 + ], + [ + 2.354904735045606, + 2.415775219637126, + 2.5127952452221116, + 2.8298172809503326, + 2.7566340722157374, + 2.618581097813819, + 2.8495146416569086, + 2.895778787118561, + 3.0285667123475686, + 2.996587805188197, + 3.1628933305346587, + 3.7044595925112382, + 3.8899209217377266, + 3.0949456558032784, + 0.3195712725866662, + 0.30916133200082907, + 0.9654216235743767, + 1.0902065742897291, + 0.8158107646499925, + 1.0190497048477805, + 0.776547765708914, + 0.9552971481074828, + 0.9092141537287992, + 0.8675705618607096, + 0.7286517808566375, + 0.7433216786793788, + 0.5440496311111911, + 0.5026659810644237 + ], + [ + 2.312837006069805, + 2.362970422189651, + 2.40186050988633, + 2.6733576317928294, + 2.5824900119327636, + 2.5456965872894637, + 2.6289078958745504, + 2.7298059363772573, + 2.7801168441440427, + 2.755891018415263, + 2.9808571018582457, + 3.126136862833155, + 3.0949456558032784, + 3.6812425866388723, + 0.3899375939212445, + 0.30007880116521063, + 0.9628924308248515, + 1.0872556335848418, + 0.8044493382609295, + 0.997337623008618, + 0.72840896216759, + 0.9257065187946212, + 0.9251594650807294, + 0.9249346931655472, + 0.7512787318505508, + 0.7705648378485978, + 0.5399899361205283, + 0.48188832066719883 + ], + [ + 0.3307119798264093, + 0.48600688936814973, + 0.42061537235726365, + 0.27891768076106005, + 0.39788015132379284, + 0.5415195973544007, + 0.3046562670577072, + 0.3375690222307773, + 0.4378755621211716, + 0.4587399421548764, + 0.49724982360602865, + 0.3307996052401007, + 0.3195712725866662, + 0.3899375939212445, + 5.428302447269453, + 2.442446396265685, + 1.328753710792894, + 0.9642266347937211, + 0.4825043957128179, + 1.0156156269160304, + 0.3893739589587789, + 0.49626636656374123, + 0.7424714310257223, + 0.6956106067387712, + 0.5043708817460063, + 0.540307107625599, + 0.4876176781842678, + 1.064303848039494 + ], + [ + 0.38882979531465905, + 0.41891121339867415, + 0.41508573338492766, + 0.3345382667124743, + 0.363146003815999, + 0.31977074889857493, + 0.2967348415425515, + 0.3379296504973858, + 0.3533273947926343, + 0.3011473445040103, + 0.41500706439726925, + 0.2868875647594833, + 0.30916133200082907, + 0.30007880116521063, + 2.442446396265685, + 4.37708763449559, + 1.4480315385393474, + 1.1677651808436267, + 0.6336859587206934, + 0.9510684437188098, + 0.5884726240294303, + 0.6024154925135219, + 0.6550057634883452, + 0.5646525465117775, + 0.4272356785287004, + 0.512458746065239, + 0.5572659007719092, + 0.88378761436946 + ], + [ + 1.3287478362742415, + 1.2717239849236417, + 1.2293368071179154, + 1.1920848009593235, + 0.9241769214948886, + 0.9795479535096984, + 0.870028778566192, + 0.8797947355929516, + 0.9555675621630234, + 0.9625056704050592, + 1.133566766951892, + 0.9494501550721898, + 0.9654216235743767, + 0.9628924308248515, + 1.328753710792894, + 1.4480315385393474, + 3.4386646767250286, + 2.70675889505815, + 1.370199454914521, + 1.5636699618412089, + 1.2127100993914566, + 1.615738063749116, + 1.4954556151610805, + 1.3651543466867444, + 0.9807843923216132, + 1.3461033600802588, + 1.475167554384498, + 1.2101879921213499 + ], + [ + 1.4392382897821736, + 1.2946769973587537, + 1.2654087240074934, + 1.2273268388454024, + 1.0087801369047389, + 1.051772279356039, + 1.0106856838436287, + 0.9905049611101461, + 1.0400006691675523, + 1.0639470825051633, + 1.2096549184964591, + 1.0654209831016133, + 1.0902065742897291, + 1.0872556335848418, + 0.9642266347937211, + 1.1677651808436267, + 2.70675889505815, + 3.712884593325546, + 1.612040339436234, + 1.787324021168131, + 1.4687055530194928, + 2.0636547257060727, + 1.7547924051420734, + 1.5286482781361608, + 1.1521789545580585, + 1.5527955236993158, + 1.7764178852494859, + 1.2484262184734722 + ], + [ + 0.9615229262925192, + 0.8517998016019664, + 0.8138520586542975, + 0.8693423129068647, + 0.7673273357913692, + 0.7925510445506377, + 0.7316192389657744, + 0.7302062013805602, + 0.8015828018274135, + 0.7538632673077167, + 0.8331025603005594, + 0.7972204483574115, + 0.8158107646499925, + 0.8044493382609295, + 0.4825043957128179, + 0.6336859587206934, + 1.370199454914521, + 1.612040339436234, + 2.6032168997379164, + 1.5575135264470188, + 1.1089805387696472, + 1.5751360227957385, + 1.5766390647501294, + 1.40768754580905, + 1.2094995626487288, + 1.398594916814925, + 1.3995524490446105, + 0.8551653898454695 + ], + [ + 1.2278997650317163, + 1.2357249620929298, + 1.1374628585667586, + 1.1988810948671296, + 1.0617748845970556, + 1.147224356265611, + 0.9639152899822973, + 0.9949397733039065, + 1.0602732731318416, + 0.9892050840503231, + 1.085031335606536, + 0.9907688626768275, + 1.0190497048477805, + 0.997337623008618, + 1.0156156269160304, + 0.9510684437188098, + 1.5636699618412089, + 1.787324021168131, + 1.5575135264470188, + 3.0050615327575905, + 1.4162198539235844, + 2.0226955366447905, + 1.9666630047605944, + 1.817450998029019, + 1.5815466867085692, + 1.5299095324406284, + 1.5790788324131817, + 1.1832471612269353 + ], + [ + 0.8263828612781615, + 0.8224324293049441, + 0.8251048692716371, + 0.9570404158372792, + 0.7679554215431607, + 0.8706240926354653, + 0.7552783600964255, + 0.7173160054338853, + 0.7766809594813818, + 0.7360648692158933, + 0.7683552737423831, + 0.7670533802097879, + 0.776547765708914, + 0.72840896216759, + 0.3893739589587789, + 0.5884726240294303, + 1.2127100993914566, + 1.4687055530194928, + 1.1089805387696472, + 1.4162198539235844, + 3.0044075079175534, + 2.4050247015462096, + 2.121684180288626, + 1.9453488612405616, + 1.6263416672495048, + 1.7274173245481044, + 1.5946149125628282, + 1.0183469481143976 + ], + [ + 1.1193242283958542, + 1.167170866440037, + 1.1218500861105365, + 1.2287689820028347, + 1.0469198965978141, + 1.0734239153570844, + 0.950713764858555, + 0.9020932168965605, + 0.9581276124326714, + 0.8915597887543809, + 0.9355569891034842, + 0.9401008693507901, + 0.9552971481074828, + 0.9257065187946212, + 0.49626636656374123, + 0.6024154925135219, + 1.615738063749116, + 2.0636547257060727, + 1.5751360227957385, + 2.0226955366447905, + 2.4050247015462096, + 5.066603294284001, + 3.7940498768536792, + 3.5021321016150875, + 2.948467939937635, + 2.8726389818268196, + 2.5092024677362152, + 1.2837005444522271 + ], + [ + 1.0201956237367105, + 1.1223524160172733, + 1.057826850914651, + 1.2185128384653263, + 0.9874397401659214, + 0.9314014558669682, + 0.7955043629484608, + 0.8586203708740789, + 0.9422705876565094, + 0.9905106791338412, + 1.079788087690286, + 0.8742794106060604, + 0.9092141537287992, + 0.9251594650807294, + 0.7424714310257223, + 0.6550057634883452, + 1.4954556151610805, + 1.7547924051420734, + 1.5766390647501294, + 1.9666630047605944, + 2.121684180288626, + 3.7940498768536792, + 5.920276532817296, + 5.291144113915918, + 4.116782505181741, + 3.6862694590284275, + 2.950210732641706, + 1.7546389323385339 + ], + [ + 0.9109442596255879, + 0.9711281109627545, + 0.9370539597703822, + 1.037214160089925, + 0.8506796705084928, + 0.8096236531063354, + 0.7035173902979468, + 0.7539692891525165, + 0.8762575567072247, + 0.9202107008952923, + 0.9851562304439355, + 0.841111271021977, + 0.8675705618607096, + 0.9249346931655472, + 0.6956106067387712, + 0.5646525465117775, + 1.3651543466867444, + 1.5286482781361608, + 1.40768754580905, + 1.817450998029019, + 1.9453488612405616, + 3.5021321016150875, + 5.291144113915918, + 5.722240976971763, + 4.324457018460413, + 3.76294628626449, + 2.971241965408863, + 1.667657998116971 + ], + [ + 0.749378969563884, + 0.755306201435458, + 0.6883427896153081, + 0.7681530454115186, + 0.7271441086291381, + 0.683821524896421, + 0.675169086110335, + 0.6854442631498163, + 0.7757395497887083, + 0.7489924347735547, + 0.7838484102334218, + 0.7010345508382346, + 0.7286517808566375, + 0.7512787318505508, + 0.5043708817460063, + 0.4272356785287004, + 0.9807843923216132, + 1.1521789545580585, + 1.2094995626487288, + 1.5815466867085692, + 1.6263416672495048, + 2.948467939937635, + 4.116782505181741, + 4.324457018460413, + 4.911633699069733, + 3.193461725325584, + 2.3504794382740073, + 1.3275007256936364 + ], + [ + 0.90322487606263, + 0.8803498455117649, + 0.8087319848354482, + 0.8938725914929445, + 0.676016192226224, + 0.7838861318726456, + 0.7061658873566447, + 0.7054575422629963, + 0.7947456226798513, + 0.8867549136842681, + 1.0413190688721983, + 0.756655742862572, + 0.7433216786793788, + 0.7705648378485978, + 0.540307107625599, + 0.512458746065239, + 1.3461033600802588, + 1.5527955236993158, + 1.398594916814925, + 1.5299095324406284, + 1.7274173245481044, + 2.8726389818268196, + 3.6862694590284275, + 3.76294628626449, + 3.193461725325584, + 5.186409301256866, + 3.741789768467055, + 1.7802021381501596 + ], + [ + 0.8635046798315051, + 0.7499715840746748, + 0.7350440039238897, + 0.7555569535361598, + 0.49610000091316014, + 0.5974212218310718, + 0.4603092419814475, + 0.48223814856357294, + 0.5837055463649709, + 0.797813008643516, + 1.0308354850424926, + 0.5635161438826931, + 0.5440496311111911, + 0.5399899361205283, + 0.4876176781842678, + 0.5572659007719092, + 1.475167554384498, + 1.7764178852494859, + 1.3995524490446105, + 1.5790788324131817, + 1.5946149125628282, + 2.5092024677362152, + 2.950210732641706, + 2.971241965408863, + 2.3504794382740073, + 3.741789768467055, + 5.883064241826724, + 2.1346720250208673 + ], + [ + 0.7446489743439781, + 0.6158216690064374, + 0.6390224355159521, + 0.558535957103443, + 0.4178031943607356, + 0.4026841284371468, + 0.3697175589632769, + 0.37546072791741264, + 0.4354921655100933, + 0.6422275896876818, + 0.7613066501685022, + 0.5150841575472963, + 0.5026659810644237, + 0.48188832066719883, + 1.064303848039494, + 0.88378761436946, + 1.2101879921213499, + 1.2484262184734722, + 0.8551653898454695, + 1.1832471612269353, + 1.0183469481143976, + 1.2837005444522271, + 1.7546389323385339, + 1.667657998116971, + 1.3275007256936364, + 1.7802021381501596, + 2.1346720250208673, + 5.208468905531033 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.4011061735471199, + -0.40598079701950246, + -0.3106188965367697, + -0.34299059894938394, + -0.405722298876856, + -0.40182750809958806, + -0.46382435350423107, + -0.4382272623539742, + -0.45940053931246466, + -0.35871333919403176, + -0.31995395297370394, + -0.32472277179038683, + -0.3448652230509099, + -0.35098075366819675, + -0.33746577357229895, + -0.29544598824703944 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6252624360747442, + "transport_matrix_sha256": "2ddddb87dd62e24f6864b5610b03544524480f1dd6429bbe3b60702cd9b4d83d", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.13890141248703e-05, + "gram_mean_diagonal": 0.0613890141248703, + "calibration_nmse": 0.03578479326997579, + "calibration_cosine": 0.981945031412953, + "calibration_norm_ratio": 0.9810296153539277, + "transport_relative_identity_distance": 0.524169921875, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "1839858bb3153a7d2907bbc4837cab44494ea4f8f73db2dac5a973f1500537c0", + "self_attn.k_proj.weight": "34776759a30508b301e6eeb4c03e74afc6e315a0e4005b788772f03267fa6bad", + "self_attn.v_proj.weight": "25ed7a7bfff05b2a63a9489ed945f49ed624baa5ffa7f971c263e4d3aade1d04", + "self_attn.o_proj.weight": "a8c4e7b3c03654158c39ea33456a291809aee2893e9dde1fa2d530da216b313c", + "self_attn.q_norm.weight": "21aa357e3be95df8e0b87310db2cf759d951d8c9a706c9e1bee207de27cbb87f", + "self_attn.k_norm.weight": "0dfad6f8b52d3a2c224e7cd2b5c1fe87db29b927a7d7fb4161f231df6df2ac02", + "mlp.gate_proj.weight": "4d745750b386ff30e96c0fe5ac21229e0672de87a3c4d30b7a877c333f250622", + "mlp.up_proj.weight": "b0b002f9bd65d4a6b4b37b6cf06139deb86a51ebc96fc27b4ebcff016f3e450b", + "mlp.down_proj.weight": "279864f62a9b78fa49dde314b363ca78f22fda503fbf8e9f64437ea6644a084a", + "input_layernorm.weight": "2974f6d5be715ca00edf542f4e51e5eb5ced2a292277c1974a92f5f6fec44871", + "post_attention_layernorm.weight": "a00da323dd47889f5a6238369523374a092cab49267ad69f4716d7b1c3778d5f" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "1839858bb3153a7d2907bbc4837cab44494ea4f8f73db2dac5a973f1500537c0", + "self_attn.k_proj.weight": "34776759a30508b301e6eeb4c03e74afc6e315a0e4005b788772f03267fa6bad", + "self_attn.v_proj.weight": "25ed7a7bfff05b2a63a9489ed945f49ed624baa5ffa7f971c263e4d3aade1d04", + "self_attn.o_proj.weight": "a8c4e7b3c03654158c39ea33456a291809aee2893e9dde1fa2d530da216b313c", + "self_attn.q_norm.weight": "21aa357e3be95df8e0b87310db2cf759d951d8c9a706c9e1bee207de27cbb87f", + "self_attn.k_norm.weight": "0dfad6f8b52d3a2c224e7cd2b5c1fe87db29b927a7d7fb4161f231df6df2ac02", + "mlp.gate_proj.weight": "87e2a5acae8d6873e7a823620d245c3ad67d65b6dc91408a635268cd9d5d61e0", + "mlp.up_proj.weight": "7d5ed12a5ca5cee4157d03a1097a167b7e270d224702761b55ef63f98c8890be", + "mlp.down_proj.weight": "279864f62a9b78fa49dde314b363ca78f22fda503fbf8e9f64437ea6644a084a", + "input_layernorm.weight": "2974f6d5be715ca00edf542f4e51e5eb5ced2a292277c1974a92f5f6fec44871", + "post_attention_layernorm.weight": "a00da323dd47889f5a6238369523374a092cab49267ad69f4716d7b1c3778d5f" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6252624360747442, + "lambda_right": 0.3747375639252558, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "f926ad9c3c3f97ea0981a49912e70a874892421e7e3be53d739da8c33c3733c4", + "mlp.up_proj.weight": "15df00e706f8be49186d2d459a8692be3c37a3f3a36511c2a9cee08d6671bef4", + "mlp.gate_proj.weight": "bc8d924ace2b9eb5f75c4967bf454b643694bdd2ec244376b525540048ba3375", + "self_attn.k_proj.weight": "3a295ef70c850e301d4a125159ac91820b49729061dd25b2a90c4d511e49395e", + "self_attn.o_proj.weight": "2b6fba36fc4b06e46e6afdff3f11d23aec9cda1286a6f075354c1fb8df3f3a31", + "self_attn.q_proj.weight": "82c9e9730b8ad6984087b423049cfc8996595d5b40f404ab9d4312fd784a4b14", + "self_attn.v_proj.weight": "48edbfeb6b967df8697c7c36be5816eb088856bba380604801a54492378cef3a" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "1839858bb3153a7d2907bbc4837cab44494ea4f8f73db2dac5a973f1500537c0", + "self_attn.k_proj.weight": "34776759a30508b301e6eeb4c03e74afc6e315a0e4005b788772f03267fa6bad", + "self_attn.v_proj.weight": "25ed7a7bfff05b2a63a9489ed945f49ed624baa5ffa7f971c263e4d3aade1d04", + "self_attn.o_proj.weight": "a8c4e7b3c03654158c39ea33456a291809aee2893e9dde1fa2d530da216b313c", + "self_attn.q_norm.weight": "21aa357e3be95df8e0b87310db2cf759d951d8c9a706c9e1bee207de27cbb87f", + "self_attn.k_norm.weight": "0dfad6f8b52d3a2c224e7cd2b5c1fe87db29b927a7d7fb4161f231df6df2ac02", + "mlp.gate_proj.weight": "87e2a5acae8d6873e7a823620d245c3ad67d65b6dc91408a635268cd9d5d61e0", + "mlp.up_proj.weight": "7d5ed12a5ca5cee4157d03a1097a167b7e270d224702761b55ef63f98c8890be", + "mlp.down_proj.weight": "279864f62a9b78fa49dde314b363ca78f22fda503fbf8e9f64437ea6644a084a", + "input_layernorm.weight": "2974f6d5be715ca00edf542f4e51e5eb5ced2a292277c1974a92f5f6fec44871", + "post_attention_layernorm.weight": "a00da323dd47889f5a6238369523374a092cab49267ad69f4716d7b1c3778d5f" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "1e50605707164b7be8ed1451f38d7286cd3f72292e6dc8e69a88514c0cda3041", + "mlp.up_proj.weight": "b10622f9b6d457f37d0445ee62394e50bc29bf881403962590f415efe35182d4", + "mlp.gate_proj.weight": "d1f0108f04350e9e59e0b6cb3da4880c6a33bd1061744d0cf19f3d76a177c07c", + "self_attn.k_proj.weight": "2fd8450c3cd02efe11c715d7c94756b5d0a04dd4c654fad04529e9e698b03458", + "self_attn.o_proj.weight": "94081d86e3044ec4bcd58daeb0d43313cb3973b6359b19655613efed85dfd801", + "self_attn.q_proj.weight": "92fbf2361181f49d9c65fd97a2e0a7773dcfe91556cba39789a8b3e958041612", + "self_attn.v_proj.weight": "2fdbedd6da63acd2d31baef207afc7d348179a95503552c09aac1d0fd786e3c1" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_09_transport.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_09_transport.pt new file mode 100644 index 0000000000000000000000000000000000000000..8e58c177d4077bc752c6ee82cb71ca409cef81ac --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/cycle_09_transport.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:128bd2e629879e3e4e07cd11f057d3291bf41d922857fff8be632c7ffee9d8ae +size 67110518 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/data_manifest.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/data_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..460dfdbcb9b802235868b5d0ac3803cf9a63ffc1 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/data_manifest.json @@ -0,0 +1,15 @@ +{ + "model": "Qwen/Qwen3-8B-Base", + "model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "dataset": "DKYoon/SlimPajama-6B", + "revision": "b5f90f419b7489cdba26fdbc8c022fcb5562f968", + "split": "train", + "packing": "historical nonstreaming dataset.shuffle(seed42); concatenate encoded text without separators or BOS", + "samples": 64, + "seq_len": 1024, + "batch_size": 2, + "seed": 42, + "valid_tokens": 65536, + "input_ids_sha256": "85a84b9a68cf0856fd363186d3a273860886b1c17f876cae145fd092454aff55", + "attention_mask_sha256": "b1476de1907209012e63fa502715fd97db26e595352faa808d8c10433a1472a4" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/selection.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/selection.json new file mode 100644 index 0000000000000000000000000000000000000000..e44a1b3173398cc89179b6d87be246a4363b0ffb --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/audit/selection.json @@ -0,0 +1,11348 @@ +[ + { + "cycle": 1, + "anchor": 12, + "removed_original_layer": 13, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.1270451660560696, + 2.123763872529156, + 2.5495269349077487, + 2.6668278419949014, + 2.6221918114453913, + 2.834988518027483, + 2.8922729066492625, + 3.1908798982034323, + 3.194260294621024, + 3.159925893688281, + 2.912077546379141, + 2.523976484946916, + 2.0873363367429096, + 2.0307487480485555, + 2.0998309783853064, + 1.892793019265785, + 1.2323749979709726, + 1.1554985550276557, + 1.6361373095610952, + 1.5091229131714066, + 1.5332473219580085, + 1.7281610575128585, + 1.3395909707398532, + 1.1117591517605714 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.2131003982189865, + 2.2530984101947746, + 2.675500859881959, + 2.703823042992612, + 2.690730038643846, + 2.8137952658155116, + 2.8884770056591518, + 3.2706936679338376, + 3.2906151212592096, + 3.2819402041940564, + 3.10814926185079, + 2.5581890670837786, + 2.1575961176050846, + 2.1510365414378714, + 2.1949098319479874, + 2.0618927253539225, + 1.304162272554706, + 1.298578647251505, + 1.7157864919666488, + 1.60382209502527, + 1.6471070913050834, + 1.7565851227256437, + 1.5055403784604025, + 1.1287707704578307 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.231263403712327, + 2.2666584628306836, + 2.6942629359080232, + 2.8362033602916394, + 2.7609862401099754, + 3.01987908296117, + 3.052706992464676, + 3.3402565009815977, + 3.354916682310258, + 3.3778728078973383, + 3.117534765825235, + 2.3605599508840873, + 2.0530017235362035, + 2.0464924855917928, + 2.112078320349174, + 1.8608378912090402, + 1.2222872380310943, + 1.2990359054560536, + 1.673049857398633, + 1.6102657441285892, + 1.615535355400224, + 1.7438885901750216, + 1.4002416452003645, + 1.0359435013629148 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.4754890920822006, + 2.578027319204853, + 3.1032077688738497, + 2.9481085803956644, + 2.6440814623259006, + 2.930383945514166, + 3.020408932198757, + 3.560716317835037, + 3.5253675227014254, + 3.3890395839546086, + 3.2714541505007237, + 2.3458471378368295, + 2.090218003239939, + 2.0603663956246576, + 2.1358882822000393, + 1.9515888171905973, + 1.4314242801348327, + 1.3835735513343532, + 1.5841428896011802, + 1.4892682420200092, + 1.5286444381812188, + 1.5582897635109576, + 1.136664371553417, + 1.113444495136599 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.436236285632656, + 2.5103800559910563, + 2.7799342846631823, + 2.6454465346815654, + 2.4008707407895544, + 2.6045912965021834, + 2.7572475578105533, + 3.1075674387788346, + 3.0187641528373192, + 2.8916450158880838, + 2.7353755027323556, + 2.070496971034631, + 1.8499864901659524, + 1.7444053887034863, + 1.7484197990566548, + 1.589818660061575, + 1.3091561219894234, + 1.191334047404436, + 1.4508408959134182, + 1.1566996057657548, + 1.171462292143678, + 1.24736435725554, + 1.0223291937084347, + 0.8438147443122362 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.591952971515432, + 2.6148843051988284, + 2.635361446836386, + 2.581586077135584, + 2.2621838262308804, + 2.4610620454880707, + 2.593166820601701, + 3.1238474120843027, + 3.0225458840286183, + 2.8286014437366647, + 2.81360019494018, + 1.9648777720598098, + 1.7113170686458719, + 1.7348233738764618, + 1.7825813590297923, + 1.5780584111304434, + 1.319108936095601, + 1.1332158798596677, + 1.44417706110947, + 1.136060795426327, + 1.221935386199036, + 1.2441307123037417, + 0.9901598805204426, + 0.8898267459937319 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.504860460453064, + 2.568734554515605, + 2.6819835542753556, + 2.734831292277967, + 2.4530946907141895, + 2.7327092194610363, + 2.8604565636035595, + 3.10673088694393, + 3.0088528678598365, + 2.855045555994516, + 2.7735568188266715, + 2.0256522516265836, + 1.7736696204303577, + 1.7267598432304099, + 1.7597922527112062, + 1.5573512506146105, + 1.3751644232244615, + 1.1406914317382841, + 1.390200478907952, + 1.0609191028795646, + 1.0695992398101668, + 1.187599709357724, + 0.9375080848315025, + 0.7551864080202297 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.4652884154964454, + 2.534327021750114, + 2.7234145076017615, + 2.7988422968971665, + 2.471174104089814, + 2.714886851558257, + 2.82319168264932, + 3.0040540789351615, + 2.9534004040767345, + 2.8686699322608753, + 2.752557301374667, + 2.0178333002565143, + 1.7759254655381718, + 1.7217262173657801, + 1.8523563991835827, + 1.6699879274275604, + 1.3662172137722333, + 1.2325254530790066, + 1.4191672404161844, + 1.1918953027631722, + 1.1546802433586727, + 1.2033217938745673, + 0.9138262687037109, + 0.7052304296020949 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.4854204405615006, + 2.5878280803110947, + 2.6827638953379696, + 2.6541354293737043, + 2.3930603475420975, + 2.6117427788570504, + 2.7367951859240778, + 3.1685772218311237, + 3.113798318328056, + 3.0688203719999856, + 2.971525229218135, + 2.209860302272856, + 1.9447425204453042, + 1.9234415921525554, + 2.093195415594123, + 1.8724290092661566, + 1.4900325603011977, + 1.3001835116335378, + 1.5592172331169845, + 1.2145378770702984, + 1.1467017054235111, + 1.248574489756711, + 0.9425908831706167, + 0.7640825875680176 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.3957430156365436, + 2.346307736720229, + 3.0097909909981135, + 2.79097772259688, + 2.4874002952301013, + 2.800233877794583, + 2.9486201492645456, + 3.3027540605970587, + 3.41031292280659, + 3.2639903476705556, + 3.018405282935397, + 2.3247200818328064, + 2.2747786419694793, + 2.2428956838232703, + 2.3772280583008896, + 2.227864740690477, + 1.5007847392800722, + 1.5503786607476264, + 1.660553322673839, + 1.3296147487820291, + 1.1649642179648472, + 1.2612006275214989, + 1.0622536237436497, + 0.8544718879638702 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 2.569679991154589, + 2.599006005362874, + 3.237590288221056, + 3.1502304389279705, + 2.7435218170320503, + 2.981124959584841, + 3.1731055968114874, + 3.841397196933097, + 3.9020807158797677, + 3.7060111050136464, + 3.478674621342708, + 2.617055016379998, + 2.4802945545754356, + 2.455495559655865, + 2.5664242821133914, + 2.4153810911774087, + 1.5245945445968723, + 1.5562138253708768, + 1.772382492022484, + 1.336536220805509, + 1.281205508859415, + 1.363892335502077, + 1.1615312519352017, + 0.8855618120504487 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 2.8271867664678747, + 2.842787479534727, + 3.1018961257640028, + 2.886462431760435, + 2.574896707529257, + 2.8430770723248315, + 2.9893657460578913, + 3.221700471547909, + 3.14967735712804, + 3.0070693689280477, + 2.942042115189412, + 2.236018557634299, + 1.9096403639282222, + 1.894450005912043, + 1.9956909807298007, + 1.882030084002398, + 1.510034002772697, + 1.3646436341642285, + 1.469793602065526, + 1.0555553471965182, + 1.02459243850127, + 1.1259213821097562, + 0.8984627746701634, + 0.6386254602456857 + ], + [ + 2.1270451660560696, + 2.2131003982189865, + 2.231263403712327, + 2.4754890920822006, + 2.436236285632656, + 2.591952971515432, + 2.504860460453064, + 2.4652884154964454, + 2.4854204405615006, + 2.3957430156365436, + 2.569679991154589, + 2.8271867664678747, + 3.812662698820945, + 3.3317575935949395, + 2.7854088126972494, + 2.7615157562158426, + 2.422851666536677, + 2.7373545269883564, + 2.8309107242350593, + 3.0535498438417137, + 2.9367829092428543, + 2.6685166631884876, + 2.6520392846282053, + 1.9685974830136408, + 1.8681834228049579, + 1.7839248116400461, + 1.8781519144317937, + 1.7180747899053552, + 1.3595250426795165, + 1.109927072692434, + 1.4736389690920333, + 1.0685055488155717, + 1.2063414335419105, + 1.3015396915833224, + 0.904167556149851, + 0.7549288394598197 + ], + [ + 2.123763872529156, + 2.2530984101947746, + 2.2666584628306836, + 2.578027319204853, + 2.5103800559910563, + 2.6148843051988284, + 2.568734554515605, + 2.534327021750114, + 2.5878280803110947, + 2.346307736720229, + 2.599006005362874, + 2.842787479534727, + 3.3317575935949395, + 3.820309516352677, + 2.9089456403116065, + 2.745087587093582, + 2.332153750959724, + 2.6392703125198462, + 2.84303451320742, + 2.982284077904956, + 2.9236149278173764, + 2.7356631706281522, + 2.65969439557133, + 1.9843613574928805, + 1.7907001379566398, + 1.7458862097114825, + 1.8945015653272739, + 1.7103414645756603, + 1.3630988201827707, + 1.071663527313717, + 1.4474214720038143, + 1.0212893666103973, + 1.1848339437301723, + 1.3001179677088908, + 0.9317517594130832, + 0.7222333629736347 + ], + [ + 2.5495269349077487, + 2.675500859881959, + 2.6942629359080232, + 3.1032077688738497, + 2.7799342846631823, + 2.635361446836386, + 2.6819835542753556, + 2.7234145076017615, + 2.6827638953379696, + 3.0097909909981135, + 3.237590288221056, + 3.1018961257640028, + 2.7854088126972494, + 2.9089456403116065, + 4.299089970353988, + 3.555337725787184, + 3.0189490111514776, + 3.3758214881702364, + 3.6521199992994533, + 3.6242033317546523, + 3.4609330485657717, + 3.2293454711282283, + 3.066163494055312, + 2.338396692958152, + 1.9698097818410572, + 1.9747344102650393, + 2.1356250367138543, + 1.998144858099896, + 1.3531717996896562, + 1.3684876354505549, + 1.4818454656250617, + 1.1173410045239887, + 1.0986568017878269, + 1.2271336502542167, + 0.9765235734909726, + 0.823735656853221 + ], + [ + 2.6668278419949014, + 2.703823042992612, + 2.8362033602916394, + 2.9481085803956644, + 2.6454465346815654, + 2.581586077135584, + 2.734831292277967, + 2.7988422968971665, + 2.6541354293737043, + 2.79097772259688, + 3.1502304389279705, + 2.886462431760435, + 2.7615157562158426, + 2.745087587093582, + 3.555337725787184, + 4.680683056201329, + 3.634424687619012, + 4.017699316478667, + 4.237325197746933, + 3.8260586299648, + 3.572258634318387, + 3.289965018455628, + 3.0578325218372906, + 2.2774128673287604, + 1.8826561996613425, + 1.8329116355557453, + 1.9767043841942658, + 1.7938335301543111, + 1.1202710089578178, + 1.0779874250819925, + 1.4483150615256646, + 1.0244594629381738, + 1.0083103829397622, + 1.1497672697130805, + 1.0429375634752587, + 0.7917520234147246 + ], + [ + 2.6221918114453913, + 2.690730038643846, + 2.7609862401099754, + 2.6440814623259006, + 2.4008707407895544, + 2.2621838262308804, + 2.4530946907141895, + 2.471174104089814, + 2.3930603475420975, + 2.4874002952301013, + 2.7435218170320503, + 2.574896707529257, + 2.422851666536677, + 2.332153750959724, + 3.0189490111514776, + 3.634424687619012, + 4.740015546406883, + 4.315260850600788, + 4.178945386391538, + 3.4452308159673795, + 3.1587445477918776, + 3.066248299474256, + 2.799566604400168, + 2.126109355154, + 1.7994761155933356, + 1.76769182410245, + 1.9011178318696713, + 1.7155540443356807, + 1.0377847871488473, + 1.0386909473614994, + 1.3325120317894406, + 0.9270411026490498, + 0.9735937351493019, + 1.051323225227053, + 0.9274629459107973, + 0.8050472328146363 + ], + [ + 2.834988518027483, + 2.8137952658155116, + 3.01987908296117, + 2.930383945514166, + 2.6045912965021834, + 2.4610620454880707, + 2.7327092194610363, + 2.714886851558257, + 2.6117427788570504, + 2.800233877794583, + 2.981124959584841, + 2.8430770723248315, + 2.7373545269883564, + 2.6392703125198462, + 3.3758214881702364, + 4.017699316478667, + 4.315260850600788, + 5.089181110259708, + 4.395720051977264, + 3.9466677429945762, + 3.685489464039797, + 3.4160448924461644, + 3.144376944651456, + 2.2645010089046105, + 1.9069030680970513, + 1.945614248302221, + 2.123865029931966, + 1.8888565249498932, + 1.1831778281069016, + 1.1847292700448848, + 1.5374256594893978, + 1.0225168675451546, + 1.0546030102052792, + 1.1773312843618118, + 1.123006785741699, + 0.8933998967343877 + ], + [ + 2.8922729066492625, + 2.8884770056591518, + 3.052706992464676, + 3.020408932198757, + 2.7572475578105533, + 2.593166820601701, + 2.8604565636035595, + 2.82319168264932, + 2.7367951859240778, + 2.9486201492645456, + 3.1731055968114874, + 2.9893657460578913, + 2.8309107242350593, + 2.84303451320742, + 3.6521199992994533, + 4.237325197746933, + 4.178945386391538, + 4.395720051977264, + 5.319154540321637, + 4.052051607029074, + 3.8306071485782707, + 3.5685676882579465, + 3.276844739099829, + 2.4709875714234957, + 2.1339012986892016, + 2.0916400142412415, + 2.226806251908289, + 1.9767909808759936, + 1.2272325597741451, + 1.1867531036630428, + 1.5073684679316288, + 1.0384951745881563, + 1.0951948706669947, + 1.2690089823478756, + 1.1369923869760008, + 0.9382665428863548 + ], + [ + 3.1908798982034323, + 3.2706936679338376, + 3.3402565009815977, + 3.560716317835037, + 3.1075674387788346, + 3.1238474120843027, + 3.10673088694393, + 3.0040540789351615, + 3.1685772218311237, + 3.3027540605970587, + 3.841397196933097, + 3.221700471547909, + 3.0535498438417137, + 2.982284077904956, + 3.6242033317546523, + 3.8260586299648, + 3.4452308159673795, + 3.9466677429945762, + 4.052051607029074, + 6.030635074506439, + 5.373502658488682, + 4.755588196311479, + 4.408340928265699, + 3.050002737161297, + 2.644663285812439, + 2.6301439885930145, + 2.794433815754178, + 2.5324938042856595, + 1.4739363755906232, + 1.4969524529010731, + 1.9021793608885131, + 1.5687080015982926, + 1.591871074645982, + 1.7837800559201187, + 1.4003555719327998, + 1.1380685685295455 + ], + [ + 3.194260294621024, + 3.2906151212592096, + 3.354916682310258, + 3.5253675227014254, + 3.0187641528373192, + 3.0225458840286183, + 3.0088528678598365, + 2.9534004040767345, + 3.113798318328056, + 3.41031292280659, + 3.9020807158797677, + 3.14967735712804, + 2.9367829092428543, + 2.9236149278173764, + 3.4609330485657717, + 3.572258634318387, + 3.1587445477918776, + 3.685489464039797, + 3.8306071485782707, + 5.373502658488682, + 5.726666773834767, + 4.96736011980298, + 4.416268076825157, + 3.202751350198948, + 2.6629691513453335, + 2.633247512593971, + 2.849688956453912, + 2.6332479164292724, + 1.5520623665562931, + 1.5647521351445735, + 2.0151679796236945, + 1.637924594419455, + 1.6600001002475147, + 1.8301299727996319, + 1.5173834431377982, + 1.1612451274153273 + ], + [ + 3.159925893688281, + 3.2819402041940564, + 3.3778728078973383, + 3.3890395839546086, + 2.8916450158880838, + 2.8286014437366647, + 2.855045555994516, + 2.8686699322608753, + 3.0688203719999856, + 3.2639903476705556, + 3.7060111050136464, + 3.0070693689280477, + 2.6685166631884876, + 2.7356631706281522, + 3.2293454711282283, + 3.289965018455628, + 3.066248299474256, + 3.4160448924461644, + 3.5685676882579465, + 4.755588196311479, + 4.96736011980298, + 5.35957793692388, + 4.468271377289655, + 3.343998967982652, + 2.6949635180701157, + 2.6687372186202025, + 2.9974498650199415, + 2.7413713745662864, + 1.583505273708417, + 1.606412603619795, + 2.062098628619096, + 1.6256028754238172, + 1.691747980153108, + 1.8299986034983793, + 1.586524868721254, + 1.0931487294174285 + ], + [ + 2.912077546379141, + 3.10814926185079, + 3.117534765825235, + 3.2714541505007237, + 2.7353755027323556, + 2.81360019494018, + 2.7735568188266715, + 2.752557301374667, + 2.971525229218135, + 3.018405282935397, + 3.478674621342708, + 2.942042115189412, + 2.6520392846282053, + 2.65969439557133, + 3.066163494055312, + 3.0578325218372906, + 2.799566604400168, + 3.144376944651456, + 3.276844739099829, + 4.408340928265699, + 4.416268076825157, + 4.468271377289655, + 5.059169100508454, + 3.394973583036432, + 2.776881384690432, + 2.760579633927592, + 3.072933245631255, + 2.8978196974938184, + 1.6646218190648874, + 1.733708713824975, + 2.028918100495332, + 1.6121655299217434, + 1.6257168975324168, + 1.7069000145703237, + 1.4325747824851467, + 1.0856925424560175 + ], + [ + 2.523976484946916, + 2.5581890670837786, + 2.3605599508840873, + 2.3458471378368295, + 2.070496971034631, + 1.9648777720598098, + 2.0256522516265836, + 2.0178333002565143, + 2.209860302272856, + 2.3247200818328064, + 2.617055016379998, + 2.236018557634299, + 1.9685974830136408, + 1.9843613574928805, + 2.338396692958152, + 2.2774128673287604, + 2.126109355154, + 2.2645010089046105, + 2.4709875714234957, + 3.050002737161297, + 3.202751350198948, + 3.343998967982652, + 3.394973583036432, + 4.519650309030202, + 2.767460765583157, + 2.714201424788431, + 2.853602737959896, + 2.813461087616291, + 1.6177386809214458, + 1.7443011079882076, + 2.1112523664163225, + 1.5795890644547845, + 1.6022995313259423, + 1.6776882004405225, + 1.6051943377379274, + 1.244378162917985 + ], + [ + 2.0873363367429096, + 2.1575961176050846, + 2.0530017235362035, + 2.090218003239939, + 1.8499864901659524, + 1.7113170686458719, + 1.7736696204303577, + 1.7759254655381718, + 1.9447425204453042, + 2.2747786419694793, + 2.4802945545754356, + 1.9096403639282222, + 1.8681834228049579, + 1.7907001379566398, + 1.9698097818410572, + 1.8826561996613425, + 1.7994761155933356, + 1.9069030680970513, + 2.1339012986892016, + 2.644663285812439, + 2.6629691513453335, + 2.6949635180701157, + 2.776881384690432, + 2.767460765583157, + 4.917050310486877, + 4.257039906395875, + 3.808692126270025, + 3.6763714070197575, + 2.0270791978126397, + 2.0835602545828813, + 2.8833400474341744, + 2.109980179044883, + 2.0576259801507772, + 2.1149094396230472, + 1.9000257895227817, + 1.5446542938469605 + ], + [ + 2.0307487480485555, + 2.1510365414378714, + 2.0464924855917928, + 2.0603663956246576, + 1.7444053887034863, + 1.7348233738764618, + 1.7267598432304099, + 1.7217262173657801, + 1.9234415921525554, + 2.2428956838232703, + 2.455495559655865, + 1.894450005912043, + 1.7839248116400461, + 1.7458862097114825, + 1.9747344102650393, + 1.8329116355557453, + 1.76769182410245, + 1.945614248302221, + 2.0916400142412415, + 2.6301439885930145, + 2.633247512593971, + 2.6687372186202025, + 2.760579633927592, + 2.714201424788431, + 4.257039906395875, + 5.145821066016456, + 4.269952168985326, + 4.0402431070688225, + 2.071389038763347, + 2.2046695849784044, + 2.9189082408208096, + 2.0337904556153292, + 1.8822223322468716, + 1.9731293435572848, + 1.7448665882850762, + 1.5753702246930679 + ], + [ + 2.0998309783853064, + 2.1949098319479874, + 2.112078320349174, + 2.1358882822000393, + 1.7484197990566548, + 1.7825813590297923, + 1.7597922527112062, + 1.8523563991835827, + 2.093195415594123, + 2.3772280583008896, + 2.5664242821133914, + 1.9956909807298007, + 1.8781519144317937, + 1.8945015653272739, + 2.1356250367138543, + 1.9767043841942658, + 1.9011178318696713, + 2.123865029931966, + 2.226806251908289, + 2.794433815754178, + 2.849688956453912, + 2.9974498650199415, + 3.072933245631255, + 2.853602737959896, + 3.808692126270025, + 4.269952168985326, + 5.9621803984756845, + 5.165936836613327, + 2.455912849698523, + 2.5237440753841174, + 3.328105075432791, + 2.0347596378619204, + 1.8651393002716692, + 1.911799190288745, + 1.868220183274588, + 1.3776230572762422 + ], + [ + 1.892793019265785, + 2.0618927253539225, + 1.8608378912090402, + 1.9515888171905973, + 1.589818660061575, + 1.5780584111304434, + 1.5573512506146105, + 1.6699879274275604, + 1.8724290092661566, + 2.227864740690477, + 2.4153810911774087, + 1.882030084002398, + 1.7180747899053552, + 1.7103414645756603, + 1.998144858099896, + 1.7938335301543111, + 1.7155540443356807, + 1.8888565249498932, + 1.9767909808759936, + 2.5324938042856595, + 2.6332479164292724, + 2.7413713745662864, + 2.8978196974938184, + 2.813461087616291, + 3.6763714070197575, + 4.0402431070688225, + 5.165936836613327, + 6.309418142054022, + 3.0193832756733054, + 3.0621250194592022, + 3.598081796083498, + 2.2567753795679257, + 2.043817132990763, + 2.063481427913692, + 2.163622684029622, + 1.4320223943077788 + ], + [ + 1.2323749979709726, + 1.304162272554706, + 1.2222872380310943, + 1.4314242801348327, + 1.3091561219894234, + 1.319108936095601, + 1.3751644232244615, + 1.3662172137722333, + 1.4900325603011977, + 1.5007847392800722, + 1.5245945445968723, + 1.510034002772697, + 1.3595250426795165, + 1.3630988201827707, + 1.3531717996896562, + 1.1202710089578178, + 1.0377847871488473, + 1.1831778281069016, + 1.2272325597741451, + 1.4739363755906232, + 1.5520623665562931, + 1.583505273708417, + 1.6646218190648874, + 1.6177386809214458, + 2.0270791978126397, + 2.071389038763347, + 2.455912849698523, + 3.0193832756733054, + 3.77697405977638, + 2.8294279817413215, + 2.8524728806662822, + 1.6707738199074762, + 1.3393016397835837, + 1.364261236123678, + 1.5765481852550356, + 1.0714798764931923 + ], + [ + 1.1554985550276557, + 1.298578647251505, + 1.2990359054560536, + 1.3835735513343532, + 1.191334047404436, + 1.1332158798596677, + 1.1406914317382841, + 1.2325254530790066, + 1.3001835116335378, + 1.5503786607476264, + 1.5562138253708768, + 1.3646436341642285, + 1.109927072692434, + 1.071663527313717, + 1.3684876354505549, + 1.0779874250819925, + 1.0386909473614994, + 1.1847292700448848, + 1.1867531036630428, + 1.4969524529010731, + 1.5647521351445735, + 1.606412603619795, + 1.733708713824975, + 1.7443011079882076, + 2.0835602545828813, + 2.2046695849784044, + 2.5237440753841174, + 3.0621250194592022, + 2.8294279817413215, + 4.500137042933295, + 3.4219012148108106, + 2.0937251200589717, + 1.652030631015508, + 1.8073432962068121, + 2.111049974866841, + 1.1599114377986668 + ], + [ + 1.6361373095610952, + 1.7157864919666488, + 1.673049857398633, + 1.5841428896011802, + 1.4508408959134182, + 1.44417706110947, + 1.390200478907952, + 1.4191672404161844, + 1.5592172331169845, + 1.660553322673839, + 1.772382492022484, + 1.469793602065526, + 1.4736389690920333, + 1.4474214720038143, + 1.4818454656250617, + 1.4483150615256646, + 1.3325120317894406, + 1.5374256594893978, + 1.5073684679316288, + 1.9021793608885131, + 2.0151679796236945, + 2.062098628619096, + 2.028918100495332, + 2.1112523664163225, + 2.8833400474341744, + 2.9189082408208096, + 3.328105075432791, + 3.598081796083498, + 2.8524728806662822, + 3.4219012148108106, + 5.785907291934449, + 3.2127957440854464, + 2.7940517453804774, + 2.7458259888984244, + 2.7534611138880143, + 1.5348024556330402 + ], + [ + 1.5091229131714066, + 1.60382209502527, + 1.6102657441285892, + 1.4892682420200092, + 1.1566996057657548, + 1.136060795426327, + 1.0609191028795646, + 1.1918953027631722, + 1.2145378770702984, + 1.3296147487820291, + 1.336536220805509, + 1.0555553471965182, + 1.0685055488155717, + 1.0212893666103973, + 1.1173410045239887, + 1.0244594629381738, + 0.9270411026490498, + 1.0225168675451546, + 1.0384951745881563, + 1.5687080015982926, + 1.637924594419455, + 1.6256028754238172, + 1.6121655299217434, + 1.5795890644547845, + 2.109980179044883, + 2.0337904556153292, + 2.0347596378619204, + 2.2567753795679257, + 1.6707738199074762, + 2.0937251200589717, + 3.2127957440854464, + 4.02263959453308, + 3.2610240487371422, + 2.970380141454948, + 2.47774614498879, + 1.4732632701207096 + ], + [ + 1.5332473219580085, + 1.6471070913050834, + 1.615535355400224, + 1.5286444381812188, + 1.171462292143678, + 1.221935386199036, + 1.0695992398101668, + 1.1546802433586727, + 1.1467017054235111, + 1.1649642179648472, + 1.281205508859415, + 1.02459243850127, + 1.2063414335419105, + 1.1848339437301723, + 1.0986568017878269, + 1.0083103829397622, + 0.9735937351493019, + 1.0546030102052792, + 1.0951948706669947, + 1.591871074645982, + 1.6600001002475147, + 1.691747980153108, + 1.6257168975324168, + 1.6022995313259423, + 2.0576259801507772, + 1.8822223322468716, + 1.8651393002716692, + 2.043817132990763, + 1.3393016397835837, + 1.652030631015508, + 2.7940517453804774, + 3.2610240487371422, + 4.039080580257261, + 3.33137090395557, + 2.6108808565558577, + 1.6172904504047905 + ], + [ + 1.7281610575128585, + 1.7565851227256437, + 1.7438885901750216, + 1.5582897635109576, + 1.24736435725554, + 1.2441307123037417, + 1.187599709357724, + 1.2033217938745673, + 1.248574489756711, + 1.2612006275214989, + 1.363892335502077, + 1.1259213821097562, + 1.3015396915833224, + 1.3001179677088908, + 1.2271336502542167, + 1.1497672697130805, + 1.051323225227053, + 1.1773312843618118, + 1.2690089823478756, + 1.7837800559201187, + 1.8301299727996319, + 1.8299986034983793, + 1.7069000145703237, + 1.6776882004405225, + 2.1149094396230472, + 1.9731293435572848, + 1.911799190288745, + 2.063481427913692, + 1.364261236123678, + 1.8073432962068121, + 2.7458259888984244, + 2.970380141454948, + 3.33137090395557, + 4.089278489112553, + 2.9295552577623636, + 1.76472528852034 + ], + [ + 1.3395909707398532, + 1.5055403784604025, + 1.4002416452003645, + 1.136664371553417, + 1.0223291937084347, + 0.9901598805204426, + 0.9375080848315025, + 0.9138262687037109, + 0.9425908831706167, + 1.0622536237436497, + 1.1615312519352017, + 0.8984627746701634, + 0.904167556149851, + 0.9317517594130832, + 0.9765235734909726, + 1.0429375634752587, + 0.9274629459107973, + 1.123006785741699, + 1.1369923869760008, + 1.4003555719327998, + 1.5173834431377982, + 1.586524868721254, + 1.4325747824851467, + 1.6051943377379274, + 1.9000257895227817, + 1.7448665882850762, + 1.868220183274588, + 2.163622684029622, + 1.5765481852550356, + 2.111049974866841, + 2.7534611138880143, + 2.47774614498879, + 2.6108808565558577, + 2.9295552577623636, + 5.723673633440012, + 2.586185417698912 + ], + [ + 1.1117591517605714, + 1.1287707704578307, + 1.0359435013629148, + 1.113444495136599, + 0.8438147443122362, + 0.8898267459937319, + 0.7551864080202297, + 0.7052304296020949, + 0.7640825875680176, + 0.8544718879638702, + 0.8855618120504487, + 0.6386254602456857, + 0.7549288394598197, + 0.7222333629736347, + 0.823735656853221, + 0.7917520234147246, + 0.8050472328146363, + 0.8933998967343877, + 0.9382665428863548, + 1.1380685685295455, + 1.1612451274153273, + 1.0931487294174285, + 1.0856925424560175, + 1.244378162917985, + 1.5446542938469605, + 1.5753702246930679, + 1.3776230572762422, + 1.4320223943077788, + 1.0714798764931923, + 1.1599114377986668, + 1.5348024556330402, + 1.4732632701207096, + 1.6172904504047905, + 1.76472528852034, + 2.586185417698912, + 4.535905116906884 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.4111329371397993, + -0.4107944627584447, + -0.3709441682662928, + -0.3712205684433753, + -0.35343240767287604, + -0.34152432382624814, + -0.3419198421173894, + -0.29014772631424307, + -0.30516631069564987, + -0.3379388936772931, + -0.3444230911381742, + -0.36868789800176577, + -0.3288747242250069, + -0.32431136462076376, + -0.3155910759382881, + -0.2847631125505851, + -0.39761539021067777, + -0.3664402491496291, + -0.2790347772653468, + -0.3643296960015641, + -0.3665443480384761, + -0.3650034614104159, + -0.33289112571954477, + -0.3505767320899869 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6223093790055023, + "transport_matrix_sha256": "ea43767088fa2f8cc0b7ba197024635f7b8a7e19fdd34170b499f470c2461672", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.060115993022919e-05, + "gram_mean_diagonal": 0.06060115993022919, + "calibration_nmse": 0.12798181447783583, + "calibration_cosine": 0.9338195359584089, + "calibration_norm_ratio": 0.9329591782339236, + "transport_relative_identity_distance": 0.4961368441581726, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "67540e2474547f1d622b738128696574720591fddabb8157d2f6812ecc3af308", + "self_attn.k_proj.weight": "efbe8b71b99ef90277849155ebc45e9aad5ffe746f2958c077c7c7130d783c7b", + "self_attn.v_proj.weight": "c53545e1ac9a6447efa83242434a0b28bcda5fe12ef3866e173dd13c3da45e38", + "self_attn.o_proj.weight": "8812afef76626e47fb5dffe3a77a0cb07a07e8a7f5cf3a97453368a1284b0ffa", + "self_attn.q_norm.weight": "79bbb659cb1c2af322ca85abf7d26b088c837bcd284e70efa95a6449f69b5673", + "self_attn.k_norm.weight": "e50a57833625792c16439de078eeb810df393e1a49ef7bbe43f5af6a93923adc", + "mlp.gate_proj.weight": "6bc0a4412e6639d40e3a7d5c9099a5a05f2573bd12744019550fc11da2c52c55", + "mlp.up_proj.weight": "8715dd4fa81b5d58a577a1b2fdfb24592b23775921014b36f832fe8dbf2bbf51", + "mlp.down_proj.weight": "032dc5aba56bd954e7498918ca13b8589c12587c97ad88560480e8d28c18883b", + "input_layernorm.weight": "c419d161cc4932ecddf0ec98cbe5737b92688f0d5aa71a7e95d2006ca824ffca", + "post_attention_layernorm.weight": "ee6a9a96c2b4f35eb0807060229f10bc28080072ed9ecfa0a17e1aaa3cb4df40" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "67540e2474547f1d622b738128696574720591fddabb8157d2f6812ecc3af308", + "self_attn.k_proj.weight": "efbe8b71b99ef90277849155ebc45e9aad5ffe746f2958c077c7c7130d783c7b", + "self_attn.v_proj.weight": "c53545e1ac9a6447efa83242434a0b28bcda5fe12ef3866e173dd13c3da45e38", + "self_attn.o_proj.weight": "8812afef76626e47fb5dffe3a77a0cb07a07e8a7f5cf3a97453368a1284b0ffa", + "self_attn.q_norm.weight": "79bbb659cb1c2af322ca85abf7d26b088c837bcd284e70efa95a6449f69b5673", + "self_attn.k_norm.weight": "e50a57833625792c16439de078eeb810df393e1a49ef7bbe43f5af6a93923adc", + "mlp.gate_proj.weight": "655a66345118a70ec952e549407ec7f19222782a04bf0db39c5ee8372372a2bf", + "mlp.up_proj.weight": "cb86cdbce20a724154f50658e0c2cfc3ec3d63e3802388217035698470825d82", + "mlp.down_proj.weight": "032dc5aba56bd954e7498918ca13b8589c12587c97ad88560480e8d28c18883b", + "input_layernorm.weight": "c419d161cc4932ecddf0ec98cbe5737b92688f0d5aa71a7e95d2006ca824ffca", + "post_attention_layernorm.weight": "ee6a9a96c2b4f35eb0807060229f10bc28080072ed9ecfa0a17e1aaa3cb4df40" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6223093790055023, + "lambda_right": 0.3776906209944977, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "7a34a8a9bcc1a25c928397e3be5c409081b9de0ec283d13425482c0020e6db43", + "mlp.up_proj.weight": "1f3dacc4c4a3af2a55d6273cfc2374077a2eda18cec7cf8237e05c54cc1b8ea5", + "mlp.gate_proj.weight": "3e138d6d890dfaeeeb88ae9b8a48c084aea69752230749e87f1586b975880ddd", + "self_attn.k_proj.weight": "8d6f656be7538039543561a8c96dca260b3db7bdcb26946d9dca9a10101bb58f", + "self_attn.o_proj.weight": "e3c5cc19864068b28a406400c10d2704664356085511c7e44b587a1eab278d92", + "self_attn.q_proj.weight": "1b6c758076acef0ff0bbf34e9ee7be3808252f432a10b0015a99b07a232ddf79", + "self_attn.v_proj.weight": "ae85148c6da3808090619c005e94364db614bdec475df91ba4e312cb026fa377" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "67540e2474547f1d622b738128696574720591fddabb8157d2f6812ecc3af308", + "self_attn.k_proj.weight": "efbe8b71b99ef90277849155ebc45e9aad5ffe746f2958c077c7c7130d783c7b", + "self_attn.v_proj.weight": "c53545e1ac9a6447efa83242434a0b28bcda5fe12ef3866e173dd13c3da45e38", + "self_attn.o_proj.weight": "8812afef76626e47fb5dffe3a77a0cb07a07e8a7f5cf3a97453368a1284b0ffa", + "self_attn.q_norm.weight": "79bbb659cb1c2af322ca85abf7d26b088c837bcd284e70efa95a6449f69b5673", + "self_attn.k_norm.weight": "e50a57833625792c16439de078eeb810df393e1a49ef7bbe43f5af6a93923adc", + "mlp.gate_proj.weight": "655a66345118a70ec952e549407ec7f19222782a04bf0db39c5ee8372372a2bf", + "mlp.up_proj.weight": "cb86cdbce20a724154f50658e0c2cfc3ec3d63e3802388217035698470825d82", + "mlp.down_proj.weight": "032dc5aba56bd954e7498918ca13b8589c12587c97ad88560480e8d28c18883b", + "input_layernorm.weight": "c419d161cc4932ecddf0ec98cbe5737b92688f0d5aa71a7e95d2006ca824ffca", + "post_attention_layernorm.weight": "ee6a9a96c2b4f35eb0807060229f10bc28080072ed9ecfa0a17e1aaa3cb4df40" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "95732a59144d689baf46fef38c0b43ffe9d4c4663cf160e2494d6146957f00e5", + "mlp.up_proj.weight": "2bf9bc06f266d744623ff42d772eb1d8c29012ef0d46f116eae908dbb08a89b8", + "mlp.gate_proj.weight": "95e7d27498b2eec4f1d4b641f8a528c393e6abee78b172b6284f69920f385125", + "self_attn.k_proj.weight": "c09a39b4dfd4e9121fcca782d6b4aa9603af01e398239090034c492af0cd887a", + "self_attn.o_proj.weight": "e39994b63ebe97dbd6d6d5405206a1673f3d2151a262572b8aff783a32a918e0", + "self_attn.q_proj.weight": "fe50101d44f36f6e7161e07949c2bc6c3eb25830f053bdaf06efc1b1c94f5f0f", + "self_attn.v_proj.weight": "c31fbee7c61e87cfa00e10371fc6d7f72d85f7b22cfab7b3e4390fe26508d6c7" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + }, + { + "cycle": 2, + "anchor": 12, + "removed_original_layer": 14, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.3460994946178024, + 2.3766555685616604, + 2.1660702768334765, + 1.5995648153972046, + 1.9039105990240157, + 2.317596408258066, + 2.4985278926945913, + 2.982298868508639, + 3.0121955967210168, + 2.658900943392461, + 2.6819167225857217, + 1.8257508607136372, + 1.9600940822577222, + 1.942752629151272, + 1.5693947828989996, + 1.0847383761454246, + 1.1261161765414247, + 1.698877362568659, + 1.2977168776485808, + 1.38720492450309, + 1.618789649034315, + 1.3053316760921456, + 1.1954305709860293 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.4113981182591977, + 2.4675569894943536, + 2.298714721340813, + 1.7470257494011263, + 1.980820224200878, + 2.416840554055094, + 2.6634514723924316, + 3.1774466897177294, + 3.189373346017945, + 2.8542676187243288, + 2.7901272347159676, + 1.9672712275889204, + 2.1328748003870768, + 2.152445994717053, + 1.7911692129918657, + 1.2325445482031443, + 1.2631285020925673, + 1.7581771211883654, + 1.4384783593002088, + 1.5302211383233428, + 1.6762132401906602, + 1.359274805778048, + 1.1952136942582152 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.518743912446343, + 2.550517752403105, + 2.333388414197134, + 1.810508792699171, + 2.0927696450407915, + 2.5783728916242836, + 2.775002312076615, + 3.2180018233186876, + 3.208114868135302, + 2.8910813462180194, + 2.6292710101420793, + 1.838199475928631, + 2.022506929738739, + 2.052502367874252, + 1.674312408368456, + 1.2166799589893798, + 1.325752571119606, + 1.7593862788547172, + 1.4071038274179397, + 1.4836611609073158, + 1.6699298590429534, + 1.2841219933574295, + 1.1345407135904007 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8284108250107707, + 2.8025305723514524, + 2.705512594065184, + 1.8867730294010843, + 2.287658004675237, + 2.5342612031110927, + 3.0411743725308327, + 3.459349056558749, + 3.418956140049179, + 3.259012742426114, + 2.6626927390197457, + 1.8331363378434844, + 2.0692600706078177, + 2.115673819852997, + 1.8330868508301452, + 1.449871122737371, + 1.4028214683039892, + 1.6702474584361513, + 1.248358677127305, + 1.4629487713380784, + 1.625676489165812, + 1.0499808535281512, + 1.118907156949541 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.696297500079943, + 2.6157337902848683, + 2.6648191119907354, + 1.8072442034249283, + 1.9945555112575153, + 2.155748459440918, + 2.571767840802845, + 2.926626490337606, + 2.946148594808052, + 2.6964568132060998, + 2.382411859735795, + 1.7137303458493387, + 1.8332384289371035, + 1.6981471964375652, + 1.4045533553532168, + 1.264607154293088, + 1.2204256383875012, + 1.4608859107318808, + 1.0535669102034275, + 1.1873438732052684, + 1.296585461610222, + 1.0907751396531875, + 0.9159084508309889 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.900215317980636, + 2.8020830262800787, + 2.480106416161784, + 1.8293829176535925, + 1.9671036161357154, + 2.1773011379652676, + 2.5823157955417937, + 2.9780744394414573, + 2.958323405075513, + 2.7103747505128393, + 2.2859336524484744, + 1.617629996603677, + 1.7387832654395032, + 1.7172962306792858, + 1.4127422890478287, + 1.2912705583998834, + 1.1264407139617774, + 1.3763175593869776, + 1.0359683122525731, + 1.2434429029958154, + 1.2648755869143877, + 0.939970108571266, + 0.987916205768816 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.807871372942674, + 2.7136039715815876, + 2.6556364486873103, + 1.8486182491608716, + 2.049116199401574, + 2.257536760831622, + 2.577889247414705, + 2.982647228087871, + 2.940621961605023, + 2.697894071737526, + 2.2800404889826744, + 1.6614162319272257, + 1.7800837006233292, + 1.7535883439830895, + 1.4527796271154203, + 1.3186525203475008, + 1.1642342654370599, + 1.3691860876993445, + 1.0310357584105359, + 1.1373290404363625, + 1.1710359835589554, + 1.0251707889630164, + 0.8442449571524366 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.7914918032961755, + 2.689514636816605, + 2.703190952440022, + 1.8767695791261763, + 2.0744228063394057, + 2.341825986907151, + 2.5593784823460743, + 2.9645097654818593, + 2.951751515417861, + 2.7287867375880146, + 2.3354948850573956, + 1.6663292408322201, + 1.7643821848318193, + 1.8298677124686078, + 1.512606363347052, + 1.312913551365708, + 1.3017669793931275, + 1.4279954730907891, + 1.1212760449231889, + 1.211342343793892, + 1.2488870452955416, + 1.026809747826745, + 0.7825108866922259 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.8898641090986676, + 2.8141512967721916, + 2.6673011757981064, + 1.869378749682932, + 2.0413188469681254, + 2.27118444013681, + 2.583648182390222, + 3.0776429488510484, + 3.096111034766446, + 2.8967812344453105, + 2.5023700069301906, + 1.7064903934350013, + 1.9112113251235057, + 1.9997154467301224, + 1.7447859583043093, + 1.3924541448658543, + 1.300719860980909, + 1.4338985995408828, + 1.0956340355389615, + 1.1788973798687417, + 1.2275586824999118, + 0.9599318959325378, + 0.830027412952144 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.7412737970029655, + 2.7060795516629446, + 2.7174354198093655, + 1.7690816460663168, + 2.089357691057759, + 2.403294590875812, + 2.8206662760962704, + 3.2260576185135226, + 3.2403046618954736, + 3.005975438404832, + 2.5500565591739845, + 2.0901829020039755, + 2.19872446189915, + 2.226893494938799, + 1.9881630000848824, + 1.435495848849056, + 1.4970807403803095, + 1.6411521825885067, + 1.166393816760872, + 1.2426504858383758, + 1.2929528634803762, + 1.041328330242362, + 0.9263982390375748 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 2.9978716535723575, + 2.950149508061185, + 2.8770405127390695, + 1.9064248468862524, + 2.3366986466372413, + 2.6826215340379824, + 3.254563722920821, + 3.7596375480064785, + 3.7164734680642773, + 3.376357058247065, + 2.948172496076496, + 2.287295760113314, + 2.4779345790123197, + 2.534006687207946, + 2.137505298806588, + 1.4421328334574037, + 1.5742889742691262, + 1.67693083764926, + 1.1780487517177762, + 1.2711147829936178, + 1.412752570413598, + 1.106421594113146, + 0.9912777697064321 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.370365972877624, + 3.2745666300176595, + 3.054311031734535, + 1.990604145381186, + 2.2584227373109713, + 2.4203727167829023, + 2.679993985117518, + 3.121726641609722, + 3.0421043191857735, + 2.8332398165546313, + 2.4720008772657187, + 1.8021338556226372, + 1.9627324168089326, + 2.0391930492518093, + 1.708768644256868, + 1.3853584617997567, + 1.434750354417122, + 1.3213941067439472, + 0.9963627523171967, + 1.0806253221399131, + 1.1180243717561449, + 0.9211486521083271, + 0.6797937210976216 + ], + [ + 2.3460994946178024, + 2.4113981182591977, + 2.518743912446343, + 2.8284108250107707, + 2.696297500079943, + 2.900215317980636, + 2.807871372942674, + 2.7914918032961755, + 2.8898641090986676, + 2.7412737970029655, + 2.9978716535723575, + 3.370365972877624, + 4.269134605136387, + 3.902058962324325, + 3.000470051643377, + 2.0966046019740685, + 2.274334922689901, + 2.549204663140267, + 2.6819658998782403, + 3.2231845237130092, + 3.100889724293477, + 2.9023967370903163, + 2.5253827694368245, + 1.8729984037780094, + 2.01836470627381, + 2.0804457310910736, + 1.694598424017695, + 1.3946858093809469, + 1.3768691286795196, + 1.4193146378040438, + 1.0650534499427424, + 1.2501266084163154, + 1.3015620057910038, + 0.9295930885071017, + 0.8329664432697043 + ], + [ + 2.3766555685616604, + 2.4675569894943536, + 2.550517752403105, + 2.8025305723514524, + 2.6157337902848683, + 2.8020830262800787, + 2.7136039715815876, + 2.689514636816605, + 2.8141512967721916, + 2.7060795516629446, + 2.950149508061185, + 3.2745666300176595, + 3.902058962324325, + 4.2117688341768424, + 2.9313427177541436, + 2.0330873212688063, + 2.177298424351198, + 2.4468254944447936, + 2.671070651955814, + 3.194736225084671, + 3.084773787649234, + 2.9065528946876857, + 2.523278908979153, + 1.9009335889475998, + 2.067425342202768, + 2.1002239710937456, + 1.7267840792121913, + 1.390796730026711, + 1.3536858922707409, + 1.4372533017612836, + 1.0376653430410985, + 1.2746837554169372, + 1.3242915910330701, + 0.9171297529485747, + 0.8285008364952394 + ], + [ + 2.1660702768334765, + 2.298714721340813, + 2.333388414197134, + 2.705512594065184, + 2.6648191119907354, + 2.480106416161784, + 2.6556364486873103, + 2.703190952440022, + 2.6673011757981064, + 2.7174354198093655, + 2.8770405127390695, + 3.054311031734535, + 3.000470051643377, + 2.9313427177541436, + 3.7106514834733133, + 2.021496042859979, + 2.3422861190899735, + 2.5588504101392093, + 2.7675940492060946, + 3.076343139875276, + 2.889189890704588, + 2.7455949662934005, + 2.3404432771767465, + 1.6403041377017564, + 1.83004357354458, + 1.8427798899343681, + 1.5284757313937025, + 1.2263220612662133, + 1.2725640055664202, + 1.272830971461503, + 0.9283668523997565, + 1.0600737224238204, + 1.0225190435369835, + 0.9607256643901847, + 0.6661878984014443 + ], + [ + 1.5995648153972046, + 1.7470257494011263, + 1.810508792699171, + 1.8867730294010843, + 1.8072442034249283, + 1.8293829176535925, + 1.8486182491608716, + 1.8767695791261763, + 1.869378749682932, + 1.7690816460663168, + 1.9064248468862524, + 1.990604145381186, + 2.0966046019740685, + 2.0330873212688063, + 2.021496042859979, + 3.3425359885856505, + 2.5881515808779243, + 2.547241300692336, + 2.3032290451438913, + 2.49054797641926, + 2.3522772232296196, + 2.131749190570782, + 1.8715137539037114, + 1.3442008566086954, + 1.3385716748307224, + 1.3058566917804801, + 1.0536036139900715, + 0.8744931215548148, + 0.8268480983327124, + 0.9635508002600905, + 0.8194671226869618, + 0.8248408246244702, + 0.8915893737625095, + 0.740678829094287, + 0.5508459763918322 + ], + [ + 1.9039105990240157, + 1.980820224200878, + 2.0927696450407915, + 2.287658004675237, + 1.9945555112575153, + 1.9671036161357154, + 2.049116199401574, + 2.0744228063394057, + 2.0413188469681254, + 2.089357691057759, + 2.3366986466372413, + 2.2584227373109713, + 2.274334922689901, + 2.177298424351198, + 2.3422861190899735, + 2.5881515808779243, + 3.5893158552867654, + 3.0527735935129225, + 2.7108874098124383, + 2.9584861837358876, + 2.6802221670587114, + 2.488629270498948, + 2.222950736518668, + 1.5692694145133517, + 1.604665992614145, + 1.6137958031121589, + 1.2959547166974847, + 0.9057204545777741, + 0.8984784523256504, + 1.0770096729333427, + 0.8731110125662055, + 0.8633736564654112, + 0.8588679618152188, + 0.6579695914011778, + 0.658613118001356 + ], + [ + 2.317596408258066, + 2.416840554055094, + 2.5783728916242836, + 2.5342612031110927, + 2.155748459440918, + 2.1773011379652676, + 2.257536760831622, + 2.341825986907151, + 2.27118444013681, + 2.403294590875812, + 2.6826215340379824, + 2.4203727167829023, + 2.549204663140267, + 2.4468254944447936, + 2.5588504101392093, + 2.547241300692336, + 3.0527735935129225, + 4.438712234795112, + 3.227388451634585, + 3.578539270557382, + 3.2670785298944867, + 2.903002601725292, + 2.591816317037175, + 1.7974719261713243, + 1.8025153762656232, + 1.8189916161174717, + 1.3728842475581566, + 0.9410108052358526, + 0.9680809986978666, + 1.2148313078661384, + 0.9286436260370562, + 1.0081668526872523, + 0.9666216629595575, + 0.7021632723030131, + 0.5724152455931204 + ], + [ + 2.4985278926945913, + 2.6634514723924316, + 2.775002312076615, + 3.0411743725308327, + 2.571767840802845, + 2.5823157955417937, + 2.577889247414705, + 2.5593784823460743, + 2.583648182390222, + 2.8206662760962704, + 3.254563722920821, + 2.679993985117518, + 2.6819658998782403, + 2.671070651955814, + 2.7675940492060946, + 2.3032290451438913, + 2.7108874098124383, + 3.227388451634585, + 4.829430784774722, + 4.668583027395963, + 4.245653743546512, + 3.839901353864509, + 3.165785315310753, + 2.101045427594832, + 2.252936775964287, + 2.366281071796832, + 1.9085675066876417, + 1.2626385509934217, + 1.2866538557482279, + 1.4634875679650245, + 1.0617335014957514, + 1.1046955463667694, + 1.184828506894162, + 0.8303793482758284, + 0.7913909581772823 + ], + [ + 2.982298868508639, + 3.1774466897177294, + 3.2180018233186876, + 3.459349056558749, + 2.926626490337606, + 2.9780744394414573, + 2.982647228087871, + 2.9645097654818593, + 3.0776429488510484, + 3.2260576185135226, + 3.7596375480064785, + 3.121726641609722, + 3.2231845237130092, + 3.194736225084671, + 3.076343139875276, + 2.49054797641926, + 2.9584861837358876, + 3.578539270557382, + 4.668583027395963, + 6.011401055168464, + 5.2012473303854465, + 4.494286271186834, + 3.732897294661687, + 2.6130230912320833, + 2.88490345257779, + 2.9035769756852976, + 2.337288218425385, + 1.4524510568936164, + 1.6154758428677078, + 1.7934092544312048, + 1.3389642819150764, + 1.4306937316458634, + 1.542302249513181, + 1.2323197174933946, + 1.1885199509403959 + ], + [ + 3.0121955967210168, + 3.189373346017945, + 3.208114868135302, + 3.418956140049179, + 2.946148594808052, + 2.958323405075513, + 2.940621961605023, + 2.951751515417861, + 3.096111034766446, + 3.2403046618954736, + 3.7164734680642773, + 3.0421043191857735, + 3.100889724293477, + 3.084773787649234, + 2.889189890704588, + 2.3522772232296196, + 2.6802221670587114, + 3.2670785298944867, + 4.245653743546512, + 5.2012473303854465, + 5.629599224071484, + 4.622772584327096, + 3.7986747515254513, + 2.5899689833516697, + 2.8316925801544075, + 2.921922438110233, + 2.387370701272687, + 1.5037329671442454, + 1.6225571858618422, + 1.922619006211545, + 1.4478077760477883, + 1.5113339675974458, + 1.66758238966184, + 1.3736454959417648, + 1.1944981922692168 + ], + [ + 2.658900943392461, + 2.8542676187243288, + 2.8910813462180194, + 3.259012742426114, + 2.6964568132060998, + 2.7103747505128393, + 2.697894071737526, + 2.7287867375880146, + 2.8967812344453105, + 3.005975438404832, + 3.376357058247065, + 2.8332398165546313, + 2.9023967370903163, + 2.9065528946876857, + 2.7455949662934005, + 2.131749190570782, + 2.488629270498948, + 2.903002601725292, + 3.839901353864509, + 4.494286271186834, + 4.622772584327096, + 5.031292988857355, + 3.7761439890236397, + 2.4537179283806, + 2.8036599433691465, + 2.910611810486001, + 2.502767450934093, + 1.6313219467143314, + 1.7284828387505766, + 1.791378763370347, + 1.3299686147127816, + 1.3746964740567698, + 1.4451646694822364, + 1.1387956303640974, + 1.0287860499235055 + ], + [ + 2.6819167225857217, + 2.7901272347159676, + 2.6292710101420793, + 2.6626927390197457, + 2.382411859735795, + 2.2859336524484744, + 2.2800404889826744, + 2.3354948850573956, + 2.5023700069301906, + 2.5500565591739845, + 2.948172496076496, + 2.4720008772657187, + 2.5253827694368245, + 2.523278908979153, + 2.3404432771767465, + 1.8715137539037114, + 2.222950736518668, + 2.591816317037175, + 3.165785315310753, + 3.732897294661687, + 3.7986747515254513, + 3.7761439890236397, + 4.824779550364668, + 2.6591069666952944, + 2.975842110552478, + 3.075264557047393, + 2.747530069987737, + 1.6984971508313702, + 1.7926913597568706, + 2.0447459635621037, + 1.4851637419197965, + 1.544164206098156, + 1.6233444377285602, + 1.5084104412217776, + 1.3587329061064106 + ], + [ + 1.8257508607136372, + 1.9672712275889204, + 1.838199475928631, + 1.8331363378434844, + 1.7137303458493387, + 1.617629996603677, + 1.6614162319272257, + 1.6663292408322201, + 1.7064903934350013, + 2.0901829020039755, + 2.287295760113314, + 1.8021338556226372, + 1.8729984037780094, + 1.9009335889475998, + 1.6403041377017564, + 1.3442008566086954, + 1.5692694145133517, + 1.7974719261713243, + 2.101045427594832, + 2.6130230912320833, + 2.5899689833516697, + 2.4537179283806, + 2.6591069666952944, + 4.34784475920183, + 3.9134155310762697, + 3.389373640241742, + 2.9834439839976294, + 1.6684767400790235, + 1.8674435702953391, + 2.2616410704733765, + 1.7600663931201856, + 1.7080129395777501, + 1.8355497765526327, + 1.7451736906922874, + 1.5138653640946587 + ], + [ + 1.9600940822577222, + 2.1328748003870768, + 2.022506929738739, + 2.0692600706078177, + 1.8332384289371035, + 1.7387832654395032, + 1.7800837006233292, + 1.7643821848318193, + 1.9112113251235057, + 2.19872446189915, + 2.4779345790123197, + 1.9627324168089326, + 2.01836470627381, + 2.067425342202768, + 1.83004357354458, + 1.3385716748307224, + 1.604665992614145, + 1.8025153762656232, + 2.252936775964287, + 2.88490345257779, + 2.8316925801544075, + 2.8036599433691465, + 2.975842110552478, + 3.9134155310762697, + 5.137990140927136, + 4.327916387218441, + 3.6929096997829265, + 2.0783598404471393, + 2.192105827208751, + 2.4677558585539634, + 1.835850231244013, + 1.6943966053070132, + 1.8751827749653784, + 1.7882231227094776, + 1.6151780013830135 + ], + [ + 1.942752629151272, + 2.152445994717053, + 2.052502367874252, + 2.115673819852997, + 1.6981471964375652, + 1.7172962306792858, + 1.7535883439830895, + 1.8298677124686078, + 1.9997154467301224, + 2.226893494938799, + 2.534006687207946, + 2.0391930492518093, + 2.0804457310910736, + 2.1002239710937456, + 1.8427798899343681, + 1.3058566917804801, + 1.6137958031121589, + 1.8189916161174717, + 2.366281071796832, + 2.9035769756852976, + 2.921922438110233, + 2.910611810486001, + 3.075264557047393, + 3.389373640241742, + 4.327916387218441, + 5.936310547966041, + 4.721052599330354, + 2.4125866134040086, + 2.420048397540707, + 2.5749719962373683, + 1.8398821242350887, + 1.7880844487325063, + 1.7691764672129087, + 1.8526515543932067, + 1.7011508309943804 + ], + [ + 1.5693947828989996, + 1.7911692129918657, + 1.674312408368456, + 1.8330868508301452, + 1.4045533553532168, + 1.4127422890478287, + 1.4527796271154203, + 1.512606363347052, + 1.7447859583043093, + 1.9881630000848824, + 2.137505298806588, + 1.708768644256868, + 1.694598424017695, + 1.7267840792121913, + 1.5284757313937025, + 1.0536036139900715, + 1.2959547166974847, + 1.3728842475581566, + 1.9085675066876417, + 2.337288218425385, + 2.387370701272687, + 2.502767450934093, + 2.747530069987737, + 2.9834439839976294, + 3.6929096997829265, + 4.721052599330354, + 5.589099073215265, + 2.819507579435277, + 2.8515549161285754, + 2.5899973366666704, + 1.9230865052047008, + 1.6863519239629916, + 1.6732099659449706, + 2.100544459375609, + 1.6603843637317464 + ], + [ + 1.0847383761454246, + 1.2325445482031443, + 1.2166799589893798, + 1.449871122737371, + 1.264607154293088, + 1.2912705583998834, + 1.3186525203475008, + 1.312913551365708, + 1.3924541448658543, + 1.435495848849056, + 1.4421328334574037, + 1.3853584617997567, + 1.3946858093809469, + 1.390796730026711, + 1.2263220612662133, + 0.8744931215548148, + 0.9057204545777741, + 0.9410108052358526, + 1.2626385509934217, + 1.4524510568936164, + 1.5037329671442454, + 1.6313219467143314, + 1.6984971508313702, + 1.6684767400790235, + 2.0783598404471393, + 2.4125866134040086, + 2.819507579435277, + 3.966216818766383, + 3.003259662626549, + 2.1748847026612514, + 1.5804774275258264, + 1.1930834413558686, + 1.2792015332642812, + 1.6163388534679872, + 1.2802362067117334 + ], + [ + 1.1261161765414247, + 1.2631285020925673, + 1.325752571119606, + 1.4028214683039892, + 1.2204256383875012, + 1.1264407139617774, + 1.1642342654370599, + 1.3017669793931275, + 1.300719860980909, + 1.4970807403803095, + 1.5742889742691262, + 1.434750354417122, + 1.3768691286795196, + 1.3536858922707409, + 1.2725640055664202, + 0.8268480983327124, + 0.8984784523256504, + 0.9680809986978666, + 1.2866538557482279, + 1.6154758428677078, + 1.6225571858618422, + 1.7284828387505766, + 1.7926913597568706, + 1.8674435702953391, + 2.192105827208751, + 2.420048397540707, + 2.8515549161285754, + 3.003259662626549, + 4.830566031503098, + 2.6501030280087234, + 2.059805161661137, + 1.607523068452763, + 1.683374143379282, + 2.2929671728791945, + 1.5971181810758361 + ], + [ + 1.698877362568659, + 1.7581771211883654, + 1.7593862788547172, + 1.6702474584361513, + 1.4608859107318808, + 1.3763175593869776, + 1.3691860876993445, + 1.4279954730907891, + 1.4338985995408828, + 1.6411521825885067, + 1.67693083764926, + 1.3213941067439472, + 1.4193146378040438, + 1.4372533017612836, + 1.272830971461503, + 0.9635508002600905, + 1.0770096729333427, + 1.2148313078661384, + 1.4634875679650245, + 1.7934092544312048, + 1.922619006211545, + 1.791378763370347, + 2.0447459635621037, + 2.2616410704733765, + 2.4677558585539634, + 2.5749719962373683, + 2.5899973366666704, + 2.1748847026612514, + 2.6501030280087234, + 4.531414608663701, + 2.816394180306384, + 2.4785983024722706, + 2.588450247430289, + 2.476592308600095, + 1.9821090626341347 + ], + [ + 1.2977168776485808, + 1.4384783593002088, + 1.4071038274179397, + 1.248358677127305, + 1.0535669102034275, + 1.0359683122525731, + 1.0310357584105359, + 1.1212760449231889, + 1.0956340355389615, + 1.166393816760872, + 1.1780487517177762, + 0.9963627523171967, + 1.0650534499427424, + 1.0376653430410985, + 0.9283668523997565, + 0.8194671226869618, + 0.8731110125662055, + 0.9286436260370562, + 1.0617335014957514, + 1.3389642819150764, + 1.4478077760477883, + 1.3299686147127816, + 1.4851637419197965, + 1.7600663931201856, + 1.835850231244013, + 1.8398821242350887, + 1.9230865052047008, + 1.5804774275258264, + 2.059805161661137, + 2.816394180306384, + 3.4593584569318567, + 2.6671834076401693, + 2.4828041712158226, + 2.346689830269671, + 1.7845020209753761 + ], + [ + 1.38720492450309, + 1.5302211383233428, + 1.4836611609073158, + 1.4629487713380784, + 1.1873438732052684, + 1.2434429029958154, + 1.1373290404363625, + 1.211342343793892, + 1.1788973798687417, + 1.2426504858383758, + 1.2711147829936178, + 1.0806253221399131, + 1.2501266084163154, + 1.2746837554169372, + 1.0600737224238204, + 0.8248408246244702, + 0.8633736564654112, + 1.0081668526872523, + 1.1046955463667694, + 1.4306937316458634, + 1.5113339675974458, + 1.3746964740567698, + 1.544164206098156, + 1.7080129395777501, + 1.6943966053070132, + 1.7880844487325063, + 1.6863519239629916, + 1.1930834413558686, + 1.607523068452763, + 2.4785983024722706, + 2.6671834076401693, + 3.457411387820302, + 2.933564252951035, + 2.569281040844969, + 1.9552587831490518 + ], + [ + 1.618789649034315, + 1.6762132401906602, + 1.6699298590429534, + 1.625676489165812, + 1.296585461610222, + 1.2648755869143877, + 1.1710359835589554, + 1.2488870452955416, + 1.2275586824999118, + 1.2929528634803762, + 1.412752570413598, + 1.1180243717561449, + 1.3015620057910038, + 1.3242915910330701, + 1.0225190435369835, + 0.8915893737625095, + 0.8588679618152188, + 0.9666216629595575, + 1.184828506894162, + 1.542302249513181, + 1.66758238966184, + 1.4451646694822364, + 1.6233444377285602, + 1.8355497765526327, + 1.8751827749653784, + 1.7691764672129087, + 1.6732099659449706, + 1.2792015332642812, + 1.683374143379282, + 2.588450247430289, + 2.4828041712158226, + 2.933564252951035, + 3.7721515698251973, + 2.721340136689427, + 2.047030006402578 + ], + [ + 1.3053316760921456, + 1.359274805778048, + 1.2841219933574295, + 1.0499808535281512, + 1.0907751396531875, + 0.939970108571266, + 1.0251707889630164, + 1.026809747826745, + 0.9599318959325378, + 1.041328330242362, + 1.106421594113146, + 0.9211486521083271, + 0.9295930885071017, + 0.9171297529485747, + 0.9607256643901847, + 0.740678829094287, + 0.6579695914011778, + 0.7021632723030131, + 0.8303793482758284, + 1.2323197174933946, + 1.3736454959417648, + 1.1387956303640974, + 1.5084104412217776, + 1.7451736906922874, + 1.7882231227094776, + 1.8526515543932067, + 2.100544459375609, + 1.6163388534679872, + 2.2929671728791945, + 2.476592308600095, + 2.346689830269671, + 2.569281040844969, + 2.721340136689427, + 6.2262459244812565, + 3.1491415574049597 + ], + [ + 1.1954305709860293, + 1.1952136942582152, + 1.1345407135904007, + 1.118907156949541, + 0.9159084508309889, + 0.987916205768816, + 0.8442449571524366, + 0.7825108866922259, + 0.830027412952144, + 0.9263982390375748, + 0.9912777697064321, + 0.6797937210976216, + 0.8329664432697043, + 0.8285008364952394, + 0.6661878984014443, + 0.5508459763918322, + 0.658613118001356, + 0.5724152455931204, + 0.7913909581772823, + 1.1885199509403959, + 1.1944981922692168, + 1.0287860499235055, + 1.3587329061064106, + 1.5138653640946587, + 1.6151780013830135, + 1.7011508309943804, + 1.6603843637317464, + 1.2802362067117334, + 1.5971181810758361, + 1.9821090626341347, + 1.7845020209753761, + 1.9552587831490518, + 2.047030006402578, + 3.1491415574049597, + 5.098644410668987 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3875203127630426, + -0.38982495527687305, + -0.4126353717850901, + -0.39281617177042766, + -0.3946403083239856, + -0.3666696994881257, + -0.35106344176074783, + -0.29038492195001425, + -0.3250329352471217, + -0.3582161072975027, + -0.35871848460734773, + -0.3615302885289184, + -0.31911363595721404, + -0.31000074934878746, + -0.3168124882263969, + -0.37916100613398623, + -0.34130179758911144, + -0.31823147587010364, + -0.39965976839596057, + -0.3979480194177509, + -0.3811916682569962, + -0.3083793468989284, + -0.3435598442934717 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6230683039754933, + "transport_matrix_sha256": "3429c7d7435cdd7cfd9bdf8fab675931f68e1968c36fe4ef4f63e7c4d0a0c83c", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.053740531206131e-05, + "gram_mean_diagonal": 0.06053740531206131, + "calibration_nmse": 0.04398877978906868, + "calibration_cosine": 0.9777586792322014, + "calibration_norm_ratio": 0.9768561256506773, + "transport_relative_identity_distance": 0.3179902136325836, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "f57ad388d57bb515af2ac9324d86dc9e19c4cc44bc73879a7b409f9c07597c15", + "self_attn.k_proj.weight": "09cba09d72eea6b683087478aeaaf6d321423335a9eb57d47006adbc1f336c63", + "self_attn.v_proj.weight": "af4adee7b325a938beb530808104ab27a70afc0d494134b3de1f5ea8ef060773", + "self_attn.o_proj.weight": "6888fff18d668ea322341951eb6ab19a3fbbc4cf94b758ed0f8dba411a262d1f", + "self_attn.q_norm.weight": "e3e9ec56f12aa5ec410018bbac99e6953ad52f3b8b796d73c5bd0cc6545fb93b", + "self_attn.k_norm.weight": "a5bf1576b21d93da019094f1a61912669136a5d9e89e8d2301c88f6bf2def290", + "mlp.gate_proj.weight": "1d90e8cf937190e4027f0c7bc34bbabd5bb43c5f3d081537e0d866da8a3efe3f", + "mlp.up_proj.weight": "dc867f2d0718d761bb166f69bd21878837006daf9ae392c955a2e9578a15ad97", + "mlp.down_proj.weight": "0ac1fc28ab86d85f9cb5f40fbde4485ceac5d2d531a13f5f05d81910ebd8b48d", + "input_layernorm.weight": "c21d58d80fa7aca24ff0dac67092f8204b3876926fa095bb7e6ceb3a16060706", + "post_attention_layernorm.weight": "1e599b9bd0ed7fdbcef34cff94651bf467bf923745a76a96d33a74ae551ad5d5" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "f57ad388d57bb515af2ac9324d86dc9e19c4cc44bc73879a7b409f9c07597c15", + "self_attn.k_proj.weight": "09cba09d72eea6b683087478aeaaf6d321423335a9eb57d47006adbc1f336c63", + "self_attn.v_proj.weight": "af4adee7b325a938beb530808104ab27a70afc0d494134b3de1f5ea8ef060773", + "self_attn.o_proj.weight": "6888fff18d668ea322341951eb6ab19a3fbbc4cf94b758ed0f8dba411a262d1f", + "self_attn.q_norm.weight": "e3e9ec56f12aa5ec410018bbac99e6953ad52f3b8b796d73c5bd0cc6545fb93b", + "self_attn.k_norm.weight": "a5bf1576b21d93da019094f1a61912669136a5d9e89e8d2301c88f6bf2def290", + "mlp.gate_proj.weight": "51888e91cfe1c9c9bc6ece30477da7f5c33bbcaff3827937e935c006c81f4d97", + "mlp.up_proj.weight": "885e7858c15bbd1456c7d26c25f3e7ce9e171653d770244e860435dcc3eefb00", + "mlp.down_proj.weight": "0ac1fc28ab86d85f9cb5f40fbde4485ceac5d2d531a13f5f05d81910ebd8b48d", + "input_layernorm.weight": "c21d58d80fa7aca24ff0dac67092f8204b3876926fa095bb7e6ceb3a16060706", + "post_attention_layernorm.weight": "1e599b9bd0ed7fdbcef34cff94651bf467bf923745a76a96d33a74ae551ad5d5" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6230683039754933, + "lambda_right": 0.3769316960245067, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "95732a59144d689baf46fef38c0b43ffe9d4c4663cf160e2494d6146957f00e5", + "mlp.up_proj.weight": "2bf9bc06f266d744623ff42d772eb1d8c29012ef0d46f116eae908dbb08a89b8", + "mlp.gate_proj.weight": "95e7d27498b2eec4f1d4b641f8a528c393e6abee78b172b6284f69920f385125", + "self_attn.k_proj.weight": "c09a39b4dfd4e9121fcca782d6b4aa9603af01e398239090034c492af0cd887a", + "self_attn.o_proj.weight": "e39994b63ebe97dbd6d6d5405206a1673f3d2151a262572b8aff783a32a918e0", + "self_attn.q_proj.weight": "fe50101d44f36f6e7161e07949c2bc6c3eb25830f053bdaf06efc1b1c94f5f0f", + "self_attn.v_proj.weight": "c31fbee7c61e87cfa00e10371fc6d7f72d85f7b22cfab7b3e4390fe26508d6c7" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "f57ad388d57bb515af2ac9324d86dc9e19c4cc44bc73879a7b409f9c07597c15", + "self_attn.k_proj.weight": "09cba09d72eea6b683087478aeaaf6d321423335a9eb57d47006adbc1f336c63", + "self_attn.v_proj.weight": "af4adee7b325a938beb530808104ab27a70afc0d494134b3de1f5ea8ef060773", + "self_attn.o_proj.weight": "6888fff18d668ea322341951eb6ab19a3fbbc4cf94b758ed0f8dba411a262d1f", + "self_attn.q_norm.weight": "e3e9ec56f12aa5ec410018bbac99e6953ad52f3b8b796d73c5bd0cc6545fb93b", + "self_attn.k_norm.weight": "a5bf1576b21d93da019094f1a61912669136a5d9e89e8d2301c88f6bf2def290", + "mlp.gate_proj.weight": "51888e91cfe1c9c9bc6ece30477da7f5c33bbcaff3827937e935c006c81f4d97", + "mlp.up_proj.weight": "885e7858c15bbd1456c7d26c25f3e7ce9e171653d770244e860435dcc3eefb00", + "mlp.down_proj.weight": "0ac1fc28ab86d85f9cb5f40fbde4485ceac5d2d531a13f5f05d81910ebd8b48d", + "input_layernorm.weight": "c21d58d80fa7aca24ff0dac67092f8204b3876926fa095bb7e6ceb3a16060706", + "post_attention_layernorm.weight": "1e599b9bd0ed7fdbcef34cff94651bf467bf923745a76a96d33a74ae551ad5d5" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "b76a10548dc24bd7497d10d001a9371df638adca19bfce75a56b0cfb27b6d065", + "mlp.up_proj.weight": "cc493840ce3a8e36490a2c80b25b2a5d90e9b0c366939c41740094d74ba5b184", + "mlp.gate_proj.weight": "30f9b1815d6369eeb6a1af9b0cd42e84e9f333e727e66e7cafbc63216d5d1f0f", + "self_attn.k_proj.weight": "9cd64498b33ff399a47d26bb60035f41cf2e1e27240d5bb0e12c5a38a72c366f", + "self_attn.o_proj.weight": "272948af1d61022705cc295ddb40b6214632b9fbe6e254d6b74a2a4507a49386", + "self_attn.q_proj.weight": "a49e9fe8337d0eecf534da70ba4af6662b57ed652fa49f1fd9d56c2d03684d2d", + "self_attn.v_proj.weight": "de40e6d4feaccef517aefdb991834ce833f6e7cfbf5f720a582ede927cec626e" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + }, + { + "cycle": 3, + "anchor": 12, + "removed_original_layer": 15, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.2961740712446, + 2.2265408292569866, + 2.2294054536626784, + 2.20098168697199, + 2.750217699868455, + 2.744210339116167, + 3.0126632396199367, + 3.0681516371199, + 2.7827717106446754, + 1.779085744401428, + 1.9536840148377879, + 2.04529017365314, + 1.8968990542294144, + 1.6619700305370837, + 1.3287976956696048, + 1.0382251033231709, + 0.9974960152468008, + 0.9573822722400741, + 1.2327719262006276, + 1.269856142627865, + 1.278023707807586, + 1.216651572001522 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3854832635725245, + 2.296634639112775, + 2.408340609191363, + 2.2950504815933708, + 2.8115592883300904, + 2.9003865790265837, + 3.1270172215564287, + 3.2124079812590427, + 2.9869982118708838, + 1.8357929451819401, + 2.055928949099102, + 2.133747533980767, + 1.9840977164152918, + 1.7797733432446612, + 1.4062026564406804, + 1.0706111472864237, + 0.9883264678809361, + 1.0242670427010205, + 1.3342284561822984, + 1.3947177595654372, + 1.2960967242861405, + 1.3016142849512344 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.517411246570175, + 2.351843485013661, + 2.438247615105358, + 2.3358914268395137, + 3.03933113627953, + 2.947194515159887, + 3.1722479475622634, + 3.2391139369499315, + 2.971603885826749, + 1.74629638788516, + 1.9578099310937491, + 1.9701151200724099, + 1.8929979577419394, + 1.752398664281938, + 1.401423111514532, + 1.080574998691414, + 1.0303684971958667, + 1.027586356182353, + 1.2630423031875806, + 1.3720492502598325, + 1.1991783796826554, + 1.1671289318987268 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8228944093417385, + 2.692900638600751, + 2.7433894539238044, + 2.671665303609923, + 3.1506372639810074, + 3.32720364849532, + 3.255099497290125, + 3.4822715497993606, + 3.288240448259374, + 1.5846801835702071, + 2.0348193798844, + 2.161422618344603, + 2.0202140574695147, + 1.9556592903200267, + 1.2966168304867696, + 1.2535111591082295, + 1.0197007830486204, + 0.8566943380657652, + 1.204791361963996, + 1.2859580835177253, + 1.1500928872331737, + 1.0423537507225114 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.659267269167063, + 2.6882033306228843, + 2.733478079583862, + 2.536183503033427, + 2.791336854190576, + 2.7791445044117316, + 2.7458855712941177, + 2.7610831872456805, + 2.573140556247712, + 1.3773011148847771, + 1.7812947944102586, + 1.8066734207052417, + 1.6716434082023317, + 1.5459198777905163, + 1.0756161589167792, + 1.1028250754736775, + 0.9452393722012978, + 0.776647474506018, + 1.0533628992622066, + 1.0626027762632444, + 1.0716273433416739, + 0.8752272188160353 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.8655447414344155, + 2.5515251460437884, + 2.4879734387551045, + 2.5059546790814755, + 2.7664578712950614, + 2.8348788424866123, + 2.7455961913252915, + 2.8085384884222284, + 2.6275728468038726, + 1.2947685388083994, + 1.598529889595198, + 1.6728784660498024, + 1.5268589919681923, + 1.3896335469501893, + 1.1241964520018815, + 1.005739371273883, + 0.9452761164689318, + 0.7949861732261122, + 1.069509360953034, + 1.0590108307002604, + 0.9334732055880408, + 0.9646700898008067 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.7089250350546648, + 2.7870591850823523, + 2.646757956413812, + 2.6472013762253153, + 2.8450884720289515, + 2.762254975170635, + 2.7991111332919503, + 2.8323919762906113, + 2.5936448995813293, + 1.3122519585999812, + 1.6631677290112643, + 1.8202776681634036, + 1.6953899943493935, + 1.518191683082889, + 1.095937921841216, + 0.990514898603994, + 0.8926510435149461, + 0.7877889935659383, + 1.0020562354897726, + 1.0311389492259289, + 1.005268204660791, + 0.7959378214677061 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.7909636504037665, + 2.745253645766233, + 2.6822342942864457, + 2.562164365361802, + 2.8509304945694303, + 2.8182392320905976, + 2.7946271352731893, + 2.820158870011841, + 2.621699481602493, + 1.3052202930543506, + 1.7056956208767164, + 1.851281127270344, + 1.7349825337237061, + 1.6324585071739135, + 1.0971536873988512, + 1.0254610947195324, + 0.9183343752021358, + 0.8202263584587571, + 1.0346375425859482, + 1.0736078539883465, + 1.061703077903756, + 0.750928251918323 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.8626162139124416, + 2.868956644258049, + 2.6770162771885304, + 2.6713052288430803, + 2.8573960299180756, + 2.9045192602435574, + 2.909017754944431, + 2.940039654310432, + 2.8097752723839715, + 1.403436344193912, + 1.8810514394194797, + 2.0258294176021483, + 1.916046097860197, + 1.7735405049967192, + 1.2274120767221903, + 1.1653412570112063, + 0.9455512756751892, + 0.8519207845162863, + 1.0569597825996038, + 1.0679543221536223, + 1.0722998665067685, + 0.7857556816476677 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.799225835445906, + 2.8021608318113747, + 2.768613983379058, + 2.5612675221575207, + 3.043627947666004, + 3.1501889816525943, + 3.3351953920895854, + 3.40093246088817, + 3.2139927040849052, + 1.6308656728731434, + 2.2118682726744514, + 2.3891780480159532, + 2.203074123361157, + 2.0823842977296385, + 1.337159378677997, + 1.2178214568847878, + 1.0745302587679781, + 0.9880862293740414, + 1.128937788170324, + 1.118530715957504, + 1.1024368424997146, + 0.8211965440969131 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.089726204009028, + 2.966725190506758, + 2.9606918557049786, + 2.7470426567463755, + 3.4038245275455425, + 3.6291639932445916, + 3.7921193907518194, + 3.868442129904957, + 3.6501640281142556, + 1.8167413257218272, + 2.506664436621829, + 2.656321361539469, + 2.438680780704985, + 2.331471197826345, + 1.439399007923354, + 1.2779004782331687, + 1.0655010656168842, + 0.9555220335562823, + 1.1759321485459868, + 1.212693817241577, + 1.0874032193844418, + 0.8605743334958192 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.5308877512031924, + 3.4277156009186185, + 3.0563037437805685, + 3.149215949969835, + 3.100257983473962, + 2.987242647626295, + 2.9858423600178883, + 2.9266810109153116, + 2.8930073395735625, + 1.3639813313910698, + 1.8336531892193926, + 2.011429086620516, + 1.8186484276299015, + 1.773079498721575, + 1.1743970701065511, + 1.1631342051012237, + 0.9442230726008511, + 0.8105429744665921, + 1.0638786347040834, + 1.066785818022557, + 0.9661809267239458, + 0.6091327572189656 + ], + [ + 2.2961740712446, + 2.3854832635725245, + 2.517411246570175, + 2.8228944093417385, + 2.659267269167063, + 2.8655447414344155, + 2.7089250350546648, + 2.7909636504037665, + 2.8626162139124416, + 2.799225835445906, + 3.089726204009028, + 3.5308877512031924, + 4.074322116170248, + 3.330501339012661, + 3.0695110569647515, + 3.1339577044289157, + 3.187921726848283, + 3.0036610233922025, + 2.933811961206664, + 2.9353006716955843, + 2.9072433582899437, + 1.4194591663267446, + 1.8213487332268485, + 2.0018401174075393, + 1.8039546118867704, + 1.7290064064076904, + 1.1695812496781601, + 1.1425284982582389, + 0.9238574387899572, + 0.8395715724918208, + 1.1174902290837152, + 1.084405323626235, + 0.9389445094392284, + 0.7408847801884659 + ], + [ + 2.2265408292569866, + 2.296634639112775, + 2.351843485013661, + 2.692900638600751, + 2.6882033306228843, + 2.5515251460437884, + 2.7870591850823523, + 2.745253645766233, + 2.868956644258049, + 2.8021608318113747, + 2.966725190506758, + 3.4277156009186185, + 3.330501339012661, + 3.829494230870588, + 3.2658775991031708, + 3.3114882029249575, + 3.2211206354372957, + 3.0064511382031127, + 2.914163929846155, + 2.8093544225666, + 2.7004700629018035, + 1.2413606784756277, + 1.6680267240979694, + 1.7635822675382058, + 1.5879112578778187, + 1.5650694305819517, + 1.080940257582835, + 1.052615379150727, + 0.8511619904583895, + 0.7189668996617486, + 0.973206925277746, + 0.9256190976317537, + 0.9437641639402778, + 0.5668379983715642 + ], + [ + 2.2294054536626784, + 2.408340609191363, + 2.438247615105358, + 2.7433894539238044, + 2.733478079583862, + 2.4879734387551045, + 2.646757956413812, + 2.6822342942864457, + 2.6770162771885304, + 2.768613983379058, + 2.9606918557049786, + 3.0563037437805685, + 3.0695110569647515, + 3.2658775991031708, + 3.894781619819532, + 3.074719287081214, + 3.3024011032690592, + 3.112750892115238, + 2.990642149218585, + 2.920985094026071, + 2.7802197376628577, + 1.307210966239604, + 1.82234359494184, + 1.9440830095577433, + 1.6530946152717028, + 1.5950935690826553, + 0.9688494500959705, + 1.0138470729295956, + 0.8073867321971719, + 0.7348959353947062, + 0.9603041398586265, + 0.9055060263203509, + 0.9008572726882466, + 0.5954307161876768 + ], + [ + 2.20098168697199, + 2.2950504815933708, + 2.3358914268395137, + 2.671665303609923, + 2.536183503033427, + 2.5059546790814755, + 2.6472013762253153, + 2.562164365361802, + 2.6713052288430803, + 2.5612675221575207, + 2.7470426567463755, + 3.149215949969835, + 3.1339577044289157, + 3.3114882029249575, + 3.074719287081214, + 3.836883143768107, + 3.2803286761157673, + 2.934749047604581, + 2.800295732347418, + 2.7324417924928266, + 2.7145383227531736, + 1.2109991814746202, + 1.6804120596983405, + 1.8265264576958595, + 1.5850423417658608, + 1.5824086019390577, + 0.972901948636424, + 1.0546774115292759, + 0.8156520414306422, + 0.714056942550904, + 0.9759021323961402, + 0.934386527135768, + 0.9083999377960941, + 0.5822911456650849 + ], + [ + 2.750217699868455, + 2.8115592883300904, + 3.03933113627953, + 3.1506372639810074, + 2.791336854190576, + 2.7664578712950614, + 2.8450884720289515, + 2.8509304945694303, + 2.8573960299180756, + 3.043627947666004, + 3.4038245275455425, + 3.100257983473962, + 3.187921726848283, + 3.2211206354372957, + 3.3024011032690592, + 3.2803286761157673, + 4.936588413857563, + 3.6945893682183533, + 3.7193677218593972, + 3.6050689854583573, + 3.396048244406109, + 1.599257251228684, + 2.1136429319244447, + 2.236689784567688, + 2.049294625420705, + 1.9022043179834245, + 1.2002526826740785, + 1.0170644609101833, + 1.010998465327648, + 0.9222649100459831, + 1.122620566276374, + 1.130817514246351, + 1.0637525291712338, + 0.8107364603471738 + ], + [ + 2.744210339116167, + 2.9003865790265837, + 2.947194515159887, + 3.32720364849532, + 2.7791445044117316, + 2.8348788424866123, + 2.762254975170635, + 2.8182392320905976, + 2.9045192602435574, + 3.1501889816525943, + 3.6291639932445916, + 2.987242647626295, + 3.0036610233922025, + 3.0064511382031127, + 3.112750892115238, + 2.934749047604581, + 3.6945893682183533, + 5.259252199049146, + 4.773095561515951, + 4.535521737141902, + 4.252636603189827, + 1.9411612256577266, + 2.657796672128589, + 2.8276631552585627, + 2.5733232069682166, + 2.4097343593973823, + 1.3701486869004502, + 1.3055064584919385, + 1.116424898436383, + 0.9874489872560568, + 1.248828348192916, + 1.2056224669943416, + 1.1553120341304408, + 1.0623007897422523 + ], + [ + 3.0126632396199367, + 3.1270172215564287, + 3.1722479475622634, + 3.255099497290125, + 2.7458855712941177, + 2.7455961913252915, + 2.7991111332919503, + 2.7946271352731893, + 2.909017754944431, + 3.3351953920895854, + 3.7921193907518194, + 2.9858423600178883, + 2.933811961206664, + 2.914163929846155, + 2.990642149218585, + 2.800295732347418, + 3.7193677218593972, + 4.773095561515951, + 5.458562778026551, + 4.903611382501226, + 4.452108303383686, + 2.172672092331945, + 2.8560640528492085, + 3.0164495557495266, + 2.774910573416932, + 2.539687089173365, + 1.4933083447007152, + 1.3580926270655178, + 1.1960011565748747, + 1.1043924060935744, + 1.3129079030169561, + 1.2971334800433423, + 1.228866541925978, + 1.0202576151333456 + ], + [ + 3.0681516371199, + 3.2124079812590427, + 3.2391139369499315, + 3.4822715497993606, + 2.7610831872456805, + 2.8085384884222284, + 2.8323919762906113, + 2.820158870011841, + 2.940039654310432, + 3.40093246088817, + 3.868442129904957, + 2.9266810109153116, + 2.9353006716955843, + 2.8093544225666, + 2.920985094026071, + 2.7324417924928266, + 3.6050689854583573, + 4.535521737141902, + 4.903611382501226, + 5.622918872842758, + 4.72938048098086, + 2.27691407566306, + 2.858269469130371, + 3.039154027907367, + 2.7996851406382652, + 2.6045363664247105, + 1.5324446977263786, + 1.330270886841789, + 1.1937695113454727, + 1.1070141470825148, + 1.3718587761599492, + 1.3956472553283836, + 1.3257227847495872, + 1.0523757354830439 + ], + [ + 2.7827717106446754, + 2.9869982118708838, + 2.971603885826749, + 3.288240448259374, + 2.573140556247712, + 2.6275728468038726, + 2.5936448995813293, + 2.621699481602493, + 2.8097752723839715, + 3.2139927040849052, + 3.6501640281142556, + 2.8930073395735625, + 2.9072433582899437, + 2.7004700629018035, + 2.7802197376628577, + 2.7145383227531736, + 3.396048244406109, + 4.252636603189827, + 4.452108303383686, + 4.72938048098086, + 5.440895259529153, + 2.3740068874800944, + 3.1635511548422293, + 3.3466138779574703, + 3.14043243955404, + 2.9991085983397725, + 1.6595648708727313, + 1.5667955164519978, + 1.1904845594763174, + 1.072607651639629, + 1.2193618761963534, + 1.2814424332744843, + 1.2456438111979147, + 1.1246503991311638 + ], + [ + 1.779085744401428, + 1.8357929451819401, + 1.74629638788516, + 1.5846801835702071, + 1.3773011148847771, + 1.2947685388083994, + 1.3122519585999812, + 1.3052202930543506, + 1.403436344193912, + 1.6308656728731434, + 1.8167413257218272, + 1.3639813313910698, + 1.4194591663267446, + 1.2413606784756277, + 1.307210966239604, + 1.2109991814746202, + 1.599257251228684, + 1.9411612256577266, + 2.172672092331945, + 2.27691407566306, + 2.3740068874800944, + 3.4459281206895205, + 2.5905090343117085, + 2.625191785717486, + 2.274676018541524, + 2.1784813512146415, + 1.421877163823473, + 1.1540158447402287, + 1.0348707752809365, + 1.2420151843256224, + 1.258546637917256, + 1.288419588879108, + 1.1699311083058812, + 1.0932828393542537 + ], + [ + 1.9536840148377879, + 2.055928949099102, + 1.9578099310937491, + 2.0348193798844, + 1.7812947944102586, + 1.598529889595198, + 1.6631677290112643, + 1.7056956208767164, + 1.8810514394194797, + 2.2118682726744514, + 2.506664436621829, + 1.8336531892193926, + 1.8213487332268485, + 1.6680267240979694, + 1.82234359494184, + 1.6804120596983405, + 2.1136429319244447, + 2.657796672128589, + 2.8560640528492085, + 2.858269469130371, + 3.1635511548422293, + 2.5905090343117085, + 6.229371094517207, + 4.982056256159368, + 4.505782699183832, + 4.31600568995782, + 2.188168891171191, + 2.057007108414921, + 1.7166415433712034, + 1.6854646213687092, + 1.7246419357742153, + 1.6415104162359435, + 1.831417550301263, + 1.5855939772355068 + ], + [ + 2.04529017365314, + 2.133747533980767, + 1.9701151200724099, + 2.161422618344603, + 1.8066734207052417, + 1.6728784660498024, + 1.8202776681634036, + 1.851281127270344, + 2.0258294176021483, + 2.3891780480159532, + 2.656321361539469, + 2.011429086620516, + 2.0018401174075393, + 1.7635822675382058, + 1.9440830095577433, + 1.8265264576958595, + 2.236689784567688, + 2.8276631552585627, + 3.0164495557495266, + 3.039154027907367, + 3.3466138779574703, + 2.625191785717486, + 4.982056256159368, + 6.056947007106078, + 5.0367432865999975, + 4.670738921676782, + 2.2630938676105705, + 1.8868285906341824, + 1.5983707781263092, + 1.6189975468341289, + 1.5781412540086597, + 1.5617807034774085, + 1.6929259133370707, + 1.5647015057220164 + ], + [ + 1.8968990542294144, + 1.9840977164152918, + 1.8929979577419394, + 2.0202140574695147, + 1.6716434082023317, + 1.5268589919681923, + 1.6953899943493935, + 1.7349825337237061, + 1.916046097860197, + 2.203074123361157, + 2.438680780704985, + 1.8186484276299015, + 1.8039546118867704, + 1.5879112578778187, + 1.6530946152717028, + 1.5850423417658608, + 2.049294625420705, + 2.5733232069682166, + 2.774910573416932, + 2.7996851406382652, + 3.14043243955404, + 2.274676018541524, + 4.505782699183832, + 5.0367432865999975, + 6.170425743000087, + 5.226707629317684, + 2.2259254010142127, + 2.0582106140440137, + 1.651341034919874, + 1.563203986491781, + 1.4904957634661484, + 1.4433514160563297, + 1.81508557571789, + 1.612279763842038 + ], + [ + 1.6619700305370837, + 1.7797733432446612, + 1.752398664281938, + 1.9556592903200267, + 1.5459198777905163, + 1.3896335469501893, + 1.518191683082889, + 1.6324585071739135, + 1.7735405049967192, + 2.0823842977296385, + 2.331471197826345, + 1.773079498721575, + 1.7290064064076904, + 1.5650694305819517, + 1.5950935690826553, + 1.5824086019390577, + 1.9022043179834245, + 2.4097343593973823, + 2.539687089173365, + 2.6045363664247105, + 2.9991085983397725, + 2.1784813512146415, + 4.31600568995782, + 4.670738921676782, + 5.226707629317684, + 6.484197062569403, + 2.5033156559366256, + 2.575402051960755, + 1.9079716703733862, + 1.8325477095743776, + 1.7291822623997113, + 1.6148085670343204, + 2.067591522845982, + 1.5661674833574266 + ], + [ + 1.3287976956696048, + 1.4062026564406804, + 1.401423111514532, + 1.2966168304867696, + 1.0756161589167792, + 1.1241964520018815, + 1.095937921841216, + 1.0971536873988512, + 1.2274120767221903, + 1.337159378677997, + 1.439399007923354, + 1.1743970701065511, + 1.1695812496781601, + 1.080940257582835, + 0.9688494500959705, + 0.972901948636424, + 1.2002526826740785, + 1.3701486869004502, + 1.4933083447007152, + 1.5324446977263786, + 1.6595648708727313, + 1.421877163823473, + 2.188168891171191, + 2.2630938676105705, + 2.2259254010142127, + 2.5033156559366256, + 3.1129267568733487, + 1.9742157207684738, + 1.5103246940287773, + 1.3042731644652559, + 1.355683701594508, + 1.392118316061973, + 1.5116042910781324, + 1.2344697766668473 + ], + [ + 1.0382251033231709, + 1.0706111472864237, + 1.080574998691414, + 1.2535111591082295, + 1.1028250754736775, + 1.005739371273883, + 0.990514898603994, + 1.0254610947195324, + 1.1653412570112063, + 1.2178214568847878, + 1.2779004782331687, + 1.1631342051012237, + 1.1425284982582389, + 1.052615379150727, + 1.0138470729295956, + 1.0546774115292759, + 1.0170644609101833, + 1.3055064584919385, + 1.3580926270655178, + 1.330270886841789, + 1.5667955164519978, + 1.1540158447402287, + 2.057007108414921, + 1.8868285906341824, + 2.0582106140440137, + 2.575402051960755, + 1.9742157207684738, + 4.900169722904286, + 1.9734675491760252, + 1.7509947382814433, + 1.459299951487052, + 1.478836783362774, + 2.0288416291527365, + 1.2548721845908442 + ], + [ + 0.9974960152468008, + 0.9883264678809361, + 1.0303684971958667, + 1.0197007830486204, + 0.9452393722012978, + 0.9452761164689318, + 0.8926510435149461, + 0.9183343752021358, + 0.9455512756751892, + 1.0745302587679781, + 1.0655010656168842, + 0.9442230726008511, + 0.9238574387899572, + 0.8511619904583895, + 0.8073867321971719, + 0.8156520414306422, + 1.010998465327648, + 1.116424898436383, + 1.1960011565748747, + 1.1937695113454727, + 1.1904845594763174, + 1.0348707752809365, + 1.7166415433712034, + 1.5983707781263092, + 1.651341034919874, + 1.9079716703733862, + 1.5103246940287773, + 1.9734675491760252, + 2.7549509632764417, + 2.0173472511574344, + 1.6796236558986635, + 1.584573675743107, + 1.5325888271499963, + 1.1015711516371718 + ], + [ + 0.9573822722400741, + 1.0242670427010205, + 1.027586356182353, + 0.8566943380657652, + 0.776647474506018, + 0.7949861732261122, + 0.7877889935659383, + 0.8202263584587571, + 0.8519207845162863, + 0.9880862293740414, + 0.9555220335562823, + 0.8105429744665921, + 0.8395715724918208, + 0.7189668996617486, + 0.7348959353947062, + 0.714056942550904, + 0.9222649100459831, + 0.9874489872560568, + 1.1043924060935744, + 1.1070141470825148, + 1.072607651639629, + 1.2420151843256224, + 1.6854646213687092, + 1.6189975468341289, + 1.563203986491781, + 1.8325477095743776, + 1.3042731644652559, + 1.7509947382814433, + 2.0173472511574344, + 2.783097168691554, + 2.09703916792321, + 1.9083950524798377, + 1.7747413494130309, + 1.3098353406917949 + ], + [ + 1.2327719262006276, + 1.3342284561822984, + 1.2630423031875806, + 1.204791361963996, + 1.0533628992622066, + 1.069509360953034, + 1.0020562354897726, + 1.0346375425859482, + 1.0569597825996038, + 1.128937788170324, + 1.1759321485459868, + 1.0638786347040834, + 1.1174902290837152, + 0.973206925277746, + 0.9603041398586265, + 0.9759021323961402, + 1.122620566276374, + 1.248828348192916, + 1.3129079030169561, + 1.3718587761599492, + 1.2193618761963534, + 1.258546637917256, + 1.7246419357742153, + 1.5781412540086597, + 1.4904957634661484, + 1.7291822623997113, + 1.355683701594508, + 1.459299951487052, + 1.6796236558986635, + 2.09703916792321, + 3.040583716895786, + 2.4696838750005137, + 2.061981809373004, + 1.5715303097943691 + ], + [ + 1.269856142627865, + 1.3947177595654372, + 1.3720492502598325, + 1.2859580835177253, + 1.0626027762632444, + 1.0590108307002604, + 1.0311389492259289, + 1.0736078539883465, + 1.0679543221536223, + 1.118530715957504, + 1.212693817241577, + 1.066785818022557, + 1.084405323626235, + 0.9256190976317537, + 0.9055060263203509, + 0.934386527135768, + 1.130817514246351, + 1.2056224669943416, + 1.2971334800433423, + 1.3956472553283836, + 1.2814424332744843, + 1.288419588879108, + 1.6415104162359435, + 1.5617807034774085, + 1.4433514160563297, + 1.6148085670343204, + 1.392118316061973, + 1.478836783362774, + 1.584573675743107, + 1.9083950524798377, + 2.4696838750005137, + 3.237709207512389, + 2.161683828181645, + 1.711490238758212 + ], + [ + 1.278023707807586, + 1.2960967242861405, + 1.1991783796826554, + 1.1500928872331737, + 1.0716273433416739, + 0.9334732055880408, + 1.005268204660791, + 1.061703077903756, + 1.0722998665067685, + 1.1024368424997146, + 1.0874032193844418, + 0.9661809267239458, + 0.9389445094392284, + 0.9437641639402778, + 0.9008572726882466, + 0.9083999377960941, + 1.0637525291712338, + 1.1553120341304408, + 1.228866541925978, + 1.3257227847495872, + 1.2456438111979147, + 1.1699311083058812, + 1.831417550301263, + 1.6929259133370707, + 1.81508557571789, + 2.067591522845982, + 1.5116042910781324, + 2.0288416291527365, + 1.5325888271499963, + 1.7747413494130309, + 2.061981809373004, + 2.161683828181645, + 5.172976698787038, + 2.824647337941047 + ], + [ + 1.216651572001522, + 1.3016142849512344, + 1.1671289318987268, + 1.0423537507225114, + 0.8752272188160353, + 0.9646700898008067, + 0.7959378214677061, + 0.750928251918323, + 0.7857556816476677, + 0.8211965440969131, + 0.8605743334958192, + 0.6091327572189656, + 0.7408847801884659, + 0.5668379983715642, + 0.5954307161876768, + 0.5822911456650849, + 0.8107364603471738, + 1.0623007897422523, + 1.0202576151333456, + 1.0523757354830439, + 1.1246503991311638, + 1.0932828393542537, + 1.5855939772355068, + 1.5647015057220164, + 1.612279763842038, + 1.5661674833574266, + 1.2344697766668473, + 1.2548721845908442, + 1.1015711516371718, + 1.3098353406917949, + 1.5715303097943691, + 1.711490238758212, + 2.824647337941047, + 5.105147818704216 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.38944230427320486, + -0.4086471163222382, + -0.3980981363397869, + -0.4062306305399949, + -0.34938605307768383, + -0.32004282163274883, + -0.3170595556608155, + -0.3184024228631234, + -0.3326079993445777, + -0.39845035553048863, + -0.2891275881543313, + -0.3030250211732945, + -0.310174250289404, + -0.2940529831853839, + -0.4366641228322912, + -0.3365568439267927, + -0.4720012588689791, + -0.4726108904263335, + -0.436199044607594, + -0.4278269302238534, + -0.3600793930363095, + -0.3676631040292044 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6246677319752422, + "transport_matrix_sha256": "92240dc08b641dff66cf38ea210d31aba569eb4f8091ce99c4a8b75f433cadd4", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.097011640667916e-05, + "gram_mean_diagonal": 0.06097011640667915, + "calibration_nmse": 0.03808019200585718, + "calibration_cosine": 0.9807755634286893, + "calibration_norm_ratio": 0.9798280272973131, + "transport_relative_identity_distance": 0.2715636193752289, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "6005f741b04aefb4b83452f774f7d013b010b6218020e382a98c92a45d8878ac", + "self_attn.k_proj.weight": "e4d7d1464c351cfcb69799eb3e3bf63cc597383cbfb0d07263236ba2d8eb3d5b", + "self_attn.v_proj.weight": "25063dfdce05fdcb1a48c5d71c3e0107d7a894b7fb6c0f7defa2e768c68ba3d7", + "self_attn.o_proj.weight": "e96bf888e3b0629075b2ee05288e147fd875119467d978c2269ecfeb3b0db4eb", + "self_attn.q_norm.weight": "d77168c19fe27a0d64a2611360be089b4435adc62444d0e82a986419be1d9b44", + "self_attn.k_norm.weight": "2cbb9d53874b3fe1d350a9c9031d64cd138a1dbac549529d07da2927106a10ff", + "mlp.gate_proj.weight": "3acdf3c7c3b8dd224f2837ef92c5e72e8bc7963baa021e9ba2a032da6084c86a", + "mlp.up_proj.weight": "6a0bdd43c6eab5e133991697799089710e9077591b56bcbde02440054dbfebbc", + "mlp.down_proj.weight": "1f66d7843032883982c0b98e73d9193144e181de07f5506b718d1cea3edb23ea", + "input_layernorm.weight": "3f2e5d516a4c80f8d93f0221e5ecbc2e7e692f111118c7c629f210ee9d03419d", + "post_attention_layernorm.weight": "3a237234fa5182946c09967a08faec9d9060f4bd780bdd6627f6159edebe2f98" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "6005f741b04aefb4b83452f774f7d013b010b6218020e382a98c92a45d8878ac", + "self_attn.k_proj.weight": "e4d7d1464c351cfcb69799eb3e3bf63cc597383cbfb0d07263236ba2d8eb3d5b", + "self_attn.v_proj.weight": "25063dfdce05fdcb1a48c5d71c3e0107d7a894b7fb6c0f7defa2e768c68ba3d7", + "self_attn.o_proj.weight": "e96bf888e3b0629075b2ee05288e147fd875119467d978c2269ecfeb3b0db4eb", + "self_attn.q_norm.weight": "d77168c19fe27a0d64a2611360be089b4435adc62444d0e82a986419be1d9b44", + "self_attn.k_norm.weight": "2cbb9d53874b3fe1d350a9c9031d64cd138a1dbac549529d07da2927106a10ff", + "mlp.gate_proj.weight": "4066467968c4094943a227fdcf248b608a8990239e31840a275968d85f1b6716", + "mlp.up_proj.weight": "8fd58dd8a4e80ae482ac26be9f41504980492887ba8aef6e3d0c5bbc8304c743", + "mlp.down_proj.weight": "1f66d7843032883982c0b98e73d9193144e181de07f5506b718d1cea3edb23ea", + "input_layernorm.weight": "3f2e5d516a4c80f8d93f0221e5ecbc2e7e692f111118c7c629f210ee9d03419d", + "post_attention_layernorm.weight": "3a237234fa5182946c09967a08faec9d9060f4bd780bdd6627f6159edebe2f98" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6246677319752422, + "lambda_right": 0.37533226802475783, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "b76a10548dc24bd7497d10d001a9371df638adca19bfce75a56b0cfb27b6d065", + "mlp.up_proj.weight": "cc493840ce3a8e36490a2c80b25b2a5d90e9b0c366939c41740094d74ba5b184", + "mlp.gate_proj.weight": "30f9b1815d6369eeb6a1af9b0cd42e84e9f333e727e66e7cafbc63216d5d1f0f", + "self_attn.k_proj.weight": "9cd64498b33ff399a47d26bb60035f41cf2e1e27240d5bb0e12c5a38a72c366f", + "self_attn.o_proj.weight": "272948af1d61022705cc295ddb40b6214632b9fbe6e254d6b74a2a4507a49386", + "self_attn.q_proj.weight": "a49e9fe8337d0eecf534da70ba4af6662b57ed652fa49f1fd9d56c2d03684d2d", + "self_attn.v_proj.weight": "de40e6d4feaccef517aefdb991834ce833f6e7cfbf5f720a582ede927cec626e" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "6005f741b04aefb4b83452f774f7d013b010b6218020e382a98c92a45d8878ac", + "self_attn.k_proj.weight": "e4d7d1464c351cfcb69799eb3e3bf63cc597383cbfb0d07263236ba2d8eb3d5b", + "self_attn.v_proj.weight": "25063dfdce05fdcb1a48c5d71c3e0107d7a894b7fb6c0f7defa2e768c68ba3d7", + "self_attn.o_proj.weight": "e96bf888e3b0629075b2ee05288e147fd875119467d978c2269ecfeb3b0db4eb", + "self_attn.q_norm.weight": "d77168c19fe27a0d64a2611360be089b4435adc62444d0e82a986419be1d9b44", + "self_attn.k_norm.weight": "2cbb9d53874b3fe1d350a9c9031d64cd138a1dbac549529d07da2927106a10ff", + "mlp.gate_proj.weight": "4066467968c4094943a227fdcf248b608a8990239e31840a275968d85f1b6716", + "mlp.up_proj.weight": "8fd58dd8a4e80ae482ac26be9f41504980492887ba8aef6e3d0c5bbc8304c743", + "mlp.down_proj.weight": "1f66d7843032883982c0b98e73d9193144e181de07f5506b718d1cea3edb23ea", + "input_layernorm.weight": "3f2e5d516a4c80f8d93f0221e5ecbc2e7e692f111118c7c629f210ee9d03419d", + "post_attention_layernorm.weight": "3a237234fa5182946c09967a08faec9d9060f4bd780bdd6627f6159edebe2f98" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "589d2d560b63011f41524f9e4902e6b2453440cd645b4b500a28538a1cf4704d", + "mlp.up_proj.weight": "35d04fcf67ab22adbf6bcb1250c54bf267aea4a73f4bf2998beca5d4e5eccfff", + "mlp.gate_proj.weight": "2521e18eaf36850c9e28e3885e3f87dd0c9091aa16b24011b8753a9295247377", + "self_attn.k_proj.weight": "ce465b2cc7ff0c4ee4bd155b75efe66c5afcba97bba8dae2b852b0629cf4e8c3", + "self_attn.o_proj.weight": "8d49531ce242f536d1d27a2882f3562fdf3e7b2b1ba901c604e6ab2528857817", + "self_attn.q_proj.weight": "ba87131bcd890976f15ffd199dc564012b8aa6c1f3202f184596557259cd92b7", + "self_attn.v_proj.weight": "3631a170e4e61c2d0dcf2617a77489bca1f8d94c407d14ac10bb8a54cda02fbe" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + }, + { + "cycle": 4, + "anchor": 12, + "removed_original_layer": 16, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.314300027105734, + 2.461919023433335, + 2.1525834524304894, + 2.2878599993587736, + 2.649216707734476, + 3.0156422135045475, + 3.122213040882858, + 2.735158415906826, + 2.8335350264143155, + 1.4476710763864702, + 1.6757910880417386, + 1.560077749109066, + 1.3105082884760846, + 1.3449146523213704, + 0.7867328199618516, + 1.0295279842914145, + 0.9976450629962423, + 1.0551311627117597, + 1.2135039258282794, + 1.3591603339230407, + 1.3953358624052978 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.403737161174292, + 2.597638610440688, + 2.264245884321682, + 2.3787100324982844, + 2.7277612956390977, + 3.1370637154368013, + 3.1696762295247107, + 2.9053430196477175, + 2.9992099691196215, + 1.6601984109646992, + 1.8354434405034292, + 1.7692311047970397, + 1.4514514803062588, + 1.455614489064811, + 0.8824892077111548, + 1.1137565329190535, + 1.1446827227156666, + 1.1310017970761124, + 1.2841266505454594, + 1.2945064357520133, + 1.3687794265131663 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.471676830375396, + 2.6490549773173284, + 2.287733838137879, + 2.437948935797838, + 2.821196618198155, + 3.22855616118193, + 3.2361888698373007, + 2.8956234872659334, + 2.9475113511326088, + 1.534689597529067, + 1.7481715931721336, + 1.7311299784369338, + 1.3549313023902774, + 1.419796533720719, + 0.8434019475919747, + 1.155251913975692, + 1.1178256592299947, + 1.1234932190884592, + 1.254512839091728, + 1.2419221049979003, + 1.218965095759463 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8097931203426354, + 3.009127293528697, + 2.566939930248229, + 2.824178768362589, + 3.06898893017062, + 3.2318720075944545, + 3.294301487573008, + 3.236104916150143, + 3.0298012160053225, + 1.8665905775445029, + 2.0020961767889873, + 1.843589545069702, + 1.5829701034661072, + 1.5864523507153467, + 0.9842629092970591, + 1.0833663819825314, + 1.0527711926543772, + 1.1302960072342605, + 1.2276297727276524, + 1.2682545105507188, + 1.281760629487778 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.684485421074143, + 2.710291631374167, + 2.3660928534026255, + 2.5021354745974405, + 2.7170570690583133, + 2.875442437072025, + 2.820028991822822, + 2.5706342498102113, + 2.5550329073120106, + 1.977044926904529, + 1.8439292062450405, + 1.6496830759987995, + 1.4721869550367672, + 1.4120372043709835, + 0.8161292366014105, + 0.9722650270236017, + 0.8477892108457493, + 0.9310834882602305, + 1.0302026270062674, + 1.148183987826183, + 1.0495423912360902 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.665742955821557, + 2.5794981154812304, + 2.342328835701662, + 2.447579475586948, + 2.6835443814538675, + 2.7608555994198474, + 2.634072528968371, + 2.5402087703565397, + 2.467476627692352, + 1.8071922155323132, + 1.6949663731773699, + 1.570303251246303, + 1.4143723722330284, + 1.365852011357938, + 0.8525749710753611, + 0.9825293700325594, + 0.8967780561942892, + 0.9444128194705904, + 1.001342143085715, + 1.072680225680396, + 1.295470380551076 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.810376446493185, + 2.6736977416647965, + 2.469645286596305, + 2.4861124142551194, + 2.6342022458406373, + 2.791618824788654, + 2.7069341876780633, + 2.5442820215971675, + 2.4445793489663017, + 1.9332649780278837, + 1.821922281557604, + 1.700187574806416, + 1.4839556767277615, + 1.413448759759593, + 0.8243704980245724, + 0.9313336387577859, + 0.8613350801923607, + 0.9431387629266099, + 0.9926589042391588, + 1.092739505581484, + 1.0462822337188293 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8604326518430807, + 2.752539599097301, + 2.4821132952428675, + 2.552230042937554, + 2.6587391965380647, + 2.891160217752835, + 2.860405920703912, + 2.626952983049047, + 2.5316669670984147, + 1.9043515786609861, + 1.8517012881252881, + 1.7475179504543674, + 1.4106259012845308, + 1.43847577063438, + 0.8069107914890946, + 0.972672384792874, + 0.9251104498215555, + 0.9958138686818863, + 1.0492769922561158, + 1.0890026759950953, + 0.9841123918210369 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.9708735865724574, + 2.73446934898001, + 2.586290481358667, + 2.5035650130784552, + 2.6304524969642205, + 2.8110631483320008, + 2.786189742174216, + 2.7121451734863506, + 2.622847342698003, + 1.8989955635181268, + 1.8747969939832225, + 1.8039727756960982, + 1.5473793084442458, + 1.570183010230387, + 0.8517991444075295, + 0.987086974883477, + 0.9476852799698333, + 0.9682259719700246, + 1.0666754568337995, + 1.0733110805534485, + 0.9899130507077791 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9243201398914542, + 3.067048761828838, + 2.5550835039284294, + 2.8371328612271056, + 2.901021170165633, + 3.1394835575391844, + 3.1076712216569073, + 3.0661818722694756, + 2.992499578110458, + 1.9784082138290793, + 2.112733961764548, + 1.9183625720284727, + 1.5754124136951366, + 1.579384286558107, + 0.8668212383108905, + 1.1116202500276509, + 1.1316271873153823, + 1.1275585551913094, + 1.1551859501110775, + 1.0834525349085238, + 0.8663890394901907 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.156237628612337, + 3.22763168797825, + 2.73868710779468, + 3.0449663058740315, + 3.2609220872069793, + 3.5853485176514597, + 3.55540397894272, + 3.516410805692872, + 3.457223234011531, + 2.058031323370723, + 2.265294235313926, + 2.149293336638887, + 1.7909503230947812, + 1.6350031347072727, + 0.895429961189473, + 1.120159080807125, + 1.080969991837595, + 1.0764722275586287, + 1.1635649050678059, + 1.0871307070163994, + 0.8988686133923639 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.7309871323170603, + 3.1697635966094198, + 2.9815883755229695, + 2.8706449248327366, + 2.7637379656283234, + 2.926399935409853, + 2.8069899461613677, + 2.782435228242578, + 2.6178603228142676, + 1.8281113295451992, + 1.8940490086059527, + 1.8324282044926903, + 1.5903296487262761, + 1.5925891286631313, + 0.7103705884241744, + 0.9742590427712182, + 0.9074007246987084, + 0.9405837864919065, + 0.9653002131210144, + 0.9716574943682296, + 0.7075053295536702 + ], + [ + 2.314300027105734, + 2.403737161174292, + 2.471676830375396, + 2.8097931203426354, + 2.684485421074143, + 2.665742955821557, + 2.810376446493185, + 2.8604326518430807, + 2.9708735865724574, + 2.9243201398914542, + 3.156237628612337, + 3.7309871323170603, + 3.930110731448644, + 3.172226992044064, + 2.9930181264204223, + 2.8622298357810667, + 2.7950413460541097, + 2.9375260085039856, + 2.7818981117731854, + 2.823966256893959, + 2.5967992990416917, + 1.8371983864997607, + 1.930693920629306, + 1.8312668092917004, + 1.6297347311890982, + 1.590342860366293, + 0.758068397101918, + 0.9855179645361212, + 0.9206874522819447, + 0.9471145924052544, + 0.9646477762334961, + 0.9842017201935188, + 0.7881220435062507 + ], + [ + 2.461919023433335, + 2.597638610440688, + 2.6490549773173284, + 3.009127293528697, + 2.710291631374167, + 2.5794981154812304, + 2.6736977416647965, + 2.752539599097301, + 2.73446934898001, + 3.067048761828838, + 3.22763168797825, + 3.1697635966094198, + 3.172226992044064, + 4.035081665752084, + 2.939290367346883, + 3.2855856778188324, + 3.1022074358861733, + 3.2434380825548583, + 2.9611568416170573, + 2.8083200440471563, + 2.616588132988076, + 1.8701275212550186, + 1.9626337009647723, + 1.8332344588363338, + 1.5315531347610734, + 1.3761963647729136, + 0.7615105506425894, + 0.9584874065307398, + 0.8832127284362556, + 0.9764170264661503, + 1.0167790137683346, + 1.0681571015390157, + 0.818919375117991 + ], + [ + 2.1525834524304894, + 2.264245884321682, + 2.287733838137879, + 2.566939930248229, + 2.3660928534026255, + 2.342328835701662, + 2.469645286596305, + 2.4821132952428675, + 2.586290481358667, + 2.5550835039284294, + 2.73868710779468, + 2.9815883755229695, + 2.9930181264204223, + 2.939290367346883, + 3.54298760125702, + 2.921527870550785, + 2.7483279693040963, + 2.8409775478574666, + 2.582925497768195, + 2.5143138199746344, + 2.3242644618808024, + 1.704633437412501, + 1.6773689678541912, + 1.6633119366913098, + 1.4153329172895461, + 1.5110900607395281, + 0.7627869709742732, + 0.9792399828469156, + 0.921689544430509, + 0.9851010273173267, + 1.015888700473225, + 1.055010937731094, + 0.8600265413524133 + ], + [ + 2.2878599993587736, + 2.3787100324982844, + 2.437948935797838, + 2.824178768362589, + 2.5021354745974405, + 2.447579475586948, + 2.4861124142551194, + 2.552230042937554, + 2.5035650130784552, + 2.8371328612271056, + 3.0449663058740315, + 2.8706449248327366, + 2.8622298357810667, + 3.2855856778188324, + 2.921527870550785, + 3.989889752665237, + 3.2105765691424217, + 3.205854992735177, + 2.9495276151007803, + 2.80577186205303, + 2.6039381688698398, + 1.9158155823324203, + 1.918068359685552, + 1.859059220886696, + 1.490544681999069, + 1.42152200322146, + 0.8256450365013723, + 0.9227987482439577, + 0.8419148226750538, + 0.9090979553138583, + 0.9876992114609472, + 1.11318027180485, + 0.897826980101583 + ], + [ + 2.649216707734476, + 2.7277612956390977, + 2.821196618198155, + 3.06898893017062, + 2.7170570690583133, + 2.6835443814538675, + 2.6342022458406373, + 2.6587391965380647, + 2.6304524969642205, + 2.901021170165633, + 3.2609220872069793, + 2.7637379656283234, + 2.7950413460541097, + 3.1022074358861733, + 2.7483279693040963, + 3.2105765691424217, + 4.7274008071415885, + 4.38098084783146, + 3.8502719802545187, + 3.7208657576381747, + 3.245223804381355, + 2.1499059349338636, + 2.365672701976562, + 2.1824613432316853, + 1.7786986929696287, + 1.6846157997484135, + 0.9622552867832426, + 1.0520608470397097, + 1.0401326790826153, + 1.1067779547477345, + 1.0999227111890348, + 1.1508544691025184, + 1.169515037282032 + ], + [ + 3.0156422135045475, + 3.1370637154368013, + 3.22855616118193, + 3.2318720075944545, + 2.875442437072025, + 2.7608555994198474, + 2.791618824788654, + 2.891160217752835, + 2.8110631483320008, + 3.1394835575391844, + 3.5853485176514597, + 2.926399935409853, + 2.9375260085039856, + 3.2434380825548583, + 2.8409775478574666, + 3.205854992735177, + 4.38098084783146, + 5.3037711447961575, + 4.4809239514048835, + 4.012760087028986, + 3.7401869628618276, + 2.2355950808922027, + 2.494227717737122, + 2.284219091232866, + 1.8598940761303475, + 1.7661991266693997, + 0.935047804677864, + 1.1393992797459442, + 1.1231809786337004, + 1.1519141825757822, + 1.1549949072252053, + 1.2333150141343838, + 1.200391335441381 + ], + [ + 3.122213040882858, + 3.1696762295247107, + 3.2361888698373007, + 3.294301487573008, + 2.820028991822822, + 2.634072528968371, + 2.7069341876780633, + 2.860405920703912, + 2.786189742174216, + 3.1076712216569073, + 3.55540397894272, + 2.8069899461613677, + 2.7818981117731854, + 2.9611568416170573, + 2.582925497768195, + 2.9495276151007803, + 3.8502719802545187, + 4.4809239514048835, + 5.306791688691005, + 4.131984698665956, + 4.030514704329098, + 2.2748944062117094, + 2.464640668724879, + 2.260154943705265, + 1.895376217718618, + 1.7805126164537326, + 0.9967152289904879, + 1.1899153252039334, + 1.130133463617499, + 1.1658109967831987, + 1.237127216811226, + 1.3502222931299264, + 1.2858726154933944 + ], + [ + 2.735158415906826, + 2.9053430196477175, + 2.8956234872659334, + 3.236104916150143, + 2.5706342498102113, + 2.5402087703565397, + 2.5442820215971675, + 2.626952983049047, + 2.7121451734863506, + 3.0661818722694756, + 3.516410805692872, + 2.782435228242578, + 2.823966256893959, + 2.8083200440471563, + 2.5143138199746344, + 2.80577186205303, + 3.7208657576381747, + 4.012760087028986, + 4.131984698665956, + 4.997935820179628, + 3.962636732284426, + 2.4747369016634724, + 2.7212739467253444, + 2.3513848388521, + 2.1624253347828892, + 2.0638583633735874, + 1.1048584391414855, + 1.1776002132319525, + 1.260497729733739, + 1.1974236119522488, + 1.209242733399492, + 1.3456393585688418, + 1.2996019104753054 + ], + [ + 2.8335350264143155, + 2.9992099691196215, + 2.9475113511326088, + 3.0298012160053225, + 2.5550329073120106, + 2.467476627692352, + 2.4445793489663017, + 2.5316669670984147, + 2.622847342698003, + 2.992499578110458, + 3.457223234011531, + 2.6178603228142676, + 2.5967992990416917, + 2.616588132988076, + 2.3242644618808024, + 2.6039381688698398, + 3.245223804381355, + 3.7401869628618276, + 4.030514704329098, + 3.962636732284426, + 5.424582695669656, + 2.6709932797011553, + 2.9109871982624167, + 2.5879330187056824, + 2.3588714636750794, + 2.2394388292920926, + 1.0353286120679521, + 1.334329990729527, + 1.3615573865691337, + 1.3653986617292104, + 1.4438250800166432, + 1.531797641897138, + 1.4995929307961264 + ], + [ + 1.4476710763864702, + 1.6601984109646992, + 1.534689597529067, + 1.8665905775445029, + 1.977044926904529, + 1.8071922155323132, + 1.9332649780278837, + 1.9043515786609861, + 1.8989955635181268, + 1.9784082138290793, + 2.058031323370723, + 1.8281113295451992, + 1.8371983864997607, + 1.8701275212550186, + 1.704633437412501, + 1.9158155823324203, + 2.1499059349338636, + 2.2355950808922027, + 2.2748944062117094, + 2.4747369016634724, + 2.6709932797011553, + 3.379131425981329, + 2.651530645654673, + 2.342599610812365, + 2.079936760442765, + 1.7187760810924886, + 0.7559185079850282, + 1.1777505999280131, + 1.0215960774092963, + 0.9367182764084494, + 0.9552406542818174, + 1.030976435758569, + 1.0083506902108008 + ], + [ + 1.6757910880417386, + 1.8354434405034292, + 1.7481715931721336, + 2.0020961767889873, + 1.8439292062450405, + 1.6949663731773699, + 1.821922281557604, + 1.8517012881252881, + 1.8747969939832225, + 2.112733961764548, + 2.265294235313926, + 1.8940490086059527, + 1.930693920629306, + 1.9626337009647723, + 1.6773689678541912, + 1.918068359685552, + 2.365672701976562, + 2.494227717737122, + 2.464640668724879, + 2.7212739467253444, + 2.9109871982624167, + 2.651530645654673, + 3.700480385834811, + 2.7274619208958346, + 2.4593391984596837, + 1.8006567967637055, + 0.7658942517923812, + 1.143022798771677, + 1.068164116581762, + 0.9167734362036271, + 0.8345832873694562, + 0.9954551213088274, + 0.921797273840585 + ], + [ + 1.560077749109066, + 1.7692311047970397, + 1.7311299784369338, + 1.843589545069702, + 1.6496830759987995, + 1.570303251246303, + 1.700187574806416, + 1.7475179504543674, + 1.8039727756960982, + 1.9183625720284727, + 2.149293336638887, + 1.8324282044926903, + 1.8312668092917004, + 1.8332344588363338, + 1.6633119366913098, + 1.859059220886696, + 2.1824613432316853, + 2.284219091232866, + 2.260154943705265, + 2.3513848388521, + 2.5879330187056824, + 2.342599610812365, + 2.7274619208958346, + 3.6363728657784233, + 2.6947085597538543, + 1.7746544951910237, + 0.6941655086565679, + 1.1690169013172815, + 1.035344224716548, + 0.8418969131638131, + 0.8250764754864821, + 0.9864211199831681, + 0.9556058874829595 + ], + [ + 1.3105082884760846, + 1.4514514803062588, + 1.3549313023902774, + 1.5829701034661072, + 1.4721869550367672, + 1.4143723722330284, + 1.4839556767277615, + 1.4106259012845308, + 1.5473793084442458, + 1.5754124136951366, + 1.7909503230947812, + 1.5903296487262761, + 1.6297347311890982, + 1.5315531347610734, + 1.4153329172895461, + 1.490544681999069, + 1.7786986929696287, + 1.8598940761303475, + 1.895376217718618, + 2.1624253347828892, + 2.3588714636750794, + 2.079936760442765, + 2.4593391984596837, + 2.6947085597538543, + 3.9600165881456326, + 2.244853333853068, + 0.7762316889570585, + 1.3851960910922103, + 1.2174581134169675, + 0.9213630782693091, + 0.9112985108066699, + 1.0036026898581505, + 0.9691482431827392 + ], + [ + 1.3449146523213704, + 1.455614489064811, + 1.419796533720719, + 1.5864523507153467, + 1.4120372043709835, + 1.365852011357938, + 1.413448759759593, + 1.43847577063438, + 1.570183010230387, + 1.579384286558107, + 1.6350031347072727, + 1.5925891286631313, + 1.590342860366293, + 1.3761963647729136, + 1.5110900607395281, + 1.42152200322146, + 1.6846157997484135, + 1.7661991266693997, + 1.7805126164537326, + 2.0638583633735874, + 2.2394388292920926, + 1.7187760810924886, + 1.8006567967637055, + 1.7746544951910237, + 2.244853333853068, + 4.126862603559787, + 1.8307068464132223, + 1.6892578951113346, + 1.5602236850273088, + 1.301467776140766, + 1.355598569157209, + 1.3825216818671957, + 1.1932043341070957 + ], + [ + 0.7867328199618516, + 0.8824892077111548, + 0.8434019475919747, + 0.9842629092970591, + 0.8161292366014105, + 0.8525749710753611, + 0.8243704980245724, + 0.8069107914890946, + 0.8517991444075295, + 0.8668212383108905, + 0.895429961189473, + 0.7103705884241744, + 0.758068397101918, + 0.7615105506425894, + 0.7627869709742732, + 0.8256450365013723, + 0.9622552867832426, + 0.935047804677864, + 0.9967152289904879, + 1.1048584391414855, + 1.0353286120679521, + 0.7559185079850282, + 0.7658942517923812, + 0.6941655086565679, + 0.7762316889570585, + 1.8307068464132223, + 3.2226666395910537, + 1.263493495183496, + 1.2065912891888106, + 1.0422827571401898, + 1.167915965143054, + 1.2379748751752127, + 1.2971150963787008 + ], + [ + 1.0295279842914145, + 1.1137565329190535, + 1.155251913975692, + 1.0833663819825314, + 0.9722650270236017, + 0.9825293700325594, + 0.9313336387577859, + 0.972672384792874, + 0.987086974883477, + 1.1116202500276509, + 1.120159080807125, + 0.9742590427712182, + 0.9855179645361212, + 0.9584874065307398, + 0.9792399828469156, + 0.9227987482439577, + 1.0520608470397097, + 1.1393992797459442, + 1.1899153252039334, + 1.1776002132319525, + 1.334329990729527, + 1.1777505999280131, + 1.143022798771677, + 1.1690169013172815, + 1.3851960910922103, + 1.6892578951113346, + 1.263493495183496, + 2.805180941646163, + 1.9190041484067935, + 1.589520778149614, + 1.555121151872259, + 1.2738054364504456, + 1.2600595639073078 + ], + [ + 0.9976450629962423, + 1.1446827227156666, + 1.1178256592299947, + 1.0527711926543772, + 0.8477892108457493, + 0.8967780561942892, + 0.8613350801923607, + 0.9251104498215555, + 0.9476852799698333, + 1.1316271873153823, + 1.080969991837595, + 0.9074007246987084, + 0.9206874522819447, + 0.8832127284362556, + 0.921689544430509, + 0.8419148226750538, + 1.0401326790826153, + 1.1231809786337004, + 1.130133463617499, + 1.260497729733739, + 1.3615573865691337, + 1.0215960774092963, + 1.068164116581762, + 1.035344224716548, + 1.2174581134169675, + 1.5602236850273088, + 1.2065912891888106, + 1.9190041484067935, + 2.7554258296757266, + 1.938038648948368, + 1.781189792047324, + 1.4376687473222314, + 1.3775397250173684 + ], + [ + 1.0551311627117597, + 1.1310017970761124, + 1.1234932190884592, + 1.1302960072342605, + 0.9310834882602305, + 0.9444128194705904, + 0.9431387629266099, + 0.9958138686818863, + 0.9682259719700246, + 1.1275585551913094, + 1.0764722275586287, + 0.9405837864919065, + 0.9471145924052544, + 0.9764170264661503, + 0.9851010273173267, + 0.9090979553138583, + 1.1067779547477345, + 1.1519141825757822, + 1.1658109967831987, + 1.1974236119522488, + 1.3653986617292104, + 0.9367182764084494, + 0.9167734362036271, + 0.8418969131638131, + 0.9213630782693091, + 1.301467776140766, + 1.0422827571401898, + 1.589520778149614, + 1.938038648948368, + 2.8012456953203824, + 2.213163009832198, + 1.7779756318043214, + 1.5564826744953513 + ], + [ + 1.2135039258282794, + 1.2841266505454594, + 1.254512839091728, + 1.2276297727276524, + 1.0302026270062674, + 1.001342143085715, + 0.9926589042391588, + 1.0492769922561158, + 1.0666754568337995, + 1.1551859501110775, + 1.1635649050678059, + 0.9653002131210144, + 0.9646477762334961, + 1.0167790137683346, + 1.015888700473225, + 0.9876992114609472, + 1.0999227111890348, + 1.1549949072252053, + 1.237127216811226, + 1.209242733399492, + 1.4438250800166432, + 0.9552406542818174, + 0.8345832873694562, + 0.8250764754864821, + 0.9112985108066699, + 1.355598569157209, + 1.167915965143054, + 1.555121151872259, + 1.781189792047324, + 2.213163009832198, + 2.9700067248715416, + 1.910223378463109, + 1.749278752453771 + ], + [ + 1.3591603339230407, + 1.2945064357520133, + 1.2419221049979003, + 1.2682545105507188, + 1.148183987826183, + 1.072680225680396, + 1.092739505581484, + 1.0890026759950953, + 1.0733110805534485, + 1.0834525349085238, + 1.0871307070163994, + 0.9716574943682296, + 0.9842017201935188, + 1.0681571015390157, + 1.055010937731094, + 1.11318027180485, + 1.1508544691025184, + 1.2333150141343838, + 1.3502222931299264, + 1.3456393585688418, + 1.531797641897138, + 1.030976435758569, + 0.9954551213088274, + 0.9864211199831681, + 1.0036026898581505, + 1.3825216818671957, + 1.2379748751752127, + 1.2738054364504456, + 1.4376687473222314, + 1.7779756318043214, + 1.910223378463109, + 4.867109220537086, + 3.2877996158340754 + ], + [ + 1.3953358624052978, + 1.3687794265131663, + 1.218965095759463, + 1.281760629487778, + 1.0495423912360902, + 1.295470380551076, + 1.0462822337188293, + 0.9841123918210369, + 0.9899130507077791, + 0.8663890394901907, + 0.8988686133923639, + 0.7075053295536702, + 0.7881220435062507, + 0.818919375117991, + 0.8600265413524133, + 0.897826980101583, + 1.169515037282032, + 1.200391335441381, + 1.2858726154933944, + 1.2996019104753054, + 1.4995929307961264, + 1.0083506902108008, + 0.921797273840585, + 0.9556058874829595, + 0.9691482431827392, + 1.1932043341070957, + 1.2971150963787008, + 1.2600595639073078, + 1.3775397250173684, + 1.5564826744953513, + 1.749278752453771, + 3.2877996158340754, + 6.785350938802596 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.39629581536575914, + -0.39392408968380227, + -0.4249299366788886, + -0.3858839856956466, + -0.3413208391183487, + -0.3231474525675428, + -0.32045481597735254, + -0.33767751962196185, + -0.3303917205137287, + -0.4347258131497242, + -0.39758334223454067, + -0.3944413347919116, + -0.3859768635984357, + -0.37205332031609534, + -0.4163590927666799, + -0.46259253830850405, + -0.4794860295820968, + -0.45219894423816637, + -0.44479066197100775, + -0.34358299724361435, + -0.2797879744610617 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.621696986035118, + "transport_matrix_sha256": "7a007f3fdd875ef86f1976706799e8f654c8fd9e93d7851f85e6b8a8a2f23d17", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.113433837890625e-05, + "gram_mean_diagonal": 0.06113433837890625, + "calibration_nmse": 0.02677125200720686, + "calibration_cosine": 0.9865240183756301, + "calibration_norm_ratio": 0.9855801755880016, + "transport_relative_identity_distance": 0.2614944577217102, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "a9874967bd53acfd480ed2bd5552fab4e1a06f610af242d411e176c279e0191a", + "self_attn.k_proj.weight": "0a285bc594b54a921f698937c566bce629295ff4befcebb203038dd0d97eb3f0", + "self_attn.v_proj.weight": "dd8847c5b10e200df29bf79b30321ec7f1d90427ab9b3d273e18a4cbd83e597d", + "self_attn.o_proj.weight": "e6afd2a9ba7c9e6f1911d773062b9d37442a01ead339c9aa9255ff20f146b196", + "self_attn.q_norm.weight": "48de60cd86dec981224231f275146bc8d17990394835783504bbf5f0e9c5bb1a", + "self_attn.k_norm.weight": "d6ef88be0fc007a2bc5e9f1a0a70b7eac493495b5b54b4f72582378340b9bb4d", + "mlp.gate_proj.weight": "171beb5701a83f117d0a59a14a78be2936a062c7aa5700ec39efd9c816af96db", + "mlp.up_proj.weight": "e04d543903d934aae9062d2034f71ac4d3fb1ac69bd5f31d365f404c764e535e", + "mlp.down_proj.weight": "c297d40f8af2ed96c90ff2f616877b4aaeed4bc2918f0e3b56ea769203724ce1", + "input_layernorm.weight": "45d58615dedc0906944d998c52fed1d0d139338362abd51fc1b98ae12edec92a", + "post_attention_layernorm.weight": "af332049d823017194704880c92765ab0cf4a519c8819753d0539106ea951cef" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "a9874967bd53acfd480ed2bd5552fab4e1a06f610af242d411e176c279e0191a", + "self_attn.k_proj.weight": "0a285bc594b54a921f698937c566bce629295ff4befcebb203038dd0d97eb3f0", + "self_attn.v_proj.weight": "dd8847c5b10e200df29bf79b30321ec7f1d90427ab9b3d273e18a4cbd83e597d", + "self_attn.o_proj.weight": "e6afd2a9ba7c9e6f1911d773062b9d37442a01ead339c9aa9255ff20f146b196", + "self_attn.q_norm.weight": "48de60cd86dec981224231f275146bc8d17990394835783504bbf5f0e9c5bb1a", + "self_attn.k_norm.weight": "d6ef88be0fc007a2bc5e9f1a0a70b7eac493495b5b54b4f72582378340b9bb4d", + "mlp.gate_proj.weight": "e585ef500e837ee8ba120cdf78c68222cd5d33cce3cace60bb0916e239526f4d", + "mlp.up_proj.weight": "006510c182eac74fd119cccb59f5a21f56be6ae8ad84582247abf117ef4b00af", + "mlp.down_proj.weight": "c297d40f8af2ed96c90ff2f616877b4aaeed4bc2918f0e3b56ea769203724ce1", + "input_layernorm.weight": "45d58615dedc0906944d998c52fed1d0d139338362abd51fc1b98ae12edec92a", + "post_attention_layernorm.weight": "af332049d823017194704880c92765ab0cf4a519c8819753d0539106ea951cef" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.621696986035118, + "lambda_right": 0.378303013964882, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "589d2d560b63011f41524f9e4902e6b2453440cd645b4b500a28538a1cf4704d", + "mlp.up_proj.weight": "35d04fcf67ab22adbf6bcb1250c54bf267aea4a73f4bf2998beca5d4e5eccfff", + "mlp.gate_proj.weight": "2521e18eaf36850c9e28e3885e3f87dd0c9091aa16b24011b8753a9295247377", + "self_attn.k_proj.weight": "ce465b2cc7ff0c4ee4bd155b75efe66c5afcba97bba8dae2b852b0629cf4e8c3", + "self_attn.o_proj.weight": "8d49531ce242f536d1d27a2882f3562fdf3e7b2b1ba901c604e6ab2528857817", + "self_attn.q_proj.weight": "ba87131bcd890976f15ffd199dc564012b8aa6c1f3202f184596557259cd92b7", + "self_attn.v_proj.weight": "3631a170e4e61c2d0dcf2617a77489bca1f8d94c407d14ac10bb8a54cda02fbe" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "a9874967bd53acfd480ed2bd5552fab4e1a06f610af242d411e176c279e0191a", + "self_attn.k_proj.weight": "0a285bc594b54a921f698937c566bce629295ff4befcebb203038dd0d97eb3f0", + "self_attn.v_proj.weight": "dd8847c5b10e200df29bf79b30321ec7f1d90427ab9b3d273e18a4cbd83e597d", + "self_attn.o_proj.weight": "e6afd2a9ba7c9e6f1911d773062b9d37442a01ead339c9aa9255ff20f146b196", + "self_attn.q_norm.weight": "48de60cd86dec981224231f275146bc8d17990394835783504bbf5f0e9c5bb1a", + "self_attn.k_norm.weight": "d6ef88be0fc007a2bc5e9f1a0a70b7eac493495b5b54b4f72582378340b9bb4d", + "mlp.gate_proj.weight": "e585ef500e837ee8ba120cdf78c68222cd5d33cce3cace60bb0916e239526f4d", + "mlp.up_proj.weight": "006510c182eac74fd119cccb59f5a21f56be6ae8ad84582247abf117ef4b00af", + "mlp.down_proj.weight": "c297d40f8af2ed96c90ff2f616877b4aaeed4bc2918f0e3b56ea769203724ce1", + "input_layernorm.weight": "45d58615dedc0906944d998c52fed1d0d139338362abd51fc1b98ae12edec92a", + "post_attention_layernorm.weight": "af332049d823017194704880c92765ab0cf4a519c8819753d0539106ea951cef" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "b435c15455b9acea20e4c29c945a6c82e17f681d8d7e66ad87acb8fac7170d83", + "mlp.up_proj.weight": "fbf0e81a87ba5cc794a443b499a5b146e8852438e93e6d63e089d797b3cbcea1", + "mlp.gate_proj.weight": "4fa198abc19c57731465efea76911d71ffa46ff751d5fe8a60b44c576e10f6e7", + "self_attn.k_proj.weight": "032c027fe01cb5fab5f4c1e3dc67e7cf0df68ec9aaa6d17ec2e475e82d3c1e55", + "self_attn.o_proj.weight": "9f0e48310cf38889f4ed316f139295db2cf5e538bf7e55485aad5e71e23ecd5e", + "self_attn.q_proj.weight": "3bc8c412dc5060b6e560e3239eeae87e063ebc8dab8004e85753243c608887e1", + "self_attn.v_proj.weight": "60ce6d426d898b9dfafeb8708e5cd7ab0ab1ed9ecb72406ed7ced29ddf241f92" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + }, + { + "cycle": 5, + "anchor": 12, + "removed_original_layer": 17, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.2973014672443273, + 2.402313465345035, + 2.7751658007372124, + 2.431967012817301, + 2.555949570500245, + 2.9490550065873617, + 2.933062839998181, + 2.985586109185286, + 1.393497006924735, + 1.5549888324033396, + 1.6172032381708137, + 1.2895455137771423, + 1.3305508398944483, + 0.809612793475257, + 0.96576077948826, + 0.9678482963357555, + 1.076437300927, + 1.1106831656359657, + 1.2818385237479304, + 1.367331307834341 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3593836873266576, + 2.4969686514309237, + 2.761282372061731, + 2.514009710327687, + 2.678313267524417, + 3.0385727050761773, + 3.146421624678776, + 3.1126286988238836, + 1.4966492525721014, + 1.7356666744877467, + 1.760067430971546, + 1.3822790019247668, + 1.44865621676555, + 0.8706680369307369, + 1.087681668858802, + 1.016765063089871, + 1.168092624762163, + 1.240202514748782, + 1.2512539741859132, + 1.5289417353969423 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.472799166107413, + 2.5487305066435324, + 2.862739133796854, + 2.459992013000342, + 2.6895761883196476, + 3.0540897711329347, + 3.1636333863106842, + 2.956284068558032, + 1.427682139973012, + 1.666052580315572, + 1.6172506596558796, + 1.3478479434049486, + 1.4524278573457412, + 0.8472268087342227, + 1.0915963974461942, + 1.0233891066594845, + 1.1170455724981618, + 1.189972476000872, + 1.204138405946318, + 1.4489879568487152 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.826623250750395, + 2.829128529870874, + 3.2520301403879524, + 2.855804693529714, + 3.0138645684949963, + 3.41710960611837, + 3.308103776833983, + 2.862256429918106, + 1.5543731860514867, + 2.032282844095036, + 1.8485855337863513, + 1.5356195883615302, + 1.5954369023407893, + 1.1125602833908146, + 1.0939111250358495, + 0.9625166787034021, + 1.1018882409886093, + 1.221910865722635, + 1.2988461323624159, + 1.3737590918672091 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.740993573260234, + 2.7078545559894063, + 2.808013590210768, + 2.7302198303918033, + 2.6733525405195957, + 2.9306109298562504, + 2.724838391647251, + 2.4668328844542935, + 1.382441321958602, + 1.843551366503246, + 1.691076875650992, + 1.2705448428608754, + 1.4552881932284591, + 0.9296751122667901, + 0.9863193465434471, + 0.7896427441625843, + 0.870606594507396, + 1.0034121877274516, + 1.1606232700187604, + 1.1671181849656456 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.614220787093429, + 2.6501461085544795, + 2.731432821325423, + 2.665173718303485, + 2.529184666025586, + 2.747125470323815, + 2.730871060839862, + 2.4255575688637157, + 1.4399598585545985, + 1.7393478905969277, + 1.6833521238772298, + 1.3394242790383133, + 1.4772322241979203, + 1.0018227306191279, + 1.0514234553417974, + 0.898569320285732, + 0.9275928769055607, + 1.0328114187502706, + 1.2249622386495047, + 1.249906287774621 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8357127176867145, + 2.7175887262467424, + 2.810749227598172, + 2.6396113340815632, + 2.610701692748886, + 2.865836600395961, + 2.7201746726471985, + 2.376016027573937, + 1.3548302877521203, + 1.7813569087158272, + 1.7431930238989644, + 1.3193022606522211, + 1.4935638799943822, + 0.8907893733515545, + 0.9541463292028871, + 0.8076943037291087, + 0.8314839027100833, + 0.9526857565002524, + 1.0656383876649953, + 1.043281432100314 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8895048272012303, + 2.7809944225774386, + 2.8859910412636007, + 2.6382373642462347, + 2.6344756125377433, + 2.955985931473798, + 2.759363968261283, + 2.4185247447673555, + 1.3498300313754128, + 1.7333495052521455, + 1.684202508148144, + 1.31790487922462, + 1.5481601596292842, + 0.8667593274210247, + 0.9706611467753349, + 0.8327209980937196, + 0.8290287059936796, + 0.962538409183641, + 1.0024617353618726, + 1.0392645329380419 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0698740923791608, + 2.9039236660401033, + 2.885517872292078, + 2.7205889657416087, + 2.729609472173427, + 2.9254031628239963, + 2.8947586207155362, + 2.5344803496790393, + 1.3752413744530156, + 1.8392546121026203, + 1.7394218576958254, + 1.3351316714512602, + 1.5927354985510551, + 0.8643039502278661, + 1.0066776903105028, + 0.8417119057336107, + 0.8499465349219155, + 0.9379137996971791, + 1.06155710262533, + 1.0577599205726012 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.981353692057144, + 2.9416116014811853, + 3.1978591518906905, + 2.8033148259375067, + 2.978134204609236, + 3.3500533488820174, + 3.248905158339224, + 3.01273866422778, + 1.4928379209748757, + 2.0924587099912397, + 1.7548677066584348, + 1.2369197720830687, + 1.524747419944472, + 0.9006708186297612, + 1.1102994045064498, + 0.9265597470579497, + 0.9631736463922361, + 1.0518952278190978, + 1.0687943067750203, + 1.0312919104536666 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.1462477950594425, + 3.197764002772733, + 3.5145079587265986, + 3.0963171168830788, + 3.376910422849725, + 3.8097273751913714, + 3.7128669817900093, + 3.369007918369798, + 1.601815791683029, + 2.2794413850211392, + 1.958799524682474, + 1.4267650342785887, + 1.5981651898152902, + 1.010415534218139, + 1.1526793324075288, + 0.9586410845387935, + 0.9939020368009012, + 1.1163003101618856, + 1.110389294859144, + 1.0823317673509731 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.742356002929944, + 3.383371706835006, + 3.3924240199074394, + 2.8649469601508533, + 2.8585780244852512, + 3.0953476446887365, + 2.9867173626254933, + 2.7205950369429406, + 1.3211525124858672, + 1.9314244774738658, + 1.778438445338661, + 1.2462945730282928, + 1.4966216237493208, + 0.9035245075969893, + 0.9981064040212014, + 0.7704070877183071, + 0.8470461781091146, + 0.9009734489294722, + 0.907101625722732, + 0.8051401540773183 + ], + [ + 2.2973014672443273, + 2.3593836873266576, + 2.472799166107413, + 2.826623250750395, + 2.740993573260234, + 2.614220787093429, + 2.8357127176867145, + 2.8895048272012303, + 3.0698740923791608, + 2.981353692057144, + 3.1462477950594425, + 3.742356002929944, + 3.926896195886476, + 3.378387193141527, + 3.40639052240984, + 2.901356735718054, + 2.8452156256952406, + 3.0510592363605302, + 2.947438147038787, + 2.6499170368364497, + 1.3258955764285345, + 1.893871414298415, + 1.7568690902004291, + 1.2429056819733337, + 1.469791917632966, + 0.9365202592561014, + 1.004637568041793, + 0.7828648605184062, + 0.8330063452812045, + 0.8843537874750571, + 0.9185482308646887, + 0.8080135947050936 + ], + [ + 2.402313465345035, + 2.4969686514309237, + 2.5487305066435324, + 2.829128529870874, + 2.7078545559894063, + 2.6501461085544795, + 2.7175887262467424, + 2.7809944225774386, + 2.9039236660401033, + 2.9416116014811853, + 3.197764002772733, + 3.383371706835006, + 3.378387193141527, + 3.977717511296361, + 3.3957283734533923, + 3.1466679050000828, + 2.990727096977889, + 3.22903601241262, + 3.3032477564880938, + 2.8382784084862847, + 1.444539873757418, + 2.101374619522435, + 1.8370410783297462, + 1.2770064769215446, + 1.5434148937022019, + 0.9240100500797772, + 1.0793408063954195, + 0.8847784953583515, + 0.9438680711395592, + 1.0283057129304165, + 0.9970837608559847, + 0.868986464026517 + ], + [ + 2.7751658007372124, + 2.761282372061731, + 2.862739133796854, + 3.2520301403879524, + 2.808013590210768, + 2.731432821325423, + 2.810749227598172, + 2.8859910412636007, + 2.885517872292078, + 3.1978591518906905, + 3.5145079587265986, + 3.3924240199074394, + 3.40639052240984, + 3.3957283734533923, + 4.892215542768703, + 3.1740534654334596, + 3.321833699142465, + 3.6589134914425383, + 3.63390900227163, + 3.180349577486336, + 1.5989628805855263, + 2.1830519220782056, + 2.144417546208945, + 1.4174847424003068, + 1.5951068262493873, + 1.0244748288118561, + 1.0841754468016427, + 0.974834022828838, + 1.0481723689210447, + 1.098285987385861, + 1.135548717844255, + 1.0941816270646254 + ], + [ + 2.431967012817301, + 2.514009710327687, + 2.459992013000342, + 2.855804693529714, + 2.7302198303918033, + 2.665173718303485, + 2.6396113340815632, + 2.6382373642462347, + 2.7205889657416087, + 2.8033148259375067, + 3.0963171168830788, + 2.8649469601508533, + 2.901356735718054, + 3.1466679050000828, + 3.1740534654334596, + 3.9937463096980435, + 3.2892693731094194, + 3.362995995453261, + 3.2820594914322996, + 2.9379288712078795, + 1.517146685539057, + 2.1505826674201907, + 1.9336302740148246, + 1.3748626102577917, + 1.587569614006051, + 0.9792879160948031, + 1.0461209849114563, + 0.8259884927845619, + 0.8811686570437808, + 0.9785137877000379, + 1.127827705135187, + 1.1299096754924907 + ], + [ + 2.555949570500245, + 2.678313267524417, + 2.6895761883196476, + 3.0138645684949963, + 2.6733525405195957, + 2.529184666025586, + 2.610701692748886, + 2.6344756125377433, + 2.729609472173427, + 2.978134204609236, + 3.376910422849725, + 2.8585780244852512, + 2.8452156256952406, + 2.990727096977889, + 3.321833699142465, + 3.2892693731094194, + 4.163008311074229, + 3.9690584539072478, + 3.6519173618617806, + 3.2242557399783744, + 1.6410061439206283, + 2.2918670182603424, + 2.0878782343313675, + 1.4316718192558455, + 1.6377007628378921, + 0.9904978093895298, + 1.0743450115299802, + 0.8834000312529767, + 0.9322221128868772, + 1.0129472995324105, + 1.2665063037524904, + 1.132887344840433 + ], + [ + 2.9490550065873617, + 3.0385727050761773, + 3.0540897711329347, + 3.41710960611837, + 2.9306109298562504, + 2.747125470323815, + 2.865836600395961, + 2.955985931473798, + 2.9254031628239963, + 3.3500533488820174, + 3.8097273751913714, + 3.0953476446887365, + 3.0510592363605302, + 3.22903601241262, + 3.6589134914425383, + 3.362995995453261, + 3.9690584539072478, + 5.047886961735841, + 4.275349958339594, + 3.7707458819401136, + 1.8294959169854674, + 2.4545366487281703, + 2.2664141218564233, + 1.5745255179962556, + 1.752542746445554, + 1.0800613648428137, + 1.230985966321403, + 0.9507795887895371, + 0.9769855341349886, + 1.1100384736074926, + 1.351214034030075, + 1.3367682085177501 + ], + [ + 2.933062839998181, + 3.146421624678776, + 3.1636333863106842, + 3.308103776833983, + 2.724838391647251, + 2.730871060839862, + 2.7201746726471985, + 2.759363968261283, + 2.8947586207155362, + 3.248905158339224, + 3.7128669817900093, + 2.9867173626254933, + 2.947438147038787, + 3.3032477564880938, + 3.63390900227163, + 3.2820594914322996, + 3.6519173618617806, + 4.275349958339594, + 5.426031556242451, + 4.149988710776244, + 2.080162689795472, + 2.764652358825801, + 2.5397823837630455, + 1.81100182883071, + 1.9611577176484447, + 1.1619509149657, + 1.3315860486791715, + 1.1272128544317608, + 1.060654069484848, + 1.2303075516476945, + 1.2886692408533105, + 1.2709965464820308 + ], + [ + 2.985586109185286, + 3.1126286988238836, + 2.956284068558032, + 2.862256429918106, + 2.4668328844542935, + 2.4255575688637157, + 2.376016027573937, + 2.4185247447673555, + 2.5344803496790393, + 3.01273866422778, + 3.369007918369798, + 2.7205950369429406, + 2.6499170368364497, + 2.8382784084862847, + 3.180349577486336, + 2.9379288712078795, + 3.2242557399783744, + 3.7707458819401136, + 4.149988710776244, + 5.760680057504002, + 2.5433746993647866, + 2.940625393953212, + 2.675974706286473, + 1.7988875255035213, + 2.1125439422500314, + 1.1983649393968143, + 1.4995825238836793, + 1.2963236347184819, + 1.2967534923001087, + 1.4926260852969229, + 1.3754856915417923, + 1.3118021479573374 + ], + [ + 1.393497006924735, + 1.4966492525721014, + 1.427682139973012, + 1.5543731860514867, + 1.382441321958602, + 1.4399598585545985, + 1.3548302877521203, + 1.3498300313754128, + 1.3752413744530156, + 1.4928379209748757, + 1.601815791683029, + 1.3211525124858672, + 1.3258955764285345, + 1.444539873757418, + 1.5989628805855263, + 1.517146685539057, + 1.6410061439206283, + 1.8294959169854674, + 2.080162689795472, + 2.5433746993647866, + 3.2415823320350934, + 2.136247080734255, + 1.7509282992203057, + 1.7605169443473938, + 1.597933569087796, + 0.9771971856262035, + 1.081744762728614, + 0.9839543776707738, + 0.951335897899678, + 1.0498730662286713, + 1.0009268238033238, + 1.0254695008636976 + ], + [ + 1.5549888324033396, + 1.7356666744877467, + 1.666052580315572, + 2.032282844095036, + 1.843551366503246, + 1.7393478905969277, + 1.7813569087158272, + 1.7333495052521455, + 1.8392546121026203, + 2.0924587099912397, + 2.2794413850211392, + 1.9314244774738658, + 1.893871414298415, + 2.101374619522435, + 2.1830519220782056, + 2.1505826674201907, + 2.2918670182603424, + 2.4545366487281703, + 2.764652358825801, + 2.940625393953212, + 2.136247080734255, + 3.7433293114626203, + 2.6522568801224247, + 1.7812082253107901, + 1.7655319712353623, + 0.9934748802586484, + 1.2358469784832062, + 0.9900622855122434, + 1.0029436774472766, + 1.043426011805801, + 1.115318024248577, + 0.9907595105539888 + ], + [ + 1.6172032381708137, + 1.760067430971546, + 1.6172506596558796, + 1.8485855337863513, + 1.691076875650992, + 1.6833521238772298, + 1.7431930238989644, + 1.684202508148144, + 1.7394218576958254, + 1.7548677066584348, + 1.958799524682474, + 1.778438445338661, + 1.7568690902004291, + 1.8370410783297462, + 2.144417546208945, + 1.9336302740148246, + 2.0878782343313675, + 2.2664141218564233, + 2.5397823837630455, + 2.675974706286473, + 1.7509282992203057, + 2.6522568801224247, + 3.929784173912892, + 1.9032373556992475, + 1.79303664362297, + 0.8167595914171575, + 1.126547276720132, + 0.8831167206913367, + 0.8410660045930087, + 0.9127028248523051, + 1.0594927498670856, + 0.9185604690429728 + ], + [ + 1.2895455137771423, + 1.3822790019247668, + 1.3478479434049486, + 1.5356195883615302, + 1.2705448428608754, + 1.3394242790383133, + 1.3193022606522211, + 1.31790487922462, + 1.3351316714512602, + 1.2369197720830687, + 1.4267650342785887, + 1.2462945730282928, + 1.2429056819733337, + 1.2770064769215446, + 1.4174847424003068, + 1.3748626102577917, + 1.4316718192558455, + 1.5745255179962556, + 1.81100182883071, + 1.7988875255035213, + 1.7605169443473938, + 1.7812082253107901, + 1.9032373556992475, + 3.1634133870706007, + 1.7442408529919895, + 1.142280174983554, + 1.123337897272546, + 0.990091530579744, + 0.8748908514181322, + 0.908115314705634, + 1.107390592919758, + 1.1015997433903038 + ], + [ + 1.3305508398944483, + 1.44865621676555, + 1.4524278573457412, + 1.5954369023407893, + 1.4552881932284591, + 1.4772322241979203, + 1.4935638799943822, + 1.5481601596292842, + 1.5927354985510551, + 1.524747419944472, + 1.5981651898152902, + 1.4966216237493208, + 1.469791917632966, + 1.5434148937022019, + 1.5951068262493873, + 1.587569614006051, + 1.6377007628378921, + 1.752542746445554, + 1.9611577176484447, + 2.1125439422500314, + 1.597933569087796, + 1.7655319712353623, + 1.79303664362297, + 1.7442408529919895, + 4.095072905352145, + 1.6993387694896525, + 1.5891175184671247, + 1.474397437057268, + 1.3310095646121312, + 1.3414743923513788, + 1.7182292618138892, + 1.4635013370395875 + ], + [ + 0.809612793475257, + 0.8706680369307369, + 0.8472268087342227, + 1.1125602833908146, + 0.9296751122667901, + 1.0018227306191279, + 0.8907893733515545, + 0.8667593274210247, + 0.8643039502278661, + 0.9006708186297612, + 1.010415534218139, + 0.9035245075969893, + 0.9365202592561014, + 0.9240100500797772, + 1.0244748288118561, + 0.9792879160948031, + 0.9904978093895298, + 1.0800613648428137, + 1.1619509149657, + 1.1983649393968143, + 0.9771971856262035, + 0.9934748802586484, + 0.8167595914171575, + 1.142280174983554, + 1.6993387694896525, + 3.366825461799139, + 1.3991243730423708, + 1.2097247492612313, + 1.0003841276177026, + 1.1110568418443512, + 1.338417660190867, + 1.17022008082777 + ], + [ + 0.96576077948826, + 1.087681668858802, + 1.0915963974461942, + 1.0939111250358495, + 0.9863193465434471, + 1.0514234553417974, + 0.9541463292028871, + 0.9706611467753349, + 1.0066776903105028, + 1.1102994045064498, + 1.1526793324075288, + 0.9981064040212014, + 1.004637568041793, + 1.0793408063954195, + 1.0841754468016427, + 1.0461209849114563, + 1.0743450115299802, + 1.230985966321403, + 1.3315860486791715, + 1.4995825238836793, + 1.081744762728614, + 1.2358469784832062, + 1.126547276720132, + 1.123337897272546, + 1.5891175184671247, + 1.3991243730423708, + 2.879460227813676, + 1.9757119382044999, + 1.6111652175439402, + 1.5326104886531977, + 1.319866031177833, + 1.141507322989192 + ], + [ + 0.9678482963357555, + 1.016765063089871, + 1.0233891066594845, + 0.9625166787034021, + 0.7896427441625843, + 0.898569320285732, + 0.8076943037291087, + 0.8327209980937196, + 0.8417119057336107, + 0.9265597470579497, + 0.9586410845387935, + 0.7704070877183071, + 0.7828648605184062, + 0.8847784953583515, + 0.974834022828838, + 0.8259884927845619, + 0.8834000312529767, + 0.9507795887895371, + 1.1272128544317608, + 1.2963236347184819, + 0.9839543776707738, + 0.9900622855122434, + 0.8831167206913367, + 0.990091530579744, + 1.474397437057268, + 1.2097247492612313, + 1.9757119382044999, + 2.7779162408224236, + 2.1035654385907288, + 1.9039810372217418, + 1.5922120206718369, + 1.3697557328928607 + ], + [ + 1.076437300927, + 1.168092624762163, + 1.1170455724981618, + 1.1018882409886093, + 0.870606594507396, + 0.9275928769055607, + 0.8314839027100833, + 0.8290287059936796, + 0.8499465349219155, + 0.9631736463922361, + 0.9939020368009012, + 0.8470461781091146, + 0.8330063452812045, + 0.9438680711395592, + 1.0481723689210447, + 0.8811686570437808, + 0.9322221128868772, + 0.9769855341349886, + 1.060654069484848, + 1.2967534923001087, + 0.951335897899678, + 1.0029436774472766, + 0.8410660045930087, + 0.8748908514181322, + 1.3310095646121312, + 1.0003841276177026, + 1.6111652175439402, + 2.1035654385907288, + 2.8825074365192322, + 2.3249462560764216, + 1.8677781215246263, + 1.5449633983228568 + ], + [ + 1.1106831656359657, + 1.240202514748782, + 1.189972476000872, + 1.221910865722635, + 1.0034121877274516, + 1.0328114187502706, + 0.9526857565002524, + 0.962538409183641, + 0.9379137996971791, + 1.0518952278190978, + 1.1163003101618856, + 0.9009734489294722, + 0.8843537874750571, + 1.0283057129304165, + 1.098285987385861, + 0.9785137877000379, + 1.0129472995324105, + 1.1100384736074926, + 1.2303075516476945, + 1.4926260852969229, + 1.0498730662286713, + 1.043426011805801, + 0.9127028248523051, + 0.908115314705634, + 1.3414743923513788, + 1.1110568418443512, + 1.5326104886531977, + 1.9039810372217418, + 2.3249462560764216, + 3.07466532933071, + 2.0437135782636835, + 1.8100946203763444 + ], + [ + 1.2818385237479304, + 1.2512539741859132, + 1.204138405946318, + 1.2988461323624159, + 1.1606232700187604, + 1.2249622386495047, + 1.0656383876649953, + 1.0024617353618726, + 1.06155710262533, + 1.0687943067750203, + 1.110389294859144, + 0.907101625722732, + 0.9185482308646887, + 0.9970837608559847, + 1.135548717844255, + 1.127827705135187, + 1.2665063037524904, + 1.351214034030075, + 1.2886692408533105, + 1.3754856915417923, + 1.0009268238033238, + 1.115318024248577, + 1.0594927498670856, + 1.107390592919758, + 1.7182292618138892, + 1.338417660190867, + 1.319866031177833, + 1.5922120206718369, + 1.8677781215246263, + 2.0437135782636835, + 5.299513926176732, + 3.090275892253667 + ], + [ + 1.367331307834341, + 1.5289417353969423, + 1.4489879568487152, + 1.3737590918672091, + 1.1671181849656456, + 1.249906287774621, + 1.043281432100314, + 1.0392645329380419, + 1.0577599205726012, + 1.0312919104536666, + 1.0823317673509731, + 0.8051401540773183, + 0.8080135947050936, + 0.868986464026517, + 1.0941816270646254, + 1.1299096754924907, + 1.132887344840433, + 1.3367682085177501, + 1.2709965464820308, + 1.3118021479573374, + 1.0254695008636976, + 0.9907595105539888, + 0.9185604690429728, + 1.1015997433903038, + 1.4635013370395875, + 1.17022008082777, + 1.141507322989192, + 1.3697557328928607, + 1.5449633983228568, + 1.8100946203763444, + 3.090275892253667, + 5.518869361273439 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3934658606024219, + -0.39259187412147983, + -0.3377555977647751, + -0.37632650044476507, + -0.37895259447481705, + -0.33392298685326866, + -0.3322073896733531, + -0.3115842881436845, + -0.42857010958813097, + -0.40717918768662403, + -0.3753846787143737, + -0.41459418954074917, + -0.36942472289547384, + -0.41046340496550865, + -0.4555393320829025, + -0.4710645819454757, + -0.45749422779620924, + -0.43821164092214854, + -0.3244608195565201, + -0.3303627830225326 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6210185221513229, + "transport_matrix_sha256": "5f4b2d203b216049aa97250ed4151e66943ff55080663d2235aab5fd1f7da3b7", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.142368912696839e-05, + "gram_mean_diagonal": 0.061423689126968384, + "calibration_nmse": 0.02465241517369944, + "calibration_cosine": 0.9875973430746754, + "calibration_norm_ratio": 0.9866344194757573, + "transport_relative_identity_distance": 0.24454472959041595, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "93af1649dbcf27dcc906cff079a1448af3e0b78dc0ae7fcd0038e95d05f79fdc", + "self_attn.k_proj.weight": "919f1a2454b2957fa1f611232b1c0aaccdab718aed512b435923cf972cd52015", + "self_attn.v_proj.weight": "2a660e851663561147921fae640f303f3f599da61afc8d68545fed320cc9b63d", + "self_attn.o_proj.weight": "bfb11d528abdacfc054070ed7a55f90ddde74fb17704bc742ceffa065adcc717", + "self_attn.q_norm.weight": "a4538fa22891825dbfbac330127ff29569ac04b5ab0ee89e60db7e7bc64f26a3", + "self_attn.k_norm.weight": "f26654e4f51003513e7ff0cd2f23e99387481dc5c639b01444903ec9632ae685", + "mlp.gate_proj.weight": "1ec134d886ea6246b31de9cb6cbb4c451fddfb333fca1e90375f8659eb27d81c", + "mlp.up_proj.weight": "b7549bcdd3b5089f09aebb1847587e2049463294f52f4335b88b7e64888edd45", + "mlp.down_proj.weight": "2b6fe52a74f5b15de22764a2c9b51acdfc75070dac110580366d2dcd9d207e0f", + "input_layernorm.weight": "70025e492885453112e0108ebf4311dfd994db35383e90da14292277834fb949", + "post_attention_layernorm.weight": "41357e377104509608d219bc3f4d8a51dde14749a9a6e6b592f6d4f4594faa85" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "93af1649dbcf27dcc906cff079a1448af3e0b78dc0ae7fcd0038e95d05f79fdc", + "self_attn.k_proj.weight": "919f1a2454b2957fa1f611232b1c0aaccdab718aed512b435923cf972cd52015", + "self_attn.v_proj.weight": "2a660e851663561147921fae640f303f3f599da61afc8d68545fed320cc9b63d", + "self_attn.o_proj.weight": "bfb11d528abdacfc054070ed7a55f90ddde74fb17704bc742ceffa065adcc717", + "self_attn.q_norm.weight": "a4538fa22891825dbfbac330127ff29569ac04b5ab0ee89e60db7e7bc64f26a3", + "self_attn.k_norm.weight": "f26654e4f51003513e7ff0cd2f23e99387481dc5c639b01444903ec9632ae685", + "mlp.gate_proj.weight": "0328abc908aeeb430c28f7ba29d16795dbb63b5ea0edd7154a0122eda63c1bdc", + "mlp.up_proj.weight": "6e0aa5ee42d201a8ba2113bbccdd85e38104b4373d3ce0b76c361993bdc40cf4", + "mlp.down_proj.weight": "2b6fe52a74f5b15de22764a2c9b51acdfc75070dac110580366d2dcd9d207e0f", + "input_layernorm.weight": "70025e492885453112e0108ebf4311dfd994db35383e90da14292277834fb949", + "post_attention_layernorm.weight": "41357e377104509608d219bc3f4d8a51dde14749a9a6e6b592f6d4f4594faa85" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6210185221513229, + "lambda_right": 0.3789814778486771, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "b435c15455b9acea20e4c29c945a6c82e17f681d8d7e66ad87acb8fac7170d83", + "mlp.up_proj.weight": "fbf0e81a87ba5cc794a443b499a5b146e8852438e93e6d63e089d797b3cbcea1", + "mlp.gate_proj.weight": "4fa198abc19c57731465efea76911d71ffa46ff751d5fe8a60b44c576e10f6e7", + "self_attn.k_proj.weight": "032c027fe01cb5fab5f4c1e3dc67e7cf0df68ec9aaa6d17ec2e475e82d3c1e55", + "self_attn.o_proj.weight": "9f0e48310cf38889f4ed316f139295db2cf5e538bf7e55485aad5e71e23ecd5e", + "self_attn.q_proj.weight": "3bc8c412dc5060b6e560e3239eeae87e063ebc8dab8004e85753243c608887e1", + "self_attn.v_proj.weight": "60ce6d426d898b9dfafeb8708e5cd7ab0ab1ed9ecb72406ed7ced29ddf241f92" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "93af1649dbcf27dcc906cff079a1448af3e0b78dc0ae7fcd0038e95d05f79fdc", + "self_attn.k_proj.weight": "919f1a2454b2957fa1f611232b1c0aaccdab718aed512b435923cf972cd52015", + "self_attn.v_proj.weight": "2a660e851663561147921fae640f303f3f599da61afc8d68545fed320cc9b63d", + "self_attn.o_proj.weight": "bfb11d528abdacfc054070ed7a55f90ddde74fb17704bc742ceffa065adcc717", + "self_attn.q_norm.weight": "a4538fa22891825dbfbac330127ff29569ac04b5ab0ee89e60db7e7bc64f26a3", + "self_attn.k_norm.weight": "f26654e4f51003513e7ff0cd2f23e99387481dc5c639b01444903ec9632ae685", + "mlp.gate_proj.weight": "0328abc908aeeb430c28f7ba29d16795dbb63b5ea0edd7154a0122eda63c1bdc", + "mlp.up_proj.weight": "6e0aa5ee42d201a8ba2113bbccdd85e38104b4373d3ce0b76c361993bdc40cf4", + "mlp.down_proj.weight": "2b6fe52a74f5b15de22764a2c9b51acdfc75070dac110580366d2dcd9d207e0f", + "input_layernorm.weight": "70025e492885453112e0108ebf4311dfd994db35383e90da14292277834fb949", + "post_attention_layernorm.weight": "41357e377104509608d219bc3f4d8a51dde14749a9a6e6b592f6d4f4594faa85" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "931265955af0a49db53c4639efbe90c02dce31656aa286a6cbbff86f0817e9c3", + "mlp.up_proj.weight": "a12a9422c9b7455a35fcae6e844f09123ea97d36cafb4e6db0a46f85566ef405", + "mlp.gate_proj.weight": "50273255d4e8070a1066dba24766196dba00f749cea470ff7d6bb9c8dc474c80", + "self_attn.k_proj.weight": "347fe193ed6ff1bac4c56d1a78af82943c3421f0f2f2abbcc90ac73f69d8aa8a", + "self_attn.o_proj.weight": "30adb37b1d10ef9bf2d40b0fad32c78c6e3366a3d6f91dd0aaa851ad36da2eef", + "self_attn.q_proj.weight": "ee22fb615d5ac51abd3c7cdd7fe4d35bcaa72469754363c924c38201ad763076", + "self_attn.v_proj.weight": "498b70698c015bd3df265cfffcc73fc3101a9f2ff48dee8a01d837ccdfc9674d" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + }, + { + "cycle": 6, + "anchor": 12, + "removed_original_layer": 18, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.3278695372662797, + 2.412594067531639, + 2.178654644799034, + 2.2279402200443994, + 2.6401199303050675, + 2.725841466616703, + 2.7640730185852886, + 1.6716528532148598, + 1.7635099098022406, + 1.4086998893921017, + 1.477408277179992, + 0.9328266860150757, + 0.8507456755218248, + 0.9911293031073009, + 0.9290066973250799, + 0.9219584478601873, + 0.9438822003514675, + 1.4488316860802468, + 1.3904728032063813 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3947148090480765, + 2.5264878500941985, + 2.235815423269575, + 2.2848048886302554, + 2.70376198961464, + 2.7712909184035426, + 2.883846132185663, + 1.6878554089490294, + 1.901581097032974, + 1.5837229566716142, + 1.5665696499719233, + 0.960800802689899, + 0.9444828705677419, + 1.1641070293422944, + 1.0332124200817485, + 1.0454848008393454, + 1.0583577594561875, + 1.4472232707912611, + 1.523027030070537 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.4498911997606476, + 2.5859863056347585, + 2.244892531501051, + 2.289544512465232, + 2.7759845807017154, + 2.74957996626213, + 2.832445558941616, + 1.5760264193526106, + 1.7959004190903176, + 1.5031707933511986, + 1.5061694464044502, + 0.96682440816284, + 0.8504221807191988, + 1.15834611780117, + 0.9784430088533902, + 0.9884607941125881, + 1.0187399208466674, + 1.3329884026749963, + 1.2589748854089644 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8534025393630973, + 2.943226560390688, + 2.4414469288196443, + 2.461556128997419, + 3.0192338810434816, + 2.993183617618689, + 2.790780655600522, + 1.8232415508469078, + 2.2570736032213587, + 1.8878365161484372, + 1.5972833557615747, + 1.1039601794856724, + 1.1323323483478356, + 1.1301529553068477, + 1.0091837298753048, + 0.9523078121656469, + 1.0591696992981134, + 1.3661146773612052, + 1.351357274740947 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7900249601003413, + 2.719318269486715, + 2.124692068684987, + 2.4546173100296613, + 2.624650175269048, + 2.468247062545179, + 2.411410068388747, + 1.6738481733674302, + 2.0751380675044286, + 1.7313570443922968, + 1.569555321186868, + 1.0365148266795334, + 1.0533543857746497, + 0.9837583957200597, + 0.8432204879462575, + 0.7907125877514589, + 0.8482134823496299, + 1.2515500929105505, + 1.1966144600397615 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.6217295939397656, + 2.535853362351341, + 2.2901797734712157, + 2.32922864111831, + 2.426842498050469, + 2.461473508166703, + 2.332522642032023, + 1.8121784341371077, + 2.202665649321342, + 1.8134171406932, + 1.7099267813362402, + 1.3033376572734114, + 1.1441953215323046, + 1.0906179413993544, + 0.9418925405498434, + 0.8387228222835885, + 0.9171114540161461, + 1.346526005088597, + 1.356316051168337 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8619175760949243, + 2.697713873096314, + 2.134424513386433, + 2.4132862073068835, + 2.675664907822656, + 2.5196694643989055, + 2.4057444179435246, + 1.6992210188822332, + 2.081707496456699, + 1.799796582283025, + 1.7347855216250665, + 1.0654016664805235, + 0.9767957096174948, + 0.9305594930047602, + 0.8063760794780072, + 0.756161813904911, + 0.8459840258279926, + 1.2523018338129166, + 1.0482358572038428 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8807793962233808, + 2.7964916343581105, + 2.0950876861345806, + 2.4505877040429698, + 2.8277056389441837, + 2.563043523074367, + 2.4229833029153673, + 1.6250841117635486, + 2.020417304075875, + 1.7451642297785872, + 1.712876214369122, + 0.9792730959532795, + 0.9212871117747935, + 0.9841897453496665, + 0.8406634924167978, + 0.7954954044054243, + 0.8803641617473075, + 1.2166300923757931, + 1.0054481727095188 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0126451613537175, + 2.7208393914961673, + 2.1731292807425255, + 2.5417710063738754, + 2.7650430883558323, + 2.6192830250174537, + 2.426047740895965, + 1.6859062776503346, + 2.0981617334313216, + 1.7302309792696027, + 1.7220406280370137, + 1.042278246013682, + 0.9121864227441605, + 1.0038805070227452, + 0.8166968034332579, + 0.7481499062612393, + 0.8469633197704839, + 1.2345821271587656, + 0.9781786102151615 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9486560965142994, + 3.0176180191820117, + 2.2760064494349126, + 2.405311940302755, + 3.0221835964096675, + 3.0294418571597355, + 2.8591780481502034, + 1.823934595272818, + 2.0436272046589483, + 1.625945426433735, + 1.621132418283413, + 0.9278070849376074, + 0.9521865027566202, + 1.0918130617079855, + 0.9393687892945974, + 0.9245437266443934, + 0.9707073616769933, + 1.1305747787258014, + 0.994255875725664 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.126174859286365, + 3.181616502612121, + 2.5385355805316077, + 2.616826674666754, + 3.4215095140851575, + 3.524640873548172, + 3.355936033117902, + 1.9753314273929534, + 2.271644716681084, + 1.7125666564375046, + 1.702745316105221, + 0.9639932322148094, + 1.0699003344859797, + 1.1190466182405365, + 0.8997226027339599, + 0.8065204967036288, + 0.836329407805829, + 1.1365174892851748, + 0.9704065678089673 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.5601730488704098, + 3.18111812562463, + 2.219899066073203, + 2.625293135617808, + 2.67275413450134, + 2.7335886671671537, + 2.5764465342738414, + 1.7587510155997517, + 2.1018641165985055, + 1.6492769194315011, + 1.6714062038152662, + 1.0344853511120067, + 1.0315320711639988, + 1.0329821952120402, + 0.8372046375477995, + 0.7566421529762217, + 0.7361562719282517, + 1.0741978372858239, + 0.7535689613518621 + ], + [ + 2.3278695372662797, + 2.3947148090480765, + 2.4498911997606476, + 2.8534025393630973, + 2.7900249601003413, + 2.6217295939397656, + 2.8619175760949243, + 2.8807793962233808, + 3.0126451613537175, + 2.9486560965142994, + 3.126174859286365, + 3.5601730488704098, + 3.9102473983879578, + 3.3338660242895957, + 2.251831527629599, + 2.608193472911632, + 2.6848247034422346, + 2.7335593850866964, + 2.545107270396881, + 1.7359250240194444, + 2.169014151429469, + 1.6858594534321472, + 1.7042281349937507, + 1.0516198814265456, + 1.0414375473821944, + 0.9963861497413141, + 0.83346275641943, + 0.7429845932746778, + 0.7118542258672332, + 1.08522448311072, + 0.8351830287505464 + ], + [ + 2.412594067531639, + 2.5264878500941985, + 2.5859863056347585, + 2.943226560390688, + 2.719318269486715, + 2.535853362351341, + 2.697713873096314, + 2.7964916343581105, + 2.7208393914961673, + 3.0176180191820117, + 3.181616502612121, + 3.18111812562463, + 3.3338660242895957, + 4.066702992959844, + 2.2814802695296112, + 2.571621595772587, + 2.8252255370448354, + 2.8552248894807177, + 2.7343143190047936, + 1.780390818608993, + 2.214061118500761, + 1.795900453932971, + 1.8038479801512204, + 0.998433006922895, + 1.1271231786359497, + 1.1335242080562071, + 0.8970451822403432, + 0.8277082460350063, + 0.8174174055705404, + 1.0790302676507486, + 0.9106720078062971 + ], + [ + 2.178654644799034, + 2.235815423269575, + 2.244892531501051, + 2.4414469288196443, + 2.124692068684987, + 2.2901797734712157, + 2.134424513386433, + 2.0950876861345806, + 2.1731292807425255, + 2.2760064494349126, + 2.5385355805316077, + 2.219899066073203, + 2.251831527629599, + 2.2814802695296112, + 3.636545595119301, + 2.380370213512099, + 2.42766177098348, + 2.5323640830099063, + 2.4077863442397764, + 2.063756967509895, + 2.1797555185573483, + 1.6952809660081152, + 1.5515690342180866, + 1.0967582526744648, + 1.0106204650562, + 1.2337152368063558, + 1.0672215149307638, + 1.0998048139146657, + 1.0931238830142, + 1.3713813119446934, + 1.3991126064719077 + ], + [ + 2.2279402200443994, + 2.2848048886302554, + 2.289544512465232, + 2.461556128997419, + 2.4546173100296613, + 2.32922864111831, + 2.4132862073068835, + 2.4505877040429698, + 2.5417710063738754, + 2.405311940302755, + 2.616826674666754, + 2.625293135617808, + 2.608193472911632, + 2.571621595772587, + 2.380370213512099, + 3.6333770089527047, + 2.8333389250961014, + 2.706014634677106, + 2.6285583314284073, + 1.848052125282191, + 2.1339332507262956, + 1.7025142589077553, + 1.5979512046558593, + 1.1102281783351873, + 1.0630320405147327, + 1.1464618927808734, + 0.8848605570602981, + 0.8265661852954894, + 0.8843852054473551, + 1.2220743309190305, + 1.1431348202256963 + ], + [ + 2.6401199303050675, + 2.70376198961464, + 2.7759845807017154, + 3.0192338810434816, + 2.624650175269048, + 2.426842498050469, + 2.675664907822656, + 2.8277056389441837, + 2.7650430883558323, + 3.0221835964096675, + 3.4215095140851575, + 2.67275413450134, + 2.6848247034422346, + 2.8252255370448354, + 2.42766177098348, + 2.8333389250961014, + 4.148936820568242, + 3.568665661116569, + 3.3611186193204516, + 2.133034308289555, + 2.396968619333977, + 1.8731894407175904, + 1.7138163880774806, + 1.0933772747398869, + 1.0898392378204789, + 1.1350615166761873, + 0.9001693223770512, + 0.9416643702457774, + 0.9973049727824443, + 1.3421174641742952, + 1.129224847138255 + ], + [ + 2.725841466616703, + 2.7712909184035426, + 2.74957996626213, + 2.993183617618689, + 2.468247062545179, + 2.461473508166703, + 2.5196694643989055, + 2.563043523074367, + 2.6192830250174537, + 3.0294418571597355, + 3.524640873548172, + 2.7335886671671537, + 2.7335593850866964, + 2.8552248894807177, + 2.5323640830099063, + 2.706014634677106, + 3.568665661116569, + 4.604030281478637, + 3.819399446977045, + 2.283500471488039, + 2.5778816998401184, + 1.931159493520156, + 1.716040278709003, + 1.1985736993142555, + 1.1204134881078036, + 1.159403894137641, + 1.003058345126093, + 0.9414476710890552, + 0.9220678107520991, + 1.1880603647125003, + 1.1670704840814958 + ], + [ + 2.7640730185852886, + 2.883846132185663, + 2.832445558941616, + 2.790780655600522, + 2.411410068388747, + 2.332522642032023, + 2.4057444179435246, + 2.4229833029153673, + 2.426047740895965, + 2.8591780481502034, + 3.355936033117902, + 2.5764465342738414, + 2.545107270396881, + 2.7343143190047936, + 2.4077863442397764, + 2.6285583314284073, + 3.3611186193204516, + 3.819399446977045, + 4.815778289867421, + 2.3257000594040673, + 2.5034430351832624, + 2.0956483281348737, + 1.8769352875946392, + 1.0366246476848082, + 1.0600824101446409, + 1.2534184741893808, + 1.0702186264849458, + 1.1028847716758192, + 1.1373958657940275, + 1.2748962188144428, + 1.220588367238796 + ], + [ + 1.6716528532148598, + 1.6878554089490294, + 1.5760264193526106, + 1.8232415508469078, + 1.6738481733674302, + 1.8121784341371077, + 1.6992210188822332, + 1.6250841117635486, + 1.6859062776503346, + 1.823934595272818, + 1.9753314273929534, + 1.7587510155997517, + 1.7359250240194444, + 1.780390818608993, + 2.063756967509895, + 1.848052125282191, + 2.133034308289555, + 2.283500471488039, + 2.3257000594040673, + 3.511974869626656, + 2.450139574087916, + 1.7926717204015636, + 1.6630772881917042, + 1.1192716053048892, + 0.9824301970643626, + 1.3126858725776838, + 1.18741770967854, + 1.1696345022141212, + 1.1591946677183165, + 1.2308211284331536, + 1.278332031098522 + ], + [ + 1.7635099098022406, + 1.901581097032974, + 1.7959004190903176, + 2.2570736032213587, + 2.0751380675044286, + 2.202665649321342, + 2.081707496456699, + 2.020417304075875, + 2.0981617334313216, + 2.0436272046589483, + 2.271644716681084, + 2.1018641165985055, + 2.169014151429469, + 2.214061118500761, + 2.1797555185573483, + 2.1339332507262956, + 2.396968619333977, + 2.5778816998401184, + 2.5034430351832624, + 2.450139574087916, + 4.1242668127768045, + 2.6880313655643873, + 1.972117870039026, + 1.2701103750194387, + 1.1252107319814078, + 1.3030819978611685, + 1.1706611507788, + 1.075062040174633, + 1.079827290185216, + 1.3217173487802882, + 1.8093329402105287 + ], + [ + 1.4086998893921017, + 1.5837229566716142, + 1.5031707933511986, + 1.8878365161484372, + 1.7313570443922968, + 1.8134171406932, + 1.799796582283025, + 1.7451642297785872, + 1.7302309792696027, + 1.625945426433735, + 1.7125666564375046, + 1.6492769194315011, + 1.6858594534321472, + 1.795900453932971, + 1.6952809660081152, + 1.7025142589077553, + 1.8731894407175904, + 1.931159493520156, + 2.0956483281348737, + 1.7926717204015636, + 2.6880313655643873, + 3.880027837850573, + 1.8709064710964205, + 1.0825926165766335, + 0.9942986201867106, + 1.174499728176335, + 1.0390798312467808, + 1.0422951870024684, + 1.0173317181540764, + 1.3915615975931317, + 1.42945594766063 + ], + [ + 1.477408277179992, + 1.5665696499719233, + 1.5061694464044502, + 1.5972833557615747, + 1.569555321186868, + 1.7099267813362402, + 1.7347855216250665, + 1.712876214369122, + 1.7220406280370137, + 1.621132418283413, + 1.702745316105221, + 1.6714062038152662, + 1.7042281349937507, + 1.8038479801512204, + 1.5515690342180866, + 1.5979512046558593, + 1.7138163880774806, + 1.716040278709003, + 1.8769352875946392, + 1.6630772881917042, + 1.972117870039026, + 1.8709064710964205, + 3.7743066350911803, + 1.0724458294785477, + 0.9559066574930217, + 1.2092865001808728, + 1.106953432644458, + 1.0086037451725165, + 0.9870169161097767, + 0.9898000542295682, + 0.8664630314954903 + ], + [ + 0.9328266860150757, + 0.960800802689899, + 0.96682440816284, + 1.1039601794856724, + 1.0365148266795334, + 1.3033376572734114, + 1.0654016664805235, + 0.9792730959532795, + 1.042278246013682, + 0.9278070849376074, + 0.9639932322148094, + 1.0344853511120067, + 1.0516198814265456, + 0.998433006922895, + 1.0967582526744648, + 1.1102281783351873, + 1.0933772747398869, + 1.1985736993142555, + 1.0366246476848082, + 1.1192716053048892, + 1.2701103750194387, + 1.0825926165766335, + 1.0724458294785477, + 3.215958402897243, + 1.6731245094763563, + 1.1256898409959875, + 0.986378878624688, + 0.7634087900614543, + 0.7551605911340397, + 0.7697139642040289, + 0.8141969232305275 + ], + [ + 0.8507456755218248, + 0.9444828705677419, + 0.8504221807191988, + 1.1323323483478356, + 1.0533543857746497, + 1.1441953215323046, + 0.9767957096174948, + 0.9212871117747935, + 0.9121864227441605, + 0.9521865027566202, + 1.0699003344859797, + 1.0315320711639988, + 1.0414375473821944, + 1.1271231786359497, + 1.0106204650562, + 1.0630320405147327, + 1.0898392378204789, + 1.1204134881078036, + 1.0600824101446409, + 0.9824301970643626, + 1.1252107319814078, + 0.9942986201867106, + 0.9559066574930217, + 1.6731245094763563, + 3.1874624022808065, + 1.1890966789162452, + 0.9866186902346132, + 0.7057762737826563, + 0.8198788088923837, + 1.0533012487559361, + 1.0803994617619865 + ], + [ + 0.9911293031073009, + 1.1641070293422944, + 1.15834611780117, + 1.1301529553068477, + 0.9837583957200597, + 1.0906179413993544, + 0.9305594930047602, + 0.9841897453496665, + 1.0038805070227452, + 1.0918130617079855, + 1.1190466182405365, + 1.0329821952120402, + 0.9963861497413141, + 1.1335242080562071, + 1.2337152368063558, + 1.1464618927808734, + 1.1350615166761873, + 1.159403894137641, + 1.2534184741893808, + 1.3126858725776838, + 1.3030819978611685, + 1.174499728176335, + 1.2092865001808728, + 1.1256898409959875, + 1.1890966789162452, + 3.029293408640695, + 2.082369997721176, + 1.7147142215939126, + 1.6842343718438173, + 1.207531090793095, + 1.3897666078573305 + ], + [ + 0.9290066973250799, + 1.0332124200817485, + 0.9784430088533902, + 1.0091837298753048, + 0.8432204879462575, + 0.9418925405498434, + 0.8063760794780072, + 0.8406634924167978, + 0.8166968034332579, + 0.9393687892945974, + 0.8997226027339599, + 0.8372046375477995, + 0.83346275641943, + 0.8970451822403432, + 1.0672215149307638, + 0.8848605570602981, + 0.9001693223770512, + 1.003058345126093, + 1.0702186264849458, + 1.18741770967854, + 1.1706611507788, + 1.0390798312467808, + 1.106953432644458, + 0.986378878624688, + 0.9866186902346132, + 2.082369997721176, + 2.9762829951754624, + 2.156028303378821, + 1.9874604547433694, + 1.6245166764468153, + 1.444080071876557 + ], + [ + 0.9219584478601873, + 1.0454848008393454, + 0.9884607941125881, + 0.9523078121656469, + 0.7907125877514589, + 0.8387228222835885, + 0.756161813904911, + 0.7954954044054243, + 0.7481499062612393, + 0.9245437266443934, + 0.8065204967036288, + 0.7566421529762217, + 0.7429845932746778, + 0.8277082460350063, + 1.0998048139146657, + 0.8265661852954894, + 0.9416643702457774, + 0.9414476710890552, + 1.1028847716758192, + 1.1696345022141212, + 1.075062040174633, + 1.0422951870024684, + 1.0086037451725165, + 0.7634087900614543, + 0.7057762737826563, + 1.7147142215939126, + 2.156028303378821, + 2.979782129953852, + 2.484336328271396, + 1.7612041104958036, + 1.5272647406913584 + ], + [ + 0.9438822003514675, + 1.0583577594561875, + 1.0187399208466674, + 1.0591696992981134, + 0.8482134823496299, + 0.9171114540161461, + 0.8459840258279926, + 0.8803641617473075, + 0.8469633197704839, + 0.9707073616769933, + 0.836329407805829, + 0.7361562719282517, + 0.7118542258672332, + 0.8174174055705404, + 1.0931238830142, + 0.8843852054473551, + 0.9973049727824443, + 0.9220678107520991, + 1.1373958657940275, + 1.1591946677183165, + 1.079827290185216, + 1.0173317181540764, + 0.9870169161097767, + 0.7551605911340397, + 0.8198788088923837, + 1.6842343718438173, + 1.9874604547433694, + 2.484336328271396, + 3.2451726319279555, + 1.92688273234345, + 1.7268469042559054 + ], + [ + 1.4488316860802468, + 1.4472232707912611, + 1.3329884026749963, + 1.3661146773612052, + 1.2515500929105505, + 1.346526005088597, + 1.2523018338129166, + 1.2166300923757931, + 1.2345821271587656, + 1.1305747787258014, + 1.1365174892851748, + 1.0741978372858239, + 1.08522448311072, + 1.0790302676507486, + 1.3713813119446934, + 1.2220743309190305, + 1.3421174641742952, + 1.1880603647125003, + 1.2748962188144428, + 1.2308211284331536, + 1.3217173487802882, + 1.3915615975931317, + 0.9898000542295682, + 0.7697139642040289, + 1.0533012487559361, + 1.207531090793095, + 1.6245166764468153, + 1.7612041104958036, + 1.92688273234345, + 4.118550545461159, + 2.534750078997116 + ], + [ + 1.3904728032063813, + 1.523027030070537, + 1.2589748854089644, + 1.351357274740947, + 1.1966144600397615, + 1.356316051168337, + 1.0482358572038428, + 1.0054481727095188, + 0.9781786102151615, + 0.994255875725664, + 0.9704065678089673, + 0.7535689613518621, + 0.8351830287505464, + 0.9106720078062971, + 1.3991126064719077, + 1.1431348202256963, + 1.129224847138255, + 1.1670704840814958, + 1.220588367238796, + 1.278332031098522, + 1.8093329402105287, + 1.42945594766063, + 0.8664630314954903, + 0.8141969232305275, + 1.0803994617619865, + 1.3897666078573305, + 1.444080071876557, + 1.5272647406913584, + 1.7268469042559054, + 2.534750078997116, + 6.652567633480407 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3978205190736734, + -0.38841201755494065, + -0.41543926245449386, + -0.4174321627046042, + -0.3861626614464441, + -0.36754449667405936, + -0.35268198168350934, + -0.39546964792403, + -0.36855061401477046, + -0.36670771395923113, + -0.42626960767172223, + -0.40221489815317707, + -0.39432480389768837, + -0.4274842720454585, + -0.44040559712951705, + -0.44743016215938763, + -0.41919594288893797, + -0.35586032703161335, + -0.30153807610997035 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6217058706168793, + "transport_matrix_sha256": "e62fc35a452db66e796080302f8b40711233bc6f3103ea4d091b1b85a2c00bf3", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.122951209545135e-05, + "gram_mean_diagonal": 0.061229512095451355, + "calibration_nmse": 0.023367684345013368, + "calibration_cosine": 0.9882475615974408, + "calibration_norm_ratio": 0.9872845723445823, + "transport_relative_identity_distance": 0.27332234382629395, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "3d50a07d21693613e0d831209868828215164c78606ad76bb5339d0093e2b167", + "self_attn.k_proj.weight": "055922b3d6d8ae628f8a4761be8273b2b35bd979a899e599e03a4aebc9b31b15", + "self_attn.v_proj.weight": "35d50fc9ef07106a763c826a6bed55f5f8de393edeac002703ab161116d8dead", + "self_attn.o_proj.weight": "a211c679b699b735e0587b7e0bab5610d182a4c54868438be766544a8f36b4eb", + "self_attn.q_norm.weight": "41ed057917753085abc49146d705c39743047800a2ac65dba3e227fb675ad494", + "self_attn.k_norm.weight": "f01c939b42b6e7b3a03519eadb0a08a563897458717fc05d98b7c7d158621f02", + "mlp.gate_proj.weight": "a60ac64753890f45bc06d840148fad55807f022c4f14d6437d926bfe08d6e401", + "mlp.up_proj.weight": "f614342e9f77c5b73e0b93c34e9a6cbfb1692decfd132853765e9da75c5a2edc", + "mlp.down_proj.weight": "b61bbddd0e5ee13e6679fb129a28885d063105955f6cb5176c39b0ac18fbfda7", + "input_layernorm.weight": "2c7f7059994a701ae1bfd696bd109340fa7a22df9deee3bfd6c4afb890155523", + "post_attention_layernorm.weight": "d85cdb5cf77b8d6d42c74fbd6aff643661b72fcfbe4f343311c4d31db4afc67f" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "3d50a07d21693613e0d831209868828215164c78606ad76bb5339d0093e2b167", + "self_attn.k_proj.weight": "055922b3d6d8ae628f8a4761be8273b2b35bd979a899e599e03a4aebc9b31b15", + "self_attn.v_proj.weight": "35d50fc9ef07106a763c826a6bed55f5f8de393edeac002703ab161116d8dead", + "self_attn.o_proj.weight": "a211c679b699b735e0587b7e0bab5610d182a4c54868438be766544a8f36b4eb", + "self_attn.q_norm.weight": "41ed057917753085abc49146d705c39743047800a2ac65dba3e227fb675ad494", + "self_attn.k_norm.weight": "f01c939b42b6e7b3a03519eadb0a08a563897458717fc05d98b7c7d158621f02", + "mlp.gate_proj.weight": "22a05a2d80f9b5bca061ef41c4e0eeec4162a886b3189a1e718924e640066c7a", + "mlp.up_proj.weight": "d9facf666807baf62ab2e0f6ef258bc81ff85a99b0e320e2e03c06a06286cadd", + "mlp.down_proj.weight": "b61bbddd0e5ee13e6679fb129a28885d063105955f6cb5176c39b0ac18fbfda7", + "input_layernorm.weight": "2c7f7059994a701ae1bfd696bd109340fa7a22df9deee3bfd6c4afb890155523", + "post_attention_layernorm.weight": "d85cdb5cf77b8d6d42c74fbd6aff643661b72fcfbe4f343311c4d31db4afc67f" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6217058706168793, + "lambda_right": 0.3782941293831207, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "931265955af0a49db53c4639efbe90c02dce31656aa286a6cbbff86f0817e9c3", + "mlp.up_proj.weight": "a12a9422c9b7455a35fcae6e844f09123ea97d36cafb4e6db0a46f85566ef405", + "mlp.gate_proj.weight": "50273255d4e8070a1066dba24766196dba00f749cea470ff7d6bb9c8dc474c80", + "self_attn.k_proj.weight": "347fe193ed6ff1bac4c56d1a78af82943c3421f0f2f2abbcc90ac73f69d8aa8a", + "self_attn.o_proj.weight": "30adb37b1d10ef9bf2d40b0fad32c78c6e3366a3d6f91dd0aaa851ad36da2eef", + "self_attn.q_proj.weight": "ee22fb615d5ac51abd3c7cdd7fe4d35bcaa72469754363c924c38201ad763076", + "self_attn.v_proj.weight": "498b70698c015bd3df265cfffcc73fc3101a9f2ff48dee8a01d837ccdfc9674d" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "3d50a07d21693613e0d831209868828215164c78606ad76bb5339d0093e2b167", + "self_attn.k_proj.weight": "055922b3d6d8ae628f8a4761be8273b2b35bd979a899e599e03a4aebc9b31b15", + "self_attn.v_proj.weight": "35d50fc9ef07106a763c826a6bed55f5f8de393edeac002703ab161116d8dead", + "self_attn.o_proj.weight": "a211c679b699b735e0587b7e0bab5610d182a4c54868438be766544a8f36b4eb", + "self_attn.q_norm.weight": "41ed057917753085abc49146d705c39743047800a2ac65dba3e227fb675ad494", + "self_attn.k_norm.weight": "f01c939b42b6e7b3a03519eadb0a08a563897458717fc05d98b7c7d158621f02", + "mlp.gate_proj.weight": "22a05a2d80f9b5bca061ef41c4e0eeec4162a886b3189a1e718924e640066c7a", + "mlp.up_proj.weight": "d9facf666807baf62ab2e0f6ef258bc81ff85a99b0e320e2e03c06a06286cadd", + "mlp.down_proj.weight": "b61bbddd0e5ee13e6679fb129a28885d063105955f6cb5176c39b0ac18fbfda7", + "input_layernorm.weight": "2c7f7059994a701ae1bfd696bd109340fa7a22df9deee3bfd6c4afb890155523", + "post_attention_layernorm.weight": "d85cdb5cf77b8d6d42c74fbd6aff643661b72fcfbe4f343311c4d31db4afc67f" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "c7245c9dbe25165f24ba5f3c0086c83749cd9c5fcb690c38a3d8f60927216cec", + "mlp.up_proj.weight": "e2976ab21f45c3e509180bb5364531b92e802e940e8dbfd4b3740724854017b3", + "mlp.gate_proj.weight": "bd12f5c8ad5ebb331b34e02db2e88ac46a7354e0fe9b51c706a0a5f779e34ca4", + "self_attn.k_proj.weight": "f49b61266ee47a2c0ad04bf974ffdd0c21127fe614489f2ddb0f2076a034d6d8", + "self_attn.o_proj.weight": "da8ef0271df8de08ca9b525df230e9a07982d22f8da947e5b909e3226a9d41d8", + "self_attn.q_proj.weight": "c0faa3d71e6bbc52998951b3214c5f070278501f3267bfb60986f2204af63f48", + "self_attn.v_proj.weight": "c6691dbe4fd3e5bb534c4e151f5e9ba5e93e75c70b9f708f94959670ade827d6" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + }, + { + "cycle": 7, + "anchor": 12, + "removed_original_layer": 19, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.335060653067787, + 1.9151508919498, + 2.1470476790502167, + 2.2382104224145882, + 2.482035492079157, + 2.9541623183747747, + 1.7355899186653978, + 1.6389862016834942, + 1.310776197267927, + 1.445540861674972, + 1.0557278746966603, + 0.7263011651368967, + 0.7563077739895328, + 0.78555708780847, + 0.8434020029659363, + 0.9817131964461834, + 1.1575913324896967, + 1.1485335814928896 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3750802150461072, + 1.9966194546704634, + 2.3416926258364814, + 2.3646307199697656, + 2.651764672663068, + 3.0896073133453217, + 1.8648788025080432, + 1.7680385141742023, + 1.4789101804297322, + 1.549351858682733, + 1.0636639815562277, + 0.7665259459729624, + 0.9210271442561554, + 0.9093409439886264, + 0.9889309253643355, + 1.081870129101897, + 1.218261424813981, + 1.269153958649878 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.4775990755654735, + 1.9795751310587053, + 2.324618414792716, + 2.4053275618843184, + 2.6550345187256914, + 3.028798368438027, + 1.7297992788415166, + 1.6205850193978752, + 1.3824615122439445, + 1.510439673755109, + 1.0967437788482517, + 0.7706653821299205, + 0.8629506874422704, + 0.8715741446827898, + 0.8922972515026302, + 1.035381478804706, + 1.1008205496333037, + 1.108045590796737 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8018150167083102, + 2.3396378838368115, + 2.6077546458993544, + 2.7544491300773006, + 2.9027328937488286, + 3.112539029546369, + 2.0101244838004186, + 1.7512663146114917, + 1.6994034730831251, + 1.4636880420662681, + 1.3053891261589767, + 0.916802150236169, + 0.9260510966234697, + 0.802837803285485, + 0.8261934592480294, + 0.9059512837175536, + 1.2353730155872134, + 1.1438871911111252 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7603766180970735, + 2.09245531720537, + 2.494009320317859, + 2.680352467743221, + 2.5314323877151113, + 2.65733196705272, + 2.0287553209778175, + 1.4255146653638688, + 1.6282332198606198, + 1.309752569075819, + 1.16877241599604, + 0.8019279106827464, + 0.8503715595975953, + 0.6960107441990685, + 0.7462430099545769, + 0.8055523210468205, + 1.2425621289318833, + 1.0932438771466049 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.603889724671732, + 2.30004883508431, + 2.7060687538540478, + 2.5143787627219445, + 2.3677048632298194, + 2.707565400064352, + 2.025648292993888, + 1.5269642578355482, + 1.8083655409068216, + 1.4259702866020565, + 1.500750250775114, + 0.9970580626827362, + 1.0222874472031613, + 0.8795377386331051, + 0.815051788079297, + 0.8935573121139433, + 1.3130642440577682, + 1.26007734424592 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.847520969500037, + 2.0392033506382985, + 2.514186407447737, + 2.697675984516935, + 2.452909786990882, + 2.633937297517078, + 1.994960165105681, + 1.4926270825271737, + 1.6009022209565196, + 1.33143269657914, + 1.1646262157578426, + 0.7812955895279096, + 0.8116076292957498, + 0.6807634053296279, + 0.740336689801715, + 0.7868165911783517, + 1.0930526558812224, + 1.0009504792306274 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.881354581028014, + 2.016733763369577, + 2.444807706226864, + 2.673938777952214, + 2.430156787729497, + 2.6358404420831296, + 1.9428613663993468, + 1.4084369048473353, + 1.518026766512977, + 1.3539901414251467, + 1.0464130746336255, + 0.7683486029413958, + 0.8386901915240803, + 0.6384046068507135, + 0.7448342028168569, + 0.8116704120501036, + 1.0411583610854698, + 0.8865983103216261 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0238653292175734, + 2.096878357753872, + 2.544282696680575, + 2.8100249477670807, + 2.5215617695799812, + 2.716839737952336, + 2.0683032311603218, + 1.4748677515004418, + 1.555346205251822, + 1.4523334796188776, + 1.094041824012496, + 0.7650662896346687, + 0.8590899631155138, + 0.6638319919330038, + 0.7484579971253583, + 0.7514442554241185, + 1.0388756932404553, + 0.9260038892652837 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9716204992851947, + 1.990014159078375, + 2.3932224889510496, + 2.7586891549152885, + 3.0319171138794747, + 3.184961023077555, + 2.046644158724472, + 1.4935702247175424, + 1.4155547651935, + 1.3743370076996033, + 0.9865220163190762, + 0.6987606138809618, + 0.8775588591806454, + 0.7643863078100356, + 0.8123849076131157, + 0.8185415944651515, + 1.088812229935361, + 1.024330388860401 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.142899079659547, + 2.2300848269862987, + 2.666436746152326, + 3.0080203350100283, + 3.439548839369472, + 3.5819757646893025, + 2.178945334062802, + 1.717053476493485, + 1.5439120725418845, + 1.4584713753332919, + 1.0322979410608635, + 0.7975928855188846, + 0.9158273124950627, + 0.7294274655038945, + 0.762384357947228, + 0.8008120642715584, + 1.1429469311839828, + 1.0058135790841483 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.687780773818941, + 2.0611341753159533, + 2.59527774784413, + 2.765222939052188, + 2.587079963799439, + 2.930872563570401, + 2.05654595829283, + 1.6115209963931763, + 1.6519618836416574, + 1.4915965655765555, + 1.1870371767410295, + 0.7508322300666679, + 0.8419028544418945, + 0.7184158962207927, + 0.7556317064304325, + 0.7092811826287099, + 1.0618746249918978, + 0.7889106729381317 + ], + [ + 2.335060653067787, + 2.3750802150461072, + 2.4775990755654735, + 2.8018150167083102, + 2.7603766180970735, + 2.603889724671732, + 2.847520969500037, + 2.881354581028014, + 3.0238653292175734, + 2.9716204992851947, + 3.142899079659547, + 3.687780773818941, + 3.8829142774143133, + 2.0779937683849505, + 2.58058323324637, + 2.7504398878029557, + 2.569246285480185, + 2.892389816763984, + 2.0753073706185874, + 1.6056916585243415, + 1.682410703198068, + 1.479445887951913, + 1.2202227347627026, + 0.7558254928103254, + 0.8281597513106194, + 0.681461541623871, + 0.7462858110236558, + 0.6631736687929489, + 1.0513097453000022, + 0.8210695838033376 + ], + [ + 1.9151508919498, + 1.9966194546704634, + 1.9795751310587053, + 2.3396378838368115, + 2.09245531720537, + 2.30004883508431, + 2.0392033506382985, + 2.016733763369577, + 2.096878357753872, + 1.990014159078375, + 2.2300848269862987, + 2.0611341753159533, + 2.0779937683849505, + 3.4416427102836304, + 2.5003654197019722, + 2.0631460895067195, + 2.1764290005130538, + 2.353005797834471, + 1.8550347880382718, + 1.4440750564582634, + 1.5781721751823408, + 1.436664363937981, + 1.195084732425717, + 1.0195732107191993, + 1.019409980271241, + 0.9114488673463137, + 0.9291503774714044, + 0.960255731460862, + 1.3740083911190164, + 1.1587729003607112 + ], + [ + 2.1470476790502167, + 2.3416926258364814, + 2.324618414792716, + 2.6077546458993544, + 2.494009320317859, + 2.7060687538540478, + 2.514186407447737, + 2.444807706226864, + 2.544282696680575, + 2.3932224889510496, + 2.666436746152326, + 2.59527774784413, + 2.58058323324637, + 2.5003654197019722, + 3.8869870744122736, + 2.7626207396485976, + 2.597105476047908, + 2.919639100312835, + 2.1485412027903696, + 1.6080698019742459, + 1.8609487659971795, + 1.505281546807699, + 1.294995638194655, + 0.9556628674527027, + 1.0901298716692587, + 0.9423458972209501, + 0.9501876099221909, + 0.9894552180989364, + 1.529739859337895, + 1.246139406665727 + ], + [ + 2.2382104224145882, + 2.3646307199697656, + 2.4053275618843184, + 2.7544491300773006, + 2.680352467743221, + 2.5143787627219445, + 2.697675984516935, + 2.673938777952214, + 2.8100249477670807, + 2.7586891549152885, + 3.0080203350100283, + 2.765222939052188, + 2.7504398878029557, + 2.0631460895067195, + 2.7626207396485976, + 3.9479349329115236, + 3.159328522193469, + 3.2452559007494948, + 2.269813592358904, + 1.5756899406735705, + 1.5530640737277885, + 1.5056590929943277, + 1.1705655194425106, + 0.7860663144049597, + 0.8885059103358778, + 0.7187360067239392, + 0.7935085952391593, + 0.8389232442714559, + 1.133533822916724, + 1.005304840537486 + ], + [ + 2.482035492079157, + 2.651764672663068, + 2.6550345187256914, + 2.9027328937488286, + 2.5314323877151113, + 2.3677048632298194, + 2.452909786990882, + 2.430156787729497, + 2.5215617695799812, + 3.0319171138794747, + 3.439548839369472, + 2.587079963799439, + 2.569246285480185, + 2.1764290005130538, + 2.597105476047908, + 3.159328522193469, + 4.8171851507294505, + 4.168800959304893, + 2.4893325516846336, + 1.775382036524939, + 1.6695615561673247, + 1.5748769095294133, + 1.075541842340863, + 0.8296408394508974, + 1.0398423199848308, + 0.8865446015217652, + 0.8853028665632072, + 0.8851802532429629, + 1.332072697231281, + 1.2073849680493283 + ], + [ + 2.9541623183747747, + 3.0896073133453217, + 3.028798368438027, + 3.112539029546369, + 2.65733196705272, + 2.707565400064352, + 2.633937297517078, + 2.6358404420831296, + 2.716839737952336, + 3.184961023077555, + 3.5819757646893025, + 2.930872563570401, + 2.892389816763984, + 2.353005797834471, + 2.919639100312835, + 3.2452559007494948, + 4.168800959304893, + 5.625939556469685, + 2.836420728469044, + 2.0696698049374493, + 1.9159187887356972, + 1.7345949199400814, + 1.2486668293058323, + 1.0338163046045126, + 1.1597765316104274, + 1.0265449038458745, + 1.0319384725387906, + 1.1424211083846607, + 1.3954934011367532, + 1.4562693444030974 + ], + [ + 1.7355899186653978, + 1.8648788025080432, + 1.7297992788415166, + 2.0101244838004186, + 2.0287553209778175, + 2.025648292993888, + 1.994960165105681, + 1.9428613663993468, + 2.0683032311603218, + 2.046644158724472, + 2.178945334062802, + 2.05654595829283, + 2.0753073706185874, + 1.8550347880382718, + 2.1485412027903696, + 2.269813592358904, + 2.4893325516846336, + 2.836420728469044, + 3.756756885534718, + 1.613144246991716, + 2.3294744381964936, + 1.471409747072838, + 1.1856335038656773, + 1.002860820442963, + 1.1390299554920584, + 0.9036097762989808, + 0.9360942873817044, + 0.843126941640358, + 1.2314673280711448, + 0.9863908483341315 + ], + [ + 1.6389862016834942, + 1.7680385141742023, + 1.6205850193978752, + 1.7512663146114917, + 1.4255146653638688, + 1.5269642578355482, + 1.4926270825271737, + 1.4084369048473353, + 1.4748677515004418, + 1.4935702247175424, + 1.717053476493485, + 1.6115209963931763, + 1.6056916585243415, + 1.4440750564582634, + 1.6080698019742459, + 1.5756899406735705, + 1.775382036524939, + 2.0696698049374493, + 1.613144246991716, + 3.2050139986328965, + 1.356212899834525, + 1.1997820946226645, + 0.9317094606804038, + 1.1339483613882577, + 0.8354919350865416, + 0.6846104434385133, + 0.6664804565253172, + 0.8396948443667854, + 0.8725514123593239, + 0.8344604151451003 + ], + [ + 1.310776197267927, + 1.4789101804297322, + 1.3824615122439445, + 1.6994034730831251, + 1.6282332198606198, + 1.8083655409068216, + 1.6009022209565196, + 1.518026766512977, + 1.555346205251822, + 1.4155547651935, + 1.5439120725418845, + 1.6519618836416574, + 1.682410703198068, + 1.5781721751823408, + 1.8609487659971795, + 1.5530640737277885, + 1.6695615561673247, + 1.9159187887356972, + 2.3294744381964936, + 1.356212899834525, + 3.416206219036406, + 1.5826657045262058, + 1.1129454165435082, + 0.8835317428395627, + 1.1630585568679892, + 1.0624035213403704, + 1.0055576624668554, + 0.8681777693504479, + 1.3681221757212054, + 1.1643245860437612 + ], + [ + 1.445540861674972, + 1.549351858682733, + 1.510439673755109, + 1.4636880420662681, + 1.309752569075819, + 1.4259702866020565, + 1.33143269657914, + 1.3539901414251467, + 1.4523334796188776, + 1.3743370076996033, + 1.4584713753332919, + 1.4915965655765555, + 1.479445887951913, + 1.436664363937981, + 1.505281546807699, + 1.5056590929943277, + 1.5748769095294133, + 1.7345949199400814, + 1.471409747072838, + 1.1997820946226645, + 1.5826657045262058, + 2.9435635466073036, + 1.2980398820296755, + 1.1045451385857452, + 1.0688829822121406, + 1.0944463492537697, + 0.9534468323318136, + 0.986713447997249, + 0.9813283030413763, + 0.7615277040242429 + ], + [ + 1.0557278746966603, + 1.0636639815562277, + 1.0967437788482517, + 1.3053891261589767, + 1.16877241599604, + 1.500750250775114, + 1.1646262157578426, + 1.0464130746336255, + 1.094041824012496, + 0.9865220163190762, + 1.0322979410608635, + 1.1870371767410295, + 1.2202227347627026, + 1.195084732425717, + 1.294995638194655, + 1.1705655194425106, + 1.075541842340863, + 1.2486668293058323, + 1.1856335038656773, + 0.9317094606804038, + 1.1129454165435082, + 1.2980398820296755, + 3.315992143445085, + 1.4662763003301709, + 1.083205539460729, + 0.9029044779158781, + 0.7476312776793488, + 0.7396221082271548, + 0.9387548551748491, + 0.6486265236006119 + ], + [ + 0.7263011651368967, + 0.7665259459729624, + 0.7706653821299205, + 0.916802150236169, + 0.8019279106827464, + 0.9970580626827362, + 0.7812955895279096, + 0.7683486029413958, + 0.7650662896346687, + 0.6987606138809618, + 0.7975928855188846, + 0.7508322300666679, + 0.7558254928103254, + 1.0195732107191993, + 0.9556628674527027, + 0.7860663144049597, + 0.8296408394508974, + 1.0338163046045126, + 1.002860820442963, + 1.1339483613882577, + 0.8835317428395627, + 1.1045451385857452, + 1.4662763003301709, + 3.1802755429056164, + 1.0961775563983311, + 0.9028584446836112, + 0.7389973944614426, + 0.7326991159504191, + 0.9498945356494484, + 0.7308764560552143 + ], + [ + 0.7563077739895328, + 0.9210271442561554, + 0.8629506874422704, + 0.9260510966234697, + 0.8503715595975953, + 1.0222874472031613, + 0.8116076292957498, + 0.8386901915240803, + 0.8590899631155138, + 0.8775588591806454, + 0.9158273124950627, + 0.8419028544418945, + 0.8281597513106194, + 1.019409980271241, + 1.0901298716692587, + 0.8885059103358778, + 1.0398423199848308, + 1.1597765316104274, + 1.1390299554920584, + 0.8354919350865416, + 1.1630585568679892, + 1.0688829822121406, + 1.083205539460729, + 1.0961775563983311, + 3.122100146047263, + 1.8185289145349615, + 1.3872229332512878, + 1.1959568991391398, + 1.0330771274431814, + 1.1925852530558634 + ], + [ + 0.78555708780847, + 0.9093409439886264, + 0.8715741446827898, + 0.802837803285485, + 0.6960107441990685, + 0.8795377386331051, + 0.6807634053296279, + 0.6384046068507135, + 0.6638319919330038, + 0.7643863078100356, + 0.7294274655038945, + 0.7184158962207927, + 0.681461541623871, + 0.9114488673463137, + 0.9423458972209501, + 0.7187360067239392, + 0.8865446015217652, + 1.0265449038458745, + 0.9036097762989808, + 0.6846104434385133, + 1.0624035213403704, + 1.0944463492537697, + 0.9029044779158781, + 0.9028584446836112, + 1.8185289145349615, + 2.6945045344805623, + 1.876418646156149, + 1.6552659821863145, + 1.478696417249966, + 1.4718810323832487 + ], + [ + 0.8434020029659363, + 0.9889309253643355, + 0.8922972515026302, + 0.8261934592480294, + 0.7462430099545769, + 0.815051788079297, + 0.740336689801715, + 0.7448342028168569, + 0.7484579971253583, + 0.8123849076131157, + 0.762384357947228, + 0.7556317064304325, + 0.7462858110236558, + 0.9291503774714044, + 0.9501876099221909, + 0.7935085952391593, + 0.8853028665632072, + 1.0319384725387906, + 0.9360942873817044, + 0.6664804565253172, + 1.0055576624668554, + 0.9534468323318136, + 0.7476312776793488, + 0.7389973944614426, + 1.3872229332512878, + 1.876418646156149, + 2.565809890338776, + 1.782803313293456, + 1.5627074716811857, + 1.2133802600453527 + ], + [ + 0.9817131964461834, + 1.081870129101897, + 1.035381478804706, + 0.9059512837175536, + 0.8055523210468205, + 0.8935573121139433, + 0.7868165911783517, + 0.8116704120501036, + 0.7514442554241185, + 0.8185415944651515, + 0.8008120642715584, + 0.7092811826287099, + 0.6631736687929489, + 0.960255731460862, + 0.9894552180989364, + 0.8389232442714559, + 0.8851802532429629, + 1.1424211083846607, + 0.843126941640358, + 0.8396948443667854, + 0.8681777693504479, + 0.986713447997249, + 0.7396221082271548, + 0.7326991159504191, + 1.1959568991391398, + 1.6552659821863145, + 1.782803313293456, + 2.8125165484992634, + 1.555281094134444, + 1.4418265844673068 + ], + [ + 1.1575913324896967, + 1.218261424813981, + 1.1008205496333037, + 1.2353730155872134, + 1.2425621289318833, + 1.3130642440577682, + 1.0930526558812224, + 1.0411583610854698, + 1.0388756932404553, + 1.088812229935361, + 1.1429469311839828, + 1.0618746249918978, + 1.0513097453000022, + 1.3740083911190164, + 1.529739859337895, + 1.133533822916724, + 1.332072697231281, + 1.3954934011367532, + 1.2314673280711448, + 0.8725514123593239, + 1.3681221757212054, + 0.9813283030413763, + 0.9387548551748491, + 0.9498945356494484, + 1.0330771274431814, + 1.478696417249966, + 1.5627074716811857, + 1.555281094134444, + 5.034528896538704, + 2.692335526128771 + ], + [ + 1.1485335814928896, + 1.269153958649878, + 1.108045590796737, + 1.1438871911111252, + 1.0932438771466049, + 1.26007734424592, + 1.0009504792306274, + 0.8865983103216261, + 0.9260038892652837, + 1.024330388860401, + 1.0058135790841483, + 0.7889106729381317, + 0.8210695838033376, + 1.1587729003607112, + 1.246139406665727, + 1.005304840537486, + 1.2073849680493283, + 1.4562693444030974, + 0.9863908483341315, + 0.8344604151451003, + 1.1643245860437612, + 0.7615277040242429, + 0.6486265236006119, + 0.7308764560552143, + 1.1925852530558634, + 1.4718810323832487, + 1.2133802600453527, + 1.4418265844673068, + 2.692335526128771, + 6.275216006750274 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.40225823656719, + -0.418053972510334, + -0.3997182031781498, + -0.3987454959504672, + -0.3711019616231918, + -0.3143880026596337, + -0.38441244775601685, + -0.3819347586277721, + -0.4231815585212399, + -0.47236814579757364, + -0.39228402418752356, + -0.39850851178831764, + -0.4376051592384302, + -0.48694327113139696, + -0.4970580211590117, + -0.4698274086389756, + -0.32397405546888375, + -0.3153829001171697 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6320229056860514, + "transport_matrix_sha256": "f5711125d44097953522f7ced877f6e2d8c65c0ef6e88139df158d650cc8dbf4", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.162425130605698e-05, + "gram_mean_diagonal": 0.061624251306056976, + "calibration_nmse": 0.04445477035491676, + "calibration_cosine": 0.9775203668922895, + "calibration_norm_ratio": 0.9766049193770479, + "transport_relative_identity_distance": 0.388338178396225, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "d14bc25171528405c3db791fd017b4e0fe37d06a9b07a9878cb81c1f0eb98ae6", + "self_attn.k_proj.weight": "8911d7363eb8d7e35ff407ac925183a06d54d624a8d2bd0ff41db97423515a54", + "self_attn.v_proj.weight": "4781046a7d6224a77c3e34dda92a2ef5748eb777d9d554acf5621c4e5742be2a", + "self_attn.o_proj.weight": "90f47fc1bc507ddfad16299dfcecb78a6b4efac01e21d3a6402c6ef3eae56348", + "self_attn.q_norm.weight": "6915d87fcc2402518b382dee5f5929f5774006c5d82904db327d2f118d6a5c99", + "self_attn.k_norm.weight": "cb20faa93398541fe6b2fbda2a527ea3243337db753acebdfd045bf309cbc4ae", + "mlp.gate_proj.weight": "aaf6792caf14dc5a810bfa937c966c7989238e23b21080752c784428eedbf79c", + "mlp.up_proj.weight": "5a9cf857484fc35820ab3032e13383687631e54fc1a7c7ff0443ec36e962cf17", + "mlp.down_proj.weight": "d65d2b30d50eb54acafa83fef24d9a0fa7d57b6cb6cc06a94e476c758f8812d6", + "input_layernorm.weight": "316472831e20dec19263b56944811a059efb241cc842d8ace4fce706c98a8b11", + "post_attention_layernorm.weight": "7a462c4c15d73900fe1275d32448251905112e9530f615fe6776622c416f0f52" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "d14bc25171528405c3db791fd017b4e0fe37d06a9b07a9878cb81c1f0eb98ae6", + "self_attn.k_proj.weight": "8911d7363eb8d7e35ff407ac925183a06d54d624a8d2bd0ff41db97423515a54", + "self_attn.v_proj.weight": "4781046a7d6224a77c3e34dda92a2ef5748eb777d9d554acf5621c4e5742be2a", + "self_attn.o_proj.weight": "90f47fc1bc507ddfad16299dfcecb78a6b4efac01e21d3a6402c6ef3eae56348", + "self_attn.q_norm.weight": "6915d87fcc2402518b382dee5f5929f5774006c5d82904db327d2f118d6a5c99", + "self_attn.k_norm.weight": "cb20faa93398541fe6b2fbda2a527ea3243337db753acebdfd045bf309cbc4ae", + "mlp.gate_proj.weight": "a86a2062e8c118a4474629683e24d72e8c99b88d34acc3933f226c5f3b0b84ef", + "mlp.up_proj.weight": "1484ab5f1507d90553911f2c5b3c89955db4b9a0c276f892bde6be260708b1ad", + "mlp.down_proj.weight": "d65d2b30d50eb54acafa83fef24d9a0fa7d57b6cb6cc06a94e476c758f8812d6", + "input_layernorm.weight": "316472831e20dec19263b56944811a059efb241cc842d8ace4fce706c98a8b11", + "post_attention_layernorm.weight": "7a462c4c15d73900fe1275d32448251905112e9530f615fe6776622c416f0f52" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6320229056860514, + "lambda_right": 0.36797709431394865, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "c7245c9dbe25165f24ba5f3c0086c83749cd9c5fcb690c38a3d8f60927216cec", + "mlp.up_proj.weight": "e2976ab21f45c3e509180bb5364531b92e802e940e8dbfd4b3740724854017b3", + "mlp.gate_proj.weight": "bd12f5c8ad5ebb331b34e02db2e88ac46a7354e0fe9b51c706a0a5f779e34ca4", + "self_attn.k_proj.weight": "f49b61266ee47a2c0ad04bf974ffdd0c21127fe614489f2ddb0f2076a034d6d8", + "self_attn.o_proj.weight": "da8ef0271df8de08ca9b525df230e9a07982d22f8da947e5b909e3226a9d41d8", + "self_attn.q_proj.weight": "c0faa3d71e6bbc52998951b3214c5f070278501f3267bfb60986f2204af63f48", + "self_attn.v_proj.weight": "c6691dbe4fd3e5bb534c4e151f5e9ba5e93e75c70b9f708f94959670ade827d6" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "d14bc25171528405c3db791fd017b4e0fe37d06a9b07a9878cb81c1f0eb98ae6", + "self_attn.k_proj.weight": "8911d7363eb8d7e35ff407ac925183a06d54d624a8d2bd0ff41db97423515a54", + "self_attn.v_proj.weight": "4781046a7d6224a77c3e34dda92a2ef5748eb777d9d554acf5621c4e5742be2a", + "self_attn.o_proj.weight": "90f47fc1bc507ddfad16299dfcecb78a6b4efac01e21d3a6402c6ef3eae56348", + "self_attn.q_norm.weight": "6915d87fcc2402518b382dee5f5929f5774006c5d82904db327d2f118d6a5c99", + "self_attn.k_norm.weight": "cb20faa93398541fe6b2fbda2a527ea3243337db753acebdfd045bf309cbc4ae", + "mlp.gate_proj.weight": "a86a2062e8c118a4474629683e24d72e8c99b88d34acc3933f226c5f3b0b84ef", + "mlp.up_proj.weight": "1484ab5f1507d90553911f2c5b3c89955db4b9a0c276f892bde6be260708b1ad", + "mlp.down_proj.weight": "d65d2b30d50eb54acafa83fef24d9a0fa7d57b6cb6cc06a94e476c758f8812d6", + "input_layernorm.weight": "316472831e20dec19263b56944811a059efb241cc842d8ace4fce706c98a8b11", + "post_attention_layernorm.weight": "7a462c4c15d73900fe1275d32448251905112e9530f615fe6776622c416f0f52" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "657dc1f64bd3d898d5894e974818d8a6ee15650a86a229a5861b2acee0f9b088", + "mlp.up_proj.weight": "b9870148d064b28f15148348ff85a24cc6b0c9d5f05d238eb2d53d3094328aee", + "mlp.gate_proj.weight": "44926d75745b5eb02f07c0b546ac898b7d296542b32908a8174f7bb4cbcb63e3", + "self_attn.k_proj.weight": "fed731b48c19553af379834ed7f2f4dcf42fd0bc98f6e7ba8c4f93aee94d6b50", + "self_attn.o_proj.weight": "9744ed76ae0f10005c77c4d12ab99864251e6a7ceca3a0b9974f8154a64e4d13", + "self_attn.q_proj.weight": "18db3b31a5755e8c0ef7ac707cd25132accfe2a969a558824cd0fc89be91ef3a", + "self_attn.v_proj.weight": "9da1c888324adec31ad08af91e699e3c682a3b9ff1115a0e3a715c73d06730e0" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + }, + { + "cycle": 8, + "anchor": 12, + "removed_original_layer": 20, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.3309365228903673, + 2.7076092864496464, + 2.5828283307414557, + 2.0749659862953007, + 1.8979614932482212, + 1.1598080027339115, + 0.9672907304270633, + 0.8445215272130093, + 0.8440981478902723, + 0.8566488119015174, + 0.6571332992167694, + 0.5023196441941121, + 0.32566316749285007, + 0.38883380564887415, + 0.35209432139022473, + 0.4392291203369543, + 0.6603155047706846 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.405989787018054, + 2.7637422845239583, + 2.6409109631066072, + 2.2523696359218266, + 2.066468296027738, + 1.0707011599641276, + 1.0376263444080625, + 0.857389703634527, + 0.8567747625139767, + 0.8225140766141141, + 0.6031320426857619, + 0.491486916403898, + 0.27557926960127255, + 0.383833846407171, + 0.33847945341342583, + 0.4280067994597013, + 0.6532412871774632 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.4954062467270446, + 2.8697417706380772, + 2.7257889339964594, + 2.1704722729811854, + 2.023153201695174, + 1.075993263032202, + 1.0422793635905534, + 0.9414682463324875, + 0.8661451321692677, + 0.875799744758322, + 0.6588638613293223, + 0.5268713914536275, + 0.33841867331499653, + 0.45475373404890224, + 0.38620430422412844, + 0.3681037980647821, + 0.564554207511363 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.833696447730915, + 3.1614221583114817, + 2.9583957894293498, + 2.2258037903416095, + 2.0156942253472385, + 1.3229097043364508, + 1.2197585012656948, + 0.8759670341946174, + 1.0652078473337494, + 0.8854529800796043, + 0.6926146471738837, + 0.607424845907371, + 0.4623910240590529, + 0.5775695311816474, + 0.49617153988795293, + 0.37085318959253116, + 0.6021446812809288 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7153847200460635, + 2.8312036876666813, + 2.61277829758875, + 2.147593605314885, + 1.8902649458833995, + 1.3404355507732728, + 1.2675230516749558, + 0.7881833899249291, + 0.9627347984687167, + 0.7572455607080214, + 0.628883786808813, + 0.5090281334334943, + 0.4222692480273592, + 0.6289234765604497, + 0.6267672068235964, + 0.45982951227324276, + 0.6424982784917262 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.666635424676098, + 2.6568330363906343, + 2.3476147668818568, + 1.935170869443875, + 1.7451546005394534, + 1.2771052231969091, + 1.263298118955975, + 0.9222650423853106, + 1.154926071388586, + 0.7787611470905941, + 0.599707989600881, + 0.5147347507455198, + 0.4782011189866908, + 0.6815150208103763, + 0.6190772863921186, + 0.46985483472275247, + 0.6769790753508953 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8275903230168438, + 2.8271521158478485, + 2.587147345577654, + 1.948920475269127, + 1.7932851187358931, + 1.331509734705745, + 1.1921343724610476, + 0.8251036160191069, + 1.018559612365238, + 0.8339813671627474, + 0.6802464312482578, + 0.5239661054080991, + 0.36881181332363233, + 0.5720311361428948, + 0.5402754416053439, + 0.36187383423052877, + 0.4923000156590594 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8616855835835855, + 2.980810572843346, + 2.7919449295961, + 1.9944480872282742, + 1.8135729278965373, + 1.2519042697254033, + 1.1343416164476894, + 0.8118511794756429, + 0.9786932918581343, + 0.7557512073885176, + 0.5702026076559154, + 0.447623711804456, + 0.33706558020716904, + 0.5358704899706146, + 0.5153548561783989, + 0.3516229720450111, + 0.5197393815527795 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0638693263033883, + 2.949341751103695, + 2.8061340958890635, + 2.039301796845377, + 1.9016639473832662, + 1.34751689561985, + 1.2058908049060586, + 0.8002074175588133, + 0.9976383048607629, + 0.8074598014510884, + 0.682603610047435, + 0.5656838072141143, + 0.40495504386653874, + 0.5767909557361679, + 0.5238521641898339, + 0.4305755417786651, + 0.5046278110871457 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9719062730805663, + 3.2804921180478996, + 3.1506235549322157, + 2.358249044198347, + 2.100291029500201, + 1.5228904375417096, + 1.3403517084090089, + 0.9394278887187737, + 1.002835491211815, + 0.8301201238979781, + 0.6171105254619391, + 0.5120051300248155, + 0.46352334784178245, + 0.5297341402970216, + 0.5474499124140347, + 0.45915536720643313, + 0.506353112130403 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.1886729098128264, + 3.596193277979301, + 3.4274081509473544, + 2.6294576267684318, + 2.2575485674282825, + 1.5331959391624363, + 1.3999020734055807, + 0.9427618803574035, + 1.0138260631382647, + 0.8571841410018289, + 0.6547503214716471, + 0.5696265803587445, + 0.4800564467778891, + 0.5721758055454501, + 0.5835517573598624, + 0.5773531282005996, + 0.5446788979495212 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.764349207195852, + 3.2840094044095656, + 2.8499861187409694, + 2.0793631077044763, + 1.888278646196623, + 1.4607331553612526, + 1.3167571224183574, + 0.8454124903915474, + 0.9542652481245173, + 0.8234688819380526, + 0.6425072690994564, + 0.5027617871925458, + 0.41182465838769056, + 0.6086370410593199, + 0.5976496501310937, + 0.40677227709404207, + 0.5105061342743143 + ], + [ + 2.3309365228903673, + 2.405989787018054, + 2.4954062467270446, + 2.833696447730915, + 2.7153847200460635, + 2.666635424676098, + 2.8275903230168438, + 2.8616855835835855, + 3.0638693263033883, + 2.9719062730805663, + 3.1886729098128264, + 3.764349207195852, + 3.9204464452072068, + 3.276955566585207, + 2.8332851883230403, + 2.0728637967866637, + 1.8685674075236853, + 1.4665176781822364, + 1.3264734794316646, + 0.8397044445741981, + 0.9946398203044753, + 0.8459905502635207, + 0.6795072671971512, + 0.5564186531280123, + 0.44725191379425205, + 0.6192714663116863, + 0.6023716586640435, + 0.4330405475355302, + 0.4975801048677152 + ], + [ + 2.7076092864496464, + 2.7637422845239583, + 2.8697417706380772, + 3.1614221583114817, + 2.8312036876666813, + 2.6568330363906343, + 2.8271521158478485, + 2.980810572843346, + 2.949341751103695, + 3.2804921180478996, + 3.596193277979301, + 3.2840094044095656, + 3.276955566585207, + 4.450160083532561, + 3.354581508307865, + 2.4506232900595717, + 2.0166760000018664, + 1.3737167581177256, + 1.2717341538220308, + 0.8653757870712303, + 0.9308252518305845, + 0.6956120367593819, + 0.5373193274772248, + 0.442540545525281, + 0.4120116346295056, + 0.5605135113309031, + 0.49855397278279723, + 0.4703669283142906, + 0.5613620344815683 + ], + [ + 2.5828283307414557, + 2.6409109631066072, + 2.7257889339964594, + 2.9583957894293498, + 2.61277829758875, + 2.3476147668818568, + 2.587147345577654, + 2.7919449295961, + 2.8061340958890635, + 3.1506235549322157, + 3.4274081509473544, + 2.8499861187409694, + 2.8332851883230403, + 3.354581508307865, + 3.8941965929822517, + 2.512258216561545, + 2.109944816498539, + 1.5221555611808821, + 1.3008074911284095, + 0.8622915032500171, + 0.9886899472844323, + 0.7967312679936626, + 0.6480705264378424, + 0.5166219675235342, + 0.5118713003918643, + 0.668291846365047, + 0.61445542233892, + 0.4938389409718524, + 0.6555957845420977 + ], + [ + 2.0749659862953007, + 2.2523696359218266, + 2.1704722729811854, + 2.2258037903416095, + 2.147593605314885, + 1.935170869443875, + 1.948920475269127, + 1.9944480872282742, + 2.039301796845377, + 2.358249044198347, + 2.6294576267684318, + 2.0793631077044763, + 2.0728637967866637, + 2.4506232900595717, + 2.512258216561545, + 4.90743187825186, + 3.2425119775186513, + 2.125119281876137, + 1.7834078262191897, + 1.1391505216442175, + 1.2052969718575213, + 1.0993786643889853, + 0.9388189018389506, + 0.9510551284121005, + 0.863083659807576, + 1.067900319214004, + 1.0300870183661899, + 0.7798765125666617, + 0.7145790687609579 + ], + [ + 1.8979614932482212, + 2.066468296027738, + 2.023153201695174, + 2.0156942253472385, + 1.8902649458833995, + 1.7451546005394534, + 1.7932851187358931, + 1.8135729278965373, + 1.9016639473832662, + 2.100291029500201, + 2.2575485674282825, + 1.888278646196623, + 1.8685674075236853, + 2.0166760000018664, + 2.109944816498539, + 3.2425119775186513, + 4.266436093566324, + 2.257737910329508, + 1.7805828299253046, + 1.099406982739901, + 1.1406763086919225, + 1.075988678383306, + 0.9797226633091868, + 1.0446832173745924, + 0.9705576509784317, + 1.1324981320047498, + 1.112673044182778, + 0.9777242419671022, + 0.8156873108649764 + ], + [ + 1.1598080027339115, + 1.0707011599641276, + 1.075993263032202, + 1.3229097043364508, + 1.3404355507732728, + 1.2771052231969091, + 1.331509734705745, + 1.2519042697254033, + 1.34751689561985, + 1.5228904375417096, + 1.5331959391624363, + 1.4607331553612526, + 1.4665176781822364, + 1.3737167581177256, + 1.5221555611808821, + 2.125119281876137, + 2.257737910329508, + 3.5279131147070037, + 1.8303800681950804, + 1.4590627593580845, + 1.659529784219106, + 2.0348852544248035, + 1.727490463356549, + 1.4813387866952683, + 1.2056497577423677, + 1.260379537568893, + 1.2863159214992974, + 1.0568912756028728, + 0.7198573076682224 + ], + [ + 0.9672907304270633, + 1.0376263444080625, + 1.0422793635905534, + 1.2197585012656948, + 1.2675230516749558, + 1.263298118955975, + 1.1921343724610476, + 1.1343416164476894, + 1.2058908049060586, + 1.3403517084090089, + 1.3999020734055807, + 1.3167571224183574, + 1.3264734794316646, + 1.2717341538220308, + 1.3008074911284095, + 1.7834078262191897, + 1.7805828299253046, + 1.8303800681950804, + 3.2970597610256607, + 1.2818910671717847, + 1.3632384798959274, + 1.266646346691466, + 1.1135469239785525, + 1.0805289008429617, + 1.0336263724346257, + 1.0950131004183015, + 1.0144802194455806, + 0.7843761189319597, + 0.5001545142419945 + ], + [ + 0.8445215272130093, + 0.857389703634527, + 0.9414682463324875, + 0.8759670341946174, + 0.7881833899249291, + 0.9222650423853106, + 0.8251036160191069, + 0.8118511794756429, + 0.8002074175588133, + 0.9394278887187737, + 0.9427618803574035, + 0.8454124903915474, + 0.8397044445741981, + 0.8653757870712303, + 0.8622915032500171, + 1.1391505216442175, + 1.099406982739901, + 1.4590627593580845, + 1.2818910671717847, + 2.719110261240313, + 1.3694577407078374, + 1.572516860127116, + 1.4481590429362807, + 1.10721158710782, + 0.9120886707248242, + 0.8466345756616924, + 0.8731484821026729, + 0.7917154525986383, + 0.4157543559332934 + ], + [ + 0.8440981478902723, + 0.8567747625139767, + 0.8661451321692677, + 1.0652078473337494, + 0.9627347984687167, + 1.154926071388586, + 1.018559612365238, + 0.9786932918581343, + 0.9976383048607629, + 1.002835491211815, + 1.0138260631382647, + 0.9542652481245173, + 0.9946398203044753, + 0.9308252518305845, + 0.9886899472844323, + 1.2052969718575213, + 1.1406763086919225, + 1.659529784219106, + 1.3632384798959274, + 1.3694577407078374, + 3.262293047290917, + 2.362002646403123, + 2.1315002304126036, + 1.730453971905019, + 1.3334436505809015, + 1.2351334056598986, + 1.2833466486389273, + 1.0671390908815683, + 0.43958593807564617 + ], + [ + 0.8566488119015174, + 0.8225140766141141, + 0.875799744758322, + 0.8854529800796043, + 0.7572455607080214, + 0.7787611470905941, + 0.8339813671627474, + 0.7557512073885176, + 0.8074598014510884, + 0.8301201238979781, + 0.8571841410018289, + 0.8234688819380526, + 0.8459905502635207, + 0.6956120367593819, + 0.7967312679936626, + 1.0993786643889853, + 1.075988678383306, + 2.0348852544248035, + 1.266646346691466, + 1.572516860127116, + 2.362002646403123, + 4.696747519272648, + 3.9275108846674445, + 2.986102587232692, + 2.4629770239322157, + 1.97136094303752, + 1.9647998472799757, + 1.6395909476241857, + 0.5870369292723031 + ], + [ + 0.6571332992167694, + 0.6031320426857619, + 0.6588638613293223, + 0.6926146471738837, + 0.628883786808813, + 0.599707989600881, + 0.6802464312482578, + 0.5702026076559154, + 0.682603610047435, + 0.6171105254619391, + 0.6547503214716471, + 0.6425072690994564, + 0.6795072671971512, + 0.5373193274772248, + 0.6480705264378424, + 0.9388189018389506, + 0.9797226633091868, + 1.727490463356549, + 1.1135469239785525, + 1.4481590429362807, + 2.1315002304126036, + 3.9275108846674445, + 4.746275193005467, + 3.157970292245538, + 2.7732997107524424, + 2.2155651252168247, + 2.184003027387029, + 1.8831891986078493, + 0.6702791846867505 + ], + [ + 0.5023196441941121, + 0.491486916403898, + 0.5268713914536275, + 0.607424845907371, + 0.5090281334334943, + 0.5147347507455198, + 0.5239661054080991, + 0.447623711804456, + 0.5656838072141143, + 0.5120051300248155, + 0.5696265803587445, + 0.5027617871925458, + 0.5564186531280123, + 0.442540545525281, + 0.5166219675235342, + 0.9510551284121005, + 1.0446832173745924, + 1.4813387866952683, + 1.0805289008429617, + 1.10721158710782, + 1.730453971905019, + 2.986102587232692, + 3.157970292245538, + 4.616151115450268, + 3.2932920399318277, + 2.8016596679898846, + 2.606793400087374, + 2.2988642541587714, + 0.7264989864776129 + ], + [ + 0.32566316749285007, + 0.27557926960127255, + 0.33841867331499653, + 0.4623910240590529, + 0.4222692480273592, + 0.4782011189866908, + 0.36881181332363233, + 0.33706558020716904, + 0.40495504386653874, + 0.46352334784178245, + 0.4800564467778891, + 0.41182465838769056, + 0.44725191379425205, + 0.4120116346295056, + 0.5118713003918643, + 0.863083659807576, + 0.9705576509784317, + 1.2056497577423677, + 1.0336263724346257, + 0.9120886707248242, + 1.3334436505809015, + 2.4629770239322157, + 2.7732997107524424, + 3.2932920399318277, + 4.728953162844408, + 3.662165790263802, + 3.131333228509583, + 2.7234418208402, + 0.9758023506113968 + ], + [ + 0.38883380564887415, + 0.383833846407171, + 0.45475373404890224, + 0.5775695311816474, + 0.6289234765604497, + 0.6815150208103763, + 0.5720311361428948, + 0.5358704899706146, + 0.5767909557361679, + 0.5297341402970216, + 0.5721758055454501, + 0.6086370410593199, + 0.6192714663116863, + 0.5605135113309031, + 0.668291846365047, + 1.067900319214004, + 1.1324981320047498, + 1.260379537568893, + 1.0950131004183015, + 0.8466345756616924, + 1.2351334056598986, + 1.97136094303752, + 2.2155651252168247, + 2.8016596679898846, + 3.662165790263802, + 5.043940915809106, + 3.9769495525067367, + 2.891689460947579, + 1.4565140949390514 + ], + [ + 0.35209432139022473, + 0.33847945341342583, + 0.38620430422412844, + 0.49617153988795293, + 0.6267672068235964, + 0.6190772863921186, + 0.5402754416053439, + 0.5153548561783989, + 0.5238521641898339, + 0.5474499124140347, + 0.5835517573598624, + 0.5976496501310937, + 0.6023716586640435, + 0.49855397278279723, + 0.61445542233892, + 1.0300870183661899, + 1.112673044182778, + 1.2863159214992974, + 1.0144802194455806, + 0.8731484821026729, + 1.2833466486389273, + 1.9647998472799757, + 2.184003027387029, + 2.606793400087374, + 3.131333228509583, + 3.9769495525067367, + 4.783271182718377, + 3.1281726349846193, + 1.441437731689 + ], + [ + 0.4392291203369543, + 0.4280067994597013, + 0.3681037980647821, + 0.37085318959253116, + 0.45982951227324276, + 0.46985483472275247, + 0.36187383423052877, + 0.3516229720450111, + 0.4305755417786651, + 0.45915536720643313, + 0.5773531282005996, + 0.40677227709404207, + 0.4330405475355302, + 0.4703669283142906, + 0.4938389409718524, + 0.7798765125666617, + 0.9777242419671022, + 1.0568912756028728, + 0.7843761189319597, + 0.7917154525986383, + 1.0671390908815683, + 1.6395909476241857, + 1.8831891986078493, + 2.2988642541587714, + 2.7234418208402, + 2.891689460947579, + 3.1281726349846193, + 4.82235319409226, + 1.5822018048674753 + ], + [ + 0.6603155047706846, + 0.6532412871774632, + 0.564554207511363, + 0.6021446812809288, + 0.6424982784917262, + 0.6769790753508953, + 0.4923000156590594, + 0.5197393815527795, + 0.5046278110871457, + 0.506353112130403, + 0.5446788979495212, + 0.5105061342743143, + 0.4975801048677152, + 0.5613620344815683, + 0.6555957845420977, + 0.7145790687609579, + 0.8156873108649764, + 0.7198573076682224, + 0.5001545142419945, + 0.4157543559332934, + 0.43958593807564617, + 0.5870369292723031, + 0.6702791846867505, + 0.7264989864776129, + 0.9758023506113968, + 1.4565140949390514, + 1.441437731689, + 1.5822018048674753, + 4.407041142306895 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3931526237695033, + -0.36951939261723216, + -0.413975195553756, + -0.34623825414016357, + -0.36202212133681827, + -0.4086193744162315, + -0.4189445882058546, + -0.474844644258788, + -0.426843370972324, + -0.3637193914001952, + -0.351305868935799, + -0.3502024839981304, + -0.34813704053617117, + -0.3272967409915019, + -0.3438184399055548, + -0.3460114968867764, + -0.3804017419758176 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6197847717397531, + "transport_matrix_sha256": "d4755841394082a812a7b01d533bbededa02bbccd9c1e1bbd968dd4c56ac6c35", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.112820282578468e-05, + "gram_mean_diagonal": 0.06112820282578468, + "calibration_nmse": 0.026729135765656057, + "calibration_cosine": 0.9865453606596748, + "calibration_norm_ratio": 0.9856049326804817, + "transport_relative_identity_distance": 0.3915551006793976, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "6bdb1d9174c7bf6d06b12d5d55b3a7649f4f880714e3e2d5a6f90c1449ad1a50", + "self_attn.k_proj.weight": "e3a98bfec07bba4f0fc6aa01b510f13fce379d8a5fdce7a70ce0870da65a2e43", + "self_attn.v_proj.weight": "f250ec94ab67ea3d397297fa0c70e7e24c7f77ca609a3a83cc8f7e792e4bc608", + "self_attn.o_proj.weight": "18f0f0ec64b28cbc88f0937245cb010fd86dcf094de2d96d1bd2162b76020229", + "self_attn.q_norm.weight": "2172344fe2c1fda6f261ece920fbd07a4b03d2385d2c0848c497aae4f07e69b5", + "self_attn.k_norm.weight": "a2c8f7815e194c45bad87d1e291c9ff2ad3a36929b1201d024354ec501563a4e", + "mlp.gate_proj.weight": "8334c424ddf9edb282ccb34d6f90321e9530eff5e81b7881ba9b3d74417a9672", + "mlp.up_proj.weight": "db91586fd2907e8ecccb075f036e5c180641fa35f7cd899a3f81411caa9d10df", + "mlp.down_proj.weight": "4d5fefc568246a3abfa21725082f7fdf4dd62e7c580a1280aebe0ec60a2230cd", + "input_layernorm.weight": "96fb39db2f64c716ae6891acb4e4e7f2a1276921a97d0d9a50d746727e4bbcd0", + "post_attention_layernorm.weight": "cd331d158252933122eae174cda361e7f3eb260b867b079b375650b368a4ae06" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "6bdb1d9174c7bf6d06b12d5d55b3a7649f4f880714e3e2d5a6f90c1449ad1a50", + "self_attn.k_proj.weight": "e3a98bfec07bba4f0fc6aa01b510f13fce379d8a5fdce7a70ce0870da65a2e43", + "self_attn.v_proj.weight": "f250ec94ab67ea3d397297fa0c70e7e24c7f77ca609a3a83cc8f7e792e4bc608", + "self_attn.o_proj.weight": "18f0f0ec64b28cbc88f0937245cb010fd86dcf094de2d96d1bd2162b76020229", + "self_attn.q_norm.weight": "2172344fe2c1fda6f261ece920fbd07a4b03d2385d2c0848c497aae4f07e69b5", + "self_attn.k_norm.weight": "a2c8f7815e194c45bad87d1e291c9ff2ad3a36929b1201d024354ec501563a4e", + "mlp.gate_proj.weight": "59f0c61a08c61036a25ef4e7d124df5605da010332feb29f6f749e1927ba5565", + "mlp.up_proj.weight": "402d52b4eeefe5c1f052613d0dc0c2395733ef11267a6f15a28a5a16221b633b", + "mlp.down_proj.weight": "4d5fefc568246a3abfa21725082f7fdf4dd62e7c580a1280aebe0ec60a2230cd", + "input_layernorm.weight": "96fb39db2f64c716ae6891acb4e4e7f2a1276921a97d0d9a50d746727e4bbcd0", + "post_attention_layernorm.weight": "cd331d158252933122eae174cda361e7f3eb260b867b079b375650b368a4ae06" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6197847717397531, + "lambda_right": 0.3802152282602469, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "657dc1f64bd3d898d5894e974818d8a6ee15650a86a229a5861b2acee0f9b088", + "mlp.up_proj.weight": "b9870148d064b28f15148348ff85a24cc6b0c9d5f05d238eb2d53d3094328aee", + "mlp.gate_proj.weight": "44926d75745b5eb02f07c0b546ac898b7d296542b32908a8174f7bb4cbcb63e3", + "self_attn.k_proj.weight": "fed731b48c19553af379834ed7f2f4dcf42fd0bc98f6e7ba8c4f93aee94d6b50", + "self_attn.o_proj.weight": "9744ed76ae0f10005c77c4d12ab99864251e6a7ceca3a0b9974f8154a64e4d13", + "self_attn.q_proj.weight": "18db3b31a5755e8c0ef7ac707cd25132accfe2a969a558824cd0fc89be91ef3a", + "self_attn.v_proj.weight": "9da1c888324adec31ad08af91e699e3c682a3b9ff1115a0e3a715c73d06730e0" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "6bdb1d9174c7bf6d06b12d5d55b3a7649f4f880714e3e2d5a6f90c1449ad1a50", + "self_attn.k_proj.weight": "e3a98bfec07bba4f0fc6aa01b510f13fce379d8a5fdce7a70ce0870da65a2e43", + "self_attn.v_proj.weight": "f250ec94ab67ea3d397297fa0c70e7e24c7f77ca609a3a83cc8f7e792e4bc608", + "self_attn.o_proj.weight": "18f0f0ec64b28cbc88f0937245cb010fd86dcf094de2d96d1bd2162b76020229", + "self_attn.q_norm.weight": "2172344fe2c1fda6f261ece920fbd07a4b03d2385d2c0848c497aae4f07e69b5", + "self_attn.k_norm.weight": "a2c8f7815e194c45bad87d1e291c9ff2ad3a36929b1201d024354ec501563a4e", + "mlp.gate_proj.weight": "59f0c61a08c61036a25ef4e7d124df5605da010332feb29f6f749e1927ba5565", + "mlp.up_proj.weight": "402d52b4eeefe5c1f052613d0dc0c2395733ef11267a6f15a28a5a16221b633b", + "mlp.down_proj.weight": "4d5fefc568246a3abfa21725082f7fdf4dd62e7c580a1280aebe0ec60a2230cd", + "input_layernorm.weight": "96fb39db2f64c716ae6891acb4e4e7f2a1276921a97d0d9a50d746727e4bbcd0", + "post_attention_layernorm.weight": "cd331d158252933122eae174cda361e7f3eb260b867b079b375650b368a4ae06" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "f926ad9c3c3f97ea0981a49912e70a874892421e7e3be53d739da8c33c3733c4", + "mlp.up_proj.weight": "15df00e706f8be49186d2d459a8692be3c37a3f3a36511c2a9cee08d6671bef4", + "mlp.gate_proj.weight": "bc8d924ace2b9eb5f75c4967bf454b643694bdd2ec244376b525540048ba3375", + "self_attn.k_proj.weight": "3a295ef70c850e301d4a125159ac91820b49729061dd25b2a90c4d511e49395e", + "self_attn.o_proj.weight": "2b6fba36fc4b06e46e6afdff3f11d23aec9cda1286a6f075354c1fb8df3f3a31", + "self_attn.q_proj.weight": "82c9e9730b8ad6984087b423049cfc8996595d5b40f404ab9d4312fd784a4b14", + "self_attn.v_proj.weight": "48edbfeb6b967df8697c7c36be5816eb088856bba380604801a54492378cef3a" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + }, + { + "cycle": 9, + "anchor": 12, + "removed_original_layer": 21, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.354904735045606, + 2.312837006069805, + 0.3307119798264093, + 0.38882979531465905, + 1.3287478362742415, + 1.4392382897821736, + 0.9615229262925192, + 1.2278997650317163, + 0.8263828612781615, + 1.1193242283958542, + 1.0201956237367105, + 0.9109442596255879, + 0.749378969563884, + 0.90322487606263, + 0.8635046798315051, + 0.7446489743439781 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.415775219637126, + 2.362970422189651, + 0.48600688936814973, + 0.41891121339867415, + 1.2717239849236417, + 1.2946769973587537, + 0.8517998016019664, + 1.2357249620929298, + 0.8224324293049441, + 1.167170866440037, + 1.1223524160172733, + 0.9711281109627545, + 0.755306201435458, + 0.8803498455117649, + 0.7499715840746748, + 0.6158216690064374 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.5127952452221116, + 2.40186050988633, + 0.42061537235726365, + 0.41508573338492766, + 1.2293368071179154, + 1.2654087240074934, + 0.8138520586542975, + 1.1374628585667586, + 0.8251048692716371, + 1.1218500861105365, + 1.057826850914651, + 0.9370539597703822, + 0.6883427896153081, + 0.8087319848354482, + 0.7350440039238897, + 0.6390224355159521 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8298172809503326, + 2.6733576317928294, + 0.27891768076106005, + 0.3345382667124743, + 1.1920848009593235, + 1.2273268388454024, + 0.8693423129068647, + 1.1988810948671296, + 0.9570404158372792, + 1.2287689820028347, + 1.2185128384653263, + 1.037214160089925, + 0.7681530454115186, + 0.8938725914929445, + 0.7555569535361598, + 0.558535957103443 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7566340722157374, + 2.5824900119327636, + 0.39788015132379284, + 0.363146003815999, + 0.9241769214948886, + 1.0087801369047389, + 0.7673273357913692, + 1.0617748845970556, + 0.7679554215431607, + 1.0469198965978141, + 0.9874397401659214, + 0.8506796705084928, + 0.7271441086291381, + 0.676016192226224, + 0.49610000091316014, + 0.4178031943607356 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.618581097813819, + 2.5456965872894637, + 0.5415195973544007, + 0.31977074889857493, + 0.9795479535096984, + 1.051772279356039, + 0.7925510445506377, + 1.147224356265611, + 0.8706240926354653, + 1.0734239153570844, + 0.9314014558669682, + 0.8096236531063354, + 0.683821524896421, + 0.7838861318726456, + 0.5974212218310718, + 0.4026841284371468 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8495146416569086, + 2.6289078958745504, + 0.3046562670577072, + 0.2967348415425515, + 0.870028778566192, + 1.0106856838436287, + 0.7316192389657744, + 0.9639152899822973, + 0.7552783600964255, + 0.950713764858555, + 0.7955043629484608, + 0.7035173902979468, + 0.675169086110335, + 0.7061658873566447, + 0.4603092419814475, + 0.3697175589632769 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.895778787118561, + 2.7298059363772573, + 0.3375690222307773, + 0.3379296504973858, + 0.8797947355929516, + 0.9905049611101461, + 0.7302062013805602, + 0.9949397733039065, + 0.7173160054338853, + 0.9020932168965605, + 0.8586203708740789, + 0.7539692891525165, + 0.6854442631498163, + 0.7054575422629963, + 0.48223814856357294, + 0.37546072791741264 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0285667123475686, + 2.7801168441440427, + 0.4378755621211716, + 0.3533273947926343, + 0.9555675621630234, + 1.0400006691675523, + 0.8015828018274135, + 1.0602732731318416, + 0.7766809594813818, + 0.9581276124326714, + 0.9422705876565094, + 0.8762575567072247, + 0.7757395497887083, + 0.7947456226798513, + 0.5837055463649709, + 0.4354921655100933 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.996587805188197, + 2.755891018415263, + 0.4587399421548764, + 0.3011473445040103, + 0.9625056704050592, + 1.0639470825051633, + 0.7538632673077167, + 0.9892050840503231, + 0.7360648692158933, + 0.8915597887543809, + 0.9905106791338412, + 0.9202107008952923, + 0.7489924347735547, + 0.8867549136842681, + 0.797813008643516, + 0.6422275896876818 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.1628933305346587, + 2.9808571018582457, + 0.49724982360602865, + 0.41500706439726925, + 1.133566766951892, + 1.2096549184964591, + 0.8331025603005594, + 1.085031335606536, + 0.7683552737423831, + 0.9355569891034842, + 1.079788087690286, + 0.9851562304439355, + 0.7838484102334218, + 1.0413190688721983, + 1.0308354850424926, + 0.7613066501685022 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.7044595925112382, + 3.126136862833155, + 0.3307996052401007, + 0.2868875647594833, + 0.9494501550721898, + 1.0654209831016133, + 0.7972204483574115, + 0.9907688626768275, + 0.7670533802097879, + 0.9401008693507901, + 0.8742794106060604, + 0.841111271021977, + 0.7010345508382346, + 0.756655742862572, + 0.5635161438826931, + 0.5150841575472963 + ], + [ + 2.354904735045606, + 2.415775219637126, + 2.5127952452221116, + 2.8298172809503326, + 2.7566340722157374, + 2.618581097813819, + 2.8495146416569086, + 2.895778787118561, + 3.0285667123475686, + 2.996587805188197, + 3.1628933305346587, + 3.7044595925112382, + 3.8899209217377266, + 3.0949456558032784, + 0.3195712725866662, + 0.30916133200082907, + 0.9654216235743767, + 1.0902065742897291, + 0.8158107646499925, + 1.0190497048477805, + 0.776547765708914, + 0.9552971481074828, + 0.9092141537287992, + 0.8675705618607096, + 0.7286517808566375, + 0.7433216786793788, + 0.5440496311111911, + 0.5026659810644237 + ], + [ + 2.312837006069805, + 2.362970422189651, + 2.40186050988633, + 2.6733576317928294, + 2.5824900119327636, + 2.5456965872894637, + 2.6289078958745504, + 2.7298059363772573, + 2.7801168441440427, + 2.755891018415263, + 2.9808571018582457, + 3.126136862833155, + 3.0949456558032784, + 3.6812425866388723, + 0.3899375939212445, + 0.30007880116521063, + 0.9628924308248515, + 1.0872556335848418, + 0.8044493382609295, + 0.997337623008618, + 0.72840896216759, + 0.9257065187946212, + 0.9251594650807294, + 0.9249346931655472, + 0.7512787318505508, + 0.7705648378485978, + 0.5399899361205283, + 0.48188832066719883 + ], + [ + 0.3307119798264093, + 0.48600688936814973, + 0.42061537235726365, + 0.27891768076106005, + 0.39788015132379284, + 0.5415195973544007, + 0.3046562670577072, + 0.3375690222307773, + 0.4378755621211716, + 0.4587399421548764, + 0.49724982360602865, + 0.3307996052401007, + 0.3195712725866662, + 0.3899375939212445, + 5.428302447269453, + 2.442446396265685, + 1.328753710792894, + 0.9642266347937211, + 0.4825043957128179, + 1.0156156269160304, + 0.3893739589587789, + 0.49626636656374123, + 0.7424714310257223, + 0.6956106067387712, + 0.5043708817460063, + 0.540307107625599, + 0.4876176781842678, + 1.064303848039494 + ], + [ + 0.38882979531465905, + 0.41891121339867415, + 0.41508573338492766, + 0.3345382667124743, + 0.363146003815999, + 0.31977074889857493, + 0.2967348415425515, + 0.3379296504973858, + 0.3533273947926343, + 0.3011473445040103, + 0.41500706439726925, + 0.2868875647594833, + 0.30916133200082907, + 0.30007880116521063, + 2.442446396265685, + 4.37708763449559, + 1.4480315385393474, + 1.1677651808436267, + 0.6336859587206934, + 0.9510684437188098, + 0.5884726240294303, + 0.6024154925135219, + 0.6550057634883452, + 0.5646525465117775, + 0.4272356785287004, + 0.512458746065239, + 0.5572659007719092, + 0.88378761436946 + ], + [ + 1.3287478362742415, + 1.2717239849236417, + 1.2293368071179154, + 1.1920848009593235, + 0.9241769214948886, + 0.9795479535096984, + 0.870028778566192, + 0.8797947355929516, + 0.9555675621630234, + 0.9625056704050592, + 1.133566766951892, + 0.9494501550721898, + 0.9654216235743767, + 0.9628924308248515, + 1.328753710792894, + 1.4480315385393474, + 3.4386646767250286, + 2.70675889505815, + 1.370199454914521, + 1.5636699618412089, + 1.2127100993914566, + 1.615738063749116, + 1.4954556151610805, + 1.3651543466867444, + 0.9807843923216132, + 1.3461033600802588, + 1.475167554384498, + 1.2101879921213499 + ], + [ + 1.4392382897821736, + 1.2946769973587537, + 1.2654087240074934, + 1.2273268388454024, + 1.0087801369047389, + 1.051772279356039, + 1.0106856838436287, + 0.9905049611101461, + 1.0400006691675523, + 1.0639470825051633, + 1.2096549184964591, + 1.0654209831016133, + 1.0902065742897291, + 1.0872556335848418, + 0.9642266347937211, + 1.1677651808436267, + 2.70675889505815, + 3.712884593325546, + 1.612040339436234, + 1.787324021168131, + 1.4687055530194928, + 2.0636547257060727, + 1.7547924051420734, + 1.5286482781361608, + 1.1521789545580585, + 1.5527955236993158, + 1.7764178852494859, + 1.2484262184734722 + ], + [ + 0.9615229262925192, + 0.8517998016019664, + 0.8138520586542975, + 0.8693423129068647, + 0.7673273357913692, + 0.7925510445506377, + 0.7316192389657744, + 0.7302062013805602, + 0.8015828018274135, + 0.7538632673077167, + 0.8331025603005594, + 0.7972204483574115, + 0.8158107646499925, + 0.8044493382609295, + 0.4825043957128179, + 0.6336859587206934, + 1.370199454914521, + 1.612040339436234, + 2.6032168997379164, + 1.5575135264470188, + 1.1089805387696472, + 1.5751360227957385, + 1.5766390647501294, + 1.40768754580905, + 1.2094995626487288, + 1.398594916814925, + 1.3995524490446105, + 0.8551653898454695 + ], + [ + 1.2278997650317163, + 1.2357249620929298, + 1.1374628585667586, + 1.1988810948671296, + 1.0617748845970556, + 1.147224356265611, + 0.9639152899822973, + 0.9949397733039065, + 1.0602732731318416, + 0.9892050840503231, + 1.085031335606536, + 0.9907688626768275, + 1.0190497048477805, + 0.997337623008618, + 1.0156156269160304, + 0.9510684437188098, + 1.5636699618412089, + 1.787324021168131, + 1.5575135264470188, + 3.0050615327575905, + 1.4162198539235844, + 2.0226955366447905, + 1.9666630047605944, + 1.817450998029019, + 1.5815466867085692, + 1.5299095324406284, + 1.5790788324131817, + 1.1832471612269353 + ], + [ + 0.8263828612781615, + 0.8224324293049441, + 0.8251048692716371, + 0.9570404158372792, + 0.7679554215431607, + 0.8706240926354653, + 0.7552783600964255, + 0.7173160054338853, + 0.7766809594813818, + 0.7360648692158933, + 0.7683552737423831, + 0.7670533802097879, + 0.776547765708914, + 0.72840896216759, + 0.3893739589587789, + 0.5884726240294303, + 1.2127100993914566, + 1.4687055530194928, + 1.1089805387696472, + 1.4162198539235844, + 3.0044075079175534, + 2.4050247015462096, + 2.121684180288626, + 1.9453488612405616, + 1.6263416672495048, + 1.7274173245481044, + 1.5946149125628282, + 1.0183469481143976 + ], + [ + 1.1193242283958542, + 1.167170866440037, + 1.1218500861105365, + 1.2287689820028347, + 1.0469198965978141, + 1.0734239153570844, + 0.950713764858555, + 0.9020932168965605, + 0.9581276124326714, + 0.8915597887543809, + 0.9355569891034842, + 0.9401008693507901, + 0.9552971481074828, + 0.9257065187946212, + 0.49626636656374123, + 0.6024154925135219, + 1.615738063749116, + 2.0636547257060727, + 1.5751360227957385, + 2.0226955366447905, + 2.4050247015462096, + 5.066603294284001, + 3.7940498768536792, + 3.5021321016150875, + 2.948467939937635, + 2.8726389818268196, + 2.5092024677362152, + 1.2837005444522271 + ], + [ + 1.0201956237367105, + 1.1223524160172733, + 1.057826850914651, + 1.2185128384653263, + 0.9874397401659214, + 0.9314014558669682, + 0.7955043629484608, + 0.8586203708740789, + 0.9422705876565094, + 0.9905106791338412, + 1.079788087690286, + 0.8742794106060604, + 0.9092141537287992, + 0.9251594650807294, + 0.7424714310257223, + 0.6550057634883452, + 1.4954556151610805, + 1.7547924051420734, + 1.5766390647501294, + 1.9666630047605944, + 2.121684180288626, + 3.7940498768536792, + 5.920276532817296, + 5.291144113915918, + 4.116782505181741, + 3.6862694590284275, + 2.950210732641706, + 1.7546389323385339 + ], + [ + 0.9109442596255879, + 0.9711281109627545, + 0.9370539597703822, + 1.037214160089925, + 0.8506796705084928, + 0.8096236531063354, + 0.7035173902979468, + 0.7539692891525165, + 0.8762575567072247, + 0.9202107008952923, + 0.9851562304439355, + 0.841111271021977, + 0.8675705618607096, + 0.9249346931655472, + 0.6956106067387712, + 0.5646525465117775, + 1.3651543466867444, + 1.5286482781361608, + 1.40768754580905, + 1.817450998029019, + 1.9453488612405616, + 3.5021321016150875, + 5.291144113915918, + 5.722240976971763, + 4.324457018460413, + 3.76294628626449, + 2.971241965408863, + 1.667657998116971 + ], + [ + 0.749378969563884, + 0.755306201435458, + 0.6883427896153081, + 0.7681530454115186, + 0.7271441086291381, + 0.683821524896421, + 0.675169086110335, + 0.6854442631498163, + 0.7757395497887083, + 0.7489924347735547, + 0.7838484102334218, + 0.7010345508382346, + 0.7286517808566375, + 0.7512787318505508, + 0.5043708817460063, + 0.4272356785287004, + 0.9807843923216132, + 1.1521789545580585, + 1.2094995626487288, + 1.5815466867085692, + 1.6263416672495048, + 2.948467939937635, + 4.116782505181741, + 4.324457018460413, + 4.911633699069733, + 3.193461725325584, + 2.3504794382740073, + 1.3275007256936364 + ], + [ + 0.90322487606263, + 0.8803498455117649, + 0.8087319848354482, + 0.8938725914929445, + 0.676016192226224, + 0.7838861318726456, + 0.7061658873566447, + 0.7054575422629963, + 0.7947456226798513, + 0.8867549136842681, + 1.0413190688721983, + 0.756655742862572, + 0.7433216786793788, + 0.7705648378485978, + 0.540307107625599, + 0.512458746065239, + 1.3461033600802588, + 1.5527955236993158, + 1.398594916814925, + 1.5299095324406284, + 1.7274173245481044, + 2.8726389818268196, + 3.6862694590284275, + 3.76294628626449, + 3.193461725325584, + 5.186409301256866, + 3.741789768467055, + 1.7802021381501596 + ], + [ + 0.8635046798315051, + 0.7499715840746748, + 0.7350440039238897, + 0.7555569535361598, + 0.49610000091316014, + 0.5974212218310718, + 0.4603092419814475, + 0.48223814856357294, + 0.5837055463649709, + 0.797813008643516, + 1.0308354850424926, + 0.5635161438826931, + 0.5440496311111911, + 0.5399899361205283, + 0.4876176781842678, + 0.5572659007719092, + 1.475167554384498, + 1.7764178852494859, + 1.3995524490446105, + 1.5790788324131817, + 1.5946149125628282, + 2.5092024677362152, + 2.950210732641706, + 2.971241965408863, + 2.3504794382740073, + 3.741789768467055, + 5.883064241826724, + 2.1346720250208673 + ], + [ + 0.7446489743439781, + 0.6158216690064374, + 0.6390224355159521, + 0.558535957103443, + 0.4178031943607356, + 0.4026841284371468, + 0.3697175589632769, + 0.37546072791741264, + 0.4354921655100933, + 0.6422275896876818, + 0.7613066501685022, + 0.5150841575472963, + 0.5026659810644237, + 0.48188832066719883, + 1.064303848039494, + 0.88378761436946, + 1.2101879921213499, + 1.2484262184734722, + 0.8551653898454695, + 1.1832471612269353, + 1.0183469481143976, + 1.2837005444522271, + 1.7546389323385339, + 1.667657998116971, + 1.3275007256936364, + 1.7802021381501596, + 2.1346720250208673, + 5.208468905531033 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.4011061735471199, + -0.40598079701950246, + -0.3106188965367697, + -0.34299059894938394, + -0.405722298876856, + -0.40182750809958806, + -0.46382435350423107, + -0.4382272623539742, + -0.45940053931246466, + -0.35871333919403176, + -0.31995395297370394, + -0.32472277179038683, + -0.3448652230509099, + -0.35098075366819675, + -0.33746577357229895, + -0.29544598824703944 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6252624360747442, + "transport_matrix_sha256": "2ddddb87dd62e24f6864b5610b03544524480f1dd6429bbe3b60702cd9b4d83d", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.13890141248703e-05, + "gram_mean_diagonal": 0.0613890141248703, + "calibration_nmse": 0.03578479326997579, + "calibration_cosine": 0.981945031412953, + "calibration_norm_ratio": 0.9810296153539277, + "transport_relative_identity_distance": 0.524169921875, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "1839858bb3153a7d2907bbc4837cab44494ea4f8f73db2dac5a973f1500537c0", + "self_attn.k_proj.weight": "34776759a30508b301e6eeb4c03e74afc6e315a0e4005b788772f03267fa6bad", + "self_attn.v_proj.weight": "25ed7a7bfff05b2a63a9489ed945f49ed624baa5ffa7f971c263e4d3aade1d04", + "self_attn.o_proj.weight": "a8c4e7b3c03654158c39ea33456a291809aee2893e9dde1fa2d530da216b313c", + "self_attn.q_norm.weight": "21aa357e3be95df8e0b87310db2cf759d951d8c9a706c9e1bee207de27cbb87f", + "self_attn.k_norm.weight": "0dfad6f8b52d3a2c224e7cd2b5c1fe87db29b927a7d7fb4161f231df6df2ac02", + "mlp.gate_proj.weight": "4d745750b386ff30e96c0fe5ac21229e0672de87a3c4d30b7a877c333f250622", + "mlp.up_proj.weight": "b0b002f9bd65d4a6b4b37b6cf06139deb86a51ebc96fc27b4ebcff016f3e450b", + "mlp.down_proj.weight": "279864f62a9b78fa49dde314b363ca78f22fda503fbf8e9f64437ea6644a084a", + "input_layernorm.weight": "2974f6d5be715ca00edf542f4e51e5eb5ced2a292277c1974a92f5f6fec44871", + "post_attention_layernorm.weight": "a00da323dd47889f5a6238369523374a092cab49267ad69f4716d7b1c3778d5f" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "1839858bb3153a7d2907bbc4837cab44494ea4f8f73db2dac5a973f1500537c0", + "self_attn.k_proj.weight": "34776759a30508b301e6eeb4c03e74afc6e315a0e4005b788772f03267fa6bad", + "self_attn.v_proj.weight": "25ed7a7bfff05b2a63a9489ed945f49ed624baa5ffa7f971c263e4d3aade1d04", + "self_attn.o_proj.weight": "a8c4e7b3c03654158c39ea33456a291809aee2893e9dde1fa2d530da216b313c", + "self_attn.q_norm.weight": "21aa357e3be95df8e0b87310db2cf759d951d8c9a706c9e1bee207de27cbb87f", + "self_attn.k_norm.weight": "0dfad6f8b52d3a2c224e7cd2b5c1fe87db29b927a7d7fb4161f231df6df2ac02", + "mlp.gate_proj.weight": "87e2a5acae8d6873e7a823620d245c3ad67d65b6dc91408a635268cd9d5d61e0", + "mlp.up_proj.weight": "7d5ed12a5ca5cee4157d03a1097a167b7e270d224702761b55ef63f98c8890be", + "mlp.down_proj.weight": "279864f62a9b78fa49dde314b363ca78f22fda503fbf8e9f64437ea6644a084a", + "input_layernorm.weight": "2974f6d5be715ca00edf542f4e51e5eb5ced2a292277c1974a92f5f6fec44871", + "post_attention_layernorm.weight": "a00da323dd47889f5a6238369523374a092cab49267ad69f4716d7b1c3778d5f" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6252624360747442, + "lambda_right": 0.3747375639252558, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "f926ad9c3c3f97ea0981a49912e70a874892421e7e3be53d739da8c33c3733c4", + "mlp.up_proj.weight": "15df00e706f8be49186d2d459a8692be3c37a3f3a36511c2a9cee08d6671bef4", + "mlp.gate_proj.weight": "bc8d924ace2b9eb5f75c4967bf454b643694bdd2ec244376b525540048ba3375", + "self_attn.k_proj.weight": "3a295ef70c850e301d4a125159ac91820b49729061dd25b2a90c4d511e49395e", + "self_attn.o_proj.weight": "2b6fba36fc4b06e46e6afdff3f11d23aec9cda1286a6f075354c1fb8df3f3a31", + "self_attn.q_proj.weight": "82c9e9730b8ad6984087b423049cfc8996595d5b40f404ab9d4312fd784a4b14", + "self_attn.v_proj.weight": "48edbfeb6b967df8697c7c36be5816eb088856bba380604801a54492378cef3a" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "1839858bb3153a7d2907bbc4837cab44494ea4f8f73db2dac5a973f1500537c0", + "self_attn.k_proj.weight": "34776759a30508b301e6eeb4c03e74afc6e315a0e4005b788772f03267fa6bad", + "self_attn.v_proj.weight": "25ed7a7bfff05b2a63a9489ed945f49ed624baa5ffa7f971c263e4d3aade1d04", + "self_attn.o_proj.weight": "a8c4e7b3c03654158c39ea33456a291809aee2893e9dde1fa2d530da216b313c", + "self_attn.q_norm.weight": "21aa357e3be95df8e0b87310db2cf759d951d8c9a706c9e1bee207de27cbb87f", + "self_attn.k_norm.weight": "0dfad6f8b52d3a2c224e7cd2b5c1fe87db29b927a7d7fb4161f231df6df2ac02", + "mlp.gate_proj.weight": "87e2a5acae8d6873e7a823620d245c3ad67d65b6dc91408a635268cd9d5d61e0", + "mlp.up_proj.weight": "7d5ed12a5ca5cee4157d03a1097a167b7e270d224702761b55ef63f98c8890be", + "mlp.down_proj.weight": "279864f62a9b78fa49dde314b363ca78f22fda503fbf8e9f64437ea6644a084a", + "input_layernorm.weight": "2974f6d5be715ca00edf542f4e51e5eb5ced2a292277c1974a92f5f6fec44871", + "post_attention_layernorm.weight": "a00da323dd47889f5a6238369523374a092cab49267ad69f4716d7b1c3778d5f" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "1e50605707164b7be8ed1451f38d7286cd3f72292e6dc8e69a88514c0cda3041", + "mlp.up_proj.weight": "b10622f9b6d457f37d0445ee62394e50bc29bf881403962590f415efe35182d4", + "mlp.gate_proj.weight": "d1f0108f04350e9e59e0b6cb3da4880c6a33bd1061744d0cf19f3d76a177c07c", + "self_attn.k_proj.weight": "2fd8450c3cd02efe11c715d7c94756b5d0a04dd4c654fad04529e9e698b03458", + "self_attn.o_proj.weight": "94081d86e3044ec4bcd58daeb0d43313cb3973b6359b19655613efed85dfd801", + "self_attn.q_proj.weight": "92fbf2361181f49d9c65fd97a2e0a7773dcfe91556cba39789a8b3e958041612", + "self_attn.v_proj.weight": "2fdbedd6da63acd2d31baef207afc7d348179a95503552c09aac1d0fd786e3c1" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + } +] diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/2026-10-11_qwen3-base-nofit-merge4.md b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/2026-10-11_qwen3-base-nofit-merge4.md new file mode 100644 index 0000000000000000000000000000000000000000..f42c0e0e01ed0a9303f1839fe9016b4ecd843a4f --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/2026-10-11_qwen3-base-nofit-merge4.md @@ -0,0 +1,52 @@ +# Qwen3 Base no FiT merge controls + +Compare Wa, transported Wb, equal average, and corrected MKA initialization without FiT on our fixed nine-block Qwen3 Base span. Reuse the completed Fisher plus Transport no-FiT baseline. Report common-dense-teacher Local MSE, WikiText2 PPL, and Bench14 macro. MKA merges attention and MLP; the other four methods merge MLP only, so the MKA comparison also changes merge scope. + +## Resources and provenance + +- Session alias: `vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011`. +- Branch: `codex/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011`; immutable execution commit recorded at launch and in each backup. +- Instance 55359231, offer 51341854, machine 117301, Mississippi US. Four A100 SXM4 40 GB, reported allocated RAM 515807 MiB, disk 120 GB. Total listed cost USD 2.7444444444444445 per hour including disk, traffic extra. Offer reliability 0.9847917, download 1767 Mbps, upload 1891.5 Mbps. +- Earlier instance 55357778, machine 149846, stalled in Vast container initialization with no SSH port. It never received code or started an experiment. Destroyed October 11 on user instruction to replace it; no experiment data lost. +- Image `pytorch/pytorch:2.9.1-cuda12.8-cudnn9-devel`; transformers 5.15.1, datasets 3.6.0, huggingface_hub 1.33.0, lm_eval 0.4.12, scipy, scikit-learn. BF16 model/evaluation; source transport solves in FP32. +- External engine: vendor base bundle 39e59afe, immutable three-file source overlay from Hub revision `61734e7b1a77fd279fe1e2584f7a0fdc26c175c2`, progressive-loader helpers and instruction-mask patch. + +## Inputs and merge rules + +Model `Qwen/Qwen3-8B-Base`, revision `49e3418fbbbca6ecbdf9608b4d22e5a407081db4`. Keep original anchor 12 and progressively remove original layers 13 through 21, span `[13,22)`, depth 36 to 27. Never switch to native MKA pair selection. + +Calibration is the historical non-streaming `DKYoon/SlimPajama-6B` shuffle, revision `b5f90f419b7489cdba26fdbc8c022fcb5562f968`, seed 42, 64 packed sequences of 1024 tokens, batch 2. Token SHA256 must equal `85a84b9a68cf0856fd363186d3a273860886b1c17f876cae145fd092454aff55`. This is not the concurrent mixed SlimPajama and MCQA-like experiment. Prepare and save exact token IDs once, share with all arms. + +Existing source feature Transport remains ON, ridge relative 0.001. It rewrites source MLP gate/up input projections only; down and attention projections are not transported. Save each transport matrix and pre/post operand hashes. In every cycle initialize from the actual post-transport source, not a stale pre-transport copy. + +Wa, Wb, Average merge the three MLP projection weights with respective left coefficients 1, 0, and 0.5. Attention, residual norms, and Q/K norms remain Wa. MKA merges all seven attention and MLP projection weights with the corrected local upstream coefficient, leaving all norms Wa. MKA geometry uses these same 64 calibration sequences, sequence mean pooling, sigma 8, alpha 0.5, two diffusion dimensions, five MI neighbors, 50 entropy neighbors, beta 1, MI seed 0, and is recomputed each stage before transport. This corrected local implementation is not an exact paper reproduction. + +No FiT loader, optimizer, additive U, backward pass, Fisher calculation, head permutation, LoRA, or residual-scale fitting is permitted in the four new arms. The transport ridge solve is the retained coordinate-alignment step, not MSE parameter matching. + +## Evaluation and retention + +Local MSE uses the same original dense teacher for every arm, including restored existing Fisher. Inputs are the first 64 packed 1024-token WikiText2 test windows under the HCHC full-stream packing. Capture dense layer12 input and layer21 output before final RMSNorm. Compare student anchor12 output with the dense output, verifying identical anchor inputs. Evaluate only; no optimization. Report squared difference sum divided by token count and hidden width, plus auxiliary energy-normalized MSE. BF16 eager activations, FP32 differences, FP64 aggregate. Exact evaluation input IDs and teacher-output hashes are retained. + +WikiText PPL preserves existing HCHC packing, sequence length 2048, BF16 eager, expected 145 windows and 296815 predicted tokens; batch 1 to fit 40 GB. Bench14 uses the established OpenCompass-five and lm-eval-nine zero-shot protocols with strict local caches. AVG means unweighted 14-task macro; separately report ZS12, MMLU, CMMLU. Preserve existing RACE protocols and earlier results. + +Existing Fisher scores are reused from `results/qwen3_8b_base_nofit_bench14_20261009/summary.json`, Transport ON row: PPL 15.585997450543665, ZS12 0.5125956256004165, MMLU 0.25630252100840334, CMMLU 0.2646347781039544, Bench14 0.4765774861655254. Restore its final anchor from immutable Hub revision `b2a437466b134a6311d3ab625b0b37f9aa1a96d6` and measure only new Local MSE. Do not confuse this no-FiT baseline with historical Fisher plus FiT. + +Keep all nine compact anchor stages, original model pin, stage topology, calibration and evaluation token IDs, every transport matrix, MKA coefficients/geometry, metrics and code. This permits future evaluation against each previous-stage teacher without retraining. Upload each arm under `LJYAI/paper_revision/runs/SESSION/20261011-qwen3-base-nofit-merge4/ARM`, verify every payload at its immutable revision, commit results on the remote session branch and recover/push locally. Do not return the replacement server without further instruction. + +## Commands and status + +Bootstrap: `bash scripts/bootstrap_qwen3_nofit_merge4.sh PROJECT EXTERNAL ROOT MODEL`. + +Controller: `bash scripts/launch_qwen3_nofit_merge4.sh PROJECT EXTERNAL ROOT MODEL SESSION`. + +GPU assignment: Wa 0, Wb 1, Average 2, MKA 3. Each must pass a two-stage smoke with all 64 calibration sequences before any production arm proceeds to nine stages, Local MSE, PPL, Bench14 and verified all-stage backup. Controller commands and PID provenance are recorded in `ROOT/execution.json`. + +Exact merge tests passed: four cases covering Wa, Wb, Average and MKA, BF16 deployed values, unchanged source operands and correct frozen parameters. Local syntax compilation passed; local Python lacks torch, so these CPU-only tests ran in an isolated temporary directory using the existing server's environment without changing its project or GPU workload. Replacement instance is preparing; no new pruning has started at this checkpoint. + +At 16:59 KST the replacement was running and SSH setup completed at `23.127.144.217:26556`; all four devices reported A100 SXM4 40 GB. Code commit `c5846595387bf856a3feb780d8c21d86feca194e` was sent by bundle to the isolated session branch. Bootstrap PID 576 and controller PID 577 launched at 07:59:48 UTC. The pinned evaluation archives were transferred and the controller is waiting on exact input preparation. At 17:00 KST dependencies were ready and model/corpus snapshots were downloading without failed markers. + +Local monitor PID 56032 checks every 300 seconds, writing `C:/Users/CELL/orca/artifacts/paper_revision/qwen3-base-nofit-merge4-55359231-20261011-monitor/poll.log`; on complete it recovers the result commit and pushes from this computer. It is a status/recovery process, not an autonomous failure-repair agent. All-stage compact packaging and backup use hard links within the same experiment filesystem to retain every stage without storing three physical copies. Hub uploads still contain complete standalone stage files. + +By 17:07 KST the historical calibration SHA256 matched exactly and all 131 local evaluation configurations validated without Hub requests. Common dense teacher input/output collection completed, and the restored Fisher anchor passed exact common-prefix-input equality; new evaluation-only Local MSE is 30.159363496315123, normalized MSE 0.5497266315473979. Teacher input IDs SHA256 is `3f1977a32c7a533356dbc14d142c64b470e67dc9942344ff2942e3b1f8b9e2a1`, layer12 input SHA256 `57378a13b898fd63fc40d2c0ccb209ec5d5b636026accc93521b928669200250`, layer21 output SHA256 `8c246a6cca66306de3cd208e8ec8ef5df8eb9d3e3976f16ad34329cb1216ab40`. + +By 17:08 KST all four two-stage smokes passed scope, exact data, zero-FiT and topology verification. All four nine-stage production processes started. Wa/Wb/Average cycles took about 8.1 seconds; MKA about 19 seconds including per-stage geometry. Inspected GPU memory remained below 40 GB. Remote test total is eight passing tests, including the explicit hard-link retry/storage check and existing compact regressions. Source provenance includes subsequent note/test-only commits `e6faf799` and `5546ad91`; merge implementation remains commit `c5846595`. Final four-arm metrics and Hub receipts are pending; do not report the existing Fisher Local MSE as a newly completed four-arm comparison. diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/abprune_compact.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/abprune_compact.py new file mode 100644 index 0000000000000000000000000000000000000000..ffabddabd8ced8b87666f63fb9f99fae8b36cb38 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/abprune_compact.py @@ -0,0 +1,284 @@ +"""Package and reconstruct compact ABPrune stage checkpoints. + +ABPrune already writes ``fused_layer.pt`` for every cycle. This utility makes +those files portable by pairing them with an explicit, immutable stage record; +the dense base model plus that record is sufficient to reconstruct a student. +""" +from __future__ import annotations + +import argparse, hashlib, json, shutil +from pathlib import Path +from typing import Any + +import torch + + +def copy_stage_state(src: Path, dst: Path, *, hard_link: bool = False) -> None: + """Optionally share immutable stage bytes within one experiment filesystem.""" + if not hard_link: + shutil.copy2(src, dst) + elif dst.exists(): + if not src.samefile(dst): + raise FileExistsError(f"Refusing to replace existing non-linked stage: {dst}") + else: + # Fail instead of silently consuming space if cross-device linking is + # unavailable. The caller explicitly selected the storage strategy. + dst.hardlink_to(src) + + +def sha256(path: Path) -> str: + h = hashlib.sha256() + with path.open("rb") as f: + for chunk in iter(lambda: f.read(8 * 1024 * 1024), b""): + h.update(chunk) + return h.hexdigest() + + +def post_merge_scale(source_cycle: Path) -> dict | None: + """Return the deployable post-merge scale stored for a cycle, if present.""" + metadata_path = source_cycle / "cycle_metadata.json" + if not metadata_path.is_file(): + return None + metadata = json.loads(metadata_path.read_text(encoding="utf-8")) + distill = metadata.get("distill", {}) + scale = distill.get("post_merge_nll_scale") or {} + source = "post_merge_nll" + if not scale.get("enabled"): + scale = (distill.get("reparam_stats") or {}).get("residual_scale") or {} + source = "scale_aware_fit" + if not scale.get("enabled"): + return None + gamma = scale["gamma"] + cumulative_gamma = scale["cumulative_gamma"] + if not isinstance(gamma, list): + gamma = float(gamma) + else: + gamma = [float(value) for value in gamma] + if not isinstance(cumulative_gamma, list): + cumulative_gamma = float(cumulative_gamma) + else: + cumulative_gamma = [float(value) for value in cumulative_gamma] + result = { + "enabled": True, + "mode": scale.get("mode", "residual"), + "scale_parameterization": scale.get("scale_parameterization", "scalar"), + "gamma": gamma, + "cumulative_gamma": cumulative_gamma, + "source": source, + } + for field in ( + "optimization_mode", + "gamma_gradient_sources", + "theta_gradient_sources", + "nll_used", + ): + if field in scale: + result[field] = scale[field] + if "cumulative_gamma_statistics" in scale: + result["cumulative_gamma_statistics"] = scale["cumulative_gamma_statistics"] + if "raw" in scale and "ppl" in scale["raw"]: + result["calibration_raw_ppl"] = float(scale["raw"]["ppl"]) + if "fitted" in scale and "ppl" in scale["fitted"]: + result["calibration_fitted_ppl"] = float(scale["fitted"]["ppl"]) + return result + + +def read_compact_metadata(compact_stage: Path) -> dict[str, Any]: + return json.loads((compact_stage / "metadata.json").read_text(encoding="utf-8")) + + +def compact_scale_targets(metadata: dict[str, Any]) -> list[dict[str, Any]]: + """Return residual scales and current student indices for a compact stage.""" + if metadata.get("format") == "abprune_compact_stage_v2": + active = [int(value) for value in metadata["active_original_layers"]] + current_index = {original: index for index, original in enumerate(active)} + targets = [] + for state in metadata.get("retained_layer_states", []): + scale = state.get("post_merge_scale") or {} + if scale.get("enabled") and scale.get("mode") == "residual": + original = int(state["original_layer"]) + targets.append( + { + "original_layer": original, + "student_index": current_index[original], + "scale": scale, + } + ) + return targets + + scale = metadata.get("post_merge_scale") or {} + if scale.get("enabled") and scale.get("mode") == "residual": + return [ + { + "original_layer": int(metadata["anchor_index"]), + "student_index": int(metadata["anchor_index"]), + "scale": scale, + } + ] + return [] + + +def _package_topology_aware(args, source: Path, out: Path, order: list[int]) -> None: + """Package cycles whose recipients may switch between pair boundaries.""" + if int(getattr(args, "start_cycle", 1)) != 1: + raise ValueError("topology-aware compact packaging must start at cycle 1") + + removed: set[int] = set() + latest_states: dict[int, dict[str, Any]] = {} + stages: list[dict[str, Any]] = [] + original_layer_count: int | None = None + + for cycle in range(1, args.cycles + 1): + source_cycle = source / f"cycle_{cycle}" + src = source_cycle / "fused_layer.pt" + if not src.is_file(): + raise FileNotFoundError(src) + cycle_metadata_path = source_cycle / "cycle_metadata.json" + if not cycle_metadata_path.is_file(): + raise FileNotFoundError(cycle_metadata_path) + cycle_metadata = json.loads(cycle_metadata_path.read_text(encoding="utf-8")) + recipient = int(cycle_metadata["recipient_original_layer"]) + removed_original = int(cycle_metadata["removed_original_layer"]) + recipient_side = str(cycle_metadata["recipient_side"]) + if recipient_side not in {"left", "right"}: + raise ValueError(f"invalid recipient_side at cycle {cycle}: {recipient_side}") + if original_layer_count is None: + original_layer_count = int(cycle_metadata["num_layers_before"]) + if removed_original in removed: + raise ValueError(f"original layer {removed_original} removed more than once") + if recipient in removed: + raise ValueError(f"cycle {cycle} selects removed recipient {recipient}") + + removed.add(removed_original) + latest_states.pop(removed_original, None) + latest_states[recipient] = { + "original_layer": recipient, + "source_cycle": cycle, + "recipient_side": recipient_side, + "source_state": src, + "post_merge_scale": post_merge_scale(source_cycle), + } + + stage_dir = out / f"stage_{cycle:02d}" + stage_dir.mkdir(exist_ok=True) + retained_states = [] + for original, record in sorted(latest_states.items()): + state_name = f"layer_original_{original:04d}.pt" + state_path = stage_dir / state_name + copy_stage_state(record["source_state"], state_path, hard_link=bool(getattr(args, "hard_link", False))) + packaged = { + "original_layer": original, + "state_file": state_name, + "sha256": sha256(state_path), + "source_cycle": int(record["source_cycle"]), + "recipient_side": record["recipient_side"], + } + if record["post_merge_scale"] is not None: + packaged["post_merge_scale"] = record["post_merge_scale"] + retained_states.append(packaged) + + assert original_layer_count is not None + active = [ + original + for original in range(original_layer_count) + if original not in removed + ] + meta = { + "format": "abprune_compact_stage_v2", + "model": args.model, + "base_model_revision": args.base_revision, + "run_id": args.run_id, + "target_prune_count": args.cycles, + "stage": cycle, + "removed_count": len(removed), + "original_layer_count": original_layer_count, + "layer_order": order, + "latest_pair_index": order[cycle - 1], + "latest_recipient_side": recipient_side, + "latest_recipient_original_layer": recipient, + "latest_removed_original_layer": removed_original, + "removed_original_layers": sorted(removed), + "active_original_layers": active, + "retained_layer_states": retained_states, + "source_cycle": f"cycle_{cycle}", + } + (stage_dir / "metadata.json").write_text( + json.dumps(meta, indent=2) + "\n", encoding="utf-8" + ) + stages.append(meta) + + manifest = { + "format": "abprune_compact_manifest_v2", + "model": args.model, + "base_model_revision": args.base_revision, + "run_id": args.run_id, + "target_prune_count": args.cycles, + "original_layer_count": original_layer_count, + "layer_order": order, + "stages": stages, + } + (out / "manifest.json").write_text( + json.dumps(manifest, indent=2) + "\n", encoding="utf-8" + ) + + +def package(args): + source = Path(args.run_root); out = Path(args.output_root); out.mkdir(parents=True, exist_ok=True) + order = [int(x) for x in args.layer_order.replace(',', ' ').split()] + start_cycle = int(getattr(args, "start_cycle", 1)) + expected_order = args.cycles - start_cycle + 1 + if not 1 <= start_cycle <= args.cycles: + raise ValueError("start_cycle must be between 1 and cycles") + if len(order) != expected_order: + raise ValueError("layer_order length must equal cycles - start_cycle + 1") + first_metadata_path = source / f"cycle_{start_cycle}" / "cycle_metadata.json" + if first_metadata_path.is_file(): + first_metadata = json.loads(first_metadata_path.read_text(encoding="utf-8")) + topology_fields = { + "recipient_side", + "recipient_original_layer", + "removed_original_layer", + } + if topology_fields.issubset(first_metadata): + _package_topology_aware(args, source, out, order) + return + stages = [] + for cycle in range(start_cycle, args.cycles + 1): + order_index = cycle - start_cycle + source_cycle = source / f"cycle_{cycle}" + src = source_cycle / "fused_layer.pt" + if not src.exists(): raise FileNotFoundError(src) + dst_dir = out / f"stage_{cycle:02d}"; dst_dir.mkdir(exist_ok=True) + dst = dst_dir / "anchor_layer.pt"; copy_stage_state(src, dst, hard_link=bool(getattr(args, "hard_link", False))) + meta = { + "format": "abprune_compact_stage_v1", "model": args.model, + "base_model_revision": args.base_revision, "run_id": args.run_id, + "target_prune_count": args.cycles, "stage": cycle, + "removed_count": cycle, "anchor_index": order[order_index], + "layer_order": order, + "packaged_stage_range": [start_cycle, args.cycles], + "removed_original_layers": list(range(order[order_index] + 1, order[order_index] + cycle + 1)), + "source_cycle": f"cycle_{cycle}", "anchor_state_file": "anchor_layer.pt", + "sha256": sha256(dst), + } + scale = post_merge_scale(source_cycle) + if scale is not None: + meta["post_merge_scale"] = scale + (dst_dir / "metadata.json").write_text(json.dumps(meta, indent=2) + "\n", encoding="utf-8") + stages.append(meta) + manifest = {"format": "abprune_compact_manifest_v1", "model": args.model, + "base_model_revision": args.base_revision, "run_id": args.run_id, + "target_prune_count": args.cycles, "layer_order": order, "stages": stages} + (out / "manifest.json").write_text(json.dumps(manifest, indent=2) + "\n", encoding="utf-8") + + +def main(): + p = argparse.ArgumentParser(); p.add_argument("--run-root", required=True); p.add_argument("--output-root", required=True) + p.add_argument("--model", required=True); p.add_argument("--base-revision", required=True); p.add_argument("--run-id", required=True) + p.add_argument("--cycles", type=int, required=True); p.add_argument("--layer-order", required=True) + p.add_argument("--start-cycle", type=int, default=1) + p.add_argument("--hard-link", action="store_true", help="Hard-link immutable stage weights on the same filesystem") + package(p.parse_args()) + + +if __name__ == "__main__": main() diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/abprune_stagewise_geometry.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/abprune_stagewise_geometry.py new file mode 100644 index 0000000000000000000000000000000000000000..8ee3d79254a828fc6f93cde8887159cead689abc --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/abprune_stagewise_geometry.py @@ -0,0 +1,227 @@ +"""Stage-wise activation geometry diagnostics for progressive ABPrune runs. + +The ABPrune checkpoints are treated as black-box students. The dense model is +the fixed teacher and boundaries are aligned by the original depth represented +by the fused anchor (rather than by student layer index). +""" +from __future__ import annotations + +import argparse, gc, json, math +from pathlib import Path +from typing import Dict, Iterable + +import torch + +from .abprune_compact import read_compact_metadata +from .abprune_recoverability import capture_module_output, load_model +from .span_diagnostics import build_token_chunks, find_layers, get_dtype + + +def _layer_container(model): + for path in ("model.layers", "model.decoder.layers", "transformer.h", "transformer.blocks", "gpt_neox.layers"): + parent = model + parts = path.split('.') + for part in parts[:-1]: + if not hasattr(parent, part): break + parent = getattr(parent, part) + else: + if hasattr(parent, parts[-1]): + container = getattr(parent, parts[-1]) + if isinstance(container, torch.nn.ModuleList): return container + raise ValueError("Could not locate a mutable decoder layer ModuleList") + + +def _reindex_layer_modules(layers) -> None: + """Align cache-facing layer indices with the compact decoder positions.""" + for index, layer in enumerate(layers): + for module in layer.modules(): + if hasattr(module, "layer_idx"): + module.layer_idx = index + + +def load_compact_model( + base_ref: str, + compact_stage: Path, + *, + cycle: int | None, + anchor: int | None, + dtype: torch.dtype, + device: torch.device, + attn: str, + revision: str | None = None, +): + """Reconstruct legacy single-anchor or topology-aware compact stages.""" + model = load_model(base_ref, dtype=dtype, device=device, attn=attn, revision=revision) + container = _layer_container(model) + layers = list(container) + metadata = read_compact_metadata(compact_stage) + if metadata.get("format") == "abprune_compact_stage_v2": + if cycle is not None and int(metadata["stage"]) != int(cycle): + raise ValueError( + f"compact stage mismatch: metadata={metadata['stage']} requested={cycle}" + ) + removed = {int(value) for value in metadata["removed_original_layers"]} + expected_active = [int(value) for value in metadata["active_original_layers"]] + active = [index for index in range(len(layers)) if index not in removed] + if active != expected_active: + raise ValueError( + f"compact topology mismatch: computed={active} metadata={expected_active}" + ) + for entry in metadata["retained_layer_states"]: + original = int(entry["original_layer"]) + state_path = compact_stage / entry["state_file"] + if not state_path.is_file(): + raise FileNotFoundError(state_path) + state = torch.load(state_path, map_location="cpu", weights_only=True) + layers[original].load_state_dict(state, strict=True) + layers = [layers[index] for index in active] + else: + if cycle is None or anchor is None: + raise ValueError("legacy compact stages require cycle and anchor") + active = [ + index + for index in range(len(layers)) + if index not in range(anchor + 1, anchor + 1 + cycle) + ] + state = torch.load( + compact_stage / "anchor_layer.pt", map_location="cpu", weights_only=True + ) + layers[anchor].load_state_dict(state, strict=True) + del layers[anchor + 1: anchor + 1 + cycle] + for idx in range(len(container) - 1, -1, -1): + del container[idx] + container.extend(layers) + _reindex_layer_modules(container) + if hasattr(model.config, "num_hidden_layers"): + model.config.num_hidden_layers = len(layers) + if getattr(model.config, "layer_types", None) is not None: + model.config.layer_types = [ + model.config.layer_types[index] for index in active + ] + return model + + +def _metric(student: torch.Tensor, teacher: torch.Tensor, mask: torch.Tensor) -> Dict[str, float]: + s = student.float().squeeze(0)[mask] + t = teacher.float().squeeze(0)[mask] + denom = t.square().sum().item() + sden = s.square().sum().item() + dot = (s * t).sum().item() + sn = s.norm(dim=-1).clamp_min(1e-12) + tn = t.norm(dim=-1).clamp_min(1e-12) + alpha = dot / max(sden, 1e-30) + return { + "nmse": float((s - t).square().sum().item() / max(denom, 1e-30)), + "scaled_nmse": float((alpha * s - t).square().sum().item() / max(denom, 1e-30)), + "cosine": float(((s * t).sum(dim=-1) / (sn * tn)).mean().item()), + "norm_ratio": float((sn / tn).mean().item()), + "optimal_alpha": float(alpha), + "tokens": int(s.shape[0]), + } + + +def _teacher_cache(model, chunks, boundaries: Iterable[int], device): + wanted = sorted(set(boundaries)) + cache = {b: [] for b in wanted} + layers = find_layers(model) + with torch.inference_mode(): + for i, chunk in enumerate(chunks): + ids = chunk[None].to(device) + out = model(input_ids=ids, use_cache=False, output_hidden_states=True) + for b in wanted: + if b < 0 or b >= len(layers): + raise ValueError(f"invalid teacher boundary {b}") + cache[b].append(out.hidden_states[b + 1].detach().cpu().half()) + final_hidden = getattr(out, "last_hidden_state", None) + if final_hidden is None: + final_hidden = out.hidden_states[-1] + cache.setdefault("final", []).append(final_hidden.detach().cpu().half()) + if (i + 1) % 4 == 0 or i + 1 == len(chunks): + print(f"[stagewise] teacher {i+1}/{len(chunks)}", flush=True) + return cache + + +def _student_stage(model, chunks, teacher, *, anchor, original_end, device): + layers = find_layers(model) + if anchor >= len(layers): + raise ValueError(f"anchor {anchor} not present in {len(layers)} student layers") + local, final = [], [] + target_local = teacher[original_end] + with torch.inference_mode(): + for i, chunk in enumerate(chunks): + ids = chunk[None].to(device) + with capture_module_output(layers[anchor]) as hook: + out = model(input_ids=ids, use_cache=False, output_hidden_states=True) + local.append(hook["output"].cpu().half()) + final_hidden = getattr(out, "last_hidden_state", None) + if final_hidden is None: + final_hidden = out.hidden_states[-1] + final.append(final_hidden.detach().cpu().half()) + return local, final + + +def run(args): + device = torch.device(args.device) + dtype = get_dtype(args.dtype) + from transformers import AutoTokenizer + tok = AutoTokenizer.from_pretrained(args.model) + chunks = build_token_chunks(tok, dataset_name="Salesforce/wikitext", dataset_config="wikitext-2-raw-v1", + split="test", text_field="text", seq_len=args.seq_len, num_sequences=args.num_sequences, seed=args.seed) + if len(chunks) != args.num_sequences: + raise RuntimeError(f"only built {len(chunks)} held-out chunks") + teacher_model = load_model(args.model, dtype=dtype, device=device, attn=args.attn) + depth = len(find_layers(teacher_model)) + stages = list(args.stages) if args.stages else list(range(1, args.cycles + 1)) + if not stages or any(stage < 1 or stage > args.cycles for stage in stages): + raise ValueError("--stages must contain values in [1, --cycles]") + boundaries = [args.anchor + stage for stage in stages] + teacher = _teacher_cache(teacher_model, chunks, boundaries, device) + # ``final`` is cached alongside the requested original block boundaries. + del teacher_model; gc.collect(); torch.cuda.empty_cache() + rows = [] + for cycle in stages: + if args.compact_root: + ref = Path(args.compact_root) / f"stage_{cycle:02d}" + if not (ref / "metadata.json").exists(): raise FileNotFoundError(ref) + student = load_compact_model(args.model, ref, cycle=cycle, anchor=args.anchor, + dtype=dtype, device=device, attn=args.attn) + else: + ref = Path(args.student_root) / f"cycle_{cycle}" / "full_model" + if not (ref / "config.json").exists(): raise FileNotFoundError(ref) + student = load_model(str(ref), dtype=dtype, device=device, attn=args.attn) + local, final = _student_stage(student, chunks, teacher, anchor=args.anchor, + original_end=args.anchor + cycle, device=device) + for pos0_excluded in (True, False): + local_acc = {k: [] for k in ("nmse", "scaled_nmse", "cosine", "norm_ratio", "optimal_alpha")} + final_acc = {k: [] for k in local_acc} + for i in range(len(chunks)): + mask = torch.ones((args.seq_len,), dtype=torch.bool) + if pos0_excluded: mask[0] = False + lm = _metric(local[i], teacher[args.anchor + cycle][i], mask) + fm = _metric(final[i], teacher["final"][i], mask) + for k in local_acc: local_acc[k].append(lm[k]); final_acc[k].append(fm[k]) + rows.append({"model": args.model, "target_prune_count": args.cycles, "stage": cycle, + "removed_count": cycle, "anchor": args.anchor, "merged_original_layers": list(range(args.anchor, args.anchor + cycle + 1)), + "teacher_boundary_index": args.anchor + cycle, "student_layer_index": args.anchor, + "position0_excluded": pos0_excluded, + "local": {k: float(sum(v)/len(v)) for k,v in local_acc.items()}, + "final": {k: float(sum(v)/len(v)) for k,v in final_acc.items()}, + "num_sequences": len(chunks), "seq_len": args.seq_len, "seed": args.seed}) + print(f"[stagewise] completed cycle {cycle}/{args.cycles}", flush=True) + del student; gc.collect(); torch.cuda.empty_cache() + out = Path(args.output); out.parent.mkdir(parents=True, exist_ok=True) + out.write_text(json.dumps({"model": args.model, "anchor": args.anchor, "cycles": args.cycles, "rows": rows}, indent=2) + "\n") + + +def main(): + p = argparse.ArgumentParser() + p.add_argument("--model", required=True); p.add_argument("--student-root", required=True); p.add_argument("--anchor", type=int, required=True) + p.add_argument("--cycles", type=int, required=True); p.add_argument("--output", required=True) + p.add_argument("--stages", type=int, nargs="*", default=None, + help="Optional subset of compact stages to analyze (default: every stage)") + p.add_argument("--compact-root", default=None, help="stage_XX/anchor_layer.pt package; overrides --student-root") + p.add_argument("--device", default="cuda"); p.add_argument("--dtype", default="bf16"); p.add_argument("--attn", default="eager") + p.add_argument("--num-sequences", type=int, default=16); p.add_argument("--seq-len", type=int, default=512); p.add_argument("--seed", type=int, default=12345) + args = p.parse_args(); run(args) + +if __name__ == "__main__": main() diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/aggregate_transport_rho_fit_14bench.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/aggregate_transport_rho_fit_14bench.py new file mode 100644 index 0000000000000000000000000000000000000000..b6dfcea6eb20c3fc5653b5e2ec8e1cf3ff6553c3 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/aggregate_transport_rho_fit_14bench.py @@ -0,0 +1,70 @@ +#!/usr/bin/env python3 +"""Combine the OpenCompass-five and lm-eval-nine evaluation reports.""" + +from __future__ import annotations + +import argparse +import json +from pathlib import Path + + +OPENCOMPASS_KEYS = { + "race_high": "race-high", + "race_middle": "race-middle", + "c3": "C3", + "cmnli": "cmnli", + "chid": "chid-dev", +} +LM_EVAL_KEYS = { + "piqa", + "winogrande", + "hellaswag", + "arc_challenge", + "arc_easy", + "openbookqa", + "sciq", + "mmlu", + "cmmlu", +} + + +def main() -> None: + parser = argparse.ArgumentParser() + parser.add_argument("run_root", type=Path) + args = parser.parse_args() + + eval_dir = args.run_root / "eval" + opencompass = json.loads( + (eval_dir / "final_opencompass5.json").read_text(encoding="utf-8") + ) + lm_eval = json.loads( + (eval_dir / "final_lmeval9.json").read_text(encoding="utf-8") + ) + if set(lm_eval["task_scores"]) != LM_EVAL_KEYS: + raise RuntimeError( + f"unexpected lm-eval tasks: {sorted(lm_eval['task_scores'])}" + ) + + scores = { + name: opencompass["results"][source]["accuracy"] + for name, source in OPENCOMPASS_KEYS.items() + } + scores.update(lm_eval["task_scores"]) + if len(scores) != 14 or any(not 0.0 <= float(value) <= 1.0 for value in scores.values()): + raise RuntimeError(f"invalid 14-task score set: {scores}") + + report = { + "task_scores": scores, + "macro_mean_14": sum(scores.values()) / len(scores), + "tasks": list(scores), + "opencompass_protocol": opencompass["protocol"], + "lm_eval_num_fewshot": lm_eval["num_fewshot"], + } + output = eval_dir / "final_14bench.json" + output.write_text(json.dumps(report, indent=2) + "\n", encoding="utf-8") + (args.run_root / "BENCH14_COMPLETE").touch() + print(json.dumps(report, indent=2)) + + +if __name__ == "__main__": + main() diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/bootstrap_qwen3_nofit_bench8.sh b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/bootstrap_qwen3_nofit_bench8.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d8cae12debb749d6eb992c32ef4c2d20ef2600b --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/bootstrap_qwen3_nofit_bench8.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash +set -euo pipefail +project="$1"; root="$2"; model="$3" +export HF_HOME=/workspace/.hf_home HF_TOKEN_PATH=/root/.cache/huggingface/token +export HF_DATASETS_CACHE=/workspace/.hf_datasets36 PYTHONUNBUFFERED=1 OMP_NUM_THREADS=4 +mkdir -p "$root" +trap 'rc=$?; if ((rc)); then touch "$root/BOOTSTRAP_FAILED"; fi' EXIT +python -m pip install 'transformers==5.15.1' 'datasets==3.6.0' 'huggingface_hub==1.33.0' \ + 'lm_eval==0.4.12' accelerate scipy sentencepiece protobuf +python - "$root" "$model" <<'PY' +from concurrent.futures import ThreadPoolExecutor +from huggingface_hub import snapshot_download,hf_hub_download +from pathlib import Path +import hashlib,json,shutil,sys +r=Path(sys.argv[1]) +prefix='runs/vast-paper_revision-qwen3-base-nofit-transport-zs6-54974094-20261009/20261009-qwen3-base-nofit-transport-zs6' +pins={'off':'71252a138f0f97349f29c743206160b77e45899e','on':'b2a437466b134a6311d3ab625b0b37f9aa1a96d6'} +def base(): + return snapshot_download('Qwen/Qwen3-8B-Base',revision='49e3418fbbbca6ecbdf9608b4d22e5a407081db4', + local_dir=sys.argv[2],allow_patterns=['*.json','*.safetensors','tokenizer*','*.model','*.jinja'],max_workers=8) +def restore(arm): + rev=pins[arm]; path=f'{prefix}/{arm}' + manifest=json.loads(Path(hf_hub_download('LJYAI/paper_revision',f'{path}/manifest.json',revision=rev)).read_text()) + out=r/'full'/arm; restored=[] + for item in manifest['files']: + rel=item['path'] + if not (rel.startswith('compact/stage_09/') or rel=='eval/zs6.json'): continue + src=Path(hf_hub_download('LJYAI/paper_revision',f'{path}/{rel}',revision=rev)) + assert src.stat().st_size==item['size'] + assert hashlib.sha256(src.read_bytes()).hexdigest()==item['sha256'] + dst=out/rel;dst.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(src,dst);restored.append(item) + meta=json.loads((out/'compact/stage_09/metadata.json').read_text()) + assert meta['anchor_index']==12 and meta['removed_original_layers']==list(range(13,22)) + assert meta['stage']==9 and meta['format']=='abprune_compact_stage_v1' + assert (out/'eval/zs6.json').is_file() and len(list((out/'compact/stage_09').glob('*.pt')))==1 + receipt={'arm':arm,'repository':'LJYAI/paper_revision','path':path,'revision':rev, + 'restored_files':restored,'all_restored_hashes_match':True} + (out/'restore_receipt.json').write_text(json.dumps(receipt,indent=2)+'\n') + return receipt +with ThreadPoolExecutor(max_workers=3) as p: + futures=[p.submit(base),p.submit(restore,'off'),p.submit(restore,'on')] + for f in futures: print('PINNED_INPUT_READY',f.result(),flush=True) +(r/'BASE_READY').touch() +PY +while [[ ! -f "$root/EVAL_ASSETS_READY" ]]; do sleep 3; done +python - "$root" <<'PY' +from pathlib import Path +import hashlib,sys +r=Path(sys.argv[1]) +for name,expected in [('opencompass5-data.tar.gz','b49605cc272cee94ddc177d2350e06d70f0f610926a2abf20c8ccd35ad8cd353'), + ('lmeval-cache-131.tar.gz','e5a319ed00b52181df3d80e47e4939e78fddd393803c29a9bcb63c2dd8a6d468')]: + assert hashlib.sha256((r/name).read_bytes()).hexdigest()==expected +print('EVALUATION_ARCHIVE_HASHES_VERIFIED',flush=True) +PY +mkdir -p "$root/eval_data" +tar -xzf "$root/opencompass5-data.tar.gz" -C "$root/eval_data" +tar -xzf "$root/lmeval-cache-131.tar.gz" -C "$root" +HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 python "$project/scripts/prepare_lmeval9_local_cache.py" "$root/lmeval_cache" --validate-local +touch "$root/EVAL_READY" "$root/BOOTSTRAP_COMPLETE" diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/bootstrap_qwen3_nofit_merge4.sh b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/bootstrap_qwen3_nofit_merge4.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7b466054d96a1a9fa0acbe2932c901554c823ca --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/bootstrap_qwen3_nofit_merge4.sh @@ -0,0 +1,55 @@ +#!/usr/bin/env bash +set -euo pipefail +project="$1"; external="$2"; root="$3"; model="$4" +export HF_HOME=/workspace/.hf_home HF_TOKEN_PATH=/root/.cache/huggingface/token +export HF_DATASETS_CACHE=/workspace/.hf_datasets36 PYTHONUNBUFFERED=1 +export PYTHONPATH="$external/src:$project/src:$project" TOKENIZERS_PARALLELISM=false OMP_NUM_THREADS=4 +mkdir -p "$root" +trap 'rc=$?; if ((rc)); then touch "$root/BOOTSTRAP_FAILED"; fi' EXIT +# Pinned engine + dense model + the original non-streaming SlimPajama cache. +# One download/cache preparation is shared by all four GPU workers. +bash "$project/scripts/bootstrap_qwen3_8b_mergeinit_fit2.sh" "$project" "$external" "$root" "$model" +python -m pytest -q "$project/tests/test_nofit_merge_control.py" > "$root/unit_tests.log" 2>&1 +python "$project/scripts/prepare_qwen3_nofit_merge_inputs.py" --external-root "$external" \ + --model "$model" --output "$root/inputs" > "$root/data_prepare.log" 2>&1 +touch "$root/DATA_READY" +python - "$root" <<'PY' +from pathlib import Path +from huggingface_hub import hf_hub_download +from datasets import load_dataset +import hashlib,json,shutil,sys +r=Path(sys.argv[1]); prefix='runs/vast-paper_revision-qwen3-base-nofit-transport-zs6-54974094-20261009/20261009-qwen3-base-nofit-transport-zs6/on' +revision='b2a437466b134a6311d3ab625b0b37f9aa1a96d6' +manifest=json.loads(Path(hf_hub_download('LJYAI/paper_revision',prefix+'/manifest.json',revision=revision)).read_text()) +restored=[] +for item in manifest['files']: + if not item['path'].startswith('compact/stage_09/'): continue + src=Path(hf_hub_download('LJYAI/paper_revision',prefix+'/'+item['path'],revision=revision)) + assert src.stat().st_size==item['size'] and hashlib.sha256(src.read_bytes()).hexdigest()==item['sha256'] + dst=r/'fisher_reference'/item['path'];dst.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(src,dst);restored.append(item) +assert len(restored)==2 +(r/'fisher_reference/restore_receipt.json').write_text(json.dumps(dict(repo='LJYAI/paper_revision',path=prefix,revision=revision,files=restored,verified=True),indent=2)+'\n') +load_dataset('Salesforce/wikitext','wikitext-2-raw-v1') +PY +python "$project/scripts/prepare_offline_ppl_cache.py" "$root" +while [[ ! -f "$root/EVAL_ASSETS_READY" ]]; do sleep 3; done +python - "$root" <<'PY' +import hashlib,sys +from pathlib import Path +r=Path(sys.argv[1]) +for name,h in [('opencompass5-data.tar.gz','b49605cc272cee94ddc177d2350e06d70f0f610926a2abf20c8ccd35ad8cd353'),('lmeval-cache-131.tar.gz','e5a319ed00b52181df3d80e47e4939e78fddd393803c29a9bcb63c2dd8a6d468')]: + assert hashlib.sha256((r/name).read_bytes()).hexdigest()==h +PY +mkdir -p "$root/eval_data" +tar -xzf "$root/opencompass5-data.tar.gz" -C "$root/eval_data" +tar -xzf "$root/lmeval-cache-131.tar.gz" -C "$root" +HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 python "$project/scripts/prepare_lmeval9_local_cache.py" "$root/lmeval_cache" --validate-local +touch "$root/EVAL_READY" +CUDA_VISIBLE_DEVICES=0 HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 \ + python "$project/scripts/qwen3_nofit_local_mse.py" --model "$model" --cache "$root/local_mse_reference" \ + --wikitext-cache "$root/wikitext2_cache" --prepare > "$root/local_mse_prepare.log" 2>&1 +touch "$root/COMMON_TEACHER_READY" +CUDA_VISIBLE_DEVICES=0 HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 \ + python "$project/scripts/qwen3_nofit_local_mse.py" --model "$model" --cache "$root/local_mse_reference" \ + --compact-stage "$root/fisher_reference/compact/stage_09" --output "$root/fisher_reference/local_mse.json" > "$root/fisher_mse.log" 2>&1 +touch "$root/INPUTS_READY" diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/common_lm_data.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/common_lm_data.py new file mode 100644 index 0000000000000000000000000000000000000000..bfa1733a8a6f38fe03dc714353fadc373029ee9c --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/common_lm_data.py @@ -0,0 +1,651 @@ +#!/usr/bin/env python3 +"""Shared LM dataset helpers for fair cross-method comparisons.""" + +from __future__ import annotations + +from dataclasses import dataclass +from typing import Dict, Iterable, Iterator, List, Optional, Tuple + +import torch + +from dm500_rows import configured_indices, dataset_revision_kwargs, select_exact_rows + +try: + from datasets import load_dataset + from datasets import Dataset as HFDataset +except Exception: # pragma: no cover - optional dependency + load_dataset = None + HFDataset = None + + +def _normalize_config(config: Optional[str]) -> Optional[str]: + if config is None: + return None + if config.strip().lower() in {"none", "null", "-"}: + return None + return config + + +def guess_text_field(dataset) -> str: + if hasattr(dataset, "column_names") and dataset.column_names: + if "text" in dataset.column_names: + return "text" + return dataset.column_names[0] + if hasattr(dataset, "features"): + names = list(dataset.features.keys()) + if "text" in names: + return "text" + if names: + return names[0] + return "text" + + +def normalize_dataset_name(name: str) -> str: + normalized = name.strip().lower() + aliases = { + "bookcorpus": "bookcorpus", + "boockcorpus": "bookcorpus", + "slimpajama": "slimpajama", + "dkyoon/slimpajama-6b": "slimpajama", + "slimorca": "slimorca", + "orca": "slimorca", + "open-orca/slimorca": "slimorca", + "fineweb": "fineweb", + "huggingfacefw/fineweb": "fineweb", + } + if normalized not in aliases: + raise ValueError(f"Unsupported dataset: {name}") + return aliases[normalized] + + +def resolve_dataset_spec( + name: str, + config: Optional[str] = None, + split: str = "train", +) -> Tuple[str, Optional[str], str]: + normalized = normalize_dataset_name(name) + if normalized == "bookcorpus": + return "bookcorpus", _normalize_config(config), split + if normalized == "slimpajama": + return "DKYoon/SlimPajama-6B", _normalize_config(config), split + if normalized == "slimorca": + return "Open-Orca/SlimOrca", _normalize_config(config), split + if normalized == "fineweb": + return "HuggingFaceFW/fineweb", _normalize_config(config), split + raise ValueError(f"Unsupported dataset: {name}") + + +def is_instruction_dataset(name: str) -> bool: + return normalize_dataset_name(name) == "slimorca" + + +def should_stream_dataset(name: str) -> bool: + return normalize_dataset_name(name) == "fineweb" + + +def load_resolved_dataset( + dataset_name: str, + hf_name: str, + hf_config: Optional[str], + hf_split: str, +): + kwargs = { + "split": hf_split, + **dataset_revision_kwargs(), + } + if should_stream_dataset(dataset_name): + kwargs["streaming"] = True + return load_dataset(hf_name, hf_config, **kwargs) + + +def _build_messages_text(messages: List[Dict[str, str]]) -> str: + chunks: List[str] = [] + for message in messages: + role = str(message.get("role", "")).strip().title() or "User" + content = str(message.get("content", "")).strip() + if content: + chunks.append(f"{role}: {content}") + return "\n\n".join(chunks) + + +def _build_slimorca_text(row: Dict[str, object]) -> Optional[str]: + conversations = row.get("conversations") + if not isinstance(conversations, list) or len(conversations) < 2: + return None + + start_idx = 0 + if str(conversations[0].get("from", "")).strip().lower() != "human": + start_idx = 1 + if start_idx + 1 >= len(conversations): + return None + + user_turn = conversations[start_idx] + assistant_turn = conversations[start_idx + 1] + if ( + str(user_turn.get("from", "")).strip().lower() != "human" + or str(assistant_turn.get("from", "")).strip().lower() != "gpt" + ): + return None + + user_content = str(user_turn.get("value", "")).strip() + assistant_content = str(assistant_turn.get("value", "")).strip() + if not user_content or not assistant_content: + return None + + messages = [ + {"role": "user", "content": user_content}, + {"role": "assistant", "content": assistant_content}, + ] + return _build_messages_text(messages) + + +def _build_slimorca_record(row: Dict[str, object]) -> Optional[Dict[str, object]]: + conversations = row.get("conversations") + if not isinstance(conversations, list) or len(conversations) < 2: + return None + + start_idx = 0 + if str(conversations[0].get("from", "")).strip().lower() != "human": + start_idx = 1 + if start_idx + 1 >= len(conversations): + return None + + user_turn = conversations[start_idx] + assistant_turn = conversations[start_idx + 1] + if ( + str(user_turn.get("from", "")).strip().lower() != "human" + or str(assistant_turn.get("from", "")).strip().lower() != "gpt" + ): + return None + + user_content = str(user_turn.get("value", "")).strip() + assistant_content = str(assistant_turn.get("value", "")).strip() + if not user_content or not assistant_content: + return None + + messages = [ + {"role": "user", "content": user_content}, + {"role": "assistant", "content": assistant_content}, + ] + return {"messages": messages, "text": _build_messages_text(messages)} + + +def _tokenize_instruction_record(record: Dict[str, object], tokenizer) -> List[int]: + chat_template = getattr(tokenizer, "chat_template", None) + if ( + "messages" in record + and hasattr(tokenizer, "apply_chat_template") + and chat_template + ): + ids = tokenizer.apply_chat_template( + record["messages"], + tokenize=True, + add_generation_prompt=False, + ) + else: + ids = tokenizer.encode(str(record.get("text", "")), add_special_tokens=False) + + if hasattr(ids, "input_ids"): + ids = ids.input_ids + if isinstance(ids, torch.Tensor): + return ids.tolist() + if isinstance(ids, list): + return ids + return list(ids) + + +def _round_up_to_multiple(value: int, multiple: int) -> int: + if multiple <= 1: + return value + return ((value + multiple - 1) // multiple) * multiple + + +def _sample_dataset_rows(dataset, target: int, seed: int) -> List[Dict[str, object]]: + if target <= 0: + return [] + exact = select_exact_rows(dataset, target) + if exact is not None: + return [row for row in exact] + try: + dataset = dataset.shuffle(seed=seed) + except Exception: + pass + + if hasattr(dataset, "__len__"): + limit = min(target, len(dataset)) + dataset = dataset.select(range(limit)) + return [row for row in dataset] + + rows = [] + for row in dataset: + rows.append(row) + if len(rows) >= target: + break + return rows + + +def _iter_dataset_rows(dataset, seed: int) -> Iterator[Dict[str, object]]: + exact = select_exact_rows(dataset) + if exact is not None: + for row in exact: + yield row + return + try: + dataset = dataset.shuffle(seed=seed) + except Exception: + pass + for row in dataset: + yield row + + +def load_named_texts( + dataset_name: str, + *, + config: Optional[str] = None, + split: str = "train", + text_field: Optional[str] = None, + num_samples: int = 0, + seed: int = 0, +) -> List[str]: + if load_dataset is None: + raise SystemExit("datasets is required for shared LM dataloaders") + + hf_name, hf_config, hf_split = resolve_dataset_spec(dataset_name, config, split) + dataset = load_resolved_dataset(dataset_name, hf_name, hf_config, hf_split) + rows = dataset if num_samples <= 0 else _sample_dataset_rows(dataset, num_samples, seed) + field = text_field or guess_text_field(dataset) + + texts: List[str] = [] + for row in rows: + if not isinstance(row, dict): + continue + if is_instruction_dataset(dataset_name): + value = _build_slimorca_text(row) + else: + value = row.get(field, None) + if isinstance(value, str) and value.strip(): + texts.append(value) + return texts + + +def build_token_chunks_from_rows( + rows: Iterable[Dict[str, object]], + *, + dataset_name: Optional[str] = None, + text_field: str, + tokenizer, + seq_len: int, + num_sequences: int = 0, + add_bos: bool = False, + max_rows: int = 0, +) -> List[torch.Tensor]: + chunks: List[torch.Tensor] = [] + buffer: List[int] = [] + limit = None if num_sequences <= 0 else num_sequences + rows_seen = 0 + + for row in rows: + if max_rows > 0 and rows_seen >= max_rows: + break + rows_seen += 1 + + if not isinstance(row, dict): + continue + if dataset_name is not None and is_instruction_dataset(dataset_name): + value = _build_slimorca_text(row) + else: + value = row.get(text_field, None) + if not isinstance(value, str) or not value.strip(): + continue + + ids = tokenizer.encode(value, add_special_tokens=False) + if add_bos and tokenizer.bos_token_id is not None: + ids = [tokenizer.bos_token_id] + ids + if not ids: + continue + + buffer.extend(ids) + while len(buffer) >= seq_len and (limit is None or len(chunks) < limit): + chunk = buffer[:seq_len] + buffer = buffer[seq_len:] + chunks.append(torch.tensor(chunk, dtype=torch.long)) + if limit is not None and len(chunks) >= limit: + break + + return chunks + + +def collect_texts_from_rows( + rows: Iterable[Dict[str, object]], + *, + dataset_name: Optional[str] = None, + text_field: str, + tokenizer, + target_tokens: int = 0, + add_bos: bool = False, + max_rows: int = 0, +) -> List[str]: + texts: List[str] = [] + token_count = 0 + rows_seen = 0 + + for row in rows: + if max_rows > 0 and rows_seen >= max_rows: + break + rows_seen += 1 + + if not isinstance(row, dict): + continue + if dataset_name is not None and is_instruction_dataset(dataset_name): + value = _build_slimorca_text(row) + else: + value = row.get(text_field, None) + if not isinstance(value, str) or not value.strip(): + continue + + texts.append(value) + if target_tokens > 0: + ids = tokenizer.encode(value, add_special_tokens=False) + if add_bos and tokenizer.bos_token_id is not None: + ids = [tokenizer.bos_token_id] + ids + token_count += len(ids) + if token_count >= target_tokens: + break + + return texts + + +def build_token_chunks( + texts: Iterable[str], + tokenizer, + seq_len: int, + num_sequences: int = 0, + add_bos: bool = False, +) -> List[torch.Tensor]: + chunks: List[torch.Tensor] = [] + buffer: List[int] = [] + limit = None if num_sequences <= 0 else num_sequences + + for text in texts: + ids = tokenizer.encode(text, add_special_tokens=False) + if add_bos and tokenizer.bos_token_id is not None: + ids = [tokenizer.bos_token_id] + ids + if not ids: + continue + + buffer.extend(ids) + while len(buffer) >= seq_len and (limit is None or len(chunks) < limit): + chunk = buffer[:seq_len] + buffer = buffer[seq_len:] + chunks.append(torch.tensor(chunk, dtype=torch.long)) + if limit is not None and len(chunks) >= limit: + break + + return chunks + + +class TokenChunkDataset(torch.utils.data.Dataset): + def __init__(self, chunks: List[torch.Tensor]) -> None: + self.chunks = chunks + + def __len__(self) -> int: + return len(self.chunks) + + def __getitem__(self, idx: int) -> Dict[str, torch.Tensor]: + input_ids = self.chunks[idx] + attention_mask = torch.ones_like(input_ids) + return { + "input_ids": input_ids, + "attention_mask": attention_mask, + "labels": input_ids.clone(), + } + + +class TokenOnlyDataset(torch.utils.data.Dataset): + def __init__(self, chunks: List[torch.Tensor]) -> None: + self.chunks = chunks + + def __len__(self) -> int: + return len(self.chunks) + + def __getitem__(self, idx: int) -> torch.Tensor: + return self.chunks[idx] + + +class TokenInputMaskDataset(torch.utils.data.Dataset): + def __init__(self, chunks: List[torch.Tensor]) -> None: + self.chunks = chunks + + def __len__(self) -> int: + return len(self.chunks) + + def __getitem__(self, idx: int) -> Dict[str, torch.Tensor]: + input_ids = self.chunks[idx] + return { + "input_ids": input_ids, + "attention_mask": torch.ones_like(input_ids), + } + + +@dataclass +class SharedLMDataSpec: + dataset: str + config: Optional[str] = None + split: str = "train" + text_field: Optional[str] = None + num_samples: int = 0 + seq_len: int = 2048 + num_sequences: int = 0 + target_tokens: int = 0 + batch_size: int = 1 + shuffle: bool = False + num_workers: int = 0 + seed: int = 0 + add_bos: bool = False + + +def build_chunks(spec: SharedLMDataSpec, tokenizer) -> List[torch.Tensor]: + if load_dataset is None: + raise SystemExit("datasets is required for shared LM dataloaders") + + hf_name, hf_config, hf_split = resolve_dataset_spec(spec.dataset, spec.config, spec.split) + dataset = load_resolved_dataset(spec.dataset, hf_name, hf_config, hf_split) + + target_sequences = spec.num_sequences + if spec.target_tokens > 0: + token_sequences = (spec.target_tokens + spec.seq_len - 1) // spec.seq_len + target_sequences = max(target_sequences, token_sequences) + row_limit = spec.num_samples if target_sequences <= 0 else 0 + + rows = _iter_dataset_rows(dataset, spec.seed) + text_field = spec.text_field or guess_text_field(dataset) + chunks = build_token_chunks_from_rows( + rows, + dataset_name=spec.dataset, + text_field=text_field, + tokenizer=tokenizer, + seq_len=spec.seq_len, + num_sequences=target_sequences, + add_bos=spec.add_bos, + max_rows=row_limit, + ) + return chunks + + +def build_dataloader(spec: SharedLMDataSpec, tokenizer) -> torch.utils.data.DataLoader: + chunks = build_chunks(spec, tokenizer) + dataset = TokenChunkDataset(chunks) + return torch.utils.data.DataLoader( + dataset, + batch_size=spec.batch_size, + shuffle=spec.shuffle, + num_workers=spec.num_workers, + ) + + +def build_text_dataloader(spec: SharedLMDataSpec, tokenizer) -> torch.utils.data.DataLoader: + if load_dataset is None: + raise SystemExit("datasets is required for shared LM dataloaders") + + hf_name, hf_config, hf_split = resolve_dataset_spec(spec.dataset, spec.config, spec.split) + dataset = load_resolved_dataset(spec.dataset, hf_name, hf_config, hf_split) + rows = _iter_dataset_rows(dataset, spec.seed) + text_field = spec.text_field or guess_text_field(dataset) + row_limit = spec.num_samples + texts = collect_texts_from_rows( + rows, + dataset_name=spec.dataset, + text_field=text_field, + tokenizer=tokenizer, + target_tokens=spec.target_tokens, + add_bos=spec.add_bos, + max_rows=row_limit, + ) + return torch.utils.data.DataLoader( + texts, + batch_size=spec.batch_size, + shuffle=spec.shuffle, + num_workers=spec.num_workers, + drop_last=True, + ) + + +def build_uidl_post_train_dataloader( + spec: SharedLMDataSpec, + tokenizer, +) -> torch.utils.data.DataLoader: + dataset = TokenChunkDataset(build_chunks(spec, tokenizer)) + return torch.utils.data.DataLoader( + dataset, + batch_size=spec.batch_size, + shuffle=spec.shuffle, + num_workers=spec.num_workers, + ) + + +def build_uidl_similarity_dataloader( + spec: SharedLMDataSpec, + tokenizer, +) -> torch.utils.data.DataLoader: + dataset = TokenInputMaskDataset(build_chunks(spec, tokenizer)) + return torch.utils.data.DataLoader( + dataset, + batch_size=spec.batch_size, + shuffle=spec.shuffle, + num_workers=spec.num_workers, + ) + + +def build_shortened_llm_dataloader( + spec: SharedLMDataSpec, + tokenizer, +) -> torch.utils.data.DataLoader: + dataset = TokenOnlyDataset(build_chunks(spec, tokenizer)) + return torch.utils.data.DataLoader( + dataset, + batch_size=spec.batch_size, + shuffle=spec.shuffle, + num_workers=spec.num_workers, + ) + + +def build_shortened_llm_examples(spec: SharedLMDataSpec, tokenizer) -> torch.Tensor: + chunks = build_chunks(spec, tokenizer) + if not chunks: + return torch.empty((0, spec.seq_len), dtype=torch.long) + return torch.stack(chunks, dim=0) + + +def build_llmpruner_examples(spec: SharedLMDataSpec, tokenizer) -> torch.Tensor: + chunks = build_chunks(spec, tokenizer) + if not chunks: + return torch.empty((0, spec.seq_len), dtype=torch.long) + return torch.stack(chunks, dim=0) + + +def build_replaceme_dataloader( + spec: SharedLMDataSpec, + tokenizer, +) -> torch.utils.data.DataLoader: + return build_text_dataloader(spec, tokenizer) + + +def build_hf_causal_dataset(spec: SharedLMDataSpec, tokenizer): + if HFDataset is None: + raise SystemExit("datasets is required for shared LM dataloaders") + + if is_instruction_dataset(spec.dataset): + if load_dataset is None: + raise SystemExit("datasets is required for shared LM dataloaders") + + hf_name, hf_config, hf_split = resolve_dataset_spec(spec.dataset, spec.config, spec.split) + dataset = load_resolved_dataset(spec.dataset, hf_name, hf_config, hf_split) + rows = dataset if spec.num_samples <= 0 else _sample_dataset_rows(dataset, spec.num_samples, spec.seed) + + records: List[Dict[str, object]] = [] + tokenized_records: List[List[int]] = [] + max_observed_len = 0 + for row in rows: + if not isinstance(row, dict): + continue + record = _build_slimorca_record(row) + if record is None: + continue + ids = _tokenize_instruction_record(record, tokenizer) + if not ids: + continue + ids = ids[: spec.seq_len] + if not ids: + continue + records.append(record) + tokenized_records.append(ids) + max_observed_len = max(max_observed_len, len(ids)) + + if not tokenized_records: + raise SystemExit( + f"No instruction samples built for dataset={spec.dataset} split={spec.split}." + ) + + if configured_indices() is not None: + effective_max_len = spec.seq_len + else: + effective_max_len = min(spec.seq_len, max_observed_len) + effective_max_len = min(spec.seq_len, _round_up_to_multiple(effective_max_len, 8)) + print( + "[common_lm_data] " + f"dataset={spec.dataset} split={spec.split} samples={len(tokenized_records)} " + f"max_observed_len={max_observed_len} effective_max_len={effective_max_len}" + ) + pad_id = tokenizer.pad_token_id + if pad_id is None: + pad_id = tokenizer.eos_token_id or 0 + + input_ids_payload: List[List[int]] = [] + attention_masks_payload: List[List[int]] = [] + labels_payload: List[List[int]] = [] + for ids in tokenized_records: + ids = ids[:effective_max_len] + attention_mask = [1] * len(ids) + if len(ids) < effective_max_len: + pad_len = effective_max_len - len(ids) + ids = ids + [pad_id] * pad_len + attention_mask = attention_mask + [0] * pad_len + input_ids_payload.append(ids) + attention_masks_payload.append(attention_mask) + labels_payload.append(list(ids)) + + return HFDataset.from_dict( + { + "input_ids": input_ids_payload, + "attention_mask": attention_masks_payload, + "labels": labels_payload, + } + ) + + chunks = build_chunks(spec, tokenizer) + payload = { + "input_ids": [chunk.tolist() for chunk in chunks], + "attention_mask": [torch.ones_like(chunk).tolist() for chunk in chunks], + "labels": [chunk.tolist() for chunk in chunks], + } + return HFDataset.from_dict(payload) diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/dm500_rows.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/dm500_rows.py new file mode 100644 index 0000000000000000000000000000000000000000..97705f7f88004eec5fa66a40c7dfd8863c2abdf4 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/dm500_rows.py @@ -0,0 +1,130 @@ +"""Shared exact-row selection for data-matched experiments.""" + +from __future__ import annotations + +import json +import os +import hashlib +from pathlib import Path +from typing import Any, Optional + + +def _manifest_canonical_row(value: Any) -> Any: + """Canonicalize rows for manifest hash validation. + + Hugging Face datasets may materialize nullable struct fields that were absent + when a manifest was generated. SlimOrca's `conversations[*].weight: null` is + such a schema-only field and is not consumed by the ABPrune/ReplaceMe text + builders. Dropping only null `weight` fields preserves text identity while + keeping manifest validation strict for actual content changes. + """ + + if isinstance(value, dict): + return { + key: _manifest_canonical_row(child) + for key, child in value.items() + if not (key == "weight" and child is None) + } + if isinstance(value, list): + return [_manifest_canonical_row(child) for child in value] + return value + + +def _json_hash(row: Any) -> str: + payload = json.dumps( + row, + ensure_ascii=False, + sort_keys=True, + separators=(",", ":"), + ).encode("utf-8") + return hashlib.sha256(payload).hexdigest() + + +def _canonical_hash(row: Any) -> str: + return _json_hash(_manifest_canonical_row(row)) + + +def _load_manifest(path: str) -> tuple[list[int], dict[int, str]]: + payload = json.loads(Path(path).read_text(encoding="utf-8")) + values = payload.get("indices") if isinstance(payload, dict) else payload + if not isinstance(values, list) or not values: + raise ValueError(f"indices manifest is empty or invalid: {path}") + indices = [int(value) for value in values] + if len(indices) != len(set(indices)) or min(indices) < 0: + raise ValueError(f"indices manifest has duplicates or negative values: {path}") + expected_hashes: dict[int, str] = {} + if isinstance(payload, dict): + records = payload.get("records") + if isinstance(records, list): + for record in records: + if not isinstance(record, dict): + continue + raw_index = record.get("raw_index") + content_sha256 = record.get("content_sha256") + if raw_index is None or not content_sha256: + continue + expected_hashes[int(raw_index)] = str(content_sha256) + return indices, expected_hashes + + +def _configured_path(manifest_env_var: str) -> str: + path = os.getenv(manifest_env_var, "").strip() + if not path and manifest_env_var != "ABPRUNE_DATA_INDICES_FILE": + path = os.getenv("ABPRUNE_DATA_INDICES_FILE", "").strip() + return path + + +def configured_indices( + manifest_env_var: str = "ABPRUNE_DATA_INDICES_FILE", +) -> Optional[list[int]]: + path = _configured_path(manifest_env_var) + if not path: + return None + return _load_manifest(path)[0] + + +def select_rows_from_manifest(dataset, manifest_path: str, target: int = 0): + indices, expected_hashes = _load_manifest(manifest_path) + if target > 0: + if target > len(indices): + raise ValueError( + f"requested {target} rows but manifest contains {len(indices)}" + ) + indices = indices[:target] + if hasattr(dataset, "__len__") and indices and max(indices) >= len(dataset): + raise ValueError( + f"manifest index {max(indices)} exceeds dataset length {len(dataset)}" + ) + if not hasattr(dataset, "select"): + raise TypeError("exact DM500 row selection requires a dataset.select implementation") + selected = dataset.select(indices) + if expected_hashes: + for raw_index, row in zip(indices, selected): + expected = expected_hashes.get(raw_index) + if expected is None: + continue + raw_actual = _json_hash(row) + canonical_actual = _canonical_hash(row) + if expected not in {raw_actual, canonical_actual}: + raise ValueError( + "manifest content hash mismatch for raw_index " + f"{raw_index}: expected {expected}, got raw={raw_actual}, " + f"canonical={canonical_actual}" + ) + return selected + + +def select_exact_rows( + dataset, + target: int = 0, + manifest_env_var: str = "ABPRUNE_DATA_INDICES_FILE", +): + path = _configured_path(manifest_env_var) + if not path: + return None + return select_rows_from_manifest(dataset, path, target=target) + + +def dataset_revision_kwargs() -> dict[str, str]: + revision = os.getenv("ABPRUNE_DATASET_REVISION", "").strip() + return {"revision": revision} if revision else {} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/eval_llama31_8b_12bench.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/eval_llama31_8b_12bench.py new file mode 100644 index 0000000000000000000000000000000000000000..8bbc8713a4d0f04209bec7ee454a24744f9d3bb8 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/eval_llama31_8b_12bench.py @@ -0,0 +1,194 @@ +#!/usr/bin/env python3 +"""Evaluate the lm-eval portion of the requested Llama benchmark suite. + +RACE-H/M, C3, CMNLI, and CHID are evaluated with their canonical OpenCompass +PPL task definitions by the companion launcher. This script handles the +remaining eight tasks plus full zero-shot MMLU and CMMLU. +""" + +from __future__ import annotations + +import argparse +import json +import os +from pathlib import Path +from typing import Any + +import torch +from transformers import AutoModelForCausalLM, AutoTokenizer + + +TASKS = ( + "piqa", + "winogrande", + "hellaswag", + "arc_challenge", + "arc_easy", + "openbookqa", + "sciq", + "mmlu", + "cmmlu", +) + +# Use normalized accuracy where the standard harness exposes it. The +# extraction code falls back to plain accuracy for tasks/versions without it. +PREFERRED_METRICS = { + "piqa": "acc_norm,none", + "hellaswag": "acc_norm,none", + "arc_challenge": "acc_norm,none", + "arc_easy": "acc_norm,none", + "openbookqa": "acc_norm,none", + "sciq": "acc_norm,none", +} + + +def _score(task: str, result: dict[str, Any]) -> tuple[str, float]: + preferred = PREFERRED_METRICS.get(task, "acc,none") + candidates = (preferred, "acc_norm,none", "acc,none") + for metric in candidates: + value = result.get(metric) + if value is not None: + return metric, float(value) + available = sorted(key for key in result if "," in key and not key.endswith("_stderr,none")) + raise KeyError(f"No supported accuracy metric for {task}; available={available}") + + +def _load_model(args: argparse.Namespace): + if args.compact_stage is None: + model = AutoModelForCausalLM.from_pretrained( + args.model, + revision=args.revision, + torch_dtype=torch.bfloat16, + attn_implementation="eager", + local_files_only=args.local_files_only, + ).cuda().eval() + tokenizer = AutoTokenizer.from_pretrained( + args.model, + revision=args.revision, + local_files_only=args.local_files_only, + ) + return model, tokenizer + + if args.cycle is None or args.anchor is None: + raise ValueError("--compact-stage requires --cycle and --anchor") + from fusegpt.abprune_stagewise_geometry import load_compact_model + + model = load_compact_model( + args.model, + args.compact_stage, + cycle=args.cycle, + anchor=args.anchor, + dtype=torch.bfloat16, + device=torch.device("cuda"), + attn="eager", + revision=args.revision, + ) + tokenizer = AutoTokenizer.from_pretrained( + args.model, revision=args.revision, local_files_only=args.local_files_only) + return model, tokenizer + + +def main() -> None: + parser = argparse.ArgumentParser() + parser.add_argument("--model", required=True) + parser.add_argument("--revision", default=None) + parser.add_argument("--local-files-only", action="store_true") + parser.add_argument("--compact-stage", type=Path, default=None) + parser.add_argument("--cycle", type=int, default=None) + parser.add_argument("--anchor", type=int, default=None) + parser.add_argument("--batch-size", default="auto:4") + parser.add_argument("--limit", type=float, default=None) + parser.add_argument("--output", type=Path, required=True) + parser.add_argument("--dataset-cache", type=Path, default=None) + parser.add_argument("--tasks", nargs="+", choices=TASKS, default=list(TASKS), + help="Evaluate a subset without repeating already scored tasks") + args = parser.parse_args() + if len(set(args.tasks)) != len(args.tasks): + parser.error("--tasks must not contain duplicates") + + # CMMLU is still distributed through a Hugging Face dataset loading + # script. Opt in explicitly so non-interactive experiment jobs do not + # stop at the datasets trust prompt. + os.environ.setdefault("HF_DATASETS_TRUST_REMOTE_CODE", "1") + + from lm_eval import evaluator + from lm_eval.models.huggingface import HFLM + + if args.dataset_cache is not None: + from prepare_lmeval9_local_cache import install_local_loader + install_local_loader(args.dataset_cache) + + model, tokenizer = _load_model(args) + model.config.use_cache = False + if getattr(model, "generation_config", None) is not None: + model.generation_config.use_cache = False + for layer_idx, layer in enumerate(model.model.layers): + if hasattr(layer, "self_attn") and hasattr(layer.self_attn, "layer_idx"): + layer.self_attn.layer_idx = layer_idx + + lm = HFLM( + pretrained=model, + tokenizer=tokenizer, + backend="causal", + batch_size=args.batch_size, + ) + raw = evaluator.simple_evaluate( + model=lm, + tasks=args.tasks, + num_fewshot=0, + batch_size=args.batch_size, + random_seed=0, + numpy_random_seed=1234, + torch_random_seed=1234, + fewshot_random_seed=1234, + bootstrap_iters=0, + limit=args.limit, + ) + + scores: dict[str, float] = {} + metrics: dict[str, str] = {} + for task in args.tasks: + source = raw.get("groups", {}) if task in {"mmlu", "cmmlu"} else raw["results"] + if task not in source: + raise KeyError( + f"Requested task {task!r} missing from lm-eval results: " + f"results={sorted(raw['results'])}, groups={sorted(raw.get('groups', {}))}" + ) + metric, value = _score(task, source[task]) + metrics[task] = metric + scores[task] = value + + report = { + "model": args.model, + "revision": args.revision, + "compact_stage": str(args.compact_stage) if args.compact_stage else None, + "cycle": args.cycle, + "anchor": args.anchor, + "tasks": args.tasks, + "num_fewshot": 0, + "batch_size": args.batch_size, + "limit": args.limit, + "dataset_cache": str(args.dataset_cache) if args.dataset_cache else None, + "preferred_metrics": metrics, + "task_scores": scores, + "macro_mean_all_rows": sum(scores.values()) / len(scores), + "lm_eval_results": raw["results"], + "lm_eval_groups": raw.get("groups"), + "lm_eval_versions": raw.get("versions"), + "lm_eval_config": raw.get("config"), + } + args.output.parent.mkdir(parents=True, exist_ok=True) + args.output.write_text( + json.dumps(report, indent=2, ensure_ascii=False, default=str) + "\n", + encoding="utf-8", + ) + print( + json.dumps( + {"task_scores": scores, "macro_mean_all_rows": report["macro_mean_all_rows"]}, + indent=2, + ) + ) + + +if __name__ == "__main__": + main() diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/eval_llama31_fit_ablation_one.sh b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/eval_llama31_fit_ablation_one.sh new file mode 100644 index 0000000000000000000000000000000000000000..b64dcaa488d68367fedff793ba3a68caa6919491 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/eval_llama31_fit_ablation_one.sh @@ -0,0 +1,63 @@ +#!/usr/bin/env bash +set -euo pipefail +project="$1"; root="$2"; model="$3"; data="$4"; python="$5" +anchor="$6"; cycles="$7"; gpu="$8" +stage="$root/compact/stage_$(printf '%02d' "$cycles")" +export HF_HOME=/workspace/.hf_home HF_TOKEN_PATH=/root/.cache/huggingface/token +export HF_DATASETS_CACHE=/workspace/.hf_datasets36 HF_DATASETS_TRUST_REMOTE_CODE=1 +export TOKENIZERS_PARALLELISM=false PYTHONUNBUFFERED=1 PYTHONPATH="$project/src" +revision="${MODEL_REVISION:-49e3418fbbbca6ecbdf9608b4d22e5a407081db4}" +if [[ -n "${LMEVAL_LOCAL_CACHE:-}" ]]; then + export HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 + [[ -d "$model" ]] || { echo 'Offline bench requires a local model directory'; exit 1; } + "$python" "$project/scripts/prepare_lmeval9_local_cache.py" "$LMEVAL_LOCAL_CACHE" --validate-local + for file in race/test/high.jsonl race/test/middle.jsonl CLUE/C3/dev_0.json CLUE/cmnli/cmnli_public/dev.json FewCLUE/chid/dev_few_all.json; do + [[ -s "$data/$file" ]] || { echo "Offline OpenCompass input missing: $file"; exit 1; } + done + echo 'STRICT_OFFLINE_BENCH_PREFLIGHT_OK' +fi +opencompass_gpu="$gpu"; lmeval_gpu="${9:-$gpu}" +if [[ -f "$root/eval/gpu_assignment.json" ]]; then + read -r opencompass_gpu lmeval_gpu < <("$python" - "$root/eval/gpu_assignment.json" <<'PY' +import json, sys +assignment = json.load(open(sys.argv[1])) +values = [assignment[key] for key in ("opencompass_gpu", "lmeval_gpu")] +assert all(type(value) is int and value >= 0 for value in values) +print(*values) +PY + ) +fi +run_opencompass() { + [[ -f "$root/eval/final_opencompass5.json" ]] && return 0 + CUDA_VISIBLE_DEVICES="$opencompass_gpu" "$python" "$project/scripts/eval_opencompass_ppl_fast.py" \ + --model "$model" --revision "$revision" --tokenizer "$model" \ + --compact-stage "$stage" --cycle "$cycles" --anchor "$anchor" \ + --data-root "$data" --max-batch 32 --token-budget 8192 \ + --output "$root/eval/final_opencompass5.json" +} +run_lmeval() { + [[ -f "$root/eval/final_lmeval9.json" ]] && return 0 + local cache_args=() + if [[ -n "${LMEVAL_LOCAL_CACHE:-}" ]]; then + [[ -f "$LMEVAL_LOCAL_CACHE/manifest.json" ]] || return 1 + cache_args=(--dataset-cache "$LMEVAL_LOCAL_CACHE" --local-files-only) + export HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 + fi + CUDA_VISIBLE_DEVICES="$lmeval_gpu" "$python" "$project/scripts/eval_llama31_8b_12bench.py" \ + --model "$model" --revision "$revision" --compact-stage "$stage" \ + --cycle "$cycles" --anchor "$anchor" --batch-size auto:4 \ + --output "$root/eval/final_lmeval9.json" "${cache_args[@]}" +} +if [[ "$opencompass_gpu" != "$lmeval_gpu" ]]; then + echo "Parallel evaluation: OpenCompass GPU=$opencompass_gpu; lm-eval GPU=$lmeval_gpu" + run_opencompass >> "$root/logs/eval_opencompass.log" 2>&1 & oc_pid=$! + run_lmeval >> "$root/logs/eval_lmeval.log" 2>&1 & lm_pid=$! + status=0 + wait "$oc_pid" || status=1 + wait "$lm_pid" || status=1 + if ((status)); then exit 1; fi +else + run_opencompass >> "$root/logs/eval14.log" 2>&1 + run_lmeval >> "$root/logs/eval14.log" 2>&1 +fi +"$python" "$project/scripts/aggregate_transport_rho_fit_14bench.py" "$root" diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/eval_opencompass_ppl_fast.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/eval_opencompass_ppl_fast.py new file mode 100644 index 0000000000000000000000000000000000000000..e32bb5fdc36375a58debd2042f8a60c706ab3ef6 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/eval_opencompass_ppl_fast.py @@ -0,0 +1,231 @@ +#!/usr/bin/env python3 +"""Fast, equivalent evaluator for selected OpenCompass zero-shot PPL tasks. + +The prompts, labels, split choices, full-prompt mean-CE scoring, and lowest-PPL +decision rule mirror OpenCompass 0.5.4's canonical configs for RACE, C3, +CMNLI, and CHID. Unlike the stock runner, this evaluator disables KV cache +and length-batches all choices, which matters substantially on 40 GB GPUs. +""" + +from __future__ import annotations + +import argparse +import json +from pathlib import Path +from typing import Iterable + +import torch +import torch.nn.functional as F +from transformers import AutoModelForCausalLM, AutoTokenizer + + +def read_jsonl(path: Path) -> Iterable[dict]: + with path.open("r", encoding="utf-8") as stream: + for line in stream: + yield json.loads(line) + + +def race(path: Path) -> tuple[list[list[str]], list[int]]: + prompts, golds = [], [] + for row in read_jsonl(path): + human = ( + "Read the article, and answer the question by replying A, B, C or D.\n\n" + f"Article:\n{row['article']}\n\nQ: {row['question']}\n\n" + f"A. {row['options'][0]}\nB. {row['options'][1]}\n" + f"C. {row['options'][2]}\nD. {row['options'][3]}" + ) + prompts.append([human + "\n" + f"A: {answer}" for answer in "ABCD"]) + golds.append("ABCD".index(row["answer"])) + return prompts, golds + + +def c3(path: Path) -> tuple[list[list[str]], list[int]]: + prompts, golds = [], [] + rows = json.loads(path.read_text(encoding="utf-8")) + for row in rows: + content = " ".join("".join(paragraph) for paragraph in row[0]) + for question in row[1]: + choices = list(question["choice"]) + golds.append(choices.index(question["answer"])) + while len(choices) < 4: + choices.append(choices[0]) + human = f"文章:{content}\n问题:{question['question']}" + prompts.append([human + "\n" + f"答案:{choice}" for choice in choices[:4]]) + return prompts, golds + + +def cmnli(path: Path) -> tuple[list[list[str]], list[int]]: + labels = ("contradiction", "entailment", "neutral") + verbalizers = ("矛盾", "蕴含", "无关") + prompts, golds = [], [] + for row in read_jsonl(path): + if row["label"] == "-": + continue + human = ( + f"语句一:“{row['sentence1']}”\n语句二:“{row['sentence2']}”\n" + "请问这两句话是什么关系?" + ) + prompts.append([human + "\n" + word for word in verbalizers]) + golds.append(labels.index(row["label"])) + return prompts, golds + + +def chid(path: Path) -> tuple[list[list[str]], list[int]]: + prompts, golds = [], [] + for row in read_jsonl(path): + candidates = [row["content"].replace("#idiom#", candidate) for candidate in row["candidates"]] + prompts.append([ + f"以下句子是否通顺?\n{content}\n这个句子是通顺的。" for content in candidates + ]) + golds.append(int(row["answer"])) + return prompts, golds + + +def score_task(model, tokenizer, choices: list[list[str]], golds: list[int], max_batch: int, + token_budget: int) -> dict: + flat = [(sample_idx, choice_idx, prompt) + for sample_idx, row in enumerate(choices) + for choice_idx, prompt in enumerate(row)] + encoded = tokenizer( + [item[2] for item in flat], + add_special_tokens=True, + padding=False, + truncation=True, + max_length=model.config.max_position_embeddings, + )["input_ids"] + order = sorted(range(len(flat)), key=lambda idx: len(encoded[idx]), reverse=True) + losses = [0.0] * len(flat) + cursor = 0 + while cursor < len(order): + longest = len(encoded[order[cursor]]) + batch_size = min(max_batch, max(1, token_budget // longest), len(order) - cursor) + while True: + batch_indices = order[cursor:cursor + batch_size] + max_len = max(len(encoded[idx]) for idx in batch_indices) + input_ids = torch.full( + (batch_size, max_len), tokenizer.pad_token_id, dtype=torch.long, device="cuda" + ) + attention = torch.zeros((batch_size, max_len), dtype=torch.long, device="cuda") + for row_idx, flat_idx in enumerate(batch_indices): + values = torch.tensor(encoded[flat_idx], dtype=torch.long, device="cuda") + input_ids[row_idx, : len(values)] = values + attention[row_idx, : len(values)] = 1 + try: + with torch.inference_mode(): + logits = model(input_ids=input_ids, attention_mask=attention, use_cache=False).logits + token_loss = F.cross_entropy( + logits[:, :-1].float().reshape(-1, logits.shape[-1]), + input_ids[:, 1:].reshape(-1), + reduction="none", + ).view(batch_size, -1) + # OpenCompass divides by the number of non-padding input + # tokens (including BOS), while scoring shifted labels. + sequence_loss = ( + token_loss * attention[:, 1:] + ).sum(dim=1) / attention.sum(dim=1) + break + except torch.OutOfMemoryError: + del input_ids, attention + torch.cuda.empty_cache() + if batch_size == 1: + raise + batch_size = max(1, batch_size // 2) + for flat_idx, value in zip(batch_indices, sequence_loss.tolist()): + losses[flat_idx] = value + cursor += batch_size + if cursor % 1000 < batch_size or cursor == len(order): + print(f"choices={cursor}/{len(order)}", flush=True) + + score_rows = [[0.0] * len(row) for row in choices] + for flat_idx, (sample_idx, choice_idx, _) in enumerate(flat): + score_rows[sample_idx][choice_idx] = losses[flat_idx] + predictions = [min(range(len(row)), key=row.__getitem__) for row in score_rows] + correct = sum(prediction == gold for prediction, gold in zip(predictions, golds)) + return { + "accuracy": correct / len(golds), + "correct": correct, + "samples": len(golds), + "choices": len(flat), + } + + +def main() -> None: + parser = argparse.ArgumentParser() + parser.add_argument("--model", required=True) + parser.add_argument("--revision", default=None) + parser.add_argument("--tokenizer", required=True) + parser.add_argument("--compact-stage", type=Path, default=None) + parser.add_argument("--cycle", type=int, default=None) + parser.add_argument("--anchor", type=int, default=None) + parser.add_argument("--data-root", type=Path, required=True) + parser.add_argument("--output", type=Path, required=True) + parser.add_argument("--max-batch", type=int, default=32) + parser.add_argument("--token-budget", type=int, default=8192) + parser.add_argument("--limit", type=int, default=None) + args = parser.parse_args() + + tokenizer = AutoTokenizer.from_pretrained(args.tokenizer, local_files_only=True) + if tokenizer.pad_token_id is None: + tokenizer.pad_token_id = tokenizer.eos_token_id + tokenizer.padding_side = "right" + if args.compact_stage is None: + model = AutoModelForCausalLM.from_pretrained( + args.model, + revision=args.revision, + torch_dtype=torch.bfloat16, + attn_implementation="sdpa", + local_files_only=True, + ).cuda().eval() + else: + if args.cycle is None or args.anchor is None: + raise ValueError("--compact-stage requires --cycle and --anchor") + from fusegpt.abprune_stagewise_geometry import load_compact_model + + model = load_compact_model( + args.model, + args.compact_stage, + cycle=args.cycle, + anchor=args.anchor, + dtype=torch.bfloat16, + device=torch.device("cuda"), + attn="sdpa", + revision=args.revision, + ) + model.config.use_cache = False + + datasets = { + "race-middle": race(args.data_root / "race/test/middle.jsonl"), + "race-high": race(args.data_root / "race/test/high.jsonl"), + "C3": c3(args.data_root / "CLUE/C3/dev_0.json"), + "cmnli": cmnli(args.data_root / "CLUE/cmnli/cmnli_public/dev.json"), + "chid-dev": chid(args.data_root / "FewCLUE/chid/dev_few_all.json"), + } + results = {} + for name, (choices, golds) in datasets.items(): + if args.limit is not None: + choices, golds = choices[: args.limit], golds[: args.limit] + print(f"task={name} samples={len(golds)}", flush=True) + results[name] = score_task( + model, tokenizer, choices, golds, args.max_batch, args.token_budget + ) + print(json.dumps({name: results[name]}, ensure_ascii=False), flush=True) + + report = { + "model": args.model, + "revision": args.revision, + "compact_stage": str(args.compact_stage) if args.compact_stage else None, + "cycle": args.cycle, + "anchor": args.anchor, + "tokenizer": args.tokenizer, + "protocol": "OpenCompass 0.5.4 canonical PPL prompts; full-prompt mean CE; lowest PPL", + "max_batch": args.max_batch, + "token_budget": args.token_budget, + "limit": args.limit, + "results": results, + } + args.output.parent.mkdir(parents=True, exist_ok=True) + args.output.write_text(json.dumps(report, indent=2, ensure_ascii=False) + "\n", encoding="utf-8") + + +if __name__ == "__main__": + main() diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/evaluate_abprune_compact_ppl.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/evaluate_abprune_compact_ppl.py new file mode 100644 index 0000000000000000000000000000000000000000..40ba37eaa42227fb5065410015f6407e126237e1 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/evaluate_abprune_compact_ppl.py @@ -0,0 +1,187 @@ +#!/usr/bin/env python3 +"""Evaluate an unscaled or residual-scaled compact ABPrune checkpoint.""" + +from __future__ import annotations + +import argparse +import json +from contextlib import ExitStack +from pathlib import Path +import sys + +from offline_eval_policy import apply_run_offline_policy + +OFFLINE_POLICY = apply_run_offline_policy(sys.argv) + +import torch + +from evaluate_hchc_wikitext2_ppl import evaluate_perplexity, packed_wikitext_tokens +from fusegpt.abprune_residual_scale import residual_scale_hook +from fusegpt.abprune_compact import compact_scale_targets, read_compact_metadata +from fusegpt.abprune_stagewise_geometry import load_compact_model +from fusegpt.hadamard_channel_fusion import linear_patch_hook + + +def main() -> None: + parser = argparse.ArgumentParser() + parser.add_argument("--model", required=True) + parser.add_argument("--revision", required=True) + parser.add_argument("--compact-stage", type=Path, required=True) + parser.add_argument("--output", type=Path, required=True) + parser.add_argument("--anchor", type=int, default=None) + parser.add_argument("--cycles", type=int, required=True) + parser.add_argument("--original-layers", type=int, required=True) + parser.add_argument("--seq-len", type=int, default=2048) + parser.add_argument("--batch-size", type=int, default=4) + parser.add_argument("--device", default="cuda") + parser.add_argument("--apply-post-merge-scale", action="store_true") + parser.add_argument("--linear-patch", type=Path, default=None) + args = parser.parse_args() + + # Long training supervisors may be asked to stop after model construction. + # A run-local marker makes that request durable without killing training. + run_root = args.output.parent.parent + if (run_root / "DEFER_EVAL").exists(): + print(f"[eval] deferred by {run_root / 'DEFER_EVAL'}", flush=True) + raise SystemExit(75) + + device = torch.device(args.device) + model = load_compact_model( + args.model, + args.compact_stage, + cycle=args.cycles, + anchor=args.anchor, + dtype=torch.bfloat16, + device=device, + attn="eager", + revision=args.revision, + ) + model.eval() + expected_depth = args.original_layers - args.cycles + if len(model.model.layers) != expected_depth: + raise RuntimeError( + f"Unexpected decoder depth: {len(model.model.layers)} != {expected_depth}" + ) + + from transformers import AutoTokenizer + + if OFFLINE_POLICY and not Path(args.model).is_dir(): + raise ValueError('Strict offline PPL requires a local model directory') + tokenizer = AutoTokenizer.from_pretrained( + args.model, revision=args.revision, local_files_only=bool(OFFLINE_POLICY)) + applied_scales = [] + scale_stack = ExitStack() + linear_patch = None + if args.apply_post_merge_scale: + metadata = read_compact_metadata(args.compact_stage) + targets = compact_scale_targets(metadata) + if not targets: + raise RuntimeError( + "--apply-post-merge-scale requires enabled residual scale metadata" + ) + for target in targets: + stored_scale = target["scale"]["cumulative_gamma"] + applied = ( + torch.tensor(stored_scale, device=device, dtype=torch.float32) + if isinstance(stored_scale, list) + else float(stored_scale) + ) + scale_stack.enter_context( + residual_scale_hook(model, int(target["student_index"]), applied) + ) + applied_scales.append( + { + "original_layer": int(target["original_layer"]), + "student_index": int(target["student_index"]), + "value": applied, + } + ) + if args.linear_patch is not None: + linear_patch = json.loads(args.linear_patch.read_text(encoding="utf-8")) + patch_scale = torch.tensor( + linear_patch["scale"], device=device, dtype=torch.float32 + ) + patch_anchor = int(linear_patch["anchor_student_index"]) + scale_stack.enter_context( + linear_patch_hook( + model.model.layers[patch_anchor], + patch_scale, + hadamard=linear_patch["mode"] == "hadamard", + ) + ) + + with scale_stack: + tokens = packed_wikitext_tokens( + tokenizer, "test", dataset_cache=( + Path(OFFLINE_POLICY['wikitext_cache']) if OFFLINE_POLICY else None)) + metrics = evaluate_perplexity( + model=model, + tokens=tokens, + sequence_length=args.seq_len, + batch_size=args.batch_size, + ) + + report = { + "model": args.model, + "revision": args.revision, + "compact_stage": str(args.compact_stage), + "dataset": "Salesforce/wikitext:wikitext-2-raw-v1:test", + "offline_policy": OFFLINE_POLICY, + "protocol": ( + "HCHC experiment.py: filter empty rows, join with double newline, " + "then tokenize the complete stream once" + ), + "sequence_length": args.seq_len, + "batch_size": args.batch_size, + "dtype": "bfloat16", + "metrics": metrics, + "anchor": args.anchor, + "cycles": args.cycles, + "original_layers": args.original_layers, + "decoder_layers": len(model.model.layers), + "post_merge_residual_scale": ( + applied_scales[0]["value"].tolist() + if len(applied_scales) == 1 + and torch.is_tensor(applied_scales[0]["value"]) + else ( + applied_scales[0]["value"] + if len(applied_scales) == 1 + else None + ) + ), + "post_merge_residual_scales": [ + { + "original_layer": item["original_layer"], + "student_index": item["student_index"], + "parameterization": ( + "vector" if torch.is_tensor(item["value"]) else "scalar" + ), + "value": ( + item["value"].tolist() + if torch.is_tensor(item["value"]) + else item["value"] + ), + } + for item in applied_scales + ], + "parameterization": ( + "X_interface <- X_interface H D H.T" + if linear_patch and linear_patch["mode"] == "hadamard" + else ( + "X_interface <- X_interface D" + if linear_patch + else ( + "h_out = h_in + gamma * (block(h_in) - h_in)" + if applied_scales else "unscaled compact ABPrune" + ) + ) + ), + "linear_patch": linear_patch, + } + args.output.parent.mkdir(parents=True, exist_ok=True) + args.output.write_text(json.dumps(report, indent=2) + "\n", encoding="utf-8") + print(json.dumps(report, indent=2), flush=True) + + +if __name__ == "__main__": + main() diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/evaluate_hchc_wikitext2_ppl.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/evaluate_hchc_wikitext2_ppl.py new file mode 100644 index 0000000000000000000000000000000000000000..28ea302a1e40246a770b97e6ee6fd9198cf57c28 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/evaluate_hchc_wikitext2_ppl.py @@ -0,0 +1,152 @@ +#!/usr/bin/env python3 +"""Evaluate a saved causal LM with the HCHC WikiText-2 PPL protocol.""" + +from __future__ import annotations + +import argparse +import json +import math +from pathlib import Path +from typing import Any + +import torch +from datasets import load_dataset, load_from_disk + + +def primary(output: Any) -> torch.Tensor: + if torch.is_tensor(output): + return output + if isinstance(output, (tuple, list)) and output and torch.is_tensor(output[0]): + return output[0] + raise TypeError(f"Unsupported decoder-layer output type: {type(output)!r}") + + +def replace_primary(output: Any, hidden: torch.Tensor) -> Any: + if torch.is_tensor(output): + return hidden + if isinstance(output, tuple): + return (hidden, *output[1:]) + if isinstance(output, list): + return [hidden, *output[1:]] + raise TypeError(f"Unsupported decoder-layer output type: {type(output)!r}") + + +def register_residual_scale_hook(layer, gamma: float): + """Install h_out = h_in + gamma * (block(h_in) - h_in).""" + scale = torch.tensor(gamma, device=next(layer.parameters()).device) + + def hook(_module, inputs, output): + if not inputs or not torch.is_tensor(inputs[0]): + raise RuntimeError("Could not capture decoder-layer residual input") + layer_input = inputs[0] + corrected = layer_input + scale * (primary(output) - layer_input) + return replace_primary(output, corrected) + + return layer.register_forward_hook(hook) + + +def packed_wikitext_tokens(tokenizer, split: str, *, dataset_cache: Path | None = None) -> torch.Tensor: + """Reproduce the canonical HCHC WikiText-2 packing protocol.""" + if dataset_cache is not None: + dataset = load_from_disk(str(dataset_cache))[split] + else: + dataset = load_dataset( + "Salesforce/wikitext", "wikitext-2-raw-v1", split=split + ) + text = "\n\n".join(row for row in dataset["text"] if row.strip()) + return tokenizer( + text, add_special_tokens=False, return_tensors="pt" + ).input_ids[0] + + +@torch.no_grad() +def evaluate_perplexity( + model, + tokens: torch.Tensor, + sequence_length: int, + batch_size: int, +) -> dict[str, float | int]: + num_sequences = tokens.numel() // sequence_length + ids = tokens[: num_sequences * sequence_length].view(num_sequences, sequence_length) + total_nll = 0.0 + total_predicted_tokens = 0 + model.eval() + for start in range(0, num_sequences, batch_size): + batch = ids[start : start + batch_size].to("cuda") + output = model(input_ids=batch, labels=batch, use_cache=False) + predicted = batch.shape[0] * (batch.shape[1] - 1) + total_nll += output.loss.float().item() * predicted + total_predicted_tokens += predicted + mean_nll = total_nll / total_predicted_tokens + return { + "nll": mean_nll, + "perplexity": math.exp(mean_nll), + "tokens": total_predicted_tokens, + "sequences": num_sequences, + "source_tokens": int(tokens.numel()), + } + + +def main() -> None: + parser = argparse.ArgumentParser() + parser.add_argument("--model", type=Path, required=True) + parser.add_argument("--output", type=Path, required=True) + parser.add_argument("--sequence-length", type=int, default=2048) + parser.add_argument("--batch-size", type=int, default=8) + parser.add_argument("--residual-anchor", type=int) + parser.add_argument("--residual-gamma", type=float) + args = parser.parse_args() + + if (args.residual_anchor is None) != (args.residual_gamma is None): + parser.error("--residual-anchor and --residual-gamma must be supplied together") + + from transformers import AutoModelForCausalLM, AutoTokenizer + + tokenizer = AutoTokenizer.from_pretrained(args.model, local_files_only=True) + model = AutoModelForCausalLM.from_pretrained( + args.model, + torch_dtype=torch.bfloat16, + local_files_only=True, + low_cpu_mem_usage=True, + attn_implementation="sdpa", + ).to("cuda") + model.config.use_cache = False + + handle = None + if args.residual_gamma is not None: + if args.residual_anchor >= len(model.model.layers): + raise ValueError( + f"Residual anchor {args.residual_anchor} is outside decoder depth " + f"{len(model.model.layers)}" + ) + handle = register_residual_scale_hook( + model.model.layers[args.residual_anchor], args.residual_gamma + ) + + tokens = packed_wikitext_tokens(tokenizer, "test") + try: + metrics = evaluate_perplexity( + model, tokens, args.sequence_length, args.batch_size + ) + finally: + if handle is not None: + handle.remove() + + report = { + "model": str(args.model), + "dataset": "Salesforce/wikitext:wikitext-2-raw-v1:test", + "protocol": "HCHC experiment.py: non-empty rows joined with double newline before one-shot tokenization", + "sequence_length": args.sequence_length, + "batch_size": args.batch_size, + "dtype": "bfloat16", + "residual_anchor": args.residual_anchor, + "residual_gamma": args.residual_gamma, + "metrics": metrics, + } + args.output.parent.mkdir(parents=True, exist_ok=True) + args.output.write_text(json.dumps(report, indent=2) + "\n", encoding="utf-8") + print(json.dumps(report, indent=2), flush=True) + + +if __name__ == "__main__": + main() diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fit_ablation_mka.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fit_ablation_mka.py new file mode 100644 index 0000000000000000000000000000000000000000..5d0ff3b1ab1c31a493f7d54d607aef04cafd8046 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fit_ablation_mka.py @@ -0,0 +1,482 @@ +"""Corrected MKA variant: adjacent NPIB selection, upstream lambda, real fusion. + +Not an exact reproduction of the paper: use sequence-level pooled activations, +recompute geometry after every merge, and resolve NPIB ties back-to-front. +The seven projection weights are fused; residual and Q/K norms stay at anchor. +""" + +from __future__ import annotations + +import hashlib +import math +import random +from collections.abc import Callable, Iterable, Sequence +from dataclasses import asdict, dataclass + +import numpy as np +import torch +from scipy.linalg import eigh +from scipy.spatial.distance import pdist, squareform +from sklearn.feature_selection import mutual_info_regression +from sklearn.neighbors import NearestNeighbors +from torch import Tensor, nn + +PROJECTION_WEIGHTS = ( + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight", +) +UPSTREAM = "https://github.com/SempraETY/Pruning-via-Merging" +UPSTREAM_COMMIT = "3b60b002a0963266e2f4ca78f133b4e091bc607a" + + +@dataclass(frozen=True) +class GeometryConfig: + sigma: float = 8.0 + alpha: float = 0.5 + dimensions: int = 2 + mi_neighbors: int = 5 + entropy_neighbors: int = 50 + beta: float = 1.0 + seed: int = 0 + pooling: str = "mean" + + def validate(self) -> None: + if not math.isfinite(self.sigma) or self.sigma <= 0: + raise ValueError("sigma must be positive and finite") + if not math.isfinite(self.alpha) or not 0 <= self.alpha <= 1: + raise ValueError("alpha must be finite and in [0, 1]") + if self.dimensions < 1 or min(self.mi_neighbors, self.entropy_neighbors) < 1: + raise ValueError("dimensions and neighbor counts must be positive") + if not math.isfinite(self.beta) or self.beta < 0: + raise ValueError("beta must be non-negative and finite") + if self.pooling not in {"mean", "last"}: + raise ValueError("pooling must be 'mean' or 'last'") + + +def sample_slimpajama( + tokenizer, + *, + samples: int = 100, + sequence_length: int = 512, + seed: int = 0, + revision: str = "b5f90f419b7489cdba26fdbc8c022fcb5562f968", + shuffle_buffer: int = 10000, + max_documents: int = 100000, + documents: Iterable[dict] | None = None, +) -> tuple[list[dict[str, Tensor]], dict]: + """Exactly one random fixed-length, no-BOS window from each distinct document. + + Unlike CoMe's row-packing loader, ``samples`` is the number of sequences. + Persist returned IDs and provenance; do not sample again between stages. + """ + if min(samples, sequence_length, shuffle_buffer, max_documents) < 1: + raise ValueError("sampling counts, length and buffer must be positive") + if documents is None: + from datasets import load_dataset + + documents = load_dataset( + "DKYoon/SlimPajama-6B", revision=revision, split="train", streaming=True + ).shuffle(seed=seed, buffer_size=shuffle_buffer) + rng = random.Random(seed) + batches, records, seen = [], [], set() + iterator = iter(documents) + try: + for row_index, row in enumerate(iterator): + if row_index >= max_documents: + break + text = row.get("text") + if not isinstance(text, str) or not text.strip(): + continue + digest = hashlib.sha256(text.encode("utf-8")).hexdigest() + if digest in seen: + continue + seen.add(digest) + ids = tokenizer.encode(text, add_special_tokens=False) + if len(ids) < sequence_length: + continue + start = rng.randrange(len(ids) - sequence_length + 1) + tensor = torch.tensor( + ids[start : start + sequence_length], dtype=torch.long + )[None, :] + batches.append( + {"input_ids": tensor, "attention_mask": torch.ones_like(tensor)} + ) + records.append( + { + "stream_row": row_index, + "document_sha256": digest, + "document_tokens": len(ids), + "window_start": start, + } + ) + if len(batches) == samples: + break + finally: + close = getattr(iterator, "close", None) + if close is not None: + close() + if len(batches) != samples: + raise RuntimeError( + f"Only found {len(batches)}/{samples} distinct sufficiently long documents" + ) + checksum = hashlib.sha256() + for batch in batches: + checksum.update(batch["input_ids"].numpy().astype(" list[np.ndarray]: + """One backbone forward per batch; block hooks avoid hidden-state off-by-one. + + Collect outputs *before* the final backbone norm, including the final block. + Pool only valid tokens; activations are CPU float32 after pooling. + """ + if pooling not in {"mean", "last"} or not batches: + raise ValueError("valid pooling and nonempty calibration batches are required") + layers = model.model.layers + features: list[list[Tensor]] = [[] for _ in layers] + current_mask: Tensor | None = None + + def hook(index): + def capture(module, inputs, output): + hidden = output[0] if isinstance(output, (tuple, list)) else output + mask = current_mask.to(hidden.device, dtype=torch.bool) + if hidden.shape[:2] != mask.shape or (mask.sum(-1) == 0).any(): + raise ValueError("block output and valid-token mask do not match") + if pooling == "mean": + value = (hidden.float() * mask[:, :, None]).sum(1) / mask.sum(1)[ + :, None + ] + else: + positions = torch.arange(mask.shape[1], device=mask.device)[None, :] + last = positions.expand_as(mask).masked_fill(~mask, -1).max(1).values + value = hidden[ + torch.arange(hidden.shape[0], device=hidden.device), last + ].float() + if not torch.isfinite(value).all(): + raise FloatingPointError(f"nonfinite activation in block {index}") + features[index].append(value.cpu()) + + return capture + + handles = [layer.register_forward_hook(hook(i)) for i, layer in enumerate(layers)] + was_training = model.training + model.eval() + try: + device = model.get_input_embeddings().weight.device + for batch in batches: + prepared = {key: value.to(device) for key, value in batch.items()} + current_mask = prepared.get( + "attention_mask", torch.ones_like(prepared["input_ids"]) + ) + model.model(**prepared, use_cache=False, return_dict=True) + finally: + for handle in handles: + handle.remove() + model.train(was_training) + expected = sum(batch["input_ids"].shape[0] for batch in batches) + arrays = [torch.cat(parts, dim=0).numpy() for parts in features] + if any(array.shape[0] != expected for array in arrays): + raise RuntimeError("not all calibration examples reached each decoder block") + return arrays + + +def diffusion_embedding( + features: np.ndarray, config: GeometryConfig +) -> tuple[np.ndarray, dict]: + """Correctly shaped sample-by-sample diffusion kernel, following upstream SVD geometry.""" + config.validate() + x = np.asarray(features, dtype=np.float64) + if x.ndim != 2 or not np.isfinite(x).all() or len(x) <= config.dimensions + 1: + raise ValueError( + "features must be finite [samples, features], samples > dimensions + 1" + ) + distance = squareform(pdist(x, metric="euclidean")) + if distance.max() <= np.finfo(float).eps: + raise ValueError( + "constant calibration features: cannot estimate manifold geometry" + ) + kernel = np.exp(-np.sqrt(distance / config.sigma)) + p = kernel.sum(0) + normalized = kernel / np.outer(p, p) ** config.alpha + v = np.sqrt(normalized.sum(0)) + operator = normalized / np.outer(v, v) + condition = float(np.linalg.cond(operator)) + regularization = 1e-6 if not math.isfinite(condition) or condition > 1e12 else 0.0 + if regularization: + operator += regularization * np.eye(len(x)) + values, vectors = eigh( + operator, subset_by_index=(len(x) - config.dimensions - 1, len(x) - 1) + ) + values, vectors = values[::-1], vectors[:, ::-1] + # Fix arbitrary eigenvector signs; the leading vector of this positive kernel is positive. + for dim in range(vectors.shape[1]): + if vectors[np.argmax(np.abs(vectors[:, dim])), dim] < 0: + vectors[:, dim] *= -1 + if np.any(np.abs(vectors[:, 0]) < 1e-12): + raise FloatingPointError( + "diffusion normalization has a near-zero leading eigenvector" + ) + embedding = vectors[:, 1:] / vectors[:, :1] + if not np.isfinite(embedding).all(): + raise FloatingPointError("nonfinite diffusion embedding") + # Upstream uses per-axis rank normalization before its KNN estimators. + embedding = np.argsort( + np.argsort(embedding, axis=0, kind="stable"), axis=0, kind="stable" + ) / len(x) + return embedding, { + "samples": len(x), + "condition_number": condition if math.isfinite(condition) else None, + "regularization": regularization, + "eigenvalues": values.tolist(), + } + + +def entropy_knn(x: np.ndarray, neighbors: int) -> float: + """Upstream differential-entropy estimator, evaluated in log space.""" + n, dimensions = x.shape + k = min(neighbors, n - 1) + distances = NearestNeighbors(n_neighbors=k + 1).fit(x).kneighbors(x)[0][:, -1] + if np.any(distances <= 0) or not np.isfinite(distances).all(): + raise FloatingPointError( + "duplicate/degenerate manifold points in entropy estimator" + ) + return float(math.log(n / k) + dimensions * np.log(distances).mean()) + + +def npib_matrix( + embeddings: Sequence[np.ndarray], config: GeometryConfig +) -> tuple[np.ndarray, list[float]]: + """Match upstream axis-wise MI average and symmetric sqrt(H_i*H_j) normalization. + + Differential entropies can be negative. Preserve upstream's formula when + their product is positive; fail clearly for zero/negative products or NaNs. + This estimator is a heuristic, not a guaranteed [0, 1] similarity. + """ + config.validate() + if not embeddings or len({x.shape for x in embeddings}) != 1: + raise ValueError("embeddings must have identical sample/coordinate shapes") + n = len(embeddings[0]) + if n < 3 or any(not np.isfinite(x).all() for x in embeddings): + raise ValueError("need at least three finite manifold points") + entropies = [entropy_knn(x, config.entropy_neighbors) for x in embeddings] + scores = np.empty((len(embeddings), len(embeddings)), dtype=np.float64) + for i, left in enumerate(embeddings): + for j in range(i, len(embeddings)): + right = embeddings[j] + product = entropies[i] * entropies[j] + if not math.isfinite(product) or product <= 1e-12: + raise FloatingPointError( + f"invalid entropy product at ({i}, {j}): {entropies[i]}, {entropies[j]}" + ) + mi = np.mean( + [ + np.mean( + mutual_info_regression( + left, + right[:, dim], + n_neighbors=min(config.mi_neighbors, n - 1), + random_state=config.seed, + ) + ) + for dim in range(right.shape[1]) + ] + ) + scores[i, j] = scores[j, i] = mi / math.sqrt(product) + if not np.isfinite(scores).all(): + raise FloatingPointError("NPIB contains nonfinite scores") + return scores, entropies + + +def upstream_lambda( + scores: np.ndarray, left: int, right: int, beta: float = 1.0 +) -> float: + """Exactly upstream's sigmoid(beta * row_mean_i / (row_mean_i + row_mean_j)).""" + means = np.mean(scores[[left, right]], axis=1) + total = float(means.sum()) + if not np.isfinite(means).all() or (means < 0).any() or total <= 1e-12: + raise FloatingPointError( + "cannot compute upstream lambda from nonpositive/nonfinite row means" + ) + if not math.isfinite(beta) or beta < 0: + raise ValueError("beta must be non-negative and finite") + value = beta * float(means[0]) / total + return 1.0 / (1.0 + math.exp(-value)) + + +def select_pair( + scores: np.ndarray, + *, + selection: str = "npib", + protected_first: int = 0, + protected_last: int = 0, +) -> int: + """Adjacent pairs only; NPIB descending, and deeper pair wins exact ties.""" + n = len(scores) + if scores.shape != (n, n) or not np.isfinite(scores).all(): + raise ValueError("scores must be a finite square matrix") + if min(protected_first, protected_last) < 0: + raise ValueError("protected layer counts must be non-negative") + candidates = range(protected_first, n - protected_last - 1) + if not candidates: + raise ValueError("no eligible adjacent pair remains") + if selection == "back-to-front": + return candidates[-1] + if selection != "npib": + raise ValueError("selection must be 'npib' or 'back-to-front'") + return max(candidates, key=lambda i: (float(scores[i, i + 1]), i)) + + +@torch.inference_mode() +def merge_pair(model: nn.Module, left: int, ratio: float) -> int: + """FP32 weighted sum copied into real parameters, then delete the right block.""" + layers = model.model.layers + if ( + not 0 <= left < len(layers) - 1 + or not math.isfinite(ratio) + or not 0 <= ratio <= 1 + ): + raise ValueError("invalid adjacent pair or merge ratio") + destination, source = layers[left], layers[left + 1] + pairs = [] + for name in PROJECTION_WEIGHTS: + pairs.append((destination.get_parameter(name), source.get_parameter(name))) + # Qwen2.5 has Q/K/V biases. Fuse them with the same coefficient; + # Llama and Qwen3 (bias-free projections) retain their existing behavior. + module_name = name.rsplit('.', 1)[0] + a_bias = getattr(destination.get_submodule(module_name), 'bias', None) + b_bias = getattr(source.get_submodule(module_name), 'bias', None) + if (a_bias is None) != (b_bias is None): + raise ValueError('projection bias presence differs between merge layers') + if a_bias is not None: + pairs.append((a_bias, b_bias)) + # Validate all shapes/values/config before any model mutation. + if any(a.shape != b.shape for a, b in pairs): + raise ValueError("projection shapes differ between merge layers") + if any(not torch.isfinite(p).all() for pair in pairs for p in pair): + raise FloatingPointError("nonfinite source weight") + configs = [model.config, model.model.config] + for config in configs: + types = getattr(config, "layer_types", None) + if types is not None and len(types) != len(layers): + raise ValueError("config.layer_types length does not match decoder depth") + changed = 0 + for target, other in pairs: + merged = torch.lerp( + other.detach().to(target.device, dtype=torch.float32), target.float(), ratio + ) + merged = merged.to(target.dtype) + if not torch.isfinite(merged).all(): + raise FloatingPointError("merge overflow after conversion to model dtype") + changed += int(not torch.equal(target, merged)) + target.copy_(merged) + del layers[left + 1] + handled = set() + for config in configs: + if id(config) in handled: + continue + handled.add(id(config)) + config.num_hidden_layers = len(layers) + if getattr(config, "layer_types", None) is not None: + config.layer_types = list(config.layer_types[: left + 1]) + list( + config.layer_types[left + 2 :] + ) + for index, layer in enumerate(layers): + if hasattr(layer.self_attn, "layer_idx"): + layer.self_attn.layer_idx = index + return changed + + +def progressive_prune( + model: nn.Module, + batches: Sequence[dict[str, Tensor]], + *, + target_layers: int, + geometry: GeometryConfig | None = None, + selection: str = "npib", + protected_first: int = 0, + protected_last: int = 0, + on_stage: Callable[[nn.Module, dict], None] | None = None, +) -> list[dict]: + """Recompute activations/manifolds/NPIB on fixed data after every accepted merge. + + No threshold or forced fallbacks; stop at the requested exact depth. Repeated + merging of a previously merged block is allowed and recorded in its lineage. + """ + geometry = geometry or GeometryConfig() + geometry.validate() + depth = len(model.model.layers) + if min(protected_first, protected_last) < 0 or not 1 <= target_layers <= depth: + raise ValueError("invalid target depth or protected counts") + if target_layers < protected_first + protected_last + 1: + raise ValueError("target depth would remove protected layers") + if selection not in {"npib", "back-to-front"}: + raise ValueError("invalid selection mode") + lineage = [[i] for i in range(depth)] + records = [] + model.eval() + while len(model.model.layers) > target_layers: + step = len(records) + 1 + print( + f"MKA stage {step}: collecting features for {len(lineage)} layers", + flush=True, + ) + features = collect_features(model, batches, pooling=geometry.pooling) + results = [diffusion_embedding(x, geometry) for x in features] + del features + scores, entropies = npib_matrix([x[0] for x in results], geometry) + left = select_pair( + scores, + selection=selection, + protected_first=protected_first, + protected_last=protected_last, + ) + ratio = upstream_lambda(scores, left, left + 1, geometry.beta) + record = { + "step": step, + "selection": selection, + "left_index": left, + "source_layers": [lineage[left][:], lineage[left + 1][:]], + "pair_npib": float(scores[left, left + 1]), + "lambda_left": ratio, + "lambda_right": 1 - ratio, + "row_means": scores.mean(1).tolist(), + "npib_matrix": scores.tolist(), + "entropies": entropies, + "geometry": asdict(geometry), + "manifolds": [x[1] for x in results], + } + record["changed_parameter_tensors"] = merge_pair(model, left, ratio) + lineage[left] += lineage.pop(left + 1) + record["lineage_after"] = [x[:] for x in lineage] + record["remaining_layers"] = len(lineage) + records.append(record) + print( + f"MKA stage {step}: merge {left}/{left + 1}, NPIB={record['pair_npib']:.6g}, " + f"lambda={ratio:.6g}, remaining={len(lineage)}", + flush=True, + ) + if on_stage is not None: + on_stage(model, record) + return records diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fixed_span_merge_init.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fixed_span_merge_init.py new file mode 100644 index 0000000000000000000000000000000000000000..9ed2738d3265bc7c960633e71e12ecdf9415fec4 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fixed_span_merge_init.py @@ -0,0 +1,59 @@ +"""MLP-only merge rules; fixed topology and feature transport belong to caller. + +CoMe importance/neuron scores and MKA manifold scores are measured on the +previous-cycle teacher, on the same calibration data. This helper consumes the +actual post-transport operands. No selector, attention merge, norm merge, or +teacher mutation is allowed here. These are hybrid controls, not native methods. +""" +from __future__ import annotations + +import copy +import hashlib +from types import SimpleNamespace + +import torch + +MLP_NAMES = ("mlp.gate_proj.weight", "mlp.up_proj.weight", "mlp.down_proj.weight") + + +def tensor_hash(value): + raw = value.detach().cpu().contiguous().view(torch.uint8).numpy().tobytes() + return hashlib.sha256(raw).hexdigest() + + +def frozen_hashes(layer): + return {n: tensor_hash(p) for n, p in layer.named_parameters() if n not in MLP_NAMES} + + +def build_initialization(a, transported_b, method, payload): + before_a, before_b = frozen_hashes(a), frozen_hashes(transported_b) + a_mlp = {n: tensor_hash(a.get_parameter(n)) for n in MLP_NAMES} + b_mlp = {n: tensor_hash(transported_b.get_parameter(n)) for n in MLP_NAMES} + if method == "come": + from fusegpt.come import merge_mlp + # Copy only the two MLPs, not the entire blocks/models. Preserve native + # channel concatenation order and BF16 rounding of the CoMe helper. + pair = [SimpleNamespace(mlp=copy.deepcopy(layer.mlp).cpu()) for layer in (a, transported_b)] + counts = merge_mlp(pair, payload["ratios"], payload["neuron_scores"]) + result = {"mlp." + n: p.detach().float().clone() for n, p in pair[0].mlp.named_parameters()} + detail = {"retention_ratios": payload["ratios"], "retained_mlp_neurons": counts} + del pair + elif method == "mka": + ratio = float(payload["lambda_left"]) + if not 0 <= ratio <= 1: + raise ValueError("Invalid MKA merge coefficient") + result = {n: torch.lerp(transported_b.get_parameter(n).detach().float(), + a.get_parameter(n).detach().float(), ratio) for n in MLP_NAMES} + detail = {"lambda_left": ratio, "lambda_right": 1 - ratio} + else: + raise ValueError(method) + assert set(result) == set(MLP_NAMES) + assert frozen_hashes(a) == before_a and frozen_hashes(transported_b) == before_b + assert {n: tensor_hash(a.get_parameter(n)) for n in MLP_NAMES} == a_mlp + assert {n: tensor_hash(transported_b.get_parameter(n)) for n in MLP_NAMES} == b_mlp + assert all(torch.isfinite(v).all() for v in result.values()) + return result, {**detail, "source_weights": "post_feature_transport", + "scoring_context": "previous_cycle_teacher_before_transport", + "anchor_mlp_sha256": a_mlp, "transported_source_mlp_sha256": b_mlp, + "initial_mlp_sha256": {n: tensor_hash(v) for n, v in result.items()}, + "frozen_anchor_sha256": before_a, "operands_unchanged_by_initializer": True} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fuse_layers.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fuse_layers.py new file mode 100644 index 0000000000000000000000000000000000000000..5cca981f0f2f951ce21d88119fd12d26c6d8a089 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fuse_layers.py @@ -0,0 +1,3600 @@ +#!/usr/bin/env python3 +"""Fuse adjacent layers via attention head alignment + Fisher-barycentric merge.""" + +import argparse +import copy +import gc +import json +import os +import random +import time +from dataclasses import dataclass +from typing import Dict, List, Optional, Set, Tuple + +import torch + +try: + import numpy as np +except Exception: # pragma: no cover - optional dependency + np = None + +try: + from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig +except Exception as exc: # pragma: no cover - fail early with clear error + raise SystemExit("transformers is required: pip install transformers") from exc + +try: + import ppl_eval +except Exception as exc: # pragma: no cover - optional dependency + raise SystemExit("ppl_eval.py is required (missing or invalid)") from exc + +try: + import eval_ppl as legacy_eval_ppl +except Exception: # pragma: no cover - optional dependency + legacy_eval_ppl = None + +from fuse_layers_data import ( + FixedSeqDataset, + build_token_chunks, + expand_dataset_configs, + load_instruction_records, + load_texts, + load_texts_from_datasets, +) +from common_lm_data import SharedLMDataSpec, build_chunks, build_dataloader +from fuse_layers_distill import ( + commutator_precondition, + compute_fisher_gate_priors, + distill_reparam_merge, + lora_ce_finetune, + summarize_fisher_gate_prior_inputs, +) +from fuse_layers_model import ( + apply_norm_policy, + build_head_permutation, + clone_state_dict, + compute_fisher, + compute_head_means, + decrement_config, + drop_layer, + find_attention_module, + find_colon_modules, + find_layer_container, + get_dtype, + get_norm_pair, + merge_layers, + permute_attention_heads, +) +from fuse_layers_select import select_best_region_by_cosine, select_layer_auto +from progressive_loader import ( + load_causal_lm, + load_progressive_model, + model_is_sharded, + model_parameter_devices, + model_primary_device, + resolve_model_device_map_spec, +) +from source_feature_transport import ( + compute_same_anchor_contextual_fisher, + fit_and_apply_source_feature_transport, +) +try: + from post_merge_nll_scale import ( + build_scale_chunks, + fit_and_fold_post_merge_scales, + ) +except ImportError: + # The zero-safe / sequential-rho experiments do not enable the optional + # post-merge NLL-scaling ablation. Keep the core ABPrune runner usable + # when that standalone ablation module is not present, but fail clearly if + # a caller explicitly requests it. + def _missing_post_merge_nll_scale(*_args, **_kwargs): + raise RuntimeError( + "post_merge_nll_scale.py is required when " + "--post_merge_nll_scale is enabled" + ) + + build_scale_chunks = _missing_post_merge_nll_scale + fit_and_fold_post_merge_scales = _missing_post_merge_nll_scale + + +def _sync_for_timing() -> None: + if torch.cuda.is_available(): + torch.cuda.synchronize() + + +def _timing_start() -> float: + _sync_for_timing() + return time.perf_counter() + + +def _timing_elapsed(start: float) -> float: + _sync_for_timing() + return time.perf_counter() - start + + +def _timing_summary(seconds: Dict[str, float]) -> Dict[str, object]: + cycle_total = float(seconds.get("cycle_total", 0.0)) + component_seconds = { + key: float(value) + for key, value in seconds.items() + if key != "cycle_total" and isinstance(value, (int, float)) + } + tracked_total = float(sum(component_seconds.values())) + if cycle_total <= 0.0: + cycle_total = tracked_total + return { + "seconds": {key: float(value) for key, value in seconds.items()}, + "tracked_component_total_seconds": tracked_total, + "cycle_total_seconds": cycle_total, + "ratios_of_tracked_components": { + key: (value / tracked_total if tracked_total > 0.0 else None) + for key, value in component_seconds.items() + }, + "ratios_of_cycle_total": { + key: (value / cycle_total if cycle_total > 0.0 else None) + for key, value in component_seconds.items() + }, + } + + +def _print_cycle_timing(cycle_idx: int, timing: Dict[str, object]) -> None: + seconds = timing.get("seconds", {}) + ratios = timing.get("ratios_of_cycle_total", {}) + if not isinstance(seconds, dict) or not isinstance(ratios, dict): + return + print(f"[timing] Cycle {cycle_idx} component wall-clock:") + preferred = [ + "selection", + "rebase", + "head_permutation", + "fisher", + "fit", + "materialize_save_layer", + "metadata_write", + "teacher_snapshot", + "cycle_cleanup", + ] + for name in preferred: + if name not in seconds: + continue + ratio = ratios.get(name) + ratio_text = "n/a" if ratio is None else f"{100.0 * float(ratio):.2f}%" + print(f"[timing] {name}: {float(seconds[name]):.3f}s ({ratio_text} of cycle)") + cycle_total = timing.get("cycle_total_seconds") + tracked_total = timing.get("tracked_component_total_seconds") + if isinstance(cycle_total, (int, float)): + print(f"[timing] cycle_total: {float(cycle_total):.3f}s") + if isinstance(tracked_total, (int, float)): + print(f"[timing] tracked_components_total: {float(tracked_total):.3f}s") + + +def parse_args() -> argparse.Namespace: + parser = argparse.ArgumentParser( + description="Fuse layer i and i+1 using head alignment + Fisher barycenter." + ) + parser.add_argument("--model", required=True, help="HF model id or local path") + parser.add_argument( + "--model_cache_dir", + default=None, + help="Optional cache dir for model/tokenizer downloads", + ) + parser.add_argument( + "--layer", + type=str, + default="auto", + help="Layer index i (int) or 'auto' to select via auto metric", + ) + parser.add_argument( + "--selection_method", + choices=["dwce", "sequential"], + default="dwce", + help=( + "Pair selection policy for progressive pruning. " + "'dwce' uses downstream-weighted composition error; " + "'sequential' always takes the next available pair." + ), + ) + parser.add_argument( + "--exclude_pairs", + "--exclude_layers", + nargs="*", + default=None, + dest="exclude_pairs", + help=( + "Exclude pair indices from consideration for any fusion. Indices refer to " + "pair start positions in [0..N-2]. Negative indices count from the end " + "(-1 = last pair, -2 = second last). Accepts space- or comma-separated ints. " + "Alias: --exclude_layers (deprecated)." + ), + ) + parser.add_argument( + "--output_dir", required=True, help="Directory to write fused model" + ) + parser.add_argument( + "--dataset", + action="append", + default=[], + help=( + "HF dataset name (repeatable). Optional if using --text or --text_file." + ), + ) + parser.add_argument( + "--dataset_config", + action="append", + default=[], + help="Optional dataset config (repeatable or single shared config).", + ) + parser.add_argument( + "--dataset_split", + default="train", + help="Dataset split to use (default: train)", + ) + parser.add_argument( + "--dataset_text_field", + default=None, + help="Text field in dataset (default: auto-detect, applies to all datasets)", + ) + parser.add_argument( + "--text", + action="append", + default=[], + help="Inline text samples (can pass multiple)", + ) + parser.add_argument( + "--text_file", + default=None, + help="Path to a text file for calibration data", + ) + parser.add_argument( + "--num_samples", + type=int, + default=128, + help="Number of token sequences to use", + ) + parser.add_argument( + "--target_tokens", + type=int, + default=0, + help="Target token budget for common_lm_data-backed calibration/distillation (0 = disabled)", + ) + parser.add_argument("--seq_len", type=int, default=256, help="Sequence length") + parser.add_argument("--batch_size", type=int, default=2, help="Batch size") + parser.add_argument( + "--device", + default="cuda" if torch.cuda.is_available() else "cpu", + help="Device for model + compute", + ) + parser.add_argument( + "--dtype", + default="auto", + choices=["auto", "float32", "float16", "bfloat16"], + help="Model dtype", + ) + parser.add_argument( + "--model_device_map", + default=None, + help=( + "Optional transformers device_map for the student model. " + "Use auto/balanced/balanced_low_0/sequential, split_half, " + "split_half:cuda:0,cuda:1, or split_layers:cuda:0,cuda:1,..." + ), + ) + parser.add_argument( + "--layer_path", + default=None, + help="Override layer attribute path (e.g., model.layers)", + ) + parser.add_argument( + "--fisher_mode", + default="tensor", + choices=["tensor", "param"], + help="Fisher approximation granularity", + ) + parser.add_argument( + "--no_head_permute", + action="store_true", + help=( + "Deprecated alias for --no_head_permute_merge. " + "Disables merge-stage head permutation only." + ), + ) + parser.add_argument( + "--no_head_permute_merge", + action="store_true", + help="Disable attention head permutation alignment before merge", + ) + parser.add_argument( + "--no_head_permute_select", + action="store_true", + help="Disable attention head permutation alignment during auto selection", + ) + parser.add_argument("--eps", type=float, default=1e-8, help="Stability epsilon") + parser.add_argument("--seed", type=int, default=0, help="Random seed") + parser.add_argument( + "--trust_remote_code", + action="store_true", + help="Allow custom model code from hub", + ) + parser.add_argument( + "--save_metadata", + action="store_true", + help="Backward-compatible no-op; metadata is always written.", + ) + parser.add_argument( + "--skip_eval", + action="store_true", + help="Skip pre/post perplexity evaluation", + ) + parser.add_argument( + "--eval_dataset", + action="append", + default=[], + help="Evaluation dataset name (repeatable). Defaults to wikitext.", + ) + parser.add_argument( + "--eval_dataset_config", + action="append", + default=[], + help="Evaluation dataset config (repeatable or single shared config).", + ) + parser.add_argument( + "--eval_split", + default="test", + help="Evaluation dataset split (default: test)", + ) + parser.add_argument( + "--eval_text_field", + default=None, + help="Evaluation text field override (default: auto-detect)", + ) + parser.add_argument( + "--eval_model_family", + type=str, + choices=["auto", "llama", "qwen"], + default="auto", + help="Model family for BOS handling during eval", + ) + parser.add_argument( + "--eval_add_bos", + type=str, + choices=["single", "auto", "always", "never"], + default="single", + help="Whether to prepend BOS to each eval sample", + ) + parser.add_argument( + "--eval_num_samples", + type=int, + default=0, + help="Number of token sequences per eval dataset (0 = all)", + ) + parser.add_argument( + "--eval_seq_len", + type=int, + default=1024, + help="Sequence length for eval", + ) + parser.add_argument( + "--eval_batch_size", + type=int, + default=4, + help="Batch size for eval (default: 4 to match run_eval_ppl.sh)", + ) + parser.add_argument( + "--eval_dtype", + default="float16", + choices=["auto", "float32", "float16", "bfloat16"], + help="Model dtype for eval (default: float16 to match run_eval_ppl.sh)", + ) + parser.add_argument( + "--eval_max_batches", + type=int, + default=None, + help="Optional max number of eval batches per dataset", + ) + parser.add_argument( + "--eval_cache_dir", + default=None, + help="Optional datasets cache dir for eval", + ) + parser.add_argument( + "--eval_num_workers", + type=int, + default=0, + help="Eval DataLoader workers", + ) + parser.add_argument( + "--eval_device", + default=None, + help="Device for eval (defaults to --device)", + ) + parser.add_argument( + "--eval_merge_only_ppl", + action="store_true", + help=( + "Evaluate PPL after a temporary Fisher merge and before reparam/distill." + ), + ) + parser.add_argument( + "--skip_distill", + action="store_true", + help="Skip reparameterized distillation after head alignment/Fisher setup", + ) + parser.add_argument( + "--distill_calib_samples", + type=int, + default=256, + help="Number of distillation sequences from calibration datasets", + ) + parser.add_argument( + "--distill_inst_samples", + type=int, + default=0, + help="Number of distillation sequences from instruction dataset (0 = all)", + ) + parser.add_argument( + "--distill_seq_len", + type=int, + default=512, + help="Sequence length for distillation", + ) + parser.add_argument( + "--distill_batch_size", + type=int, + default=2, + help="Batch size for distillation", + ) + parser.add_argument( + "--distill_epochs", + type=float, + default=1.0, + help="Number of distillation epochs (float allowed, e.g. 0.5)", + ) + parser.add_argument( + "--distill_lr", + type=float, + default=1e-4, + help="Learning rate for distillation", + ) + parser.add_argument( + "--distill_method", + choices=["reparam"], + default="reparam", + help="Distillation strategy (reparam only).", + ) + parser.add_argument( + "--distill_kl_weight", + type=float, + default=1e-2, + help="Weight for KL loss on logits", + ) + parser.add_argument( + "--distill_kl_temp", + type=float, + default=4.0, + help="Temperature for KL distillation on logits", + ) + parser.add_argument( + "--kl_chunk_size", + type=int, + default=16384, + help=( + "Vocabulary chunk size for streaming KL calculations. The default " + "preserves the previous implementation; lower values reduce peak memory." + ), + ) + parser.add_argument( + "--distill_hidden_mse_weight", + type=float, + default=1.0, + help="Weight for hidden-state MSE in reparam distillation (0 disables it)", + ) + parser.add_argument( + "--distill_attn_mse_weight", + type=float, + default=0.0, + help="Weight for auxiliary attention-output MSE in reparam distillation", + ) + parser.add_argument( + "--distill_mlp_mse_weight", + type=float, + default=0.0, + help="Weight for auxiliary MLP-output MSE in reparam distillation", + ) + parser.add_argument( + "--reparam_eta", + type=float, + default=1e-2, + help="Eta: ||lambda - lambda_gate||^2 regularizer weight for --distill_method reparam", + ) + parser.add_argument( + "--reparam_gamma", + type=float, + default=1e-4, + help="Gamma: ||U - U0||^2 regularizer weight for --distill_method reparam", + ) + parser.add_argument( + "--reparam_attn_reg_scale", + type=float, + default=1.0, + help="Relative scale applied to attention-parameter reparam regularizers", + ) + parser.add_argument( + "--reparam_mlp_reg_scale", + type=float, + default=1.0, + help="Relative scale applied to MLP-parameter reparam regularizers", + ) + parser.add_argument( + "--reparam_param_subset", + type=str, + choices=["all", "mlp", "attn", "down_proj"], + default="all", + help=( + "Restrict reparam merge/recovery capacity to only this parameter family " + "or module subset" + ), + ) + parser.add_argument( + "--reparam_fisher_init_subset", + type=str, + choices=["same", "all", "mlp", "attn", "down_proj", "mlp_o", "mlp_v", "mlp_vo"], + default="same", + help=( + "Restrict Fisher initialization to this subset while still materializing " + "and fitting --reparam_param_subset. Parameters outside this subset " + "start exactly at the anchor value." + ), + ) + parser.add_argument( + "--reparam_train_subset", + type=str, + choices=["same", "all", "mlp", "attn", "down_proj"], + default="same", + help=( + "Restrict which materialized reparam parameters are optimized. " + "Default 'same' preserves --reparam_param_subset behavior." + ), + ) + parser.add_argument( + "--reparam_skip_train", + action="store_true", + help=( + "Materialize the Fisher-prior reparam merge without optimizing U/gates. " + "Useful for separating Fisher initialization from reparam training." + ), + ) + parser.add_argument( + "--reparam_rho_objective", + choices=["none", "full", "hidden_kl", "kl_only"], + default="none", + help=( + "Replace trainable element-wise Fisher gates with gate/up/down rho " + "coefficients. U still uses the full FiT loss; rho receives only the " + "selected objective." + ), + ) + parser.add_argument( + "--reparam_rho_lr", + type=float, + default=2e-3, + help="Learning rate for projection-level Fisher-undo rho coefficients", + ) + parser.add_argument( + "--reparam_rho_schedule", + choices=["joint", "sequential"], + default="joint", + help=( + "joint optimizes rho and U together; sequential first optimizes rho " + "on the fixed Fisher-to-anchor axis, then freezes rho and trains an " + "additive U correction with the full FiT objective." + ), + ) + parser.add_argument( + "--reparam_additive_u", + action="store_true", + help=( + "Freeze the Fisher interpolation point and train a zero-initialized " + "additive U correction: W = W_F + U_add. This removes the " + "coordinatewise (2*lambda_F-1) gradient mask used by the standard " + "W0/U parameterization." + ), + ) + parser.add_argument( + "--reparam_rho_epochs", + type=float, + default=1.0, + help="Rho-only epochs before U training in sequential mode", + ) + parser.add_argument("--reparam_rho_min", type=float, default=-1.0) + parser.add_argument("--reparam_rho_max", type=float, default=2.0) + parser.add_argument( + "--source_feature_transport", + action="store_true", + help=( + "Before each progressive merge, fit X_anchor @ T ~= X_source and " + "rewrite the source MLP gate/up input projections as W_source @ T.T. " + "Then measure anchor and transported-source Fisher in the same " + "post-pruning anchor slot before merging." + ), + ) + parser.add_argument( + "--source_feature_transport_ridge_relative", + type=float, + default=1e-3, + help="Relative ridge used by the stage-local feature transport OLS solve", + ) + parser.add_argument( + "--source_feature_transport_max_batches", + type=int, + default=0, + help="Maximum calibration batches per transport solve (0 uses all)", + ) + parser.add_argument( + "--post_merge_nll_scale", + choices=["none", "mlp", "joint"], + default="none", + help="After every progressive merge, fit MLP-only or joint attention/MLP output scales with next-token NLL and fold them into output projections.", + ) + parser.add_argument("--post_merge_nll_scale_dataset", default="DKYoon/SlimPajama-6B") + parser.add_argument("--post_merge_nll_scale_config", default="none") + parser.add_argument("--post_merge_nll_scale_split", default="train") + parser.add_argument("--post_merge_nll_scale_text_field", default="text") + parser.add_argument("--post_merge_nll_scale_sequences", type=int, default=16) + parser.add_argument("--post_merge_nll_scale_seq_len", type=int, default=512) + parser.add_argument("--post_merge_nll_scale_seed", type=int, default=42) + parser.add_argument("--post_merge_nll_scale_steps", type=int, default=128) + parser.add_argument("--post_merge_nll_scale_lr", type=float, default=0.02) + parser.add_argument("--post_merge_nll_scale_regularization", type=float, default=1e-4) + parser.add_argument("--post_merge_nll_scale_min", type=float, default=0.25) + parser.add_argument("--post_merge_nll_scale_max", type=float, default=4.0) + parser.add_argument( + "--norm_policy", + type=str, + choices=["hybrid", "merge_all", "copy_n1", "copy_n1_n2"], + default="hybrid", + help="Norm merge policy (default: hybrid)", + ) + parser.add_argument( + "--distill_weight_decay", + type=float, + default=0.0, + help="Weight decay for distillation", + ) + parser.add_argument( + "--distill_max_grad_norm", + type=float, + default=1.0, + help="Max grad norm for distillation", + ) + parser.add_argument( + "--distill_grad_accum_steps", + type=int, + default=1, + help="Gradient accumulation steps for distillation", + ) + parser.add_argument( + "--distill_log_steps", + type=int, + default=100, + help="Log distillation loss every N steps", + ) + parser.add_argument( + "--distill_eval_every", + type=int, + default=0, + help="Evaluate PPL every N distill steps (0 = disable)", + ) + parser.add_argument( + "--distill_eval_max_batches", + type=int, + default=None, + help="Max eval batches per dataset during distill (default: all)", + ) + parser.add_argument( + "--distill_teacher_device", + default=None, + help="Device for teacher model during distillation (defaults to --device)", + ) + parser.add_argument( + "--distill_teacher_device_map", + default=None, + help=( + "Optional transformers device_map for the teacher model. " + "Use auto/balanced/balanced_low_0/sequential, split_half, " + "split_half:cuda:2,cuda:3, or split_layers:cuda:0,cuda:1,..." + ), + ) + parser.add_argument( + "--disable_previous_cycle_teacher_cache", + action="store_true", + help=( + "Disable the in-memory previous-cycle teacher snapshot and always reload " + "teachers from disk/base checkpoints. Useful when the student model is sharded " + "or when the teacher runs on CPU." + ), + ) + parser.add_argument( + "--distill_teacher_load_in_4bit", + action="store_true", + help=( + "Prototype-only rescue path: load the distillation/previous-cycle teacher in " + "4-bit NF4 on a CUDA device to reduce memory pressure." + ), + ) + parser.add_argument( + "--comm_enabled", + action="store_true", + help=( + "Enable commutator-style preconditioning before each progressive " + "cycle's fusion." + ), + ) + parser.add_argument( + "--comm_include_cycle1", + action="store_true", + help="Run commutator preconditioning for cycle 1 as well (default: skip cycle 1).", + ) + parser.add_argument( + "--comm_data_source", + choices=["auto", "calib", "distill"], + default="auto", + help=( + "Data source for commutator preconditioning. 'auto' preserves the " + "existing behavior: use distillation data when available, otherwise " + "fall back to calibration data." + ), + ) + parser.add_argument( + "--comm_topk", + type=int, + default=1, + help="Top-K lowest-score pairs used as the commutator candidate set", + ) + parser.add_argument( + "--comm_sample_eta", + type=float, + default=0.5, + help="Mixture weight between uniform and score-biased candidate sampling", + ) + parser.add_argument( + "--comm_sample_dwce_scale", + type=float, + default=1.0, + help="Scale c in softmax(-c * score(i)) for commutator pair sampling", + ) + parser.add_argument( + "--comm_temp", + type=float, + default=2.0, + help="Temperature for teacher-anchor KL in commutator preconditioning", + ) + parser.add_argument( + "--comm_steps_ratio", + type=float, + default=0.1, + help="Run this fraction of distillation optimizer steps for commutator phase", + ) + parser.add_argument( + "--comm_lr_scale", + type=float, + default=0.1, + help="Commutator LR = --distill_lr * this scale", + ) + parser.add_argument( + "--comm_train_mode", + choices=["lora", "full"], + default="lora", + help=( + "Commutator trainable parameter mode: " + "'lora' updates LoRA adapters on sampled receiver layers; " + "'full' updates full receiver-layer weights." + ), + ) + parser.add_argument( + "--comm_interaction_mode", + choices=["mse", "relative"], + default="relative", + help="Interaction loss form: plain MSE or relative MSE", + ) + parser.add_argument( + "--comm_interaction_eps", + type=float, + default=1e-8, + help="Epsilon for relative commutator interaction normalization", + ) + parser.add_argument( + "--comm_mu", + type=float, + default=None, + help=( + "Weight for interaction loss. Defaults to 0.1 for --comm_interaction_mode=mse " + "and 0.5 for --comm_interaction_mode=relative." + ), + ) + parser.add_argument( + "--comm_mu_auto", + action="store_true", + help="Enable automatic mu scaling via gradient-norm balancing", + ) + parser.add_argument( + "--comm_mu_auto_rho", + type=float, + default=0.1, + help="Target anchor-to-interaction gradient ratio constant for auto-mu", + ) + parser.add_argument( + "--comm_mu_auto_eps", + type=float, + default=1e-8, + help="Numerical epsilon in auto-mu denominator", + ) + parser.add_argument( + "--comm_log_steps", + type=int, + default=50, + help="Log commutator preconditioning loss every N optimizer steps", + ) + parser.add_argument( + "--comm_skip_post_reselect", + action="store_true", + help=( + "Keep the pre-comm selected fusion pair and skip recomputing " + "selection after commutator preconditioning." + ), + ) + parser.add_argument( + "--comm_measure_gap", + action="store_true", + help=( + "Measure commutator residual gap before and after preconditioning. " + "Uses prepared eval data when available, otherwise the commutator dataloader." + ), + ) + parser.add_argument( + "--comm_gap_max_batches", + type=int, + default=8, + help="Max batches for --comm_measure_gap (0 = all available batches).", + ) + parser.add_argument( + "--redistrib_teacher_source", + type=str, + choices=["base_model", "previous_cycle"], + default="base_model", + help=( + "Teacher source for commutator preconditioning teacher loading. " + "'base_model' uses --model for all cycles; " + "'previous_cycle' uses cycle-1 checkpoint (cycle 1 falls back to base_model)." + ), + ) + parser.add_argument( + "--lora_epochs", + type=float, + default=1.0, + help="LoRA CE finetuning epochs after distill (0 = disable)", + ) + parser.add_argument( + "--lora_rank", + type=int, + default=8, + help="LoRA rank (r)", + ) + parser.add_argument( + "--lora_alpha", + type=float, + default=16.0, + help="LoRA alpha", + ) + parser.add_argument( + "--lora_dropout", + type=float, + default=0.0, + help="LoRA dropout", + ) + parser.add_argument( + "--lora_kl_enabled", + action="store_true", + help="Add KL regularization between pre/post LoRA logits", + ) + parser.add_argument( + "--lora_kl_weight", + type=float, + default=1e-1, + help="KL weight for LoRA regularization", + ) + parser.add_argument( + "--lora_kl_temp", + type=float, + default=4.0, + help="Temperature for LoRA KL regularization", + ) + parser.add_argument( + "--lora_target_modules", + nargs="*", + default=[ + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "gate_proj", + "down_proj", + "up_proj", + ], + help="Module name suffixes to LoRA-wrap", + ) + parser.add_argument( + "--lora_respect_exclude_pairs", + action="store_true", + help=( + "When attaching LoRA adapters, skip linear modules under layers touched by " + "--exclude_pairs (i and i+1 for each excluded pair)." + ), + ) + parser.add_argument( + "--lora_lr", + type=float, + default=1e-4, + help="Learning rate for LoRA finetuning", + ) + parser.add_argument( + "--lora_weight_decay", + type=float, + default=0.0, + help="Weight decay for LoRA finetuning", + ) + parser.add_argument( + "--lora_max_grad_norm", + type=float, + default=1.0, + help="Max grad norm for LoRA finetuning", + ) + parser.add_argument( + "--lora_grad_accum_steps", + type=int, + default=1, + help="Gradient accumulation steps for LoRA finetuning", + ) + parser.add_argument( + "--lora_log_steps", + type=int, + default=100, + help="Log LoRA loss every N steps", + ) + parser.add_argument( + "--lora_eval_every", + type=int, + default=0, + help="Evaluate PPL every N LoRA steps (0 = disable)", + ) + parser.add_argument( + "--lora_eval_max_batches", + type=int, + default=None, + help="Max eval batches per dataset during LoRA (default: all)", + ) + parser.add_argument( + "--instruction_dataset", + default=None, + help="HF dataset name for alpaca-style instruction data", + ) + parser.add_argument( + "--instruction_config", + default=None, + help="Optional instruction dataset config", + ) + parser.add_argument( + "--instruction_split", + default="train", + help="Instruction dataset split", + ) + parser.add_argument( + "--instruction_field_instruction", + default="instruction", + help="Instruction field name", + ) + parser.add_argument( + "--instruction_field_input", + default="input", + help="Optional input field name", + ) + parser.add_argument( + "--instruction_field_output", + default="output", + help="Response/output field name", + ) + parser.add_argument( + "--auto_max_batches", + type=int, + default=0, + help="Max calibration batches for auto selection scoring (0 = all)", + ) + parser.add_argument( + "--auto_metric", + type=str, + choices=[ + "dwce", + "final_hidden_relative_error", + "cosine", + "region_cosine_dwce", + "hybrid", + "hybrid_cosine", + "hybrid_global_rel", + ], + default="dwce", + help=( + "Auto pair scoring metric. 'dwce' uses downstream-weighted composition error; " + "'final_hidden_relative_error' measures surrogate-fusion error at the final hidden state; " + "'cosine' uses average token-level cosine distance between adjacent layer outputs; " + "'region_cosine_dwce' first finds the most cosine-redundant contiguous region " + "and then applies DWCE only within that region; " + "'hybrid'/'hybrid_cosine' use DWCE to shortlist then adjacent cosine for final scoring; " + "'hybrid_global_rel' uses DWCE to shortlist then reranks by the change in " + "pair-to-final-layer cosine relation after surrogate fusion." + ), + ) + parser.add_argument( + "--auto_cosine_topk", + type=int, + default=3, + help="Top-K DWCE candidates to rescore with cosine in --auto_metric=hybrid", + ) + parser.add_argument( + "--auto_region_width", + type=int, + default=4, + help=( + "Contiguous region width in adjacent pairs for " + "--auto_metric=region_cosine_dwce" + ), + ) + parser.add_argument( + "--fixed_region_pairs", + type=str, + default=None, + help=( + "Optional fixed original pair-start indices to restrict auto selection to. " + "Accepts comma-separated integers or ranges like 22-27. When set, " + "cosine region search is skipped and only these original pair starts are " + "considered by DWCE." + ), + ) + parser.add_argument( + "--auto_norm", + type=str, + choices=["relative", "none"], + default="relative", + help="Normalization mode for DWCE scoring (ignored for cosine)", + ) + parser.add_argument( + "--auto_dwce_mode", + type=str, + choices=["separate", "shared"], + default="separate", + help=( + "DWCE implementation for auto scoring. " + "'separate' runs distinct Fisher and DWCE backward passes; " + "'shared' reuses one backward pass and replays DWCE with cached gradients." + ), + ) + parser.add_argument( + "--auto_dwce_grad_power", + type=int, + choices=[1, 2], + default=2, + help="Exponent for DWCE gradient weighting. 2 matches the original DWCE; 1 uses |grad|.", + ) + parser.add_argument( + "--num_progressive", + type=int, + default=0, + help="Number of progressive fusions (>0 required)", + ) + parser.add_argument( + "--resume_from_cycle", + type=int, + default=0, + help=( + "Resume from this completed cycle index. When > 0, --model should point " + "to the saved full model directory for that cycle." + ), + ) + parser.add_argument( + "--save_full_model_cycles", + nargs="*", + default=[], + help=( + "Cycle indices whose full models should be saved. Requesting cycle c " + "also saves cycle c-1 automatically (c=1 saves only cycle 1)." + ), + ) + parser.add_argument( + "--profile_no_save", + action="store_true", + help=( + "Profiling-only mode: write metadata/timing logs but skip all weight " + "artifacts, including per-cycle fused layers and final save_pretrained outputs." + ), + ) + parser.add_argument( + "--skip_final_model_save", + action="store_true", + help=( + "Compact-checkpoint mode: keep each cycle's fused_layer.pt and metadata " + "but skip the duplicate final pre-LoRA and final model save_pretrained outputs." + ), + ) + return parser.parse_args() + + +def parse_exclude_pairs(exclude_raw: Optional[List[str]], num_pairs: int) -> List[int]: + """Parse --exclude_pairs into normalized pair indices for the current model. + + Indices refer to the start of an adjacent pair (i, i+1) and must be in [0..N-2]. + Negative indices count from the end (-1 = last pair). + """ + if not exclude_raw: + return [] + exclude: List[int] = [] + for item in exclude_raw: + if item is None: + continue + for part in str(item).split(","): + part = part.strip() + if not part: + continue + try: + idx = int(part) + except ValueError as exc: + raise SystemExit("--exclude_pairs must contain integers.") from exc + if idx < 0: + idx = num_pairs + idx + if 0 <= idx < num_pairs: + exclude.append(idx) + return sorted(set(exclude)) + + +def parse_cycle_list(raw_values: Optional[List[str]]) -> List[int]: + if not raw_values: + return [] + cycles: List[int] = [] + for item in raw_values: + if item is None: + continue + for part in str(item).split(","): + part = part.strip() + if not part: + continue + try: + cycles.append(int(part)) + except ValueError as exc: + raise SystemExit( + "--save_full_model_cycles must contain integers." + ) from exc + return cycles + + +def resolve_full_model_save_cycles( + requested_cycles: List[int], num_progressive: int +) -> Set[int]: + resolved: Set[int] = set() + for cycle in requested_cycles: + if cycle <= 0 or cycle > num_progressive: + raise SystemExit( + "--save_full_model_cycles entries must be within [1, --num_progressive]." + ) + resolved.add(cycle) + if cycle > 1: + resolved.add(cycle - 1) + return resolved + + +def load_resume_metadata(model_path: str) -> Optional[Dict[str, object]]: + resume_meta_path = os.path.join(model_path, "resume_info.json") + if not os.path.exists(resume_meta_path): + return None + with open(resume_meta_path, "r", encoding="utf-8") as handle: + loaded = json.load(handle) + return loaded if isinstance(loaded, dict) else None + + +def build_generator(seed: int) -> torch.Generator: + generator = torch.Generator(device="cpu") + generator.manual_seed(int(seed)) + return generator + + +def capture_rng_state() -> Dict[str, object]: + state: Dict[str, object] = { + "python_random_state": random.getstate(), + "torch_cpu_rng_state": torch.get_rng_state(), + } + if np is not None: + state["numpy_random_state"] = np.random.get_state() + if torch.cuda.is_available(): + state["torch_cuda_rng_state_all"] = torch.cuda.get_rng_state_all() + return state + + +def restore_rng_state(state: Dict[str, object]) -> None: + python_state = state.get("python_random_state") + if python_state is not None: + random.setstate(python_state) + + numpy_state = state.get("numpy_random_state") + if numpy_state is not None and np is not None: + np.random.set_state(numpy_state) + + torch_cpu_state = state.get("torch_cpu_rng_state") + if torch_cpu_state is not None: + torch.set_rng_state(torch_cpu_state) + + torch_cuda_state = state.get("torch_cuda_rng_state_all") + if torch_cuda_state is not None and torch.cuda.is_available(): + torch.cuda.set_rng_state_all(torch_cuda_state) + + +def save_rng_state(path: str) -> None: + torch.save(capture_rng_state(), path) + + +def load_rng_state(path: str) -> Optional[Dict[str, object]]: + if not os.path.exists(path): + return None + loaded = torch.load(path, map_location="cpu", weights_only=False) + return loaded if isinstance(loaded, dict) else None + + +def configure_reproducibility(seed: int) -> None: + random.seed(seed) + if np is not None: + np.random.seed(seed) + torch.manual_seed(seed) + if torch.cuda.is_available(): + torch.cuda.manual_seed_all(seed) + if hasattr(torch.backends, "cudnn"): + torch.backends.cudnn.deterministic = True + torch.backends.cudnn.benchmark = False + if hasattr(torch, "use_deterministic_algorithms"): + torch.use_deterministic_algorithms(True, warn_only=True) + + +def save_loader_generator_state( + base_dir: str, + *, + distill_generator: Optional[torch.Generator] = None, + lora_generator: Optional[torch.Generator] = None, +) -> None: + state: Dict[str, object] = {} + if distill_generator is not None: + state["distill_generator_state"] = distill_generator.get_state() + if lora_generator is not None: + state["lora_generator_state"] = lora_generator.get_state() + if state: + torch.save(state, os.path.join(base_dir, "loader_generators.pt")) + + +def load_loader_generator_state(base_dir: str) -> Optional[Dict[str, object]]: + path = os.path.join(base_dir, "loader_generators.pt") + if not os.path.exists(path): + return None + loaded = torch.load(path, map_location="cpu") + return loaded if isinstance(loaded, dict) else None + + +def parse_fixed_region_pairs(spec: Optional[str]) -> Optional[List[int]]: + if spec is None: + return None + text = str(spec).strip() + if not text: + return None + values: List[int] = [] + for part in text.split(","): + token = part.strip() + if not token: + continue + if "-" in token: + pieces = token.split("-") + if len(pieces) != 2: + raise SystemExit( + "--fixed_region_pairs accepts comma-separated integers or simple ranges like 22-27" + ) + start = int(pieces[0].strip()) + end = int(pieces[1].strip()) + if end < start: + start, end = end, start + values.extend(range(start, end + 1)) + else: + values.append(int(token)) + if not values: + return None + return sorted(set(values)) + + +def resolve_layer_idx( + args: argparse.Namespace, + model, + layers: List[torch.nn.Module], + dataloader, + cosine_dataloader, + previous_scores, + start_index: int, + exclude_pairs: Set[int], +): + layer_arg = str(getattr(args, "layer", "auto")).strip().lower() + selection_method = str(getattr(args, "selection_method", "dwce")).strip().lower() + + if layer_arg != "auto": + try: + layer_idx = int(layer_arg) + except ValueError as exc: + raise SystemExit("--layer must be 'auto' or an integer index") from exc + num_pairs = max(len(layers) - 1, 0) + if layer_idx < 0: + layer_idx += num_pairs + if layer_idx in exclude_pairs: + raise SystemExit(f"--layer resolved to excluded pair index {layer_idx}") + return layer_idx, previous_scores, {"method": "manual", "exclude_pairs": sorted(exclude_pairs)} + + if selection_method == "sequential": + num_pairs = len(layers) - 1 + for layer_idx in range(max(start_index, 0), num_pairs): + if layer_idx not in exclude_pairs: + return layer_idx, previous_scores, { + "method": "sequential", + "start_index": max(start_index, 0), + "exclude_pairs": sorted(exclude_pairs), + } + raise SystemExit("No eligible layer pairs remain after exclusions") + + layer_idx, dwce_scores, dwce_meta = select_layer_auto( + model, + layers, + dataloader, + cosine_dataloader, + args, + previous_scores=previous_scores, + start_index=start_index, + exclude_pairs=exclude_pairs, + ) + return layer_idx, dwce_scores, dwce_meta + + +@dataclass +class PreparedData: + calib_loader: torch.utils.data.DataLoader + calib_num_sequences: int + distill_loader: Optional[torch.utils.data.DataLoader] + distill_generator: Optional[torch.Generator] + distill_meta: Dict[str, object] + lora_loader: Optional[torch.utils.data.DataLoader] + lora_generator: Optional[torch.Generator] + lora_meta: Dict[str, object] + eval_datasets: List[str] + eval_configs: List[Optional[str]] + eval_dataloaders: Optional[Dict[str, torch.utils.data.DataLoader]] + + +def resolve_eval_datasets(args: argparse.Namespace) -> Tuple[List[str], List[Optional[str]]]: + eval_datasets = args.eval_dataset or ["wikitext2"] + eval_configs = args.eval_dataset_config or [] + eval_configs = ppl_eval._expand_dataset_configs(eval_datasets, eval_configs) + return eval_datasets, eval_configs + + +def _legacy_eval_compatible( + args: argparse.Namespace, + eval_datasets: List[str], + eval_configs: List[Optional[str]], +) -> bool: + # The legacy eval_ppl parser hardcodes the benchmark text field and split, + # so only use it for the default fuse_layers evaluation settings. + if legacy_eval_ppl is None: + return False + if args.eval_text_field is not None: + return False + if str(args.eval_split).strip().lower() != "test": + return False + return all( + legacy_eval_ppl.is_supported_dataset(dataset_name, config) + for dataset_name, config in zip(eval_datasets, eval_configs) + ) + + +def _legacy_eval_bos_mode(args: argparse.Namespace) -> str: + if args.eval_add_bos == "single": + return "single" + if args.eval_add_bos == "always": + return "every" + if args.eval_add_bos == "never": + return "none" + # Match script/run_eval_ppl.sh default behavior: one BOS at corpus start. + return "single" + + +def _ppl_eval_add_bos_mode(args: argparse.Namespace) -> str: + if args.eval_add_bos == "single": + # ppl_eval has no exact "single BOS at corpus start" mode. + # Fall back to its closest default behavior when legacy eval is unavailable. + return "auto" + return args.eval_add_bos + + +def _legacy_eval_labels( + eval_datasets: List[str], + eval_configs: List[Optional[str]], +) -> List[str]: + return [ + dataset_name if config is None else f"{dataset_name}:{config}" + for dataset_name, config in zip(eval_datasets, eval_configs) + ] + + +def _build_legacy_eval_dataloaders( + tokenizer, + eval_datasets: List[str], + eval_configs: List[Optional[str]], + args: argparse.Namespace, +) -> Dict[str, torch.utils.data.DataLoader]: + return legacy_eval_ppl.build_ppl_dataloaders( + eval_datasets, + tokenizer, + seq_len=args.eval_seq_len, + batch_size=args.eval_batch_size or args.batch_size, + configs=eval_configs, + labels=_legacy_eval_labels(eval_datasets, eval_configs), + bos_mode=_legacy_eval_bos_mode(args), + num_samples=args.eval_num_samples, + ) + + +def _resolve_eval_runtime_device( + model: torch.nn.Module, + requested_device: str, + *, + context: str, +) -> str: + if not model_is_sharded(model): + return requested_device + + primary_device = str(model_primary_device(model)) + devices = ", ".join(model_parameter_devices(model)) + if primary_device != requested_device: + print( + f"[device] {context}: keeping sharded model on {devices}; " + f"using primary device {primary_device} instead of requested {requested_device}." + ) + else: + print(f"[device] {context}: using existing sharded model placement {devices}.") + return primary_device + + +def _teacher_compute_dtype(args: argparse.Namespace) -> torch.dtype: + dtype = get_dtype(args.dtype) + if dtype is not None: + return dtype + return torch.bfloat16 + + +def _resolve_teacher_device_map( + args: argparse.Namespace, + model_id_or_path: str, +): + spec_raw = getattr(args, "distill_teacher_device_map", None) + if spec_raw is None: + return None + spec = str(spec_raw).strip() + if not spec or spec.lower() in {"none", "null"}: + return None + if bool(getattr(args, "distill_teacher_load_in_4bit", False)): + raise SystemExit( + "--distill_teacher_device_map cannot be combined with " + "--distill_teacher_load_in_4bit; use bf16 sharding or 4-bit single-device " + "teacher loading, not both." + ) + return resolve_model_device_map_spec( + spec, + model_path_or_id=model_id_or_path, + trust_remote_code=args.trust_remote_code, + cache_dir=args.model_cache_dir, + ) + + +def _teacher_load_kwargs( + args: argparse.Namespace, + teacher_device: str, + model_id_or_path: str, +) -> Tuple[Dict[str, object], bool]: + kwargs: Dict[str, object] = { + "cache_dir": args.model_cache_dir, + } + needs_manual_to = True + teacher_device_map = _resolve_teacher_device_map(args, model_id_or_path) + if teacher_device_map is not None: + kwargs["device_map"] = teacher_device_map + needs_manual_to = False + return kwargs, needs_manual_to + if bool(getattr(args, "distill_teacher_load_in_4bit", False)): + normalized = str(teacher_device).strip().lower() + if not normalized.startswith("cuda"): + raise SystemExit( + "--distill_teacher_load_in_4bit requires --distill_teacher_device to be a CUDA device." + ) + kwargs["quantization_config"] = BitsAndBytesConfig( + load_in_4bit=True, + bnb_4bit_compute_dtype=_teacher_compute_dtype(args), + bnb_4bit_quant_type="nf4", + bnb_4bit_use_double_quant=True, + ) + target_device = teacher_device if normalized != "cuda" else "cuda:0" + kwargs["device_map"] = {"": target_device} + needs_manual_to = False + return kwargs, needs_manual_to + + +def _load_teacher_causal_lm( + model_id_or_path: str, + args: argparse.Namespace, + teacher_device: str, +) -> torch.nn.Module: + teacher_kwargs, needs_manual_to = _teacher_load_kwargs( + args, + teacher_device, + model_id_or_path, + ) + model = load_causal_lm( + model_id_or_path, + torch_dtype=get_dtype(args.dtype), + trust_remote_code=args.trust_remote_code, + **teacher_kwargs, + ) + if needs_manual_to: + model.to(teacher_device) + model.eval() + return model + + +def run_ppl_eval( + model_id_or_path: str, + eval_datasets: List[str], + eval_configs: List[Optional[str]], + args: argparse.Namespace, + prepared_eval_dataloaders: Optional[Dict[str, torch.utils.data.DataLoader]] = None, +) -> Dict[str, float]: + eval_device = args.eval_device or args.device + dtype = get_dtype(args.eval_dtype) + resolved_device_map = resolve_model_device_map_spec( + getattr(args, "model_device_map", None), + model_path_or_id=model_id_or_path, + trust_remote_code=args.trust_remote_code, + ) + + eval_model = load_causal_lm( + model_id_or_path, + torch_dtype=dtype, + trust_remote_code=args.trust_remote_code, + device_map=resolved_device_map, + ) + + if model_is_sharded(eval_model): + eval_device = _resolve_eval_runtime_device( + eval_model, + eval_device, + context="run_ppl_eval", + ) + else: + eval_model.to(eval_device) + if prepared_eval_dataloaders is not None: + results = ppl_eval.evaluate_ppl_dataloaders( + eval_model, + prepared_eval_dataloaders, + eval_device, + max_batches=args.eval_max_batches, + ) + elif _legacy_eval_compatible(args, eval_datasets, eval_configs): + eval_tokenizer = AutoTokenizer.from_pretrained( + model_id_or_path, trust_remote_code=args.trust_remote_code + ) + if eval_tokenizer.pad_token is None and eval_tokenizer.eos_token is not None: + eval_tokenizer.pad_token = eval_tokenizer.eos_token + results = ppl_eval.evaluate_ppl_dataloaders( + eval_model, + _build_legacy_eval_dataloaders( + eval_tokenizer, + eval_datasets, + eval_configs, + args, + ), + eval_device, + max_batches=args.eval_max_batches, + ) + else: + eval_batch_size = args.eval_batch_size or args.batch_size + eval_tokenizer = AutoTokenizer.from_pretrained( + model_id_or_path, trust_remote_code=args.trust_remote_code + ) + if eval_tokenizer.pad_token is None and eval_tokenizer.eos_token is not None: + eval_tokenizer.pad_token = eval_tokenizer.eos_token + + results = ppl_eval.evaluate_ppl_datasets( + eval_model, + eval_tokenizer, + datasets=eval_datasets, + configs=eval_configs, + split=args.eval_split, + text_field=args.eval_text_field, + num_samples=args.eval_num_samples, + seq_len=args.eval_seq_len, + batch_size=eval_batch_size, + device=eval_device, + seed=args.seed, + shuffle=False, + model_family=args.eval_model_family, + add_bos=_ppl_eval_add_bos_mode(args), + max_batches=args.eval_max_batches, + cache_dir=args.eval_cache_dir, + num_workers=args.eval_num_workers, + ) + + del eval_model + if torch.cuda.is_available(): + torch.cuda.empty_cache() + + return results + + +def build_calibration_dataloader( + args: argparse.Namespace, tokenizer +) -> Tuple[List[str], List[torch.Tensor], torch.utils.data.DataLoader]: + if args.dataset: + datasets = list(args.dataset) + configs = expand_dataset_configs(datasets, list(args.dataset_config)) + chunks: List[torch.Tensor] = [] + for idx, (dataset_name, config) in enumerate(zip(datasets, configs)): + spec = SharedLMDataSpec( + dataset=dataset_name, + config=config, + split=args.dataset_split, + text_field=args.dataset_text_field, + seq_len=args.seq_len, + num_sequences=args.num_samples, + seed=args.seed + idx, + ) + chunks.extend(build_chunks(spec, tokenizer)) + if not chunks: + raise SystemExit("Not enough text to build token sequences.") + input_ids = torch.stack(chunks) + attention_mask = torch.ones_like(input_ids) + dataset = torch.utils.data.TensorDataset(input_ids, attention_mask) + dataloader = torch.utils.data.DataLoader( + dataset, batch_size=args.batch_size, shuffle=False + ) + return [], chunks, dataloader + + texts = load_texts(args) + if not texts: + raise SystemExit( + "No calibration text found. Provide --dataset, --text, or --text_file." + ) + + chunks = build_token_chunks(texts, tokenizer, args.seq_len, args.num_samples) + if not chunks: + raise SystemExit("Not enough text to build token sequences.") + + input_ids = torch.stack(chunks) + attention_mask = torch.ones_like(input_ids) + dataset = torch.utils.data.TensorDataset(input_ids, attention_mask) + dataloader = torch.utils.data.DataLoader( + dataset, batch_size=args.batch_size, shuffle=False + ) + return texts, chunks, dataloader + + +def prepare_distillation_data( + args: argparse.Namespace, tokenizer, include_instruction: bool = True +) -> Tuple[Optional[torch.utils.data.DataLoader], Optional[torch.Generator], Dict[str, object]]: + if ( + include_instruction + and args.distill_inst_samples != 0 + and not args.instruction_dataset + ): + print( + "Warning: --distill_inst_samples > 0 but no --instruction_dataset " + "provided; instruction distillation will be skipped." + ) + + calib_texts: List[str] = [] + calib_dataset = None + if args.target_tokens > 0 and args.dataset: + datasets = list(args.dataset) + configs = expand_dataset_configs(datasets, list(args.dataset_config)) + per_dataset = args.target_tokens // len(datasets) + remainder = args.target_tokens % len(datasets) + calib_chunks: List[torch.Tensor] = [] + for idx, (dataset_name, config) in enumerate(zip(datasets, configs)): + dataset_tokens = per_dataset + (remainder if idx == 0 else 0) + spec = SharedLMDataSpec( + dataset=dataset_name, + config=config, + split=args.dataset_split, + text_field=args.dataset_text_field, + seq_len=args.distill_seq_len, + target_tokens=dataset_tokens, + seed=args.seed + 17 + idx, + ) + calib_chunks.extend(build_chunks(spec, tokenizer)) + if calib_chunks: + input_ids = torch.stack(calib_chunks) + attention_mask = torch.ones_like(input_ids) + calib_dataset = torch.utils.data.TensorDataset(input_ids, attention_mask) + else: + calib_texts = load_texts_from_datasets( + datasets=list(args.dataset), + configs=expand_dataset_configs(list(args.dataset), list(args.dataset_config)), + split=args.dataset_split, + text_field=args.dataset_text_field, + num_samples=args.distill_calib_samples, + seed=args.seed + 17, + manifest_env_var="ABPRUNE_DISTILL_DATA_INDICES_FILE", + ) + inst_records = [] + if include_instruction: + inst_records = load_instruction_records( + args, + args.distill_inst_samples, + "ABPRUNE_DISTILL_DATA_INDICES_FILE", + ) + + distill_datasets = [] + if calib_dataset is not None: + distill_datasets.append(calib_dataset) + elif calib_texts: + calib_records = [{"text": text} for text in calib_texts] + distill_datasets.append( + FixedSeqDataset(calib_records, tokenizer, args.distill_seq_len) + ) + if inst_records: + distill_datasets.append( + FixedSeqDataset(inst_records, tokenizer, args.distill_seq_len) + ) + + distill_meta: Dict[str, object] = { + "calib_texts": len(calib_texts), + "calib_sequences": len(calib_dataset) if calib_dataset is not None else len(calib_texts), + "inst_sequences": len(inst_records), + "total_sequences": 0, + } + + if not distill_datasets: + return None, None, distill_meta + if len(distill_datasets) == 1: + distill_dataset = distill_datasets[0] + else: + distill_dataset = torch.utils.data.ConcatDataset(distill_datasets) + + distill_meta["total_sequences"] = len(distill_dataset) + distill_generator = build_generator( + args.seed + 1000 + (1000000 if include_instruction else 0) + ) + distill_loader = torch.utils.data.DataLoader( + distill_dataset, + batch_size=args.distill_batch_size, + shuffle=True, + generator=distill_generator, + ) + return distill_loader, distill_generator, distill_meta + + +def prepare_eval_dataloaders( + args: argparse.Namespace, + tokenizer, + model: torch.nn.Module, + eval_datasets: List[str], + eval_configs: List[Optional[str]], +) -> Optional[Dict[str, torch.utils.data.DataLoader]]: + if args.skip_eval: + return None + + if _legacy_eval_compatible(args, eval_datasets, eval_configs): + return _build_legacy_eval_dataloaders( + tokenizer, + eval_datasets, + eval_configs, + args, + ) + + eval_batch_size = args.eval_batch_size or args.batch_size + resolved_family = args.eval_model_family + if resolved_family == "auto": + resolved_family = ppl_eval._infer_model_family(model) + + return ppl_eval.prepare_ppl_dataloaders( + tokenizer=tokenizer, + datasets=eval_datasets, + configs=eval_configs, + split=args.eval_split, + text_field=args.eval_text_field, + num_samples=args.eval_num_samples, + seq_len=args.eval_seq_len, + batch_size=eval_batch_size, + seed=args.seed, + shuffle=False, + model_family=resolved_family, + add_bos=_ppl_eval_add_bos_mode(args), + cache_dir=args.eval_cache_dir, + num_workers=args.eval_num_workers, + model=model, + ) + + +def prepare_all_data( + args: argparse.Namespace, + tokenizer, + model: torch.nn.Module, + eval_datasets: List[str], + eval_configs: List[Optional[str]], + loader_generator_state: Optional[Dict[str, object]] = None, +) -> PreparedData: + texts, chunks, calib_loader = build_calibration_dataloader(args, tokenizer) + calib_num_sequences = len(chunks) + del texts + del chunks + + distill_loader = None + distill_generator = None + distill_meta: Dict[str, object] = { + "calib_texts": 0, + "calib_sequences": 0, + "inst_sequences": 0, + "total_sequences": 0, + } + lora_loader = None + lora_generator = None + lora_meta: Dict[str, object] = { + "calib_texts": 0, + "calib_sequences": 0, + "inst_sequences": 0, + "total_sequences": 0, + } + if (not args.skip_distill) or bool(getattr(args, "comm_enabled", False)): + distill_loader, distill_generator, distill_meta = prepare_distillation_data( + args, tokenizer, include_instruction=False + ) + if ( + distill_generator is not None + and loader_generator_state is not None + and loader_generator_state.get("distill_generator_state") is not None + ): + distill_generator.set_state(loader_generator_state["distill_generator_state"]) + if args.lora_epochs > 0: + lora_loader, lora_generator, lora_meta = prepare_distillation_data( + args, tokenizer, include_instruction=True + ) + if ( + lora_generator is not None + and loader_generator_state is not None + and loader_generator_state.get("lora_generator_state") is not None + ): + lora_generator.set_state(loader_generator_state["lora_generator_state"]) + + eval_dataloaders = prepare_eval_dataloaders( + args, tokenizer, model, eval_datasets, eval_configs + ) + + return PreparedData( + calib_loader=calib_loader, + calib_num_sequences=calib_num_sequences, + distill_loader=distill_loader, + distill_generator=distill_generator, + distill_meta=distill_meta, + lora_loader=lora_loader, + lora_generator=lora_generator, + lora_meta=lora_meta, + eval_datasets=eval_datasets, + eval_configs=eval_configs, + eval_dataloaders=eval_dataloaders, + ) + + +def evaluate_ppl_model( + model: torch.nn.Module, + tokenizer, + eval_datasets: List[str], + eval_configs: List[Optional[str]], + args: argparse.Namespace, + max_batches: Optional[int] = None, + prepared_eval_dataloaders: Optional[Dict[str, torch.utils.data.DataLoader]] = None, +) -> Dict[str, float]: + eval_device = args.eval_device or args.device + prev_mode = model.training + eval_dtype = get_dtype(args.eval_dtype) + sharded = model_is_sharded(model) + try: + first_param = next(model.parameters()) + prev_device = first_param.device + prev_dtype = first_param.dtype + except StopIteration: + prev_device = torch.device(eval_device) + prev_dtype = None + + model.eval() + if sharded: + eval_device = _resolve_eval_runtime_device( + model, + eval_device, + context="evaluate_ppl_model", + ) + if eval_dtype is not None and prev_dtype is not None and prev_dtype != eval_dtype: + print( + f"[eval] Sharded model kept at dtype={prev_dtype}; " + f"ignoring requested eval dtype {eval_dtype}." + ) + elif str(prev_device) != eval_device or ( + eval_dtype is not None and prev_dtype is not None and prev_dtype != eval_dtype + ): + move_kwargs = {"device": eval_device} + if eval_dtype is not None: + move_kwargs["dtype"] = eval_dtype + model.to(**move_kwargs) + + if prepared_eval_dataloaders is not None: + results = ppl_eval.evaluate_ppl_dataloaders( + model, + prepared_eval_dataloaders, + eval_device, + max_batches=max_batches if max_batches is not None else args.eval_max_batches, + ) + elif _legacy_eval_compatible(args, eval_datasets, eval_configs): + results = ppl_eval.evaluate_ppl_dataloaders( + model, + _build_legacy_eval_dataloaders( + tokenizer, + eval_datasets, + eval_configs, + args, + ), + eval_device, + max_batches=max_batches if max_batches is not None else args.eval_max_batches, + ) + else: + eval_batch_size = args.eval_batch_size or args.batch_size + results = ppl_eval.evaluate_ppl_datasets( + model, + tokenizer, + datasets=eval_datasets, + configs=eval_configs, + split=args.eval_split, + text_field=args.eval_text_field, + num_samples=args.eval_num_samples, + seq_len=args.eval_seq_len, + batch_size=eval_batch_size, + device=eval_device, + seed=args.seed, + shuffle=False, + model_family=args.eval_model_family, + add_bos=_ppl_eval_add_bos_mode(args), + max_batches=max_batches if max_batches is not None else args.eval_max_batches, + cache_dir=args.eval_cache_dir, + num_workers=args.eval_num_workers, + ) + + if prev_mode: + model.train() + if (not sharded) and ( + str(prev_device) != eval_device or ( + eval_dtype is not None and prev_dtype is not None and prev_dtype != eval_dtype + ) + ): + restore_kwargs = {"device": prev_device} + if prev_dtype is not None: + restore_kwargs["dtype"] = prev_dtype + model.to(**restore_kwargs) + if torch.cuda.is_available(): + torch.cuda.empty_cache() + + return results + + +def evaluate_temporary_fisher_merge_ppl( + model: torch.nn.Module, + tokenizer, + parent: object, + layer_attr: str, + container: object, + layer_idx: int, + layer_a: torch.nn.Module, + layer_b: torch.nn.Module, + fisher_sums, + num_batches: int, + param_numels, + norm_policy: str, + norm1_state: Optional[Dict[str, torch.Tensor]], + norm2_state: Optional[Dict[str, torch.Tensor]], + norm_names: Tuple[Optional[str], Optional[str]], + eval_datasets: List[str], + eval_configs: List[Optional[str]], + args: argparse.Namespace, + prepared_eval_dataloaders: Optional[Dict[str, torch.utils.data.DataLoader]] = None, +) -> Dict[str, float]: + layer_a_state = clone_state_dict(layer_a) + original_container = container + original_training = model.training + try: + with torch.no_grad(): + merge_layers( + layer_a, + layer_b, + fisher_sums[0], + fisher_sums[1], + num_batches, + param_numels[0], + param_numels[1], + fisher_mode=args.fisher_mode, + eps=args.eps, + ) + apply_norm_policy( + layer_a, + norm_policy, + norm1_state, + norm2_state, + norm_names, + ) + merged_container = drop_layer(original_container, layer_idx + 1) + setattr(parent, layer_attr, merged_container) + + return evaluate_ppl_model( + model, + tokenizer, + eval_datasets, + eval_configs, + args, + prepared_eval_dataloaders=prepared_eval_dataloaders, + ) + finally: + setattr(parent, layer_attr, original_container) + layer_a.load_state_dict(layer_a_state) + if original_training: + model.train() + else: + model.eval() + if torch.cuda.is_available(): + torch.cuda.empty_cache() + + +def has_post_fusion_data( + distill_loader: Optional[torch.utils.data.DataLoader], + distill_meta: Optional[Dict[str, object]], +) -> bool: + if distill_loader is None or distill_meta is None: + return False + return distill_meta.get("total_sequences", 0) > 0 + + +def summarize_gate_lambdas(gates: Dict[str, torch.Tensor]) -> Dict[str, object]: + if not gates: + return {"num_tensors": 0, "num_elements": 0} + + total_sum = 0.0 + total_elems = 0 + per_tensor_mean: Dict[str, Optional[float]] = {} + for name, gate in gates.items(): + g = gate.detach().float() + if g.numel() == 0: + per_tensor_mean[name] = None + continue + per_tensor_mean[name] = float(g.mean().item()) + total_sum += float(g.sum().item()) + total_elems += int(g.numel()) + + global_mean = None if total_elems == 0 else total_sum / float(total_elems) + return { + "num_tensors": len(gates), + "num_elements": total_elems, + "global_mean": global_mean, + "per_tensor_mean": per_tensor_mean, + } + + +def compute_path_bytes(path: str) -> int: + if os.path.isfile(path): + return os.path.getsize(path) + + total = 0 + for root, _, files in os.walk(path): + for name in files: + file_path = os.path.join(root, name) + if os.path.islink(file_path): + continue + try: + total += os.path.getsize(file_path) + except OSError: + continue + return total + + +def save_stage_checkpoint( + model: torch.nn.Module, + tokenizer, + stage_dir: str, + stage_name: str, + ppl_results: Optional[Dict[str, float]], +) -> Dict[str, object]: + os.makedirs(stage_dir, exist_ok=True) + colon_modules = find_colon_modules(model) + if colon_modules: + raise RuntimeError( + "Unexpected module names with ':' detected before save: " + f"{', '.join(colon_modules)}." + ) + + model.save_pretrained(stage_dir) + tokenizer.save_pretrained(stage_dir) + + stage_meta = { + "stage": stage_name, + "path": stage_dir, + "weight_bytes": compute_path_bytes(stage_dir), + "post_ppl": ppl_results, + } + with open( + os.path.join(stage_dir, "stage_metrics.json"), + "w", + encoding="utf-8", + ) as handle: + json.dump(stage_meta, handle, indent=2) + return stage_meta + + +def save_cycle_full_model( + model: torch.nn.Module, + tokenizer, + cycle_dir: str, + cycle_idx: int, + args: argparse.Namespace, + ppl_results: Optional[Dict[str, float]], +) -> Dict[str, object]: + full_model_dir = os.path.join(cycle_dir, "full_model") + stage_meta = save_stage_checkpoint( + model=model, + tokenizer=tokenizer, + stage_dir=full_model_dir, + stage_name=f"cycle_{cycle_idx}_full_model", + ppl_results=ppl_results, + ) + resume_meta = { + "base_model": getattr(args, "base_model_id", args.model), + "cycle": cycle_idx, + "output_dir": args.output_dir, + "layer_path": args.layer_path, + "rng_state": "rng_state.pt", + "loader_generators": "loader_generators.pt", + } + with open( + os.path.join(full_model_dir, "resume_info.json"), + "w", + encoding="utf-8", + ) as handle: + json.dump(resume_meta, handle, indent=2) + stage_meta["resume_info"] = "resume_info.json" + return stage_meta + + +def run_lora_phase( + model: torch.nn.Module, + tokenizer, + eval_datasets: List[str], + eval_configs: List[Optional[str]], + args: argparse.Namespace, + lora_loader: Optional[torch.utils.data.DataLoader] = None, + lora_meta: Optional[Dict[str, object]] = None, + eval_dataloaders: Optional[Dict[str, torch.utils.data.DataLoader]] = None, + cycle_idx: Optional[int] = None, + num_cycles: Optional[int] = None, +) -> List[Dict[str, object]]: + lora_eval_history: List[Dict[str, object]] = [] + if args.lora_epochs <= 0: + return lora_eval_history + if not has_post_fusion_data(lora_loader, lora_meta): + print("No post-fusion sequences built; skipping LoRA finetuning.") + return lora_eval_history + + lora_ce_finetune( + model=model, + dataloader=lora_loader, + eval_tokenizer=tokenizer, + eval_datasets=eval_datasets, + eval_configs=eval_configs, + eval_history=lora_eval_history, + args=args, + eval_dataloaders=eval_dataloaders, + progressive_cycle=cycle_idx, + progressive_total=num_cycles, + ) + return lora_eval_history + + +def run_progressive( + args: argparse.Namespace, + model: torch.nn.Module, + tokenizer, + prepared: PreparedData, +) -> None: + eval_datasets = prepared.eval_datasets + eval_configs = prepared.eval_configs + student_sharded = model_is_sharded(model) + if student_sharded: + print( + "[device] student model loaded across " + f"{', '.join(model_parameter_devices(model))}." + ) + + dataloader = prepared.calib_loader + num_sequences = prepared.calib_num_sequences + selection_args = args + fixed_region_start: Optional[int] = None + fixed_region_pairs: Optional[List[int]] = None + fixed_region_nodes: Optional[Set[int]] = None + fixed_region_score: Optional[float] = None + fixed_region_meta: Optional[Dict[str, object]] = None + active_layer_orig_ids: List[int] = list(range(len(list(find_layer_container(model, args.layer_path)[2])))) + manual_fixed_region_pairs = parse_fixed_region_pairs(getattr(args, "fixed_region_pairs", None)) + + if manual_fixed_region_pairs is not None: + fixed_region_pairs = list(manual_fixed_region_pairs) + fixed_region_nodes = set(fixed_region_pairs) + if fixed_region_pairs: + fixed_region_nodes.add(fixed_region_pairs[-1] + 1) + fixed_region_start = fixed_region_pairs[0] + fixed_region_score = None + fixed_region_meta = { + "source": "manual", + "region_pairs": list(fixed_region_pairs), + } + print( + "[auto] using manual fixed region pairs: " + f"{','.join(str(x) for x in fixed_region_pairs)}" + ) + selection_args = copy.copy(args) + selection_args.auto_metric = "dwce" + elif str(getattr(args, "auto_metric", "dwce")).strip().lower() == "region_cosine_dwce": + cosine_loader = ( + prepared.distill_loader + if prepared.distill_loader is not None + else prepared.calib_loader + ) + if cosine_loader is None: + raise SystemExit( + "--auto_metric=region_cosine_dwce requires calibration or distillation data." + ) + if not student_sharded: + model.to(args.device) + initial_exclude_pairs = set( + parse_exclude_pairs(args.exclude_pairs, max(len(active_layer_orig_ids) - 1, 0)) + ) + ( + fixed_region_start, + fixed_region_pairs, + fixed_region_score, + fixed_region_meta, + ) = select_best_region_by_cosine( + model, + list(find_layer_container(model, args.layer_path)[2]), + cosine_loader, + args, + start_index=0, + exclude_pairs=initial_exclude_pairs, + ) + print( + "[auto] fixed cosine region " + f"{fixed_region_start}-{fixed_region_pairs[-1] + 1} " + f"(pair-width={len(fixed_region_pairs)}, mean_cosine_distance={fixed_region_score:.6e})" + ) + dwce_candidate_pairs = fixed_region_meta.get("dwce_candidate_pairs") + if isinstance(dwce_candidate_pairs, list) and dwce_candidate_pairs: + fixed_region_pairs = [int(x) for x in dwce_candidate_pairs] + fixed_region_nodes = set(fixed_region_pairs) + fixed_region_nodes.add(fixed_region_pairs[-1] + 1) + print( + "[auto] remapped DWCE candidate pairs " + f"{fixed_region_pairs[0]}-{fixed_region_pairs[-1]} " + "(left-anchor interpretation)" + ) + selection_args = copy.copy(args) + selection_args.auto_metric = "dwce" + if not student_sharded: + model.cpu() + gc.collect() + if torch.cuda.is_available(): + torch.cuda.empty_cache() + + if not student_sharded: + model.to(args.device) + + os.makedirs(args.output_dir, exist_ok=True) + progressive_meta_path = os.path.join(args.output_dir, "progressive_metadata.json") + existing_meta: Dict[str, object] = {} + if args.resume_from_cycle > 0 and os.path.exists(progressive_meta_path): + with open(progressive_meta_path, "r", encoding="utf-8") as handle: + loaded_meta = json.load(handle) + if isinstance(loaded_meta, dict): + existing_meta = loaded_meta + + bootstrap_meta = { + "base_model": getattr(args, "base_model_id", args.model), + "num_progressive": args.num_progressive, + "layer_path": args.layer_path, + "resume_from_cycle": args.resume_from_cycle, + "save_full_model_cycles": sorted(args.full_model_save_cycles), + "student_device": args.device, + "student_model_device_map": getattr(args, "model_device_map", None), + "distill_teacher_device": args.distill_teacher_device or args.device, + "distill_teacher_device_map": getattr(args, "distill_teacher_device_map", None), + "distill_teacher_load_in_4bit": bool( + getattr(args, "distill_teacher_load_in_4bit", False) + ), + "kl_chunk_size": args.kl_chunk_size, + "cycles": ( + existing_meta.get("cycles", []) + if isinstance(existing_meta.get("cycles"), list) + else [] + ), + } + with open( + progressive_meta_path, + "w", + encoding="utf-8", + ) as handle: + json.dump(bootstrap_meta, handle, indent=2) + + pre_eval = None + if not args.skip_eval: + pre_eval = evaluate_ppl_model( + model, + tokenizer, + eval_datasets, + eval_configs, + args, + prepared_eval_dataloaders=prepared.eval_dataloaders, + ) + print("Pre-pruning perplexity:") + for dataset_name, ppl in pre_eval.items(): + print(f"{dataset_name}: {ppl:.4f}") + + post_merge_scale_chunks = None + if str(getattr(args, "post_merge_nll_scale", "none")) != "none": + post_merge_scale_chunks = build_scale_chunks(args, tokenizer) + print( + "[post-merge-nll-scale] prepared " + f"{len(post_merge_scale_chunks)} deterministic calibration chunks", + flush=True, + ) + + parent, name, container = find_layer_container(model, args.layer_path) + layers = list(container) + if args.num_progressive > (len(layers) - 1 + args.resume_from_cycle): + raise SystemExit( + f"--num_progressive ({args.num_progressive}) exceeds available pairs " + f"after resume offset ({len(layers) - 1 + args.resume_from_cycle})" + ) + + dwce_scores = None + dwce_meta = None + last_fused_idx = 0 + cycle_summaries: List[Dict[str, object]] = [] + existing_cycles = existing_meta.get("cycles", []) + if isinstance(existing_cycles, list): + for entry in existing_cycles: + if not isinstance(entry, dict): + continue + cycle_value = entry.get("cycle") + if isinstance(cycle_value, int) and cycle_value <= args.resume_from_cycle: + cycle_summaries.append(entry) + + comm_enabled = bool(getattr(args, "comm_enabled", False)) + comm_teacher_model = None + comm_teacher_cycle: Optional[int] = None + teacher_device = args.distill_teacher_device or args.device + teacher_cache_disabled_reason = None + if bool(getattr(args, "disable_previous_cycle_teacher_cache", False)): + teacher_cache_disabled_reason = "explicit flag" + elif student_sharded: + teacher_cache_disabled_reason = "sharded student model" + elif getattr(args, "distill_teacher_device_map", None): + teacher_cache_disabled_reason = "teacher device_map" + elif str(teacher_device).strip().lower() == "cpu": + teacher_cache_disabled_reason = "teacher_device=cpu" + if teacher_cache_disabled_reason is not None: + print( + "[teacher] previous-cycle in-memory cache disabled " + f"({teacher_cache_disabled_reason}); reloading from disk/base as needed." + ) + previous_cycle_teacher_model = None + previous_cycle_teacher_cycle: Optional[int] = None + + def _release_comm_teacher() -> None: + nonlocal comm_teacher_model, comm_teacher_cycle + if comm_teacher_model is not None: + del comm_teacher_model + comm_teacher_model = None + comm_teacher_cycle = None + gc.collect() + if torch.cuda.is_available(): + torch.cuda.empty_cache() + + def _release_previous_cycle_teacher() -> None: + nonlocal previous_cycle_teacher_model, previous_cycle_teacher_cycle + if previous_cycle_teacher_model is not None: + del previous_cycle_teacher_model + previous_cycle_teacher_model = None + previous_cycle_teacher_cycle = None + gc.collect() + if torch.cuda.is_available(): + torch.cuda.empty_cache() + + def _snapshot_previous_cycle_teacher(cycle_idx: int) -> None: + nonlocal previous_cycle_teacher_model, previous_cycle_teacher_cycle + if teacher_cache_disabled_reason is not None: + return + _release_previous_cycle_teacher() + previous_cycle_teacher_model = copy.deepcopy(model) + previous_cycle_teacher_model.to(teacher_device) + previous_cycle_teacher_model.eval() + previous_cycle_teacher_cycle = cycle_idx + + def _get_previous_cycle_teacher( + cycle_idx: int, + ) -> Tuple[Optional[torch.nn.Module], str, Optional[int]]: + prev_cycle = cycle_idx - 1 + if prev_cycle <= 0: + return None, "base_model", 0 + if ( + previous_cycle_teacher_model is not None + and previous_cycle_teacher_cycle == prev_cycle + ): + return previous_cycle_teacher_model, "previous_cycle_memory", prev_cycle + teacher_model_path_for_map = os.path.join( + args.output_dir, + f"cycle_{prev_cycle}", + "full_model", + ) + if not os.path.isdir(teacher_model_path_for_map): + teacher_model_path_for_map = getattr(args, "base_model_id", args.model) + teacher_kwargs, teacher_needs_manual_to = _teacher_load_kwargs( + args, + teacher_device, + teacher_model_path_for_map, + ) + teacher_model = load_progressive_model( + getattr(args, "base_model_id", args.model), + args.output_dir, + cycle=prev_cycle, + device=teacher_device if teacher_needs_manual_to else None, + dtype=args.dtype, + trust_remote_code=args.trust_remote_code, + layer_path=args.layer_path, + **teacher_kwargs, + ) + teacher_model.eval() + return teacher_model, "previous_cycle_disk", prev_cycle + + def _get_comm_teacher(cycle_idx: int) -> Tuple[Optional[torch.nn.Module], str, Optional[int]]: + nonlocal comm_teacher_model, comm_teacher_cycle + if not comm_enabled: + return None, "disabled", None + + source = str(getattr(args, "redistrib_teacher_source", "base_model")) + if source == "base_model": + if comm_teacher_model is None: + print( + "[comm] Loading fixed base teacher for anchor loss " + f"(device={teacher_device})." + ) + comm_teacher_model = _load_teacher_causal_lm( + getattr(args, "base_model_id", args.model), + args, + teacher_device, + ) + comm_teacher_cycle = 0 + return comm_teacher_model, "base_model", 0 + + prev_cycle = cycle_idx - 1 + if prev_cycle <= 0: + if comm_teacher_model is None or comm_teacher_cycle != 0: + _release_comm_teacher() + print( + "[comm] --redistrib_teacher_source=previous_cycle but cycle 1 " + "has no prior checkpoint; using base teacher." + ) + comm_teacher_model = _load_teacher_causal_lm( + getattr(args, "base_model_id", args.model), + args, + teacher_device, + ) + comm_teacher_cycle = 0 + return comm_teacher_model, "base_model", 0 + + if ( + previous_cycle_teacher_model is not None + and previous_cycle_teacher_cycle == prev_cycle + ): + if comm_teacher_model is not previous_cycle_teacher_model: + _release_comm_teacher() + comm_teacher_model = previous_cycle_teacher_model + comm_teacher_cycle = prev_cycle + return comm_teacher_model, "previous_cycle_memory", prev_cycle + + if comm_teacher_model is None or comm_teacher_cycle != prev_cycle: + _release_comm_teacher() + print( + "[comm] Loading teacher from previous cycle " + f"{prev_cycle} (device={teacher_device})." + ) + teacher_model_path_for_map = os.path.join( + args.output_dir, + f"cycle_{prev_cycle}", + "full_model", + ) + if not os.path.isdir(teacher_model_path_for_map): + teacher_model_path_for_map = getattr(args, "base_model_id", args.model) + teacher_kwargs, teacher_needs_manual_to = _teacher_load_kwargs( + args, + teacher_device, + teacher_model_path_for_map, + ) + comm_teacher_model = load_progressive_model( + getattr(args, "base_model_id", args.model), + args.output_dir, + cycle=prev_cycle, + device=teacher_device if teacher_needs_manual_to else None, + dtype=args.dtype, + trust_remote_code=args.trust_remote_code, + layer_path=args.layer_path, + **teacher_kwargs, + ) + comm_teacher_model.eval() + comm_teacher_cycle = prev_cycle + return comm_teacher_model, "previous_cycle_disk", prev_cycle + + def _comm_gap_dataloader(): + if prepared.eval_dataloaders: + first_key = next(iter(prepared.eval_dataloaders)) + return prepared.eval_dataloaders[first_key] + return prepared.calib_loader + + def _comm_train_dataloader(): + source = str(getattr(args, "comm_data_source", "auto")).strip().lower() + if source == "calib": + return prepared.calib_loader, "calib" + if source == "distill": + return prepared.distill_loader, "distill" + if prepared.distill_loader is not None: + return prepared.distill_loader, "distill" + return prepared.calib_loader, "calib" + + if args.resume_from_cycle > 0: + _snapshot_previous_cycle_teacher(args.resume_from_cycle) + + start_cycle = args.resume_from_cycle + 1 + for cycle_idx in range(start_cycle, args.num_progressive + 1): + cycle_timing_start = _timing_start() + component_seconds: Dict[str, float] = {} + + def _record_component(name: str, start: float) -> float: + elapsed = _timing_elapsed(start) + component_seconds[name] = component_seconds.get(name, 0.0) + elapsed + return elapsed + + print(f"[progressive] Cycle {cycle_idx}/{args.num_progressive}") + run_comm = comm_enabled and ( + cycle_idx > 1 or bool(getattr(args, "comm_include_cycle1", False)) + ) + comm_stats: Dict[str, object] = {"enabled": False} + comm_post_eval = None + comm_teacher_model_loaded = None + if run_comm: + # Preconditioning updates model weights, so DWCE reuse is unreliable. + start_index = 0 + reuse_scores = None + else: + start_index = last_fused_idx if cycle_idx > 1 else 0 + reuse_scores = dwce_scores + exclude_pairs = set(parse_exclude_pairs(args.exclude_pairs, max(len(layers) - 1, 0))) + if fixed_region_nodes is not None: + for idx in range(max(len(layers) - 1, 0)): + left_orig = active_layer_orig_ids[idx] + right_orig = active_layer_orig_ids[idx + 1] + if left_orig not in fixed_region_nodes or right_orig not in fixed_region_nodes: + exclude_pairs.add(idx) + selection_timing_start = _timing_start() + layer_idx, dwce_scores, dwce_meta = resolve_layer_idx( + selection_args, + model, + layers, + dataloader, + prepared.distill_loader, + reuse_scores, + start_index, + exclude_pairs, + ) + _record_component("selection", selection_timing_start) + if fixed_region_meta is not None: + dwce_meta = dict(dwce_meta or {}) + dwce_meta["fixed_cosine_region"] = { + "region_start": fixed_region_start, + "region_pairs": list( + fixed_region_meta.get("cosine_region_pairs", fixed_region_pairs or []) + ), + "dwce_candidate_pairs": list(fixed_region_pairs or []), + "region_score": fixed_region_score, + "region_meta": fixed_region_meta, + } + + rebase_timing_start = _timing_start() if run_comm else None + component_seconds["rebase"] = 0.0 + if run_comm: + gc.collect() + if torch.cuda.is_available(): + torch.cuda.empty_cache() + dwce_scores_pre_comm = dwce_scores + comm_dataloader, comm_data_source = _comm_train_dataloader() + if comm_dataloader is None: + requested_source = str( + getattr(args, "comm_data_source", "auto") + ).strip().lower() + if requested_source in {"calib", "distill"}: + raise RuntimeError( + "comm_enabled but the requested " + f"--comm_data_source={requested_source} loader was not built." + ) + print( + "[comm] Enabled but no distillation/calibration sequences were built; skipping." + ) + else: + ( + comm_teacher_model_loaded, + comm_teacher_source, + comm_teacher_cycle_idx, + ) = _get_comm_teacher(cycle_idx) + if comm_teacher_model_loaded is None: + raise RuntimeError("comm_enabled but teacher model was not loaded.") + comm_stats = commutator_precondition( + student_model=model, + student_layers=layers, + teacher_model=comm_teacher_model_loaded, + dataloader=comm_dataloader, + dwce_scores=dwce_scores_pre_comm, + exclude_pairs=exclude_pairs, + args=args, + progressive_cycle=cycle_idx, + progressive_total=args.num_progressive, + measure_dataloader=( + _comm_gap_dataloader() + if bool(getattr(args, "comm_measure_gap", False)) + else None + ), + ) + if comm_stats.get("enabled"): + comm_stats["teacher_source"] = comm_teacher_source + comm_stats["teacher_cycle"] = comm_teacher_cycle_idx + comm_stats["data_source"] = comm_data_source + comm_stats["dwce_scores_pre"] = dwce_scores_pre_comm + print( + "[comm] Done:" + f" opt_steps={comm_stats.get('opt_steps')}" + f" lr={comm_stats.get('lr')}" + ) + if not args.skip_eval: + comm_post_eval = evaluate_ppl_model( + model, + tokenizer, + eval_datasets, + eval_configs, + args, + prepared_eval_dataloaders=prepared.eval_dataloaders, + ) + comm_stats["post_ppl"] = comm_post_eval + print(f"[progressive] Cycle {cycle_idx} post-comm perplexity:") + for dataset_name, ppl in comm_post_eval.items(): + print(f"{dataset_name}: {ppl:.4f}") + + if bool(getattr(args, "comm_skip_post_reselect", False)): + comm_stats["post_selection_recomputed"] = False + comm_stats["selected_layer_post"] = int(layer_idx) + print( + "[comm] Keeping pre-comm DWCE pair selection for fusion." + ) + else: + print( + "[comm] Recomputing DWCE after preconditioning for fusion selection." + ) + layer_idx, dwce_scores, dwce_meta = resolve_layer_idx( + selection_args, + model, + layers, + dataloader, + prepared.distill_loader, + None, + 0, + exclude_pairs, + ) + comm_stats["post_selection_recomputed"] = True + comm_stats["selected_layer_post"] = int(layer_idx) + if ( + run_comm + and comm_teacher_model_loaded is not None + and teacher_cache_disabled_reason is not None + ): + reparam_teacher_cycle_for_release = cycle_idx - 1 + if reparam_teacher_cycle_for_release <= 0: + comm_teacher_matches_reparam = ( + comm_teacher_source == "base_model" + and comm_teacher_cycle_idx == 0 + ) + else: + comm_teacher_matches_reparam = ( + comm_teacher_source in {"previous_cycle_memory", "previous_cycle_disk"} + and comm_teacher_cycle_idx == reparam_teacher_cycle_for_release + ) + keep_comm_teacher_for_reparam = ( + (not args.skip_distill) + and has_post_fusion_data(prepared.distill_loader, prepared.distill_meta) + and (not bool(getattr(args, "reparam_skip_train", False))) + and float(args.distill_epochs) > 0.0 + and comm_teacher_matches_reparam + ) + if keep_comm_teacher_for_reparam: + print( + "[comm] Keeping comm teacher for FiT/reparam phase " + f"(source={comm_teacher_source}, cycle={comm_teacher_cycle_idx})." + ) + else: + print( + "[comm] Releasing comm teacher after comm phase " + f"({teacher_cache_disabled_reason})." + ) + comm_teacher_model_loaded = None + _release_comm_teacher() + if rebase_timing_start is not None: + _record_component("rebase", rebase_timing_start) + + if layer_idx < 0 or layer_idx >= len(layers) - 1: + raise SystemExit("--layer must be in [0, num_layers-2]") + + num_layers_before = len(layers) + layer_a = layers[layer_idx] + layer_b = layers[layer_idx + 1] + + norm1_state = None + norm2_state = None + norm1, norm2, norm_names = get_norm_pair(layer_a) + if norm1 is not None: + norm1_state = clone_state_dict(norm1) + if norm2 is not None: + norm2_state = clone_state_dict(norm2) + + attn_a = find_attention_module(layer_a) + attn_b = find_attention_module(layer_b) + hidden_size = getattr(model.config, "hidden_size", None) + if hidden_size is None: + hidden_size = getattr(model.config, "n_embd", None) + if hidden_size is None: + raise SystemExit("Model config missing hidden_size/n_embd") + + no_head_permute_merge = bool( + getattr(args, "no_head_permute_merge", False) + or getattr(args, "no_head_permute", False) + ) + if no_head_permute_merge: + print("[fuse] Head permutation disabled; merging with original head order.") + else: + head_timing_start = _timing_start() + mean_a, mean_b, num_heads, num_kv_heads, head_dim = compute_head_means( + model, + attn_a, + attn_b, + dataloader, + args.device, + hidden_size, + ) + + perm = build_head_permutation( + mean_a, + mean_b, + num_heads=num_heads, + num_kv_heads=num_kv_heads, + eps=args.eps, + ) + permute_attention_heads( + attn_b, perm, num_heads, num_kv_heads, head_dim=head_dim + ) + _record_component("head_permutation", head_timing_start) + + source_feature_transport_stats = None + contextual_fisher_stats = None + component_seconds["source_feature_transport"] = 0.0 + if bool(getattr(args, "source_feature_transport", False)): + transport_timing_start = _timing_start() + source_feature_transport_stats = fit_and_apply_source_feature_transport( + model=model, + layer_a=layer_a, + layer_b=layer_b, + dataloader=dataloader, + device=args.device, + ridge_relative=float(args.source_feature_transport_ridge_relative), + max_batches=int(args.source_feature_transport_max_batches), + ) + _record_component("source_feature_transport", transport_timing_start) + print( + "[source-feature-transport] " + f"cycle={cycle_idx} batches={source_feature_transport_stats['batches']} " + f"tokens={source_feature_transport_stats['tokens']} " + f"nmse={source_feature_transport_stats['calibration_nmse']:.6f} " + f"cosine={source_feature_transport_stats['calibration_cosine']:.6f} " + f"norm_ratio={source_feature_transport_stats['calibration_norm_ratio']:.6f}", + flush=True, + ) + + fisher_timing_start = _timing_start() + if bool(getattr(args, "source_feature_transport", False)): + ( + fisher_sums, + num_batches, + param_numels, + contextual_fisher_stats, + ) = compute_same_anchor_contextual_fisher( + model=model, + parent=parent, + layer_attr=name, + container=container, + layer_idx=layer_idx, + layer_a=layer_a, + layer_b=layer_b, + dataloader=dataloader, + device=args.device, + fisher_mode=args.fisher_mode, + ) + source_feature_transport_stats["fisher_order"] = ( + "source transport first; same-anchor post-pruning contextual Fisher second" + ) + print( + "[source-feature-transport] contextual-fisher " + f"cycle={cycle_idx} " + f"anchor_nll={contextual_fisher_stats['anchor_candidate_mean_nll']:.6f} " + f"source_nll={contextual_fisher_stats['transported_source_candidate_mean_nll']:.6f}", + flush=True, + ) + else: + fisher_sums, num_batches, param_numels = compute_fisher( + model, + layer_a, + layer_b, + dataloader, + fisher_mode=args.fisher_mode, + device=args.device, + ) + _record_component("fisher", fisher_timing_start) + + fit_timing_start = _timing_start() + distill_ready = has_post_fusion_data( + prepared.distill_loader, prepared.distill_meta + ) + teacher_cycle = cycle_idx - 1 + teacher_source = "previous_cycle" if teacher_cycle > 0 else "base_model" + + merge_method = "fisher" + distill_method = str(getattr(args, "distill_method", "reparam")) + reparam_stats: Optional[Dict[str, object]] = None + reparam_gate_summary: Optional[Dict[str, object]] = None + merge_only_eval = None + if bool(getattr(args, "eval_merge_only_ppl", False)) and not args.skip_eval: + print( + f"[progressive] Cycle {cycle_idx} temporary merge-only perplexity " + f"for pair {layer_idx}-{layer_idx + 1}:" + ) + merge_only_eval = evaluate_temporary_fisher_merge_ppl( + model=model, + tokenizer=tokenizer, + parent=parent, + layer_attr=name, + container=container, + layer_idx=layer_idx, + layer_a=layer_a, + layer_b=layer_b, + fisher_sums=fisher_sums, + num_batches=num_batches, + param_numels=param_numels, + norm_policy=args.norm_policy, + norm1_state=norm1_state, + norm2_state=norm2_state, + norm_names=norm_names, + eval_datasets=eval_datasets, + eval_configs=eval_configs, + args=args, + prepared_eval_dataloaders=prepared.eval_dataloaders, + ) + for dataset_name, ppl in merge_only_eval.items(): + print(f"{dataset_name}: {ppl:.4f}") + + reparam_teacher_cycle = cycle_idx - 1 + reparam_teacher_source = ( + "previous_cycle" if reparam_teacher_cycle > 0 else "base_model" + ) + needs_teacher_for_reparam = ( + (not args.skip_distill) + and distill_ready + and (not bool(getattr(args, "reparam_skip_train", False))) + and float(args.distill_epochs) > 0.0 + ) + def _comm_teacher_matches_reparam_teacher() -> bool: + if comm_teacher_model_loaded is None: + return False + if reparam_teacher_cycle <= 0: + return comm_teacher_source == "base_model" and comm_teacher_cycle_idx == 0 + return ( + comm_teacher_source in {"previous_cycle_memory", "previous_cycle_disk"} + and comm_teacher_cycle_idx == reparam_teacher_cycle + ) + + can_reuse_comm_teacher_for_reparam = ( + needs_teacher_for_reparam and _comm_teacher_matches_reparam_teacher() + ) + teacher_model = None + teacher_parent = None + teacher_layer_attr = None + teacher_layers: Optional[List[torch.nn.Module]] = None + teacher_from_cache = False + reused_comm_teacher_for_reparam = False + if needs_teacher_for_reparam: + if can_reuse_comm_teacher_for_reparam: + teacher_model = comm_teacher_model_loaded + teacher_source = comm_teacher_source + teacher_cycle = comm_teacher_cycle_idx + teacher_from_cache = True + reused_comm_teacher_for_reparam = True + print( + "[reparam] Reusing comm teacher for FiT/reparam phase " + f"(source={teacher_source}, cycle={teacher_cycle})." + ) + else: + teacher_model, teacher_source, teacher_cycle = _get_previous_cycle_teacher( + cycle_idx + ) + teacher_from_cache = ( + teacher_source == "previous_cycle_memory" + and teacher_model is previous_cycle_teacher_model + ) + if teacher_model is None: + teacher_model = _load_teacher_causal_lm( + getattr(args, "base_model_id", args.model), + args, + teacher_device, + ) + teacher_source = "base_model" + teacher_cycle = 0 + teacher_parent, teacher_layer_attr, teacher_container = find_layer_container( + teacher_model, args.layer_path + ) + teacher_layers = list(teacher_container) + + do_reparam = ( + (not args.skip_distill) + and distill_ready + and prepared.distill_loader is not None + ) + if (not args.skip_distill) and not do_reparam: + print("[reparam] No distillation sequences built; skipping reparam distill.") + distill_post_eval = None + if do_reparam: + lambda_source = "fisher_prior" + fisher_prior_input_summary = summarize_fisher_gate_prior_inputs( + layer_a=layer_a, + layer_b=layer_b, + fisher_a=fisher_sums[0], + fisher_b=fisher_sums[1], + num_batches=num_batches, + numels_a=param_numels[0], + numels_b=param_numels[1], + fisher_mode=args.fisher_mode, + eps=float(args.eps), + param_subset=args.reparam_param_subset, + ) + print( + "[reparam] fisher_prior_inputs " + f"fa_mean={fisher_prior_input_summary.get('fa_mean')} " + f"fb_mean={fisher_prior_input_summary.get('fb_mean')} " + f"active_ratio={fisher_prior_input_summary.get('active_ratio')} " + f"rel_contrast={fisher_prior_input_summary.get('mean_relative_contrast')} " + f"prior_mean={fisher_prior_input_summary.get('prior_mean')} " + f"prior_active_mean={fisher_prior_input_summary.get('prior_active_mean')}" + ) + reparam_gate_targets: Dict[str, object] = compute_fisher_gate_priors( + layer_a=layer_a, + layer_b=layer_b, + fisher_a=fisher_sums[0], + fisher_b=fisher_sums[1], + num_batches=num_batches, + numels_a=param_numels[0], + numels_b=param_numels[1], + fisher_mode=args.fisher_mode, + eps=float(args.eps), + ) + if not reparam_gate_targets: + raise SystemExit("[reparam] No mergeable parameters found; cannot continue.") + reparam_train_enabled = ( + (not bool(getattr(args, "reparam_skip_train", False))) + and float(args.distill_epochs) > 0.0 + ) + if reparam_train_enabled and (teacher_model is None or teacher_layers is None): + raise SystemExit("--distill_method reparam requires a teacher model.") + reparam_action = ( + "training U + gates" + if reparam_train_enabled + else "materializing Fisher-prior U + gates without training" + ) + print( + f"[reparam] Cycle {cycle_idx}: {reparam_action} for pair " + f"{layer_idx}-{layer_idx + 1} (epochs={args.distill_epochs}, " + f"skip_train={bool(getattr(args, 'reparam_skip_train', False))}, " + f"hidden_mse_w={args.distill_hidden_mse_weight}, " + f"attn_mse_w={args.distill_attn_mse_weight}, " + f"mlp_mse_w={args.distill_mlp_mse_weight}, " + f"eta={args.reparam_eta}, gamma={args.reparam_gamma}, " + f"attn_reg_scale={args.reparam_attn_reg_scale}, " + f"mlp_reg_scale={args.reparam_mlp_reg_scale}, " + f"param_subset={args.reparam_param_subset}, " + f"fisher_init_subset={args.reparam_fisher_init_subset}, " + f"train_subset={args.reparam_train_subset}, " + f"lambda_init={lambda_source})." + ) + merged, final_gates, reparam_stats = distill_reparam_merge( + student_model=model, + student_parent=parent, + student_layer_attr=name, + student_layers=layers, + teacher_model=teacher_model, + teacher_parent=teacher_parent, + teacher_layer_attr=teacher_layer_attr, + teacher_layers=teacher_layers, + layer_idx=layer_idx, + gate_lambdas=reparam_gate_targets, + dataloader=prepared.distill_loader, + args=args, + progressive_cycle=cycle_idx, + progressive_total=args.num_progressive, + ) + reparam_gate_summary = summarize_gate_lambdas(final_gates) + merge_method = "reparam" + if reparam_stats is not None: + reparam_stats["lambda_init"] = lambda_source + reparam_stats["fisher_prior_input_summary"] = fisher_prior_input_summary + else: + merged = merge_layers( + layer_a, + layer_b, + fisher_sums[0], + fisher_sums[1], + num_batches, + param_numels[0], + param_numels[1], + fisher_mode=args.fisher_mode, + eps=args.eps, + ) + + apply_norm_policy( + layer_a, + args.norm_policy, + norm1_state, + norm2_state, + norm_names, + ) + if teacher_model is not None and not teacher_from_cache: + del teacher_model + teacher_model = None + teacher_parent = None + teacher_layer_attr = None + teacher_layers = None + gc.collect() + if torch.cuda.is_available(): + torch.cuda.empty_cache() + if reused_comm_teacher_for_reparam: + teacher_model = None + teacher_parent = None + teacher_layer_attr = None + teacher_layers = None + comm_teacher_model_loaded = None + _release_comm_teacher() + _record_component("fit", fit_timing_start) + + materialize_timing_start = _timing_start() + new_container = drop_layer(container, layer_idx + 1) + setattr(parent, name, new_container) + decrement_config(model.config) + layers = list(new_container) + del active_layer_orig_ids[layer_idx + 1] + + post_merge_nll_scale_stats = None + if post_merge_scale_chunks is not None: + post_merge_nll_scale_stats = fit_and_fold_post_merge_scales( + model, + layers[layer_idx], + post_merge_scale_chunks, + args, + cycle=cycle_idx, + ) + + lora_post_eval = None + if (not args.skip_eval) and (not args.skip_distill) and do_reparam: + distill_post_eval = evaluate_ppl_model( + model, + tokenizer, + eval_datasets, + eval_configs, + args, + prepared_eval_dataloaders=prepared.eval_dataloaders, + ) + print(f"[progressive] Cycle {cycle_idx} post-distill perplexity:") + for dataset_name, ppl in distill_post_eval.items(): + print(f"{dataset_name}: {ppl:.4f}") + + post_eval = None + if not args.skip_eval: + if distill_post_eval is not None: + post_eval = distill_post_eval + else: + post_eval = evaluate_ppl_model( + model, + tokenizer, + eval_datasets, + eval_configs, + args, + prepared_eval_dataloaders=prepared.eval_dataloaders, + ) + print(f"[progressive] Cycle {cycle_idx} perplexity:") + for dataset_name, ppl in post_eval.items(): + print(f"{dataset_name}: {ppl:.4f}") + + cycle_dir = os.path.join(args.output_dir, f"cycle_{cycle_idx}") + os.makedirs(cycle_dir, exist_ok=True) + fused_layer_file = None + if args.profile_no_save: + print( + f"[profile] Skipping fused layer weight save for cycle {cycle_idx}." + ) + else: + fused_layer_file = "fused_layer.pt" + fused_layer_path = os.path.join(cycle_dir, fused_layer_file) + torch.save(layers[layer_idx].state_dict(), fused_layer_path) + _record_component("materialize_save_layer", materialize_timing_start) + + cycle_meta: Dict[str, object] = { + "cycle": cycle_idx, + "layer_merged": layer_idx, + "num_layers_before": num_layers_before, + "num_layers_after": num_layers_before - 1, + "fused_layer_state": fused_layer_file, + "profile_no_save": bool(args.profile_no_save), + "dwce_score": dwce_scores[layer_idx] if dwce_scores else None, + "dwce_scores": dwce_scores, + "dwce_meta": dwce_meta, + "fisher_num_batches": num_batches, + "merge_method": merge_method, + "merged_params": merged, + "num_sequences": num_sequences, + "teacher_source": teacher_source, + "teacher_cycle": teacher_cycle, + "eval": { + "datasets": eval_datasets, + "configs": eval_configs, + "split": args.eval_split, + "num_samples": args.eval_num_samples, + "seq_len": args.eval_seq_len, + "post_ppl": post_eval, + "merge_only_ppl": merge_only_eval, + }, + "comm": comm_stats, + "distill": { + "enabled": not args.skip_distill, + "method": distill_method, + "calib_samples": args.distill_calib_samples, + "inst_samples": args.distill_inst_samples, + "seq_len": args.distill_seq_len, + "batch_size": args.distill_batch_size, + "epochs": args.distill_epochs, + "lr": args.distill_lr, + "kl_weight": args.distill_kl_weight, + "kl_temp": args.distill_kl_temp, + "kl_chunk_size": args.kl_chunk_size, + "hidden_mse_weight": args.distill_hidden_mse_weight, + "attn_mse_weight": args.distill_attn_mse_weight, + "mlp_mse_weight": args.distill_mlp_mse_weight, + "reparam_eta": args.reparam_eta, + "reparam_gamma": args.reparam_gamma, + "reparam_attn_reg_scale": args.reparam_attn_reg_scale, + "reparam_mlp_reg_scale": args.reparam_mlp_reg_scale, + "reparam_param_subset": args.reparam_param_subset, + "reparam_train_subset": args.reparam_train_subset, + "reparam_skip_train": bool(getattr(args, "reparam_skip_train", False)), + "reparam_stats": reparam_stats, + "reparam_gate_summary": reparam_gate_summary, + "post_merge_nll_scale": post_merge_nll_scale_stats, + "merge_only_ppl": merge_only_eval, + "post_ppl": distill_post_eval, + "weight_decay": args.distill_weight_decay, + "max_grad_norm": args.distill_max_grad_norm, + "grad_accum_steps": args.distill_grad_accum_steps, + "instruction_dataset": args.instruction_dataset, + "instruction_config": args.instruction_config, + "instruction_split": args.instruction_split, + }, + "lora": { + "enabled": args.lora_epochs > 0, + "seq_len": args.distill_seq_len, + "batch_size": args.distill_batch_size, + "epochs": args.lora_epochs, + "rank": args.lora_rank, + "alpha": args.lora_alpha, + "dropout": args.lora_dropout, + "target_modules": args.lora_target_modules, + "respect_exclude_pairs": args.lora_respect_exclude_pairs, + "kl_enabled": args.lora_kl_enabled, + "kl_weight": args.lora_kl_weight, + "kl_temp": args.lora_kl_temp, + "post_ppl": lora_post_eval, + "lr": args.lora_lr, + "weight_decay": args.lora_weight_decay, + "max_grad_norm": args.lora_max_grad_norm, + "grad_accum_steps": args.lora_grad_accum_steps, + "log_steps": args.lora_log_steps, + "eval_every": args.lora_eval_every, + "eval_max_batches": args.lora_eval_max_batches, + }, + "norm_policy": args.norm_policy, + "source_feature_transport": source_feature_transport_stats, + "same_anchor_contextual_fisher": contextual_fisher_stats, + } + + saved_full_model_dir = None + if cycle_idx in args.full_model_save_cycles: + cycle_meta["full_model_saved"] = True + cycle_meta["full_model"] = save_cycle_full_model( + model=model, + tokenizer=tokenizer, + cycle_dir=cycle_dir, + cycle_idx=cycle_idx, + args=args, + ppl_results=post_eval, + ) + saved_full_model_dir = os.path.join(cycle_dir, "full_model") + else: + cycle_meta["full_model_saved"] = False + + metadata_timing_start = _timing_start() + cycle_meta_path = os.path.join(cycle_dir, "cycle_metadata.json") + with open( + cycle_meta_path, + "w", + encoding="utf-8", + ) as handle: + json.dump(cycle_meta, handle, indent=2) + _record_component("metadata_write", metadata_timing_start) + + cycle_summary: Dict[str, object] = { + "cycle": cycle_idx, + "layer_merged": layer_idx, + "dwce_score": dwce_scores[layer_idx] if dwce_scores else None, + "comm_post_ppl": comm_post_eval, + "merge_only_ppl": merge_only_eval, + "distill_post_ppl": distill_post_eval, + "lora_post_ppl": lora_post_eval, + "post_ppl": post_eval, + "cycle_dir": f"cycle_{cycle_idx}", + } + cycle_summaries.append(cycle_summary) + + last_fused_idx = layer_idx + snapshot_timing_start = _timing_start() + _snapshot_previous_cycle_teacher(cycle_idx) + _record_component("teacher_snapshot", snapshot_timing_start) + + cleanup_timing_start = _timing_start() + parent, name, container = find_layer_container(model, args.layer_path) + layers = list(container) + if dwce_scores: + dwce_scores = dwce_scores[: max(len(layers) - 1, 0)] + + # Encourage allocator to release cached blocks between cycles. + if torch.cuda.is_available(): + torch.cuda.empty_cache() + torch.cuda.ipc_collect() + gc.collect() + _record_component("cycle_cleanup", cleanup_timing_start) + + if saved_full_model_dir is not None: + save_rng_state(os.path.join(saved_full_model_dir, "rng_state.pt")) + save_loader_generator_state( + saved_full_model_dir, + distill_generator=prepared.distill_generator, + lora_generator=prepared.lora_generator, + ) + + component_seconds["cycle_total"] = _timing_elapsed(cycle_timing_start) + timing_meta = _timing_summary(component_seconds) + cycle_meta["timing"] = timing_meta + cycle_summary["timing"] = timing_meta + with open(cycle_meta_path, "w", encoding="utf-8") as handle: + json.dump(cycle_meta, handle, indent=2) + _print_cycle_timing(cycle_idx, timing_meta) + + _release_comm_teacher() + _release_previous_cycle_teacher() + + final_pre_lora_eval = cycle_summaries[-1]["post_ppl"] if cycle_summaries else None + final_pre_lora_dir = f"{os.path.abspath(args.output_dir.rstrip(os.sep))}_final_pre_lora_hf" + if args.profile_no_save or args.skip_final_model_save: + skip_reason = "profile_no_save" if args.profile_no_save else "compact_only" + final_pre_lora_meta = { + "stage": "final_pre_lora", + "path": final_pre_lora_dir, + "skipped": True, + "reason": skip_reason, + "post_ppl": final_pre_lora_eval, + } + print(f"[save] Skipping final pre-LoRA weight save ({skip_reason}).") + else: + final_pre_lora_meta = save_stage_checkpoint( + model=model, + tokenizer=tokenizer, + stage_dir=final_pre_lora_dir, + stage_name="final_pre_lora", + ppl_results=final_pre_lora_eval, + ) + + # Optional final LoRA finetune after all pruning cycles. + lora_eval_history: List[Dict[str, object]] = [] + lora_post_eval = None + lora_ready = has_post_fusion_data(prepared.lora_loader, prepared.lora_meta) + if args.lora_epochs > 0: + if not lora_ready: + print("No post-fusion sequences built; skipping LoRA finetuning.") + else: + print( + f"[progressive] Running final LoRA finetuning (epochs={args.lora_epochs})." + ) + lora_eval_history = run_lora_phase( + model=model, + tokenizer=tokenizer, + eval_datasets=eval_datasets, + eval_configs=eval_configs, + args=args, + lora_loader=prepared.lora_loader, + lora_meta=prepared.lora_meta, + eval_dataloaders=prepared.eval_dataloaders, + cycle_idx=args.num_progressive, + num_cycles=args.num_progressive, + ) + + if not args.skip_eval: + lora_post_eval = evaluate_ppl_model( + model, + tokenizer, + eval_datasets, + eval_configs, + args, + prepared_eval_dataloaders=prepared.eval_dataloaders, + ) + print("[progressive] Post-LoRA perplexity:") + for dataset_name, ppl in lora_post_eval.items(): + print(f"{dataset_name}: {ppl:.4f}") + + # Update final cycle metadata and summary with the post-LoRA PPL. + if cycle_summaries: + cycle_summaries[-1]["lora_post_ppl"] = lora_post_eval + if lora_post_eval is not None: + cycle_summaries[-1]["post_ppl"] = lora_post_eval + + final_cycle_dir = os.path.join( + args.output_dir, f"cycle_{args.num_progressive}" + ) + final_cycle_meta_path = os.path.join(final_cycle_dir, "cycle_metadata.json") + if os.path.exists(final_cycle_meta_path): + with open(final_cycle_meta_path, "r", encoding="utf-8") as handle: + final_cycle_meta = json.load(handle) + + lora_meta_entry = final_cycle_meta.get("lora") + if not isinstance(lora_meta_entry, dict): + lora_meta_entry = {} + final_cycle_meta["lora"] = lora_meta_entry + lora_meta_entry["ran"] = True + lora_meta_entry["post_ppl"] = lora_post_eval + if lora_post_eval is not None and isinstance( + final_cycle_meta.get("eval"), dict + ): + final_cycle_meta["eval"]["post_ppl"] = lora_post_eval + + if lora_eval_history: + lora_path = os.path.join(final_cycle_dir, "ppl_over_lora.json") + with open(lora_path, "w", encoding="utf-8") as handle: + json.dump(lora_eval_history, handle, indent=2) + lora_meta_entry["ppl_over_lora"] = "ppl_over_lora.json" + + with open(final_cycle_meta_path, "w", encoding="utf-8") as handle: + json.dump(final_cycle_meta, handle, indent=2) + + os.makedirs(args.output_dir, exist_ok=True) + if args.profile_no_save or args.skip_final_model_save: + skip_reason = "profile_no_save" if args.profile_no_save else "compact_only" + final_post_lora_meta = { + "stage": "final_post_lora" if lora_post_eval is not None else "final_model", + "path": args.output_dir, + "skipped": True, + "reason": skip_reason, + "post_ppl": lora_post_eval, + } + print(f"[save] Skipping final model weight save ({skip_reason}).") + else: + final_post_lora_meta = save_stage_checkpoint( + model=model, + tokenizer=tokenizer, + stage_dir=args.output_dir, + stage_name="final_post_lora" if lora_post_eval is not None else "final_model", + ppl_results=lora_post_eval, + ) + + progressive_meta = { + "base_model": getattr(args, "base_model_id", args.model), + "num_progressive": args.num_progressive, + "layer_path": args.layer_path, + "resume_from_cycle": args.resume_from_cycle, + "profile_no_save": bool(args.profile_no_save), + "skip_final_model_save": bool(args.skip_final_model_save), + "save_full_model_cycles": sorted(args.full_model_save_cycles), + "num_sequences": num_sequences, + "seq_len": args.seq_len, + "lora": { + "enabled": args.lora_epochs > 0, + "ran": args.lora_epochs > 0 and lora_ready, + "seq_len": args.distill_seq_len, + "batch_size": args.distill_batch_size, + "epochs": args.lora_epochs, + "rank": args.lora_rank, + "alpha": args.lora_alpha, + "dropout": args.lora_dropout, + "target_modules": args.lora_target_modules, + "respect_exclude_pairs": args.lora_respect_exclude_pairs, + "kl_enabled": args.lora_kl_enabled, + "kl_weight": args.lora_kl_weight, + "kl_temp": args.lora_kl_temp, + "post_ppl": lora_post_eval, + "ppl_over_lora": ( + f"cycle_{args.num_progressive}/ppl_over_lora.json" + if lora_eval_history + else None + ), + "lr": args.lora_lr, + "weight_decay": args.lora_weight_decay, + "max_grad_norm": args.lora_max_grad_norm, + "grad_accum_steps": args.lora_grad_accum_steps, + "log_steps": args.lora_log_steps, + "eval_every": args.lora_eval_every, + "eval_max_batches": args.lora_eval_max_batches, + }, + "artifacts": { + "final_pre_lora": final_pre_lora_meta, + "final_post_lora": final_post_lora_meta, + }, + "eval": { + "datasets": eval_datasets, + "configs": eval_configs, + "split": args.eval_split, + "num_samples": args.eval_num_samples, + "seq_len": args.eval_seq_len, + "pre_ppl": pre_eval, + "post_ppl": cycle_summaries[-1]["post_ppl"] if cycle_summaries else None, + }, + "cycles": cycle_summaries, + "final_num_layers": len(layers), + } + + with open( + os.path.join(args.output_dir, "progressive_metadata.json"), + "w", + encoding="utf-8", + ) as handle: + json.dump(progressive_meta, handle, indent=2) + + print( + f"[progressive] Completed {args.num_progressive} cycles. " + + ( + f"Profiling metadata written to {args.output_dir}; final model save skipped." + if args.profile_no_save + else ( + f"Compact weights written to {args.output_dir}; final dense model save skipped." + if args.skip_final_model_save else f"Final model saved to {args.output_dir}." + ) + ) + ) + + +def main() -> None: + args = parse_args() + if args.num_progressive <= 0: + raise SystemExit( + "Single-cycle mode has been removed. Pass --num_progressive > 0." + ) + if args.resume_from_cycle < 0: + raise SystemExit("--resume_from_cycle must be >= 0.") + if args.resume_from_cycle >= args.num_progressive: + raise SystemExit("--resume_from_cycle must be smaller than --num_progressive.") + args.full_model_save_cycles = resolve_full_model_save_cycles( + parse_cycle_list(args.save_full_model_cycles), + args.num_progressive, + ) + if args.profile_no_save: + args.full_model_save_cycles = set() + args.base_model_id = args.model + if args.resume_from_cycle > 0: + resume_meta = load_resume_metadata(args.model) + if resume_meta is None: + raise SystemExit( + "--resume_from_cycle requires --model to point to a saved cycle full model " + "directory containing resume_info.json." + ) + resume_cycle = resume_meta.get("cycle") + if resume_cycle is not None and int(resume_cycle) != args.resume_from_cycle: + raise SystemExit( + "resume_info.json cycle does not match --resume_from_cycle." + ) + base_model = resume_meta.get("base_model") + if isinstance(base_model, str) and base_model: + args.base_model_id = base_model + configure_reproducibility(args.seed) + + eval_datasets, eval_configs = resolve_eval_datasets(args) + dtype = get_dtype(args.dtype) + student_device_map = resolve_model_device_map_spec( + args.model_device_map, + model_path_or_id=args.model, + trust_remote_code=args.trust_remote_code, + cache_dir=args.model_cache_dir, + ) + if student_device_map is not None: + print(f"[device] student model_device_map={args.model_device_map}") + model = load_causal_lm( + args.model, + torch_dtype=dtype, + trust_remote_code=args.trust_remote_code, + cache_dir=args.model_cache_dir, + device_map=student_device_map, + ) + loader_generator_state = None + if args.resume_from_cycle > 0: + rng_state_path = os.path.join(args.model, "rng_state.pt") + rng_state = load_rng_state(rng_state_path) + if rng_state is not None: + restore_rng_state(rng_state) + loader_generator_state = load_loader_generator_state(args.model) + tokenizer = AutoTokenizer.from_pretrained( + args.model, + trust_remote_code=args.trust_remote_code, + cache_dir=args.model_cache_dir, + ) + print(model) + if tokenizer.pad_token is None and tokenizer.eos_token is not None: + tokenizer.pad_token = tokenizer.eos_token + + # for llama? + model.config.use_cache = False + + prepared = prepare_all_data( + args, + tokenizer, + model, + eval_datasets, + eval_configs, + loader_generator_state=loader_generator_state, + ) + run_progressive(args, model, tokenizer, prepared) + + +if __name__ == "__main__": + main() diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fuse_layers_distill.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fuse_layers_distill.py new file mode 100644 index 0000000000000000000000000000000000000000..3112fcf513cbf4963f90b2b9707c1972dba458e4 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/fuse_layers_distill.py @@ -0,0 +1,3824 @@ +#!/usr/bin/env python3 +"""Distillation helpers for fuse_layers.""" + +import argparse +import gc +import itertools +import math +import os +from contextlib import contextmanager, nullcontext +from typing import Dict, List, Optional, Set, Tuple + +import torch +import torch.nn.functional as F + +try: + import ppl_eval +except Exception as exc: # pragma: no cover - optional dependency + raise SystemExit("ppl_eval.py is required (missing or invalid)") from exc +try: + from tqdm import tqdm +except Exception: # pragma: no cover - optional dependency + tqdm = None + +try: + from torch.func import functional_call as _functional_call +except Exception: # pragma: no cover - depends on torch version + try: + from torch.nn.utils.stateless import functional_call as _functional_call + except Exception: # pragma: no cover - depends on torch version + _functional_call = None + +from fuse_layers_model import find_attention_module, find_mlp_module + + +def _tqdm_enabled() -> bool: + value = os.environ.get("DISABLE_TQDM", os.environ.get("TQDM_DISABLE", "0")) + return value.strip().lower() not in {"1", "true", "yes", "on"} + + +@contextmanager +def temporary_layers(parent: object, name: str, new_layers: torch.nn.Module): + original = getattr(parent, name) + setattr(parent, name, new_layers) + try: + yield + finally: + setattr(parent, name, original) + + +@contextmanager +def temporary_norm(parent: object): + if hasattr(parent, "norm"): + original = getattr(parent, "norm") + setattr(parent, "norm", torch.nn.Identity()) + try: + yield + finally: + setattr(parent, "norm", original) + else: + yield + + +def forward_truncated( + parent: torch.nn.Module, + layer_attr: str, + layers: List[torch.nn.Module], + upto: int, + input_ids: torch.Tensor, + attention_mask: Optional[torch.Tensor] = None, +) -> torch.Tensor: + truncated = torch.nn.ModuleList(layers[:upto]) + with temporary_layers(parent, layer_attr, truncated), temporary_norm(parent): + outputs = parent( + input_ids=input_ids, + attention_mask=attention_mask, + use_cache=False, + ) + if hasattr(outputs, "last_hidden_state"): + return outputs.last_hidden_state + return outputs[0] + + +def _masked_hidden_mse(diff: torch.Tensor, attention_mask: torch.Tensor) -> Optional[torch.Tensor]: + diff_f = diff.float() + mask = attention_mask.to(device=diff.device, dtype=torch.float32) + denom = mask.sum() * diff_f.size(-1) + if denom.item() == 0: + return None + return (diff_f.pow(2) * mask.unsqueeze(-1)).sum() / denom + + +def _extract_hidden_like(output) -> Optional[torch.Tensor]: + if torch.is_tensor(output): + return output + if isinstance(output, (tuple, list)) and output: + first = output[0] + if torch.is_tensor(first): + return first + if hasattr(output, "last_hidden_state"): + hidden = getattr(output, "last_hidden_state") + if torch.is_tensor(hidden): + return hidden + return None + + +def _add_weighted_loss( + total_loss: Optional[torch.Tensor], + term: Optional[torch.Tensor], + weight: float, +) -> Optional[torch.Tensor]: + if term is None: + return total_loss + weighted = float(weight) * term + if total_loss is None: + return weighted + if weighted.device != total_loss.device: + weighted = weighted.to(total_loss.device) + return total_loss + weighted + + +def _move_tensor_tree_to_device(value: object, device: torch.device) -> object: + if isinstance(value, torch.Tensor): + return value.to(device=device) + if isinstance(value, tuple): + return tuple(_move_tensor_tree_to_device(item, device) for item in value) + if isinstance(value, list): + return [_move_tensor_tree_to_device(item, device) for item in value] + if isinstance(value, dict): + return { + key: _move_tensor_tree_to_device(item, device) + for key, item in value.items() + } + return value + + +def _sum_grad_to_shape(grad: torch.Tensor, shape: torch.Size) -> torch.Tensor: + while grad.dim() > len(shape): + grad = grad.sum(dim=0) + for dim, size in enumerate(shape): + if size == 1 and grad.shape[dim] != 1: + grad = grad.sum(dim=dim, keepdim=True) + return grad + + +def _to_reparam_work_tensor(tensor: torch.Tensor, device: torch.device) -> torch.Tensor: + return tensor.detach().to(device=device, dtype=torch.float32) + + +def _initial_reparam_u( + param_a: torch.Tensor, + param_b: torch.Tensor, + device: torch.device, +) -> torch.Tensor: + return 0.5 * ( + _to_reparam_work_tensor(param_a, device) + - _to_reparam_work_tensor(param_b, device) + ) + + +class _ReparamMergedParamFn(torch.autograd.Function): + @staticmethod + def forward( + ctx, + param_a: torch.Tensor, + param_b: torch.Tensor, + gate: torch.Tensor, + u: torch.Tensor, + out_dtype: torch.dtype, + ) -> torch.Tensor: + ctx.save_for_backward(gate, u) + ctx.gate_shape = gate.shape + + work = torch.empty_like(u, dtype=torch.float32) + work.copy_(param_a.detach()) + work.add_(param_b.detach().to(device=work.device, dtype=work.dtype)).mul_(0.5) + scale = torch.sigmoid(gate.to(dtype=torch.float32)).mul_(2.0).sub_(1.0) + work.addcmul_(scale, u.to(dtype=torch.float32)) + return work.to(dtype=out_dtype) + + @staticmethod + def backward(ctx, grad_output: torch.Tensor): + gate, u = ctx.saved_tensors + grad_f = grad_output.to(device=u.device, dtype=torch.float32) + scale = torch.sigmoid(gate.to(dtype=torch.float32)).mul_(2.0).sub_(1.0) + + grad_gate = grad_f * u.to(dtype=torch.float32) + grad_u = grad_f.mul_(scale) + scale.square_().neg_().add_(1.0).mul_(0.5) + grad_gate.mul_(scale) + grad_gate = _sum_grad_to_shape(grad_gate, ctx.gate_shape) + return None, None, grad_gate, grad_u, None + + +def _merge_reparam_param( + param_a: torch.Tensor, + param_b: torch.Tensor, + gate: torch.Tensor, + u: torch.Tensor, +) -> torch.Tensor: + return _ReparamMergedParamFn.apply(param_a, param_b, gate, u, param_a.dtype) + + +def _merge_reparam_param_no_grad( + param_a: torch.Tensor, + param_b: torch.Tensor, + gate: torch.Tensor, + u: torch.Tensor, +) -> torch.Tensor: + work = torch.empty_like(u, dtype=torch.float32) + work.copy_(param_a.detach()) + work.add_(param_b.detach().to(device=work.device, dtype=work.dtype)).mul_(0.5) + scale = torch.sigmoid(gate.to(dtype=torch.float32)).mul_(2.0).sub_(1.0) + work.addcmul_(scale, u.to(dtype=torch.float32)) + return work.to(dtype=param_a.dtype) + + +class _AdditiveUMergedParamFn(torch.autograd.Function): + """Frozen Fisher initialization plus a free additive FiT correction.""" + + @staticmethod + def forward( + ctx, + param_a: torch.Tensor, + param_b: torch.Tensor, + fisher_gate: torch.Tensor, + u_add: torch.Tensor, + out_dtype: torch.dtype, + ) -> torch.Tensor: + fisher_lambda = torch.sigmoid(fisher_gate.detach().float()) + a = param_a.detach().to(device=u_add.device, dtype=torch.float32) + b = param_b.detach().to(device=u_add.device, dtype=torch.float32) + fisher = b + fisher_lambda * (a - b) + ctx.u_device = u_add.device + return (fisher + u_add.float()).to(dtype=out_dtype) + + @staticmethod + def backward(ctx, grad_output: torch.Tensor): + grad_u = grad_output.to(device=ctx.u_device, dtype=torch.float32) + return None, None, None, grad_u, None + + +def _merge_reparam_param_additive_u( + param_a: torch.Tensor, + param_b: torch.Tensor, + fisher_gate: torch.Tensor, + u_add: torch.Tensor, +) -> torch.Tensor: + return _AdditiveUMergedParamFn.apply( + param_a, param_b, fisher_gate, u_add, param_a.dtype + ) + + +def _merge_reparam_param_additive_u_no_grad( + param_a: torch.Tensor, + param_b: torch.Tensor, + fisher_gate: torch.Tensor, + u_add: torch.Tensor, +) -> torch.Tensor: + fisher_lambda = torch.sigmoid(fisher_gate.detach().float()) + a = param_a.detach().to(device=u_add.device, dtype=torch.float32) + b = param_b.detach().to(device=u_add.device, dtype=torch.float32) + fisher = b + fisher_lambda * (a - b) + return (fisher + u_add.detach().float()).to(dtype=param_a.dtype) + + +def _rho_projection(name: str) -> Optional[str]: + for projection in ("gate_proj", "up_proj", "down_proj"): + if f".{projection}." in f".{name}.": + return projection + return None + + +class _RhoMergedParamFn(torch.autograd.Function): + """Reparam merge with a frozen Fisher gate and one projection-level rho.""" + + @staticmethod + def forward( + ctx, + param_a: torch.Tensor, + param_b: torch.Tensor, + fisher_gate: torch.Tensor, + u: torch.Tensor, + rho: torch.Tensor, + out_dtype: torch.dtype, + ) -> torch.Tensor: + fisher_lambda = torch.sigmoid(fisher_gate.detach().float()) + effective_lambda = fisher_lambda + rho.float() * (1.0 - fisher_lambda) + scale = effective_lambda.mul(2.0).sub(1.0) + ctx.save_for_backward(fisher_lambda, scale, u) + work = torch.empty_like(u, dtype=torch.float32) + work.copy_(param_a.detach()) + work.add_(param_b.detach().to(device=work.device, dtype=work.dtype)).mul_(0.5) + work.addcmul_(scale, u.float()) + return work.to(dtype=out_dtype) + + @staticmethod + def backward(ctx, grad_output: torch.Tensor): + fisher_lambda, scale, u = ctx.saved_tensors + grad_f = grad_output.to(device=u.device, dtype=torch.float32) + grad_u = grad_f * scale + grad_rho = (grad_f * u.float() * (2.0 * (1.0 - fisher_lambda))).sum() + return None, None, None, grad_u, grad_rho, None + + +def _merge_reparam_param_rho( + param_a: torch.Tensor, + param_b: torch.Tensor, + fisher_gate: torch.Tensor, + u: torch.Tensor, + rho: torch.Tensor, +) -> torch.Tensor: + return _RhoMergedParamFn.apply( + param_a, param_b, fisher_gate, u, rho, param_a.dtype + ) + + +def _merge_reparam_param_rho_no_grad( + param_a: torch.Tensor, + param_b: torch.Tensor, + fisher_gate: torch.Tensor, + u: torch.Tensor, + rho: torch.Tensor, +) -> torch.Tensor: + fisher_lambda = torch.sigmoid(fisher_gate.detach().float()) + effective_lambda = fisher_lambda + rho.detach().float() * (1.0 - fisher_lambda) + work = torch.empty_like(u, dtype=torch.float32) + work.copy_(param_a.detach()) + work.add_(param_b.detach().to(device=work.device, dtype=work.dtype)).mul_(0.5) + work.addcmul_(effective_lambda.mul(2.0).sub(1.0), u.float()) + return work.to(dtype=param_a.dtype) + + +class _SequentialRhoMergedParamFn(torch.autograd.Function): + """Fixed Fisher-to-anchor rho direction plus an additive FiT correction.""" + + @staticmethod + def forward( + ctx, + param_a: torch.Tensor, + param_b: torch.Tensor, + fisher_gate: torch.Tensor, + u_add: torch.Tensor, + rho: torch.Tensor, + out_dtype: torch.dtype, + ) -> torch.Tensor: + fisher_lambda = torch.sigmoid(fisher_gate.detach().float()) + a = param_a.detach().to(device=u_add.device, dtype=torch.float32) + b = param_b.detach().to(device=u_add.device, dtype=torch.float32) + fisher = b + fisher_lambda * (a - b) + anchor_delta = a - fisher + ctx.save_for_backward(anchor_delta) + work = fisher + rho.float() * anchor_delta + u_add.float() + return work.to(dtype=out_dtype) + + @staticmethod + def backward(ctx, grad_output: torch.Tensor): + (anchor_delta,) = ctx.saved_tensors + grad_f = grad_output.to(device=anchor_delta.device, dtype=torch.float32) + grad_u = grad_f + grad_rho = (grad_f * anchor_delta).sum() + return None, None, None, grad_u, grad_rho, None + + +def _merge_reparam_param_sequential_rho( + param_a: torch.Tensor, + param_b: torch.Tensor, + fisher_gate: torch.Tensor, + u_add: torch.Tensor, + rho: torch.Tensor, +) -> torch.Tensor: + return _SequentialRhoMergedParamFn.apply( + param_a, param_b, fisher_gate, u_add, rho, param_a.dtype + ) + + +def _merge_reparam_param_sequential_rho_no_grad( + param_a: torch.Tensor, + param_b: torch.Tensor, + fisher_gate: torch.Tensor, + u_add: torch.Tensor, + rho: torch.Tensor, +) -> torch.Tensor: + fisher_lambda = torch.sigmoid(fisher_gate.detach().float()) + a = param_a.detach().to(device=u_add.device, dtype=torch.float32) + b = param_b.detach().to(device=u_add.device, dtype=torch.float32) + fisher = b + fisher_lambda * (a - b) + return ( + fisher + rho.detach().float() * (a - fisher) + u_add.detach().float() + ).to(dtype=param_a.dtype) + + +@contextmanager +def capture_module_output(module: torch.nn.Module): + cache: Dict[str, Optional[torch.Tensor]] = {"output": None} + + def hook(_module, _inputs, output): + cache["output"] = _extract_hidden_like(output) + + handle = module.register_forward_hook(hook) + try: + yield cache + finally: + handle.remove() + + +_ATTN_NAME_FRAGMENTS = ( + "self_attn.", + "attn.", + "attention.", + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "q_norm", + "k_norm", +) +_MLP_NAME_FRAGMENTS = ( + "mlp.", + "ffn.", + "feed_forward", + "feedforward", + "gate_proj", + "up_proj", + "down_proj", + "fc1", + "fc2", + "dense_h_to_4h", + "dense_4h_to_h", + "w1", + "w2", + "w3", +) + + +def _classify_param_family(name: str) -> str: + lowered = name.lower() + if any(fragment in lowered for fragment in _MLP_NAME_FRAGMENTS): + return "mlp" + if any(fragment in lowered for fragment in _ATTN_NAME_FRAGMENTS): + return "attn" + return "other" + + +def _family_reg_scale(family: str, attn_scale: float, mlp_scale: float) -> float: + if family == "attn": + return attn_scale + if family == "mlp": + return mlp_scale + return 1.0 + + +def _subset_allows_param(name: str, subset: str) -> bool: + if subset == "all": + return True + if subset == "down_proj": + parts = name.lower().split(".") + return len(parts) >= 2 and parts[-2] == "down_proj" + return _classify_param_family(name) == subset + + +def _resolve_reparam_train_subset(param_subset: str, train_subset: object) -> str: + value = str(train_subset).strip().lower() + if value in {"", "same", "param_subset"}: + return param_subset + if value not in {"all", "mlp", "attn", "down_proj"}: + raise SystemExit( + "--reparam_train_subset must be one of: same, all, mlp, attn, down_proj" + ) + return value + + +def _resolve_reparam_fisher_init_subset(param_subset: str, init_subset: object) -> str: + value = str(init_subset).strip().lower() + if value in {"", "same", "param_subset"}: + return param_subset + valid = {"all", "mlp", "attn", "down_proj", "mlp_o", "mlp_v", "mlp_vo"} + if value not in valid: + raise SystemExit( + "--reparam_fisher_init_subset must be one of: same, all, mlp, attn, " + "down_proj, mlp_o, mlp_v, mlp_vo" + ) + return value + + +def _gate_logit_from_prior(prior: torch.Tensor) -> torch.Tensor: + # Stable logit: log(p) - log(1 - p). + return torch.log(prior) - torch.log1p(-prior) + + +def _tensor_debug_summary(tensors: Dict[str, torch.Tensor]) -> Dict[str, object]: + total_sum = 0.0 + total_sq_sum = 0.0 + total_abs_from_half = 0.0 + total_elems = 0 + global_min: Optional[float] = None + global_max: Optional[float] = None + per_tensor: Dict[str, Dict[str, float]] = {} + + with torch.no_grad(): + for name, tensor in tensors.items(): + t = tensor.detach().float() + if t.numel() == 0: + continue + numel = int(t.numel()) + t_sum = float(t.sum().item()) + t_sq_sum = float(t.pow(2).sum().item()) + t_min = float(t.min().item()) + t_max = float(t.max().item()) + t_abs_half = float((t - 0.5).abs().sum().item()) + per_tensor[name] = { + "mean": t_sum / float(numel), + "std": math.sqrt(max(t_sq_sum / float(numel) - (t_sum / float(numel)) ** 2, 0.0)), + "min": t_min, + "max": t_max, + "mean_abs_from_0_5": t_abs_half / float(numel), + } + total_sum += t_sum + total_sq_sum += t_sq_sum + total_abs_from_half += t_abs_half + total_elems += numel + global_min = t_min if global_min is None else min(global_min, t_min) + global_max = t_max if global_max is None else max(global_max, t_max) + + if total_elems == 0: + return {"num_tensors": len(tensors), "num_elements": 0} + mean = total_sum / float(total_elems) + return { + "num_tensors": len(tensors), + "num_elements": total_elems, + "mean": mean, + "std": math.sqrt(max(total_sq_sum / float(total_elems) - mean ** 2, 0.0)), + "min": global_min, + "max": global_max, + "mean_abs_from_0_5": total_abs_from_half / float(total_elems), + "per_tensor": per_tensor, + } + + +def _lambda_delta_summary( + final_lambdas: Dict[str, torch.Tensor], + init_lambdas: Dict[str, object], +) -> Dict[str, object]: + total_abs = 0.0 + total_sq = 0.0 + total_elems = 0 + max_abs = 0.0 + per_tensor: Dict[str, Dict[str, float]] = {} + + with torch.no_grad(): + for name, final in final_lambdas.items(): + init = init_lambdas.get(name) + if init is None: + init_t = torch.full_like(final.detach().float(), 0.5) + elif isinstance(init, torch.Tensor): + init_t = init.detach().to(device=final.device, dtype=torch.float32) + else: + init_t = torch.full_like(final.detach().float(), float(init)) + diff = final.detach().float() - init_t + if diff.numel() == 0: + continue + abs_diff = diff.abs() + numel = int(diff.numel()) + abs_sum = float(abs_diff.sum().item()) + sq_sum = float(diff.pow(2).sum().item()) + tensor_max_abs = float(abs_diff.max().item()) + per_tensor[name] = { + "mean_abs": abs_sum / float(numel), + "rms": math.sqrt(sq_sum / float(numel)), + "max_abs": tensor_max_abs, + } + total_abs += abs_sum + total_sq += sq_sum + total_elems += numel + max_abs = max(max_abs, tensor_max_abs) + + if total_elems == 0: + return {"num_tensors": len(final_lambdas), "num_elements": 0} + return { + "num_tensors": len(final_lambdas), + "num_elements": total_elems, + "mean_abs": total_abs / float(total_elems), + "rms": math.sqrt(total_sq / float(total_elems)), + "max_abs": max_abs, + "per_tensor": per_tensor, + } + + +def _lambda_summary_from_gates( + name_map: Dict[str, str], + gates: torch.nn.ParameterDict, +) -> Dict[str, object]: + total_sum = 0.0 + total_sq_sum = 0.0 + total_abs_from_half = 0.0 + total_elems = 0 + global_min: Optional[float] = None + global_max: Optional[float] = None + per_tensor: Dict[str, Dict[str, float]] = {} + + with torch.no_grad(): + for orig, safe in name_map.items(): + t = torch.sigmoid(gates[safe]).detach().float() + if t.numel() == 0: + continue + numel = int(t.numel()) + t_sum = float(t.sum().item()) + t_sq_sum = float(t.pow(2).sum().item()) + t_min = float(t.min().item()) + t_max = float(t.max().item()) + t_abs_half = float((t - 0.5).abs().sum().item()) + per_tensor[orig] = { + "mean": t_sum / float(numel), + "std": math.sqrt(max(t_sq_sum / float(numel) - (t_sum / float(numel)) ** 2, 0.0)), + "min": t_min, + "max": t_max, + "mean_abs_from_0_5": t_abs_half / float(numel), + } + total_sum += t_sum + total_sq_sum += t_sq_sum + total_abs_from_half += t_abs_half + total_elems += numel + global_min = t_min if global_min is None else min(global_min, t_min) + global_max = t_max if global_max is None else max(global_max, t_max) + + if total_elems == 0: + return {"num_tensors": len(name_map), "num_elements": 0} + mean = total_sum / float(total_elems) + return { + "num_tensors": len(name_map), + "num_elements": total_elems, + "mean": mean, + "std": math.sqrt(max(total_sq_sum / float(total_elems) - mean ** 2, 0.0)), + "min": global_min, + "max": global_max, + "mean_abs_from_0_5": total_abs_from_half / float(total_elems), + "per_tensor": per_tensor, + } + + +def _grad_debug_summary(params: List[torch.nn.Parameter]) -> Dict[str, object]: + total_sq = 0.0 + total_abs = 0.0 + total_elems = 0 + max_abs = 0.0 + none_count = 0 + with torch.no_grad(): + for param in params: + grad = param.grad + if grad is None: + none_count += 1 + continue + g = grad.detach().float() + if g.numel() == 0: + continue + abs_g = g.abs() + total_sq += float(g.pow(2).sum().item()) + total_abs += float(abs_g.sum().item()) + total_elems += int(g.numel()) + max_abs = max(max_abs, float(abs_g.max().item())) + return { + "num_tensors": len(params), + "num_tensors_without_grad": none_count, + "num_elements": total_elems, + "l2": math.sqrt(total_sq), + "mean_abs": None if total_elems == 0 else total_abs / float(total_elems), + "max_abs": max_abs, + } + + +def _u_delta_debug_summary( + name_map: Dict[str, str], + u_params: torch.nn.ParameterDict, + params_a: Dict[str, torch.nn.Parameter], + params_b: Dict[str, torch.nn.Parameter], + initial_scale: float = 1.0, +) -> Dict[str, object]: + total_sum = 0.0 + total_sq_sum = 0.0 + total_abs = 0.0 + total_elems = 0 + global_min: Optional[float] = None + global_max: Optional[float] = None + per_tensor: Dict[str, Dict[str, float]] = {} + + with torch.no_grad(): + for orig, safe in name_map.items(): + param_a = params_a.get(orig) + param_b = params_b.get(orig) + if param_a is None or param_b is None or param_b.shape != param_a.shape: + continue + u0 = float(initial_scale) * _initial_reparam_u( + param_a, param_b, u_params[safe].device + ) + delta = u_params[safe].detach().float() - u0 + if delta.numel() == 0: + continue + numel = int(delta.numel()) + delta_sum = float(delta.sum().item()) + delta_sq_sum = float(delta.pow(2).sum().item()) + delta_abs_sum = float(delta.abs().sum().item()) + delta_min = float(delta.min().item()) + delta_max = float(delta.max().item()) + per_tensor[orig] = { + "mean": delta_sum / float(numel), + "std": math.sqrt(max(delta_sq_sum / float(numel) - (delta_sum / float(numel)) ** 2, 0.0)), + "rms": math.sqrt(delta_sq_sum / float(numel)), + "mean_abs": delta_abs_sum / float(numel), + "min": delta_min, + "max": delta_max, + } + total_sum += delta_sum + total_sq_sum += delta_sq_sum + total_abs += delta_abs_sum + total_elems += numel + global_min = delta_min if global_min is None else min(global_min, delta_min) + global_max = delta_max if global_max is None else max(global_max, delta_max) + + if total_elems == 0: + return {"num_tensors": len(name_map), "num_elements": 0} + mean = total_sum / float(total_elems) + return { + "num_tensors": len(name_map), + "num_elements": total_elems, + "mean": mean, + "std": math.sqrt(max(total_sq_sum / float(total_elems) - mean ** 2, 0.0)), + "rms": math.sqrt(total_sq_sum / float(total_elems)), + "mean_abs": total_abs / float(total_elems), + "min": global_min, + "max": global_max, + "per_tensor": per_tensor, + } + + +def _build_gate_priors( + layer_a: torch.nn.Module, + layer_b: torch.nn.Module, + fisher_a: Dict[str, object], + fisher_b: Dict[str, object], + num_batches: int, + numels_a: Dict[str, int], + numels_b: Dict[str, int], + fisher_mode: str, + eps: float, + clamp_eps: float, +) -> Dict[str, torch.Tensor]: + """Return lambda priors for parameters that can be merged.""" + priors: Dict[str, torch.Tensor] = {} + params_b = {name: param for name, param in layer_b.named_parameters()} + for name, param_a in layer_a.named_parameters(): + param_b = params_b.get(name) + if param_b is None or param_b.shape != param_a.shape: + continue + if fisher_mode == "param": + fa = fisher_a[name] / max(num_batches, 1) + fb = fisher_b[name] / max(num_batches, 1) + denom = fa + fb + if not isinstance(denom, torch.Tensor): + denom = torch.tensor(float(denom)) + # If Fisher is uninformative, default to symmetric init. + prior = torch.where( + denom > eps, + fa / (denom + eps), + torch.full_like(denom, 0.5), + ) + prior = prior.clamp(clamp_eps, 1.0 - clamp_eps) + priors[name] = prior + else: + fa = fisher_a[name] / (max(num_batches, 1) * numels_a[name]) + fb = fisher_b[name] / (max(num_batches, 1) * numels_b[name]) + denom = fa + fb + if denom <= eps: + prior_val = 0.5 + else: + prior_val = float(fa / (denom + eps)) + prior_val = min(max(prior_val, clamp_eps), 1.0 - clamp_eps) + priors[name] = torch.tensor(prior_val, dtype=torch.float32) + return priors + + +def compute_fisher_gate_priors( + layer_a: torch.nn.Module, + layer_b: torch.nn.Module, + fisher_a: Dict[str, object], + fisher_b: Dict[str, object], + num_batches: int, + numels_a: Dict[str, int], + numels_b: Dict[str, int], + fisher_mode: str, + eps: float, + clamp_eps: float = 1e-4, +) -> Dict[str, torch.Tensor]: + """Compute Fisher prior gate lambdas (lambda_prior) for mergeable parameters.""" + return _build_gate_priors( + layer_a=layer_a, + layer_b=layer_b, + fisher_a=fisher_a, + fisher_b=fisher_b, + num_batches=num_batches, + numels_a=numels_a, + numels_b=numels_b, + fisher_mode=fisher_mode, + eps=eps, + clamp_eps=clamp_eps, + ) + + +_FISHER_DISTRIBUTION_QUANTILES = ( + ("p0", 0.0), + ("p1", 0.01), + ("p10", 0.10), + ("p25", 0.25), + ("p50", 0.50), + ("p75", 0.75), + ("p90", 0.90), + ("p95", 0.95), + ("p99", 0.99), + ("p99_9", 0.999), + ("p100", 1.0), +) + + +def _deterministic_fisher_sample( + values: torch.Tensor, + max_samples: int = 131_072, +) -> torch.Tensor: + """Return an evenly strided, deterministic CPU sample for quantiles.""" + flat = values.detach().float().reshape(-1) + if flat.numel() <= max_samples: + return flat + stride = max(1, math.ceil(flat.numel() / max_samples)) + return flat[::stride][:max_samples] + + +def _sampled_fisher_quantiles(sample: torch.Tensor) -> Dict[str, float]: + if sample.numel() == 0: + return {} + probabilities = torch.tensor( + [probability for _, probability in _FISHER_DISTRIBUTION_QUANTILES], + dtype=torch.float32, + device=sample.device, + ) + values = torch.quantile(sample.float(), probabilities) + return { + name: float(value.item()) + for (name, _), value in zip(_FISHER_DISTRIBUTION_QUANTILES, values) + } + + +def _summarize_fisher_distribution( + values: torch.Tensor, + eps: float, +) -> Dict[str, object]: + """Summarize one non-negative Fisher tensor without retaining it.""" + flat = values.detach().float().reshape(-1) + numel = int(flat.numel()) + if numel == 0: + return {"num_elements": 0} + finite = torch.isfinite(flat) + finite_count = int(finite.sum().item()) + if finite_count != numel: + finite_values = flat[finite] + else: + finite_values = flat + if finite_values.numel() == 0: + return { + "num_elements": numel, + "finite_count": 0, + "finite_ratio": 0.0, + } + + finite_numel = int(finite_values.numel()) + value_sum = float(finite_values.sum().item()) + value_sq_sum = float(finite_values.square().sum().item()) + mean = value_sum / float(finite_numel) + variance = max(value_sq_sum / float(finite_numel) - mean * mean, 0.0) + zero_count = int((finite_values == 0).sum().item()) + le_eps_count = int((finite_values <= eps).sum().item()) + sample = _deterministic_fisher_sample(finite_values) + return { + "num_elements": numel, + "finite_count": finite_count, + "finite_ratio": finite_count / float(numel), + "zero_count": zero_count, + "zero_ratio": zero_count / float(finite_numel), + "le_eps_count": le_eps_count, + "le_eps_ratio": le_eps_count / float(finite_numel), + "mean": mean, + "std": math.sqrt(variance), + "min": float(finite_values.min().item()), + "max": float(finite_values.max().item()), + "quantile_method": "deterministic_even_stride_sample", + "quantile_sample_count": int(sample.numel()), + "quantiles": _sampled_fisher_quantiles(sample), + } + + +def summarize_fisher_gate_prior_inputs( + layer_a: torch.nn.Module, + layer_b: torch.nn.Module, + fisher_a: Dict[str, object], + fisher_b: Dict[str, object], + num_batches: int, + numels_a: Dict[str, int], + numels_b: Dict[str, int], + fisher_mode: str, + eps: float, + param_subset: str = "all", +) -> Dict[str, object]: + """Summarize Fisher inputs that determine lambda priors without storing tensors.""" + params_b = {name: param for name, param in layer_b.named_parameters()} + per_tensor: Dict[str, Dict[str, object]] = {} + global_samples: Dict[str, List[torch.Tensor]] = { + "fa": [], + "fb": [], + "denom": [], + } + total_elems = 0 + total_fa = 0.0 + total_fb = 0.0 + total_denom = 0.0 + total_abs_diff = 0.0 + total_contrast = 0.0 + total_active = 0.0 + total_prior = 0.0 + total_prior_active = 0.0 + active_elems = 0 + + with torch.no_grad(): + for name, param_a in layer_a.named_parameters(): + param_b = params_b.get(name) + if param_b is None or param_b.shape != param_a.shape: + continue + if not _subset_allows_param(name, param_subset): + continue + + if fisher_mode == "param": + fa = (fisher_a[name] / max(num_batches, 1)).detach().float() + fb = (fisher_b[name] / max(num_batches, 1)).detach().float() + else: + fa_val = float( + fisher_a[name] + / (max(num_batches, 1) * max(numels_a.get(name, 1), 1)) + ) + fb_val = float( + fisher_b[name] + / (max(num_batches, 1) * max(numels_b.get(name, 1), 1)) + ) + fa = torch.tensor(fa_val, dtype=torch.float32) + fb = torch.tensor(fb_val, dtype=torch.float32) + + denom = fa + fb + active = denom > eps + prior = torch.where( + active, + fa / (denom + eps), + torch.full_like(denom, 0.5), + ) + contrast = (fa - fb).abs() / (denom + eps) + numel = int(denom.numel()) + active_count = int(active.sum().item()) + fa_sum = float(fa.sum().item()) + fb_sum = float(fb.sum().item()) + denom_sum = float(denom.sum().item()) + abs_diff_sum = float((fa - fb).abs().sum().item()) + contrast_sum = float(contrast.sum().item()) + prior_sum = float(prior.sum().item()) + if active_count > 0: + prior_active_mean = float(prior[active].mean().item()) + else: + prior_active_mean = 0.5 + + fa_distribution = _summarize_fisher_distribution(fa, eps) + fb_distribution = _summarize_fisher_distribution(fb, eps) + denom_distribution = _summarize_fisher_distribution(denom, eps) + global_samples["fa"].append(_deterministic_fisher_sample(fa)) + global_samples["fb"].append(_deterministic_fisher_sample(fb)) + global_samples["denom"].append(_deterministic_fisher_sample(denom)) + + per_tensor[name] = { + "num_elements": numel, + "fa_mean": fa_sum / float(numel), + "fb_mean": fb_sum / float(numel), + "denom_mean": denom_sum / float(numel), + "active_ratio": active_count / float(numel), + "mean_abs_fa_minus_fb": abs_diff_sum / float(numel), + "mean_relative_contrast": contrast_sum / float(numel), + "prior_mean": prior_sum / float(numel), + "prior_active_mean": prior_active_mean, + "fa_distribution": fa_distribution, + "fb_distribution": fb_distribution, + "denom_distribution": denom_distribution, + } + + total_elems += numel + total_fa += fa_sum + total_fb += fb_sum + total_denom += denom_sum + total_abs_diff += abs_diff_sum + total_contrast += contrast_sum + total_active += float(active_count) + total_prior += prior_sum + total_prior_active += prior_active_mean * float(active_count) + active_elems += active_count + + if total_elems == 0: + return {"num_tensors": 0, "num_elements": 0, "per_tensor": per_tensor} + + distributions = {} + for distribution_name, samples in global_samples.items(): + sample = torch.cat(samples) if samples else torch.empty(0, dtype=torch.float32) + distributions[distribution_name] = { + "quantile_method": "concatenated_per_tensor_even_stride_samples", + "quantile_sample_count": int(sample.numel()), + "quantiles": _sampled_fisher_quantiles(sample), + } + + return { + "num_tensors": len(per_tensor), + "num_elements": total_elems, + "fisher_mode": fisher_mode, + "eps": float(eps), + "param_subset": param_subset, + "fa_mean": total_fa / float(total_elems), + "fb_mean": total_fb / float(total_elems), + "denom_mean": total_denom / float(total_elems), + "active_ratio": total_active / float(total_elems), + "mean_abs_fa_minus_fb": total_abs_diff / float(total_elems), + "mean_relative_contrast": total_contrast / float(total_elems), + "prior_mean": total_prior / float(total_elems), + "prior_active_mean": ( + 0.5 if active_elems == 0 else total_prior_active / float(active_elems) + ), + "distributions": distributions, + "per_tensor": per_tensor, + } + + +class ReparamMergedLayer(torch.nn.Module): + """Virtual layer that merges parameters via W0/U reparameterization. + + Parameters of layer_a/layer_b are treated as frozen (detached). We train: + - gate logits s (lambda = sigmoid(s)) + - U (initialized as U0 = (W_a - W_b) / 2) + + Forward uses: + W_merge = W0 + (2 * lambda - 1) * U + where W0 = (W_a + W_b) / 2 + """ + + def __init__( + self, + layer_a: torch.nn.Module, + layer_b: torch.nn.Module, + gate_targets: Dict[str, object], + param_subset: str = "all", + clamp_eps: float = 1e-4, + tensor_rho: bool = False, + sequential_rho: bool = False, + additive_u: bool = False, + ) -> None: + super().__init__() + if sequential_rho and additive_u: + raise ValueError("sequential_rho and additive_u are mutually exclusive") + self.layer_a = layer_a + self.layer_b = layer_b + self.param_subset = param_subset + self.sequential_rho = bool(sequential_rho) + self.additive_u = bool(additive_u) + self._name_map: Dict[str, str] = {} + + self.gates = torch.nn.ParameterDict() + self.u = torch.nn.ParameterDict() + self.rho = torch.nn.ParameterDict() + + params_b = {name: param for name, param in layer_b.named_parameters()} + try: + device = next(layer_a.parameters()).device + except StopIteration: + device = torch.device("cpu") + + for name, param_a in layer_a.named_parameters(): + param_b = params_b.get(name) + if param_b is None or param_b.shape != param_a.shape: + continue + if not _subset_allows_param(name, self.param_subset): + continue + + target = gate_targets.get(name) + if target is None: + target_t = torch.tensor(0.5, device=device, dtype=torch.float32) + elif isinstance(target, torch.Tensor): + target_t = target.detach().to(device=device, dtype=torch.float32) + else: + target_t = torch.tensor(float(target), device=device, dtype=torch.float32) + + target_t = target_t.clamp(clamp_eps, 1.0 - clamp_eps) + s0 = _gate_logit_from_prior(target_t) + u0 = _initial_reparam_u(param_a, param_b, device) + if self.sequential_rho or self.additive_u: + # Both modes use an explicit additive FiT correction. Additive-U + # fixes rho at zero: W = W_F + U_add. + u0 = torch.zeros_like(u0) + + safe = name.replace(".", "__") + if safe in self.gates: + safe = f"{safe}_{len(self.gates)}" + self._name_map[name] = safe + self.gates[safe] = torch.nn.Parameter(s0) + self.u[safe] = torch.nn.Parameter(u0) + projection = _rho_projection(name) + if tensor_rho and projection is not None and projection not in self.rho: + self.rho[projection] = torch.nn.Parameter( + torch.zeros((), device=device, dtype=torch.float32) + ) + + def __getattr__(self, name: str): + # Delegate model-specific attributes (e.g. Qwen's `attention_type`) to + # the underlying layer so the parent forward doesn't break. + try: + return super().__getattr__(name) + except AttributeError as exc: + try: + layer_a = super().__getattr__("layer_a") + if hasattr(layer_a, name): + return getattr(layer_a, name) + except AttributeError: + pass + try: + layer_b = super().__getattr__("layer_b") + if hasattr(layer_b, name): + return getattr(layer_b, name) + except AttributeError: + pass + raise exc + + def _safe_for(self, orig: str) -> Optional[str]: + return self._name_map.get(orig) + + def gate_lambdas(self) -> Dict[str, torch.Tensor]: + out: Dict[str, torch.Tensor] = {} + for orig, safe in self._name_map.items(): + fisher_lambda = torch.sigmoid(self.gates[safe]).detach() + projection = _rho_projection(orig) + if projection is not None and projection in self.rho: + fisher_lambda = fisher_lambda + self.rho[projection].detach() * ( + 1.0 - fisher_lambda + ) + out[orig] = fisher_lambda + return out + + def rho_values(self) -> Dict[str, float]: + return { + name: float(value.detach().float().cpu()) + for name, value in self.rho.items() + } + + def _merged_params(self) -> Dict[str, torch.Tensor]: + params_a = {name: p for name, p in self.layer_a.named_parameters()} + params_b = {name: p for name, p in self.layer_b.named_parameters()} + merged_params: Dict[str, torch.Tensor] = {} + + for name, param_a in params_a.items(): + param_b = params_b.get(name) + safe = self._safe_for(name) + if safe is None or param_b is None or param_b.shape != param_a.shape: + merged_params[name] = param_a.detach() + continue + + projection = _rho_projection(name) + if self.additive_u: + merged_params[name] = _merge_reparam_param_additive_u( + param_a.detach(), + param_b.detach(), + self.gates[safe], + self.u[safe], + ) + elif projection is not None and projection in self.rho: + if self.sequential_rho: + merged_params[name] = _merge_reparam_param_sequential_rho( + param_a.detach(), + param_b.detach(), + self.gates[safe], + self.u[safe], + self.rho[projection], + ) + else: + merged_params[name] = _merge_reparam_param_rho( + param_a.detach(), + param_b.detach(), + self.gates[safe], + self.u[safe], + self.rho[projection], + ) + else: + merged_params[name] = _merge_reparam_param( + param_a.detach(), + param_b.detach(), + self.gates[safe], + self.u[safe], + ) + return merged_params + + def forward(self, *args, **kwargs): + if _functional_call is None: + raise RuntimeError( + "Reparam distillation requires torch.func.functional_call" + ) + + merged_params = self._merged_params() + return _functional_call(self.layer_a, merged_params, args, kwargs) + + def materialize_into_layer_a(self) -> int: + merged = 0 + params_a = {name: p for name, p in self.layer_a.named_parameters()} + params_b = {name: p for name, p in self.layer_b.named_parameters()} + with torch.no_grad(): + for orig, safe in self._name_map.items(): + param_a = params_a.get(orig) + param_b = params_b.get(orig) + if param_a is None or param_b is None or param_b.shape != param_a.shape: + continue + projection = _rho_projection(orig) + if self.additive_u: + merged_param = _merge_reparam_param_additive_u_no_grad( + param_a.detach(), + param_b.detach(), + self.gates[safe], + self.u[safe], + ) + elif projection is not None and projection in self.rho: + if self.sequential_rho: + merged_param = _merge_reparam_param_sequential_rho_no_grad( + param_a.detach(), + param_b.detach(), + self.gates[safe], + self.u[safe], + self.rho[projection], + ) + else: + merged_param = _merge_reparam_param_rho_no_grad( + param_a.detach(), + param_b.detach(), + self.gates[safe], + self.u[safe], + self.rho[projection], + ) + else: + merged_param = _merge_reparam_param_no_grad( + param_a.detach(), + param_b.detach(), + self.gates[safe], + self.u[safe], + ) + param_a.copy_(merged_param.to(dtype=param_a.dtype)) + merged += 1 + return merged + + +def _sequential_u_fisher_orthogonality( + reparam_layer: ReparamMergedLayer, +) -> Dict[str, object]: + """Summarize additive FiT U versus the original Fisher displacement. + + The fixed reference direction is Delta_F = W_F - W_anchor, before rho or + U training. Statistics are accumulated without concatenating the large + projection tensors. + """ + if not (reparam_layer.sequential_rho or reparam_layer.additive_u): + return {} + params_a = dict(reparam_layer.layer_a.named_parameters()) + params_b = dict(reparam_layer.layer_b.named_parameters()) + accum: Dict[str, Dict[str, float]] = {} + + def add(group: str, u: torch.Tensor, delta_f: torch.Tensor) -> None: + bucket = accum.setdefault( + group, + {"dot": 0.0, "u_sq": 0.0, "fisher_sq": 0.0, "num_elements": 0.0}, + ) + bucket["dot"] += float((u * delta_f).sum().item()) + bucket["u_sq"] += float(u.square().sum().item()) + bucket["fisher_sq"] += float(delta_f.square().sum().item()) + bucket["num_elements"] += float(u.numel()) + + with torch.no_grad(): + for orig, safe in reparam_layer._name_map.items(): + projection = _rho_projection(orig) + if projection is None: + continue + if reparam_layer.sequential_rho and projection not in reparam_layer.rho: + continue + param_a = params_a.get(orig) + param_b = params_b.get(orig) + if param_a is None or param_b is None or param_a.shape != param_b.shape: + continue + lam = torch.sigmoid(reparam_layer.gates[safe].detach().float()) + a = param_a.detach().to(device=lam.device, dtype=torch.float32) + b = param_b.detach().to(device=lam.device, dtype=torch.float32) + delta_f = (b + lam * (a - b)) - a + u = reparam_layer.u[safe].detach().float() + add(projection, u, delta_f) + add("global", u, delta_f) + + result: Dict[str, object] = {} + for group, values in accum.items(): + u_norm = math.sqrt(max(values["u_sq"], 0.0)) + fisher_norm = math.sqrt(max(values["fisher_sq"], 0.0)) + denom = u_norm * fisher_norm + cosine = None if denom == 0.0 else values["dot"] / denom + if cosine is not None: + cosine = max(-1.0, min(1.0, cosine)) + result[group] = { + "num_elements": int(values["num_elements"]), + "cosine_u_vs_fisher_delta": cosine, + "orthogonal_fraction_of_u": ( + None if cosine is None else math.sqrt(max(0.0, 1.0 - cosine * cosine)) + ), + "u_norm": u_norm, + "fisher_delta_norm": fisher_norm, + "u_over_fisher_delta_norm": ( + None if fisher_norm == 0.0 else u_norm / fisher_norm + ), + "projection_coefficient_on_fisher": ( + None + if values["fisher_sq"] == 0.0 + else values["dot"] / values["fisher_sq"] + ), + } + return result + + +def distill_reparam_merge( + student_model: torch.nn.Module, + student_parent: object, + student_layer_attr: str, + student_layers: List[torch.nn.Module], + teacher_model: torch.nn.Module, + teacher_parent: object, + teacher_layer_attr: str, + teacher_layers: List[torch.nn.Module], + layer_idx: int, + gate_lambdas: Dict[str, object], + dataloader, + args: argparse.Namespace, + progressive_cycle: Optional[int] = None, + progressive_total: Optional[int] = None, +) -> Tuple[int, Dict[str, torch.Tensor], Dict[str, object]]: + """Reparameterized distillation that materializes a fused layer into layer_a. + + Trains U and gate logits s (lambda = sigmoid(s)) using: + - composition MSE + distill-KL + - eta * ||lambda - lambda_gate||^2 + gamma * ||U - U0||^2 + """ + requested_epochs = float(args.distill_epochs) + skip_train = bool(getattr(args, "reparam_skip_train", False)) + total_epochs = 0.0 if skip_train else requested_epochs + + hidden_mse_weight = float(getattr(args, "distill_hidden_mse_weight", 1.0)) + if hidden_mse_weight < 0.0: + raise SystemExit("--distill_hidden_mse_weight must be >= 0") + attn_mse_weight = float(getattr(args, "distill_attn_mse_weight", 0.0)) + if attn_mse_weight < 0.0: + raise SystemExit("--distill_attn_mse_weight must be >= 0") + mlp_mse_weight = float(getattr(args, "distill_mlp_mse_weight", 0.0)) + if mlp_mse_weight < 0.0: + raise SystemExit("--distill_mlp_mse_weight must be >= 0") + param_subset = str(getattr(args, "reparam_param_subset", "all")) + if param_subset not in {"all", "mlp", "attn", "down_proj"}: + raise SystemExit( + "--reparam_param_subset must be one of: all, mlp, attn, down_proj" + ) + train_subset = _resolve_reparam_train_subset( + param_subset, + getattr(args, "reparam_train_subset", "same"), + ) + fisher_init_subset = _resolve_reparam_fisher_init_subset( + param_subset, + getattr(args, "reparam_fisher_init_subset", "same"), + ) + + kl_weight = float(args.distill_kl_weight) + kl_temp = float(args.distill_kl_temp) + if kl_weight < 0.0: + raise SystemExit("--distill_kl_weight must be >= 0") + if kl_temp <= 0.0: + raise SystemExit("--distill_kl_temp must be > 0") + + rho_objective = str(getattr(args, "reparam_rho_objective", "none")) + valid_rho_objectives = {"none", "full", "hidden_kl", "kl_only"} + if rho_objective not in valid_rho_objectives: + raise SystemExit( + "--reparam_rho_objective must be one of: " + + ", ".join(sorted(valid_rho_objectives)) + ) + rho_enabled = rho_objective != "none" + rho_schedule = str(getattr(args, "reparam_rho_schedule", "joint")) + if rho_schedule not in {"joint", "sequential"}: + raise SystemExit("--reparam_rho_schedule must be joint or sequential") + if not rho_enabled and rho_schedule == "sequential": + raise SystemExit("sequential rho schedule requires an enabled rho objective") + rho_epochs = float(getattr(args, "reparam_rho_epochs", 1.0)) + if rho_epochs <= 0.0: + raise SystemExit("--reparam_rho_epochs must be > 0") + sequential_rho = rho_enabled and rho_schedule == "sequential" + if sequential_rho and abs(rho_epochs - round(rho_epochs)) > 1e-8: + raise SystemExit("sequential rho currently requires integer --reparam_rho_epochs") + if sequential_rho and not skip_train: + total_epochs = rho_epochs + requested_epochs + additive_u = bool(getattr(args, "reparam_additive_u", False)) + if additive_u and rho_enabled: + raise SystemExit("--reparam_additive_u cannot be combined with rho") + rho_lr = float(getattr(args, "reparam_rho_lr", 2e-3)) + rho_min = float(getattr(args, "reparam_rho_min", -1.0)) + rho_max = float(getattr(args, "reparam_rho_max", 2.0)) + if rho_lr <= 0.0: + raise SystemExit("--reparam_rho_lr must be > 0") + if rho_min >= rho_max: + raise SystemExit("--reparam_rho_min must be below --reparam_rho_max") + if rho_enabled and kl_weight <= 0.0 and rho_objective in {"hidden_kl", "kl_only"}: + raise SystemExit("rho objective requires nonzero distillation KL weight") + + eta = float(getattr(args, "reparam_eta", 0.0)) + gamma = float(getattr(args, "reparam_gamma", 0.0)) + if eta < 0.0: + raise SystemExit("--reparam_eta must be >= 0") + if gamma < 0.0: + raise SystemExit("--reparam_gamma must be >= 0") + attn_reg_scale = float(getattr(args, "reparam_attn_reg_scale", 1.0)) + mlp_reg_scale = float(getattr(args, "reparam_mlp_reg_scale", 1.0)) + if attn_reg_scale < 0.0: + raise SystemExit("--reparam_attn_reg_scale must be >= 0") + if mlp_reg_scale < 0.0: + raise SystemExit("--reparam_mlp_reg_scale must be >= 0") + if ( + total_epochs > 0.0 + and hidden_mse_weight == 0.0 + and attn_mse_weight == 0.0 + and mlp_mse_weight == 0.0 + and kl_weight == 0.0 + and eta == 0.0 + and gamma == 0.0 + ): + raise SystemExit( + "Reparam distillation has no active loss terms. " + "Enable hidden/attention/MLP MSE, KL, or at least one reparam regularizer." + ) + + if not gate_lambdas: + raise SystemExit("Reparam distillation requires non-empty gate lambdas.") + + layer_a = student_layers[layer_idx] + layer_b = student_layers[layer_idx + 1] + + reparam_layer = ReparamMergedLayer( + layer_a, + layer_b, + gate_lambdas, + param_subset=param_subset, + clamp_eps=1e-4, + tensor_rho=rho_enabled, + sequential_rho=sequential_rho, + additive_u=additive_u, + ) + if not reparam_layer._name_map: + raise RuntimeError( + "No mergeable parameters found for reparam distillation under " + f"--reparam_param_subset={param_subset!r}." + ) + + teacher_attn = None + student_attn = None + if total_epochs > 0.0 and attn_mse_weight > 0.0: + try: + teacher_attn = find_attention_module(teacher_layers[layer_idx + 1]) + student_attn = find_attention_module(reparam_layer.layer_a) + except ValueError as exc: + raise SystemExit( + "Attention-output preservation was requested but an attention module " + f"could not be resolved: {exc}" + ) from exc + + teacher_mlp = None + student_mlp = None + if total_epochs > 0.0 and mlp_mse_weight > 0.0: + try: + teacher_mlp = find_mlp_module(teacher_layers[layer_idx + 1]) + student_mlp = find_mlp_module(reparam_layer.layer_a) + except ValueError as exc: + raise SystemExit( + "MLP-output preservation was requested but an MLP module could not be " + f"resolved: {exc}" + ) from exc + + # Virtual layer list: replace layer_a with reparam layer and remove layer_b. + virtual_layers = list(student_layers) + virtual_layers[layer_idx] = reparam_layer + del virtual_layers[layer_idx + 1] + + # Only selected reparam (U, s) tensors are trainable. Parameters outside + # train_subset are still materialized from their Fisher-prior initialization. + for param in student_model.parameters(): + param.requires_grad_(False) + trainable_safe_names = set() + train_family_counts: Dict[str, int] = {"attn": 0, "mlp": 0, "other": 0} + for orig, safe in reparam_layer._name_map.items(): + is_trainable = _subset_allows_param(orig, train_subset) + reparam_layer.gates[safe].requires_grad_( + is_trainable and not rho_enabled and not additive_u + ) + reparam_layer.u[safe].requires_grad_(is_trainable) + if is_trainable: + trainable_safe_names.add(safe) + train_family_counts[_classify_param_family(orig)] += 1 + for rho in reparam_layer.rho.values(): + rho.requires_grad_(rho_enabled) + trainable_base_params = [ + param + for param in itertools.chain( + reparam_layer.gates.parameters(), + reparam_layer.u.parameters(), + ) + if param.requires_grad + ] + trainable_rho_params = [ + param for param in reparam_layer.rho.parameters() if param.requires_grad + ] + trainable_reparam_params = [*trainable_base_params, *trainable_rho_params] + if total_epochs > 0.0 and not trainable_reparam_params: + raise SystemExit( + "Reparam training requested but --reparam_train_subset selects no " + "materialized parameters." + ) + + do_train = total_epochs > 0.0 + if do_train: + teacher_model.eval() + student_model.train() + elif skip_train: + print("[reparam] skip_train enabled; using Fisher-prior initialization only.") + + # Rough memory heads-up (esp. when --fisher_mode param makes per-element gates). + total_gate_elems = sum(int(p.numel()) for p in reparam_layer.gates.parameters()) + total_u_elems = sum(int(p.numel()) for p in reparam_layer.u.parameters()) + gate_mib = total_gate_elems * 4.0 / (1024.0 * 1024.0) + u_mib = total_u_elems * 4.0 / (1024.0 * 1024.0) + family_counts: Dict[str, int] = {"attn": 0, "mlp": 0, "other": 0} + for orig in reparam_layer._name_map: + family_counts[_classify_param_family(orig)] += 1 + lambda_init_summary = _lambda_summary_from_gates( + reparam_layer._name_map, + reparam_layer.gates, + ) + print( + f"[reparam] subset={param_subset} gates={len(reparam_layer.gates)} " + f"(attn={family_counts['attn']}, mlp={family_counts['mlp']}, other={family_counts['other']}) " + f"train_subset={train_subset} " + f"(attn={train_family_counts['attn']}, mlp={train_family_counts['mlp']}, " + f"other={train_family_counts['other']}) " + f"elems={total_gate_elems} (~{gate_mib:.1f} MiB), " + f"U_elems={total_u_elems} (~{u_mib:.1f} MiB; +optimizer state)" + ) + print( + "[reparam] lambda_init " + f"mean={lambda_init_summary.get('mean')} " + f"std={lambda_init_summary.get('std')} " + f"min={lambda_init_summary.get('min')} " + f"max={lambda_init_summary.get('max')} " + f"mean_abs_from_0.5={lambda_init_summary.get('mean_abs_from_0_5')}" + ) + if rho_enabled: + print( + f"[reparam-rho] objective={rho_objective} schedule={rho_schedule} " + f"rho_epochs={rho_epochs if sequential_rho else 0.0} lr={rho_lr} " + f"bounds=[{rho_min}, {rho_max}] projections={sorted(reparam_layer.rho)}" + ) + if additive_u: + print("[reparam] additive_u enabled: W = W_F + U_add, U_add initialized at zero") + + optimizer = None + if do_train: + groups = [] + if trainable_base_params: + groups.append( + { + "params": trainable_base_params, + "lr": float(args.distill_lr), + "weight_decay": float(args.distill_weight_decay), + } + ) + if trainable_rho_params: + groups.append( + { + "params": trainable_rho_params, + "lr": rho_lr, + "weight_decay": 0.0, + } + ) + optimizer = torch.optim.AdamW(groups) + + device_type = torch.device(args.device).type + amp_dtype = None + if args.dtype == "float16": + amp_dtype = torch.float16 + elif args.dtype == "bfloat16": + amp_dtype = torch.bfloat16 + use_amp = do_train and amp_dtype is not None and device_type == "cuda" + use_scaler = use_amp and amp_dtype == torch.float16 + if rho_enabled and use_scaler: + raise SystemExit("tensor-rho gradient routing requires bf16 or fp32 training") + scaler = torch.cuda.amp.GradScaler() if use_scaler else None + teacher_runtime_device = torch.device(args.distill_teacher_device or args.device) + if teacher_model is not None: + try: + teacher_runtime_device = next(teacher_model.parameters()).device + except StopIteration: + pass + + full_epochs = int(total_epochs) if do_train else 0 + fractional = (total_epochs - full_epochs) if do_train else 0.0 + if fractional < 1e-8: + fractional = 0.0 + + epoch_plan = [(epoch_idx, None) for epoch_idx in range(full_epochs)] + if fractional > 0: + try: + batches_per_epoch = len(dataloader) + except TypeError as exc: + raise SystemExit( + "Fractional distill epochs require a dataloader with finite length." + ) from exc + if batches_per_epoch > 0: + frac_batches = int(round(fractional * batches_per_epoch)) + if frac_batches <= 0: + frac_batches = 1 + epoch_plan.append((full_epochs, frac_batches)) + + grad_accum = int(getattr(args, "distill_grad_accum_steps", 1)) + if grad_accum <= 0: + raise SystemExit("--distill_grad_accum_steps must be >= 1") + if rho_enabled and grad_accum != 1: + raise SystemExit("tensor-rho gradient routing currently requires grad accumulation 1") + + log_steps = int(getattr(args, "distill_log_steps", 100)) + max_grad_norm = getattr(args, "distill_max_grad_norm", 1.0) + + params_a = {name: p for name, p in layer_a.named_parameters()} + params_b = {name: p for name, p in layer_b.named_parameters()} + + first_grad_summary: Dict[str, object] = {} + rho_after_phase: Optional[Dict[str, float]] = None + step = 0 + for epoch_idx, max_batches in epoch_plan: + if sequential_rho: + phase = "rho" if epoch_idx < int(round(rho_epochs)) else "u" + for param in trainable_base_params: + param.requires_grad_(phase == "u") + for param in trainable_rho_params: + param.requires_grad_(phase == "rho") + if phase == "u" and rho_after_phase is None: + rho_after_phase = reparam_layer.rho_values() + print(f"[reparam-rho] rho phase complete values={rho_after_phase}") + else: + phase = "joint" + if max_batches is None: + epoch_iter = dataloader + else: + epoch_iter = itertools.islice(dataloader, max_batches) + iterator = epoch_iter + if tqdm is not None and _tqdm_enabled(): + if progressive_cycle is not None: + if progressive_total is not None: + desc = ( + f"Reparam (cycle {progressive_cycle}/{progressive_total}, " + f"epoch {epoch_idx+1})" + ) + else: + desc = f"Reparam (cycle {progressive_cycle}, epoch {epoch_idx+1})" + else: + desc = f"Reparam (epoch {epoch_idx+1})" + iterator = tqdm(epoch_iter, desc=desc, unit="batch", total=max_batches) + + for batch in iterator: + input_ids = batch[0].to(args.device) + attention_mask = batch[1].to(args.device) + teacher_ids = input_ids.to(teacher_runtime_device) + teacher_mask = attention_mask.to(teacher_runtime_device) + + teacher_depth = layer_idx + 2 + student_depth = layer_idx + 1 + + autocast_ctx = ( + torch.autocast(device_type=device_type, dtype=amp_dtype) + if use_amp + else nullcontext() + ) + with autocast_ctx: + teacher_attn_ctx = ( + capture_module_output(teacher_attn) + if teacher_attn is not None + else nullcontext({"output": None}) + ) + teacher_mlp_ctx = ( + capture_module_output(teacher_mlp) + if teacher_mlp is not None + else nullcontext({"output": None}) + ) + with torch.no_grad(): + with teacher_attn_ctx as teacher_attn_cache, teacher_mlp_ctx as teacher_mlp_cache: + teacher_hidden = forward_truncated( + teacher_parent, + teacher_layer_attr, + teacher_layers, + teacher_depth, + teacher_ids, + attention_mask=teacher_mask, + ) + + student_attn_ctx = ( + capture_module_output(student_attn) + if student_attn is not None + else nullcontext({"output": None}) + ) + student_mlp_ctx = ( + capture_module_output(student_mlp) + if student_mlp is not None + else nullcontext({"output": None}) + ) + with student_attn_ctx as student_attn_cache, student_mlp_ctx as student_mlp_cache: + student_hidden = forward_truncated( + student_parent, + student_layer_attr, + virtual_layers, + student_depth, + input_ids, + attention_mask=attention_mask, + ) + + if teacher_hidden.device != student_hidden.device: + teacher_hidden = teacher_hidden.to(student_hidden.device) + + mse_loss = None + if hidden_mse_weight > 0.0: + diff = student_hidden - teacher_hidden + mse_loss = _masked_hidden_mse(diff, attention_mask) + if mse_loss is None: + continue + + attn_aux_loss = None + if attn_mse_weight > 0.0: + teacher_attn_hidden = teacher_attn_cache.get("output") + student_attn_hidden = student_attn_cache.get("output") + if teacher_attn_hidden is None or student_attn_hidden is None: + raise RuntimeError( + "Attention-output preservation is enabled, but the forward " + "hook did not capture attention outputs." + ) + if teacher_attn_hidden.device != student_attn_hidden.device: + teacher_attn_hidden = teacher_attn_hidden.to(student_attn_hidden.device) + attn_aux_loss = _masked_hidden_mse( + student_attn_hidden - teacher_attn_hidden, + attention_mask, + ) + if attn_aux_loss is None: + continue + + mlp_aux_loss = None + if mlp_mse_weight > 0.0: + teacher_mlp_hidden = teacher_mlp_cache.get("output") + student_mlp_hidden = student_mlp_cache.get("output") + if teacher_mlp_hidden is None or student_mlp_hidden is None: + raise RuntimeError( + "MLP-output preservation is enabled, but the forward hook " + "did not capture MLP outputs." + ) + if teacher_mlp_hidden.device != student_mlp_hidden.device: + teacher_mlp_hidden = teacher_mlp_hidden.to(student_mlp_hidden.device) + mlp_aux_loss = _masked_hidden_mse( + student_mlp_hidden - teacher_mlp_hidden, + attention_mask, + ) + if mlp_aux_loss is None: + continue + + kl_loss = None + if kl_weight > 0.0: + with torch.no_grad(): + teacher_outputs = teacher_model( + input_ids=teacher_ids, + attention_mask=teacher_mask, + use_cache=False, + ) + teacher_logits = teacher_outputs.logits + + virtual_container = torch.nn.ModuleList(virtual_layers) + with temporary_layers( + student_parent, student_layer_attr, virtual_container + ): + student_outputs = student_model( + input_ids=input_ids, + attention_mask=attention_mask, + use_cache=False, + ) + student_logits = student_outputs.logits + kl_loss = _masked_kl( + teacher_logits, + student_logits, + attention_mask, + temp=kl_temp, + detach_p=True, + chunk_size=int(getattr(args, "kl_chunk_size", 16384)), + ) + if kl_loss is None: + continue + + lambda_reg = None + if eta > 0.0: + reg_sum: Optional[torch.Tensor] = None + reg_elems = 0 + for orig, safe in reparam_layer._name_map.items(): + if safe not in trainable_safe_names: + continue + lam = torch.sigmoid(reparam_layer.gates[safe]).float() + target = gate_lambdas.get(orig) + if target is None: + target_t = 0.5 + elif isinstance(target, torch.Tensor): + target_t = target.to(device=lam.device, dtype=lam.dtype) + else: + target_t = float(target) + diff_lam = lam - target_t + family = _classify_param_family(orig) + scale = _family_reg_scale( + family, + attn_scale=attn_reg_scale, + mlp_scale=mlp_reg_scale, + ) + if scale <= 0.0: + continue + part = diff_lam.pow(2).sum() * scale + reg_sum = part if reg_sum is None else reg_sum + part + reg_elems += int(float(diff_lam.numel()) * scale) + if reg_elems > 0 and reg_sum is not None: + lambda_reg = reg_sum / float(reg_elems) + + u_reg = None + if gamma > 0.0: + reg_sum: Optional[torch.Tensor] = None + reg_elems = 0 + for orig, safe in reparam_layer._name_map.items(): + if safe not in trainable_safe_names: + continue + u = reparam_layer.u[safe].float() + param_a = params_a.get(orig) + param_b = params_b.get(orig) + if param_a is None or param_b is None or param_b.shape != param_a.shape: + continue + u0 = ( + torch.zeros_like(u) + if sequential_rho or additive_u + else _initial_reparam_u(param_a, param_b, u.device) + ) + diff_u = u - u0 + family = _classify_param_family(orig) + scale = _family_reg_scale( + family, + attn_scale=attn_reg_scale, + mlp_scale=mlp_reg_scale, + ) + if scale <= 0.0: + continue + part = diff_u.pow(2).sum() * scale + reg_sum = part if reg_sum is None else reg_sum + part + reg_elems += int(float(diff_u.numel()) * scale) + if reg_elems > 0 and reg_sum is not None: + u_reg = reg_sum / float(reg_elems) + + total_loss = None + total_loss = _add_weighted_loss(total_loss, mse_loss, hidden_mse_weight) + total_loss = _add_weighted_loss(total_loss, attn_aux_loss, attn_mse_weight) + total_loss = _add_weighted_loss(total_loss, mlp_aux_loss, mlp_mse_weight) + total_loss = _add_weighted_loss(total_loss, kl_loss, kl_weight * (kl_temp ** 2)) + total_loss = _add_weighted_loss(total_loss, lambda_reg, eta) + total_loss = _add_weighted_loss(total_loss, u_reg, gamma) + if total_loss is None: + continue + + rho_loss = None + rho_grads = None + if rho_enabled and (not sequential_rho or phase == "rho"): + if rho_objective in {"full", "hidden_kl"}: + rho_loss = _add_weighted_loss( + rho_loss, mse_loss, hidden_mse_weight + ) + if rho_objective == "full": + rho_loss = _add_weighted_loss( + rho_loss, mlp_aux_loss, mlp_mse_weight + ) + rho_loss = _add_weighted_loss( + rho_loss, kl_loss, kl_weight * (kl_temp ** 2) + ) + if rho_loss is None: + raise RuntimeError( + f"rho objective {rho_objective!r} has no active loss term" + ) + if not sequential_rho: + rho_grads = torch.autograd.grad( + rho_loss, + trainable_rho_params, + retain_graph=True, + allow_unused=False, + ) + + backward_loss = rho_loss if sequential_rho and phase == "rho" else total_loss + if backward_loss is None: + raise RuntimeError(f"no active backward loss for phase {phase!r}") + if grad_accum > 1: + backward_loss = backward_loss / grad_accum + if use_scaler: + scaler.scale(backward_loss).backward() + else: + backward_loss.backward() + + if rho_grads is not None: + for rho_param, rho_grad in zip(trainable_rho_params, rho_grads): + rho_param.grad = rho_grad.detach() + + if (step + 1) % grad_accum == 0: + if use_scaler: + scaler.unscale_(optimizer) + if phase not in first_grad_summary: + trainable_gates = [ + param + for safe, param in reparam_layer.gates.items() + if safe in trainable_safe_names + ] + trainable_u = [ + param + for safe, param in reparam_layer.u.items() + if safe in trainable_safe_names + ] + trainable_rho = list(reparam_layer.rho.parameters()) + phase_grad_summary = { + "step": step + 1, + "phase": phase, + "gate": _grad_debug_summary(trainable_gates), + "u": _grad_debug_summary(trainable_u), + "rho": _grad_debug_summary(trainable_rho), + } + first_grad_summary[phase] = phase_grad_summary + print( + "[reparam] first_grad " + f"phase={phase} step={phase_grad_summary['step']} " + f"gate_l2={phase_grad_summary['gate']['l2']:.6e} " + f"gate_mean_abs={phase_grad_summary['gate']['mean_abs']} " + f"gate_max_abs={phase_grad_summary['gate']['max_abs']:.6e} " + f"u_l2={phase_grad_summary['u']['l2']:.6e} " + f"u_mean_abs={phase_grad_summary['u']['mean_abs']} " + f"u_max_abs={phase_grad_summary['u']['max_abs']:.6e} " + f"rho_l2={phase_grad_summary['rho']['l2']:.6e}" + ) + if max_grad_norm is not None: + if trainable_base_params and (not sequential_rho or phase == "u"): + torch.nn.utils.clip_grad_norm_( + trainable_base_params, + float(max_grad_norm), + ) + if trainable_rho_params and (not sequential_rho or phase == "rho"): + torch.nn.utils.clip_grad_norm_( + trainable_rho_params, + float(max_grad_norm), + ) + if use_scaler: + scaler.step(optimizer) + scaler.update() + else: + optimizer.step() + if rho_enabled and (not sequential_rho or phase == "rho"): + with torch.no_grad(): + for rho in reparam_layer.rho.values(): + rho.clamp_(rho_min, rho_max) + optimizer.zero_grad(set_to_none=True) + + if log_steps and (step == 0 or (step + 1) % log_steps == 0): + log_parts = [f"phase={phase}", f"loss={total_loss.item():.6e}"] + if rho_loss is not None: + log_parts.append(f"rho_loss={rho_loss.item():.6e}") + if mse_loss is not None: + log_parts.append(f"mse={mse_loss.item():.6e}") + else: + log_parts.append("mse=disabled") + if attn_aux_loss is not None: + log_parts.append(f"attn_mse={attn_aux_loss.item():.6e}") + elif attn_mse_weight > 0.0: + log_parts.append("attn_mse=nan") + if mlp_aux_loss is not None: + log_parts.append(f"mlp_mse={mlp_aux_loss.item():.6e}") + elif mlp_mse_weight > 0.0: + log_parts.append("mlp_mse=nan") + if kl_loss is not None: + log_parts.append(f"kl={kl_loss.item():.6e}") + if lambda_reg is not None: + log_parts.append(f"lam_reg={lambda_reg.item():.6e}") + if u_reg is not None: + log_parts.append(f"u_reg={u_reg.item():.6e}") + lambda_now = _lambda_summary_from_gates( + reparam_layer._name_map, + reparam_layer.gates, + ) + log_parts.append(f"lambda_mean={lambda_now.get('mean')}") + log_parts.append(f"lambda_std={lambda_now.get('std')}") + log_parts.append( + f"lambda_abs0.5={lambda_now.get('mean_abs_from_0_5')}" + ) + if rho_enabled: + log_parts.append(f"rho={reparam_layer.rho_values()}") + print( + f"[reparam] epoch={epoch_idx+1} step={step+1} " + " ".join(log_parts) + ) + # Release graph-heavy batch tensors before the next forward. On 70B + # reparam runs, AdamW state leaves little headroom, so carrying the + # previous logits/outputs into the next batch can trip OOM. + teacher_outputs = None + teacher_logits = None + student_outputs = None + student_logits = None + teacher_hidden = None + student_hidden = None + teacher_attn_hidden = None + student_attn_hidden = None + teacher_mlp_hidden = None + student_mlp_hidden = None + teacher_attn_cache = None + teacher_mlp_cache = None + student_attn_cache = None + student_mlp_cache = None + diff = None + mse_loss = None + attn_aux_loss = None + mlp_aux_loss = None + kl_loss = None + lambda_reg = None + u_reg = None + rho_loss = None + rho_grads = None + total_loss = None + if device_type == "cuda" and torch.cuda.is_available(): + gc.collect() + torch.cuda.empty_cache() + + step += 1 + + final_lambdas = reparam_layer.gate_lambdas() + lambda_final_summary = _tensor_debug_summary(final_lambdas) + lambda_delta_from_init = _lambda_delta_summary(final_lambdas, gate_lambdas) + u_delta_summary = _u_delta_debug_summary( + reparam_layer._name_map, + reparam_layer.u, + params_a, + params_b, + initial_scale=0.0 if sequential_rho or additive_u else 1.0, + ) + u_fisher_orthogonality = _sequential_u_fisher_orthogonality(reparam_layer) + merged = reparam_layer.materialize_into_layer_a() + stats: Dict[str, object] = { + "enabled": True, + "epochs": total_epochs, + "requested_epochs": requested_epochs, + "skip_train": skip_train, + "trained": bool(do_train), + "lr": float(args.distill_lr), + "hidden_mse_weight": hidden_mse_weight, + "attn_mse_weight": attn_mse_weight, + "mlp_mse_weight": mlp_mse_weight, + "eta": eta, + "gamma": gamma, + "attn_reg_scale": attn_reg_scale, + "mlp_reg_scale": mlp_reg_scale, + "param_subset": param_subset, + "train_subset": train_subset, + "num_gates": len(final_lambdas), + "num_attn_gates": family_counts["attn"], + "num_mlp_gates": family_counts["mlp"], + "num_other_gates": family_counts["other"], + "num_trainable_attn_gates": train_family_counts["attn"], + "num_trainable_mlp_gates": train_family_counts["mlp"], + "num_trainable_other_gates": train_family_counts["other"], + "lambda_init_summary": lambda_init_summary, + "lambda_final_summary": lambda_final_summary, + "lambda_delta_from_init": lambda_delta_from_init, + "first_grad_summary": first_grad_summary, + "u_delta_summary": u_delta_summary, + "rho_objective": rho_objective, + "rho_schedule": rho_schedule, + "additive_u": additive_u, + "rho_epochs": rho_epochs if sequential_rho else 0.0, + "rho_lr": rho_lr if rho_enabled else None, + "rho_bounds": [rho_min, rho_max] if rho_enabled else None, + "rho_after_phase": rho_after_phase, + "rho_final": reparam_layer.rho_values(), + "u_fisher_orthogonality": u_fisher_orthogonality, + } + return merged, final_lambdas, stats + + +class LoRALinear(torch.nn.Module): + def __init__( + self, + base: torch.nn.Linear, + rank: int, + alpha: float, + dropout: float, + ) -> None: + super().__init__() + if rank <= 0: + raise ValueError("LoRA rank must be positive") + self.base = base + self.rank = int(rank) + self.alpha = float(alpha) + self.scaling = self.alpha / float(self.rank) + self.enabled = True + if dropout > 0: + self.dropout = torch.nn.Dropout(dropout) + else: + self.dropout = torch.nn.Identity() + + self.lora_A = torch.nn.Linear(base.in_features, self.rank, bias=False) + self.lora_B = torch.nn.Linear(self.rank, base.out_features, bias=False) + torch.nn.init.kaiming_uniform_(self.lora_A.weight, a=math.sqrt(5)) + torch.nn.init.zeros_(self.lora_B.weight) + + self.lora_A.to(device=base.weight.device, dtype=base.weight.dtype) + self.lora_B.to(device=base.weight.device, dtype=base.weight.dtype) + self.merged = False + + def lora_parameters(self) -> List[torch.nn.Parameter]: + return [*self.lora_A.parameters(), *self.lora_B.parameters()] + + def forward(self, x: torch.Tensor) -> torch.Tensor: + result = self.base(x) + if self.merged or not self.enabled: + return result + lora_out = self.lora_B(self.lora_A(self.dropout(x))) + return result + lora_out * self.scaling + + def merge(self) -> None: + if self.merged: + return + delta = torch.matmul(self.lora_B.weight, self.lora_A.weight) + delta = delta.to(dtype=self.base.weight.dtype) * self.scaling + self.base.weight.data.add_(delta) + self.merged = True + + +def _get_child_module(parent: torch.nn.Module, part: str) -> torch.nn.Module: + if isinstance(parent, (torch.nn.ModuleList, torch.nn.Sequential)) and part.isdigit(): + return parent[int(part)] + if isinstance(parent, torch.nn.ModuleDict): + return parent[part] + return getattr(parent, part) + + +def _set_child_module(parent: torch.nn.Module, part: str, module: torch.nn.Module) -> None: + if isinstance(parent, (torch.nn.ModuleList, torch.nn.Sequential)) and part.isdigit(): + parent[int(part)] = module + return + if isinstance(parent, torch.nn.ModuleDict): + parent[part] = module + return + setattr(parent, part, module) + + +def _resolve_parent_module( + root: torch.nn.Module, module_name: str +) -> Optional[tuple]: + if not module_name: + return None + parts = module_name.split(".") + parent = root + for part in parts[:-1]: + parent = _get_child_module(parent, part) + return parent, parts[-1] + + +def _resolve_module_by_path(root: torch.nn.Module, module_path: str) -> Optional[torch.nn.Module]: + if not module_path: + return None + parts = [part for part in module_path.split(".") if part] + node = root + for part in parts: + try: + node = _get_child_module(node, part) + except Exception: + return None + return node + + +def _resolve_layer_container_for_lora( + model: torch.nn.Module, layer_path: Optional[str] +) -> Tuple[Optional[str], Optional[object]]: + """Resolve transformer layer container with optional auto-detection. + + Mirrors the candidate path strategy used elsewhere, so LoRA filtering can work + even when --layer_path is not provided. + """ + if isinstance(layer_path, str) and layer_path and layer_path.lower() != "none": + container = _resolve_module_by_path(model, layer_path) + if container is not None: + try: + list(container) + return layer_path, container + except TypeError: + pass + + candidate_paths = [ + "model.layers", # LLaMA, Mistral, Qwen2, Gemma + "model.decoder.layers", # OPT + "transformer.h", # GPT-2, GPT-J, Bloom, Falcon + "transformer.blocks", # MPT + "gpt_neox.layers", # GPT-NeoX + "layers", # fallback + ] + for path in candidate_paths: + container = _resolve_module_by_path(model, path) + if container is None: + continue + try: + list(container) + except TypeError: + continue + return path, container + + return None, None + + +def _parse_exclude_pairs_local(raw_values, num_pairs: int) -> Set[int]: + if not raw_values or num_pairs <= 0: + return set() + exclude: Set[int] = set() + for item in raw_values: + if item is None: + continue + for part in str(item).split(","): + part = part.strip() + if not part: + continue + try: + idx = int(part) + except ValueError as exc: + raise SystemExit("--exclude_pairs must contain integers.") from exc + if idx < 0: + idx = num_pairs + idx + if 0 <= idx < num_pairs: + exclude.add(idx) + return exclude + + +def _extract_layer_index_from_module_name( + module_name: str, layer_path: str +) -> Optional[int]: + if not layer_path: + return None + prefix = f"{layer_path}." + if not module_name.startswith(prefix): + return None + rest = module_name[len(prefix) :] + if not rest: + return None + idx_text = rest.split(".", 1)[0] + if not idx_text.isdigit(): + return None + return int(idx_text) + + +def _select_linear_modules_for_lora_targets( + model: torch.nn.Module, + args: argparse.Namespace, + *, + log_tag: str, +) -> Tuple[List[Tuple[str, torch.nn.Linear]], Optional[Set[str]], Set[int], Optional[str]]: + raw_targets = getattr(args, "lora_target_modules", None) + target_modules: Optional[Set[str]] = None + if raw_targets: + target_modules = {str(item) for item in raw_targets if str(item)} + + exclude_layer_indices: Set[int] = set() + resolved_layer_path: Optional[str] = None + if bool(getattr(args, "lora_respect_exclude_pairs", False)): + requested_layer_path = getattr(args, "layer_path", None) + resolved_layer_path, layer_container = _resolve_layer_container_for_lora( + model, requested_layer_path + ) + if isinstance(layer_container, (torch.nn.ModuleList, list, tuple)): + num_pairs = max(len(layer_container) - 1, 0) + exclude_pairs = _parse_exclude_pairs_local( + getattr(args, "exclude_pairs", None), num_pairs + ) + for pair_idx in exclude_pairs: + exclude_layer_indices.add(pair_idx) + exclude_layer_indices.add(pair_idx + 1) + else: + print( + f"[{log_tag}] Warning: --lora_respect_exclude_pairs enabled, but " + f"could not resolve layer path '{requested_layer_path}'." + ) + + linear_modules = [ + (name, module) + for name, module in model.named_modules() + if isinstance(module, torch.nn.Linear) + and (target_modules is None or name.split(".")[-1] in target_modules) + and ( + not exclude_layer_indices + or _extract_layer_index_from_module_name(name, resolved_layer_path or "") + not in exclude_layer_indices + ) + ] + return linear_modules, target_modules, exclude_layer_indices, resolved_layer_path + + +def apply_lora_adapters( + model: torch.nn.Module, args: argparse.Namespace +) -> List[LoRALinear]: + if args.lora_rank <= 0: + raise SystemExit("--lora_rank must be > 0 when --lora_epochs > 0") + linear_modules, target_modules, exclude_layer_indices, _ = ( + _select_linear_modules_for_lora_targets(model, args, log_tag="lora") + ) + if not linear_modules: + raise SystemExit( + "No Linear modules found for LoRA adapters " + "(check --lora_target_modules / --exclude_pairs / --lora_respect_exclude_pairs)." + ) + + lora_modules: List[LoRALinear] = [] + for name, module in linear_modules: + resolved = _resolve_parent_module(model, name) + if resolved is None: + continue + parent, attr = resolved + wrapped = LoRALinear( + base=module, + rank=args.lora_rank, + alpha=args.lora_alpha, + dropout=args.lora_dropout, + ) + _set_child_module(parent, attr, wrapped) + lora_modules.append(wrapped) + + for param in model.parameters(): + param.requires_grad_(False) + for lora_module in lora_modules: + for param in lora_module.lora_parameters(): + param.requires_grad_(True) + + total_params = sum(p.numel() for p in model.parameters()) + trainable_params = sum(p.numel() for p in model.parameters() if p.requires_grad) + percent = 100.0 * trainable_params / max(total_params, 1) + target_note = "" + if target_modules is not None: + target_note = f" target={sorted(target_modules)}" + exclude_note = "" + if exclude_layer_indices: + exclude_note = f" excluded_layers={sorted(exclude_layer_indices)}" + print( + "[lora] Applied adapters to " + f"{len(lora_modules)} linear modules " + f"({trainable_params}/{total_params} trainable, {percent:.4f}%)." + f"{target_note}{exclude_note}" + ) + return lora_modules + + +def merge_lora_adapters(model: torch.nn.Module) -> None: + lora_entries = [ + (name, module) + for name, module in model.named_modules() + if isinstance(module, LoRALinear) + ] + for name, module in lora_entries: + module.merge() + resolved = _resolve_parent_module(model, name) + if resolved is None: + continue + parent, attr = resolved + _set_child_module(parent, attr, module.base) + + +def set_lora_enabled(lora_modules: List[LoRALinear], enabled: bool) -> None: + for module in lora_modules: + module.enabled = enabled + + +def lora_ce_finetune( + model: torch.nn.Module, + dataloader, + eval_tokenizer, + eval_datasets: List[str], + eval_configs: List[Optional[str]], + eval_history: List[Dict[str, object]], + args: argparse.Namespace, + eval_dataloaders: Optional[Dict[str, object]] = None, + progressive_cycle: Optional[int] = None, + progressive_total: Optional[int] = None, +) -> None: + total_epochs = float(args.lora_epochs) + if total_epochs <= 0: + return + + use_kl = bool(getattr(args, "lora_kl_enabled", False)) + kl_weight = float(getattr(args, "lora_kl_weight", 0.0)) + kl_temp = float(getattr(args, "lora_kl_temp", 1.0)) + if use_kl: + if kl_weight < 0.0: + raise SystemExit("--lora_kl_weight must be >= 0") + if kl_temp <= 0.0: + raise SystemExit("--lora_kl_temp must be > 0") + if kl_weight == 0.0: + use_kl = False + + lora_modules = apply_lora_adapters(model, args) + if not lora_modules: + return + + model.train() + + lora_params = [] + for module in lora_modules: + lora_params.extend(module.lora_parameters()) + + optimizer = torch.optim.AdamW( + lora_params, + lr=args.lora_lr, + weight_decay=args.lora_weight_decay, + ) + + device_type = torch.device(args.device).type + amp_dtype = None + if args.dtype == "float16": + amp_dtype = torch.float16 + elif args.dtype == "bfloat16": + amp_dtype = torch.bfloat16 + use_amp = amp_dtype is not None and device_type == "cuda" + use_scaler = use_amp and amp_dtype == torch.float16 + scaler = torch.cuda.amp.GradScaler() if use_scaler else None + + full_epochs = int(total_epochs) + fractional = total_epochs - full_epochs + if fractional < 1e-8: + fractional = 0.0 + + epoch_plan = [(epoch_idx, None) for epoch_idx in range(full_epochs)] + if fractional > 0: + try: + batches_per_epoch = len(dataloader) + except TypeError as exc: + raise SystemExit( + "Fractional lora epochs require a dataloader with finite length." + ) from exc + if batches_per_epoch > 0: + frac_batches = int(round(fractional * batches_per_epoch)) + if frac_batches <= 0: + frac_batches = 1 + epoch_plan.append((full_epochs, frac_batches)) + + step = 0 + for epoch_idx, max_batches in epoch_plan: + if max_batches is None: + epoch_iter = dataloader + else: + epoch_iter = itertools.islice(dataloader, max_batches) + iterator = epoch_iter + if tqdm is not None and _tqdm_enabled(): + if progressive_cycle is not None: + if progressive_total is not None: + desc = ( + f"LoRA (cycle {progressive_cycle}/{progressive_total}, " + f"epoch {epoch_idx+1})" + ) + else: + desc = f"LoRA (cycle {progressive_cycle}, epoch {epoch_idx+1})" + else: + desc = f"LoRA (epoch {epoch_idx+1})" + iterator = tqdm( + epoch_iter, + desc=desc, + unit="batch", + total=max_batches, + ) + for batch in iterator: + input_ids = batch[0].to(args.device) + attention_mask = batch[1].to(args.device) + autocast_ctx = ( + torch.autocast(device_type=device_type, dtype=amp_dtype) + if use_amp + else nullcontext() + ) + with autocast_ctx: + outputs = model( + input_ids=input_ids, + attention_mask=attention_mask, + use_cache=False, + ) + logits = outputs.logits + shift_logits = logits[:, :-1, :].contiguous() + shift_labels = input_ids[:, 1:].contiguous() + shift_mask = attention_mask[:, 1:].contiguous() + ce_flat = F.cross_entropy( + shift_logits.view(-1, shift_logits.size(-1)), + shift_labels.view(-1), + reduction="none", + ) + ce_denom = shift_mask.sum() + if ce_denom.item() == 0: + continue + ce_loss = ( + ce_flat * shift_mask.view(-1).to(ce_flat.dtype) + ).sum() / ce_denom + kl_loss = None + if use_kl: + set_lora_enabled(lora_modules, False) + with torch.no_grad(): + base_outputs = model( + input_ids=input_ids, + attention_mask=attention_mask, + use_cache=False, + ) + base_logits = base_outputs.logits + set_lora_enabled(lora_modules, True) + if base_logits.device != shift_logits.device: + base_logits = base_logits.to(shift_logits.device) + shift_base_logits = base_logits[:, :-1, :].contiguous() + log_p_pre = F.log_softmax(shift_base_logits / kl_temp, dim=-1) + log_p_post = F.log_softmax(shift_logits / kl_temp, dim=-1) + p_pre = log_p_pre.exp() + kl_flat = (p_pre * (log_p_pre - log_p_post)).sum(dim=-1) + kl_loss = ( + kl_flat * shift_mask.to(kl_flat.dtype) + ).sum() / ce_denom + + total_loss = ce_loss + if kl_loss is not None: + total_loss = total_loss + (kl_weight * (kl_temp ** 2) * kl_loss) + + if args.lora_grad_accum_steps > 1: + total_loss = total_loss / args.lora_grad_accum_steps + if use_scaler: + scaler.scale(total_loss).backward() + else: + total_loss.backward() + + if (step + 1) % args.lora_grad_accum_steps == 0: + if args.lora_max_grad_norm is not None: + if use_scaler: + scaler.unscale_(optimizer) + torch.nn.utils.clip_grad_norm_( + lora_params, + args.lora_max_grad_norm, + ) + if use_scaler: + scaler.step(optimizer) + scaler.update() + else: + optimizer.step() + optimizer.zero_grad(set_to_none=True) + + if args.lora_eval_every and (step + 1) % args.lora_eval_every == 0: + prev_mode = model.training + model.eval() + eval_device = args.eval_device or args.device + if eval_dataloaders is not None: + results = ppl_eval.evaluate_ppl_dataloaders( + model, + eval_dataloaders, + eval_device, + max_batches=args.lora_eval_max_batches, + ) + else: + results = ppl_eval.evaluate_ppl_datasets( + model, + eval_tokenizer, + datasets=eval_datasets, + configs=eval_configs, + split=args.eval_split, + text_field=args.eval_text_field, + num_samples=args.eval_num_samples, + seq_len=args.eval_seq_len, + batch_size=args.eval_batch_size or args.batch_size, + device=eval_device, + seed=args.seed, + shuffle=False, + model_family=args.eval_model_family, + add_bos=args.eval_add_bos, + max_batches=args.lora_eval_max_batches, + cache_dir=args.eval_cache_dir, + num_workers=args.eval_num_workers, + ) + eval_history.append({"step": step + 1, "ppl": results}) + print(f"[lora] eval step={step+1}: {results}") + if prev_mode: + model.train() + + if args.lora_log_steps and ( + step == 0 or (step + 1) % args.lora_log_steps == 0 + ): + log_parts = [f"loss={total_loss.item():.6f}"] + if kl_loss is not None: + log_parts.append(f"kl={kl_loss.item():.6f}") + print( + f"[lora] epoch={epoch_idx+1} step={step+1} " + + " ".join(log_parts) + ) + step += 1 + + merge_lora_adapters(model) + + +def _masked_kl( + logits_p: torch.Tensor, + logits_q: torch.Tensor, + attention_mask: torch.Tensor, + temp: float, + detach_p: bool = True, + chunk_size: int = 16384, +) -> Optional[torch.Tensor]: + if chunk_size <= 0: + raise ValueError("chunk_size must be positive") + shift_mask = attention_mask[:, 1:].contiguous() + denom = shift_mask.sum() + if denom.item() == 0: + return None + + # Avoid materializing a full shifted logits copy on GPU. We stream over the + # vocab dimension below, so the sliced view is sufficient and lowers peak + # memory for sharded comm preconditioning. + p = logits_p[:, :-1, :] + q = logits_q[:, :-1, :] + q_device = q.device + q_dtype = q.dtype + + if (not detach_p) and p.device != q_device: + p = p.to(q_device) + + def _streaming_logsumexp( + logits: torch.Tensor, + target_device: torch.device, + target_dtype: torch.dtype, + ) -> torch.Tensor: + max_logits = logits.amax(dim=-1, keepdim=True) + max_scaled = max_logits / temp + sum_exp = None + vocab = logits.size(-1) + for start in range(0, vocab, chunk_size): + end = min(start + chunk_size, vocab) + chunk = logits[..., start:end] + if chunk.device != target_device or chunk.dtype != target_dtype: + chunk = chunk.to(device=target_device, dtype=target_dtype) + else: + chunk = chunk.to(dtype=target_dtype) + chunk_scaled = chunk / temp + partial = (chunk_scaled - max_scaled.to(device=chunk_scaled.device, dtype=chunk_scaled.dtype)).exp().sum( + dim=-1, + keepdim=True, + ) + sum_exp = partial if sum_exp is None else sum_exp + partial + return max_scaled.to(device=target_device, dtype=target_dtype) + sum_exp.log() + + logsumexp_q = _streaming_logsumexp(q, q_device, q_dtype) + logsumexp_p = _streaming_logsumexp( + p, + q_device if detach_p else p.device, + q_dtype if detach_p else p.dtype, + ) + if detach_p: + logsumexp_p = logsumexp_p.detach() + + kl_flat = None + vocab = q.size(-1) + for start in range(0, vocab, chunk_size): + end = min(start + chunk_size, vocab) + q_chunk = q[..., start:end].to(dtype=q_dtype) + log_q_chunk = (q_chunk / temp) - logsumexp_q + + p_chunk = p[..., start:end] + if p_chunk.device != q_device or p_chunk.dtype != q_dtype: + p_chunk = p_chunk.to(device=q_device, dtype=q_dtype) + else: + p_chunk = p_chunk.to(dtype=q_dtype) + log_p_chunk = (p_chunk / temp) - logsumexp_p.to(device=q_device, dtype=q_dtype) + if detach_p: + log_p_chunk = log_p_chunk.detach() + p_probs_chunk = log_p_chunk.exp() + chunk_kl = (p_probs_chunk * (log_p_chunk - log_q_chunk)).sum(dim=-1) + kl_flat = chunk_kl if kl_flat is None else kl_flat + chunk_kl + + mask = shift_mask.to(device=kl_flat.device, dtype=kl_flat.dtype) + denom = denom.to(device=kl_flat.device, dtype=kl_flat.dtype) + return (kl_flat * mask).sum() / denom + + +def _extract_hidden_tensor(output: object) -> Optional[torch.Tensor]: + if isinstance(output, torch.Tensor): + return output + if isinstance(output, (tuple, list)) and output: + first = output[0] + if isinstance(first, torch.Tensor): + return first + return None + + +def _grad_l2_norm(grads: List[Optional[torch.Tensor]]) -> float: + total = 0.0 + for grad in grads: + if grad is None: + continue + total += float(grad.detach().float().pow(2).sum().item()) + if total <= 0.0: + return 0.0 + return float(math.sqrt(total)) + + +def _register_forward_pre_hook_with_optional_kwargs(layer, hook): + try: + handle = layer.register_forward_pre_hook(hook, with_kwargs=True) + return handle + except TypeError: + def wrapper(module, inputs): + return hook(module, inputs, None) + + return layer.register_forward_pre_hook(wrapper) + + +def _batch_input_ids_attention(batch) -> Tuple[Optional[torch.Tensor], Optional[torch.Tensor]]: + if isinstance(batch, torch.Tensor): + return batch, None + if isinstance(batch, dict): + input_ids = batch.get("input_ids") + attention_mask = batch.get("attention_mask") + return input_ids, attention_mask + if ( + isinstance(batch, (tuple, list)) + and len(batch) == 1 + and isinstance(batch[0], torch.Tensor) + ): + return batch[0], None + if isinstance(batch, (tuple, list)) and len(batch) >= 2: + return batch[0], batch[1] + return None, None + + +def _new_gap_accumulator() -> Dict[str, float]: + return { + "mse_sum": 0.0, + "relative_sum": 0.0, + "cosine_sum": 0.0, + "r1_norm_sum": 0.0, + "r0_norm_sum": 0.0, + "token_count": 0.0, + "elem_count": 0.0, + "batches": 0.0, + } + + +def _accumulate_gap_component( + acc: Dict[str, float], + r1_like: torch.Tensor, + r0_like: torch.Tensor, + attention_mask: torch.Tensor, + interaction_eps: float, +) -> bool: + r1 = r1_like.float() + r0 = r0_like.float() + if r0.device != r1.device: + r0 = r0.to(r1.device) + if r0.shape != r1.shape or r1.dim() < 3: + return False + + mask = attention_mask.to(device=r1.device, dtype=torch.float32) + mask_sum = float(mask.sum().item()) + if mask_sum <= 0.0: + return False + + hidden_dim = int(r1.size(-1)) + mask_3d = mask.unsqueeze(-1) + gap = r1 - r0 + gap_sq = gap.pow(2).sum(dim=-1) + r1_sq = r1.pow(2).sum(dim=-1) + r0_sq = r0.pow(2).sum(dim=-1) + relative = gap_sq / (r1_sq + float(interaction_eps)) + cosine = F.cosine_similarity(r1, r0, dim=-1, eps=float(interaction_eps)) + + acc["mse_sum"] += float((gap.pow(2) * mask_3d).sum().item()) + acc["relative_sum"] += float((relative * mask).sum().item()) + acc["cosine_sum"] += float((cosine * mask).sum().item()) + acc["r1_norm_sum"] += float((r1_sq * mask).sum().item()) + acc["r0_norm_sum"] += float((r0_sq * mask).sum().item()) + acc["token_count"] += mask_sum + acc["elem_count"] += mask_sum * hidden_dim + acc["batches"] += 1.0 + return True + + +def _finalize_gap_component(acc: Dict[str, float]) -> Optional[Dict[str, object]]: + token_count = float(acc.get("token_count", 0.0)) + elem_count = float(acc.get("elem_count", 0.0)) + if token_count <= 0.0 or elem_count <= 0.0: + return None + mean_cosine = float(acc["cosine_sum"] / token_count) + return { + "batches": int(acc.get("batches", 0.0)), + "tokens": int(token_count), + "mse": float(acc["mse_sum"] / elem_count), + "relative": float(acc["relative_sum"] / token_count), + "cosine": mean_cosine, + "cosine_distance": float(1.0 - mean_cosine), + "r1_norm_mean": float(acc["r1_norm_sum"] / token_count), + "r0_norm_mean": float(acc["r0_norm_sum"] / token_count), + } + + +def _format_comm_gap_stats(stats: Dict[str, object]) -> str: + parts = [ + f"relative={stats.get('relative'):.6e}", + f"mse={stats.get('mse'):.6e}", + f"cos_dist={stats.get('cosine_distance'):.6e}", + ] + components = stats.get("components") + if isinstance(components, dict): + for name in ("attn", "mlp", "mlp.gate_proj", "mlp.up_proj", "mlp.down_proj"): + value = components.get(name) + if isinstance(value, dict) and "relative" in value: + parts.append(f"{name}_relative={value.get('relative'):.6e}") + if "cosine_distance" in value: + parts.append(f"{name}_cos_dist={value.get('cosine_distance'):.6e}") + return " ".join(parts) + + +def _safe_ratio(numer: object, denom: object) -> Optional[float]: + try: + n = float(numer) + d = float(denom) + except (TypeError, ValueError): + return None + if not math.isfinite(n) or not math.isfinite(d) or d == 0.0: + return None + return n / d + + +def _comm_gap_ratio(pre_stats: Dict[str, object], post_stats: Dict[str, object]) -> Dict[str, object]: + ratio: Dict[str, object] = {} + for key in ("mse", "relative", "cosine_distance"): + if key not in pre_stats or key not in post_stats: + continue + value = _safe_ratio(post_stats.get(key), pre_stats.get(key)) + if value is not None: + ratio[key] = value + mse_ratio = ratio.get("mse") + if isinstance(mse_ratio, float) and mse_ratio >= 0.0: + ratio["l2_norm_from_mse"] = math.sqrt(mse_ratio) + + pre_components = pre_stats.get("components") + post_components = post_stats.get("components") + if isinstance(pre_components, dict) and isinstance(post_components, dict): + component_ratios = {} + for name, pre_value in pre_components.items(): + post_value = post_components.get(name) + if not isinstance(pre_value, dict) or not isinstance(post_value, dict): + continue + one_component: Dict[str, float] = {} + for key in ("mse", "relative", "cosine_distance"): + if key not in pre_value or key not in post_value: + continue + value = _safe_ratio(post_value.get(key), pre_value.get(key)) + if value is not None: + one_component[key] = value + mse_ratio = one_component.get("mse") + if isinstance(mse_ratio, float) and mse_ratio >= 0.0: + one_component["l2_norm_from_mse"] = math.sqrt(mse_ratio) + if one_component: + component_ratios[name] = one_component + if component_ratios: + ratio["components"] = component_ratios + return ratio + + +def _measure_commutator_gap( + student_model: torch.nn.Module, + student_layers: List[torch.nn.Module], + dataloader, + pair_idx: int, + args: argparse.Namespace, + max_batches: int, + interaction_eps: float, +) -> Dict[str, object]: + """Measure r1-r0 on a fixed pair without updating model weights.""" + if dataloader is None: + return {"enabled": False, "reason": "no_dataloader"} + if pair_idx < 0 or pair_idx >= len(student_layers) - 1: + return {"enabled": False, "reason": "invalid_pair"} + + was_training = student_model.training + student_model.eval() + + device_type = torch.device(args.device).type + amp_dtype = None + if args.dtype == "float16": + amp_dtype = torch.float16 + elif args.dtype == "bfloat16": + amp_dtype = torch.bfloat16 + use_amp = amp_dtype is not None and device_type == "cuda" + autocast_ctx = ( + torch.autocast(device_type=device_type, dtype=amp_dtype) + if use_amp + else nullcontext() + ) + + block_acc = _new_gap_accumulator() + component_accs: Dict[str, Dict[str, float]] = {} + batches = 0 + skipped = 0 + receiver_attn = None + receiver_mlp = None + try: + receiver_attn = find_attention_module(student_layers[pair_idx + 1]) + except Exception: + receiver_attn = None + try: + receiver_mlp = find_mlp_module(student_layers[pair_idx + 1]) + except Exception: + receiver_mlp = None + if receiver_attn is not None: + component_accs["attn"] = _new_gap_accumulator() + mlp_submodules: Dict[str, torch.nn.Module] = {} + if receiver_mlp is not None: + component_accs["mlp"] = _new_gap_accumulator() + for sub_name in ("gate_proj", "up_proj", "down_proj"): + submodule = getattr(receiver_mlp, sub_name, None) + if isinstance(submodule, torch.nn.Module): + component_name = f"mlp.{sub_name}" + mlp_submodules[component_name] = submodule + component_accs[component_name] = _new_gap_accumulator() + + limit = int(max_batches) + try: + iterator = iter(dataloader) + with torch.no_grad(): + for batch in iterator: + if limit > 0 and batches >= limit: + break + input_ids, attention_mask = _batch_input_ids_attention(batch) + if input_ids is None: + skipped += 1 + continue + input_ids = input_ids.to(args.device) + if attention_mask is None: + attention_mask = torch.ones_like(input_ids) + attention_mask = attention_mask.to(args.device) + + capture: Dict[str, object] = { + "h_l": None, + "h_lp1": None, + "y1": None, + "attn1": None, + "mlp1": None, + "recv_args": None, + "recv_kwargs": None, + } + + def _hook_l(_module, inputs, _output): + if inputs and isinstance(inputs[0], torch.Tensor): + capture["h_l"] = inputs[0] + + def _hook_recv_pre(_module, inputs, kwargs): + capture["recv_args"] = inputs + capture["recv_kwargs"] = kwargs + + def _hook_recv(_module, inputs, output): + if inputs and isinstance(inputs[0], torch.Tensor): + capture["h_lp1"] = inputs[0] + capture["y1"] = _extract_hidden_tensor(output) + + def _hook_attn1(_module, _inputs, output): + capture["attn1"] = _extract_hidden_tensor(output) + + def _hook_mlp1(_module, _inputs, output): + capture["mlp1"] = _extract_hidden_tensor(output) + + def _make_component_hook(storage: Dict[str, object], key: str): + def _hook(_module, _inputs, output): + storage[key] = _extract_hidden_tensor(output) + + return _hook + + handles: List[object] = [ + student_layers[pair_idx].register_forward_hook(_hook_l), + _register_forward_pre_hook_with_optional_kwargs( + student_layers[pair_idx + 1], _hook_recv_pre + ), + student_layers[pair_idx + 1].register_forward_hook(_hook_recv), + ] + if receiver_attn is not None: + handles.append(receiver_attn.register_forward_hook(_hook_attn1)) + if receiver_mlp is not None: + handles.append(receiver_mlp.register_forward_hook(_hook_mlp1)) + for name, module in mlp_submodules.items(): + handles.append( + module.register_forward_hook( + _make_component_hook(capture, f"{name}1") + ) + ) + try: + with autocast_ctx: + student_model( + input_ids=input_ids, + attention_mask=attention_mask, + use_cache=False, + ) + finally: + for handle in handles: + try: + handle.remove() + except Exception: + pass + + h_l = capture.get("h_l") + h_lp1 = capture.get("h_lp1") + y1 = capture.get("y1") + recv_args = capture.get("recv_args") + recv_kwargs = capture.get("recv_kwargs") + if not ( + isinstance(h_l, torch.Tensor) + and isinstance(h_lp1, torch.Tensor) + and isinstance(y1, torch.Tensor) + and isinstance(recv_args, tuple) + and len(recv_args) > 0 + and isinstance(recv_args[0], torch.Tensor) + ): + skipped += 1 + continue + + first_hidden = recv_args[0] + receiver_device = first_hidden.device + call_args = list(_move_tensor_tree_to_device(recv_args, receiver_device)) + call_args[0] = h_l.detach().to( + device=receiver_device, + dtype=first_hidden.dtype, + ) + call_kwargs = ( + _move_tensor_tree_to_device(dict(recv_kwargs), receiver_device) + if isinstance(recv_kwargs, dict) + else {} + ) + y0_capture: Dict[str, object] = {"attn0": None, "mlp0": None} + + def _hook_attn0(_module, _inputs, output): + y0_capture["attn0"] = _extract_hidden_tensor(output) + + def _hook_mlp0(_module, _inputs, output): + y0_capture["mlp0"] = _extract_hidden_tensor(output) + + y0_handles: List[object] = [] + if receiver_attn is not None: + y0_handles.append(receiver_attn.register_forward_hook(_hook_attn0)) + if receiver_mlp is not None: + y0_handles.append(receiver_mlp.register_forward_hook(_hook_mlp0)) + for name, module in mlp_submodules.items(): + y0_handles.append( + module.register_forward_hook( + _make_component_hook(y0_capture, f"{name}0") + ) + ) + with autocast_ctx: + try: + y0_raw = student_layers[pair_idx + 1](*tuple(call_args), **call_kwargs) + finally: + for handle in y0_handles: + try: + handle.remove() + except Exception: + pass + y0 = _extract_hidden_tensor(y0_raw) + if not isinstance(y0, torch.Tensor): + skipped += 1 + continue + + if y0.device != y1.device: + y0 = y0.to(y1.device) + h_lp1_detached = h_lp1.detach().to(device=y1.device, dtype=y1.dtype) + h_l_for_res = h_l.detach().to(device=y0.device, dtype=y0.dtype) + r1 = (y1 - h_lp1_detached).float() + r0 = (y0 - h_l_for_res).float() + if not _accumulate_gap_component( + block_acc, + r1, + r0, + attention_mask, + interaction_eps, + ): + skipped += 1 + continue + + attn1 = capture.get("attn1") + attn0 = y0_capture.get("attn0") + if isinstance(attn1, torch.Tensor) and isinstance(attn0, torch.Tensor): + _accumulate_gap_component( + component_accs["attn"], + attn1, + attn0, + attention_mask, + interaction_eps, + ) + mlp1 = capture.get("mlp1") + mlp0 = y0_capture.get("mlp0") + if isinstance(mlp1, torch.Tensor) and isinstance(mlp0, torch.Tensor): + _accumulate_gap_component( + component_accs["mlp"], + mlp1, + mlp0, + attention_mask, + interaction_eps, + ) + for name in mlp_submodules: + sub1 = capture.get(f"{name}1") + sub0 = y0_capture.get(f"{name}0") + if isinstance(sub1, torch.Tensor) and isinstance(sub0, torch.Tensor): + _accumulate_gap_component( + component_accs[name], + sub1, + sub0, + attention_mask, + interaction_eps, + ) + batches += 1 + finally: + if was_training: + student_model.train() + + block_stats = _finalize_gap_component(block_acc) + if block_stats is None: + return { + "enabled": False, + "reason": "no_valid_batches", + "batches": int(batches), + "skipped_batches": int(skipped), + } + + components = {} + for name, acc in component_accs.items(): + component_stats = _finalize_gap_component(acc) + if component_stats is not None: + components[name] = component_stats + + return { + "enabled": True, + "pair": int(pair_idx), + "batches": int(batches), + "skipped_batches": int(skipped), + "tokens": block_stats["tokens"], + "mse": block_stats["mse"], + "relative": block_stats["relative"], + "cosine": block_stats["cosine"], + "cosine_distance": block_stats["cosine_distance"], + "r1_norm_mean": block_stats["r1_norm_mean"], + "r0_norm_mean": block_stats["r0_norm_mean"], + "components": components, + } + + +def commutator_precondition( + student_model: torch.nn.Module, + student_layers: List[torch.nn.Module], + teacher_model: torch.nn.Module, + dataloader, + dwce_scores: Optional[List[float]], + args: argparse.Namespace, + exclude_pairs: Optional[Set[int]] = None, + progressive_cycle: Optional[int] = None, + progressive_total: Optional[int] = None, + measure_dataloader=None, +) -> Dict[str, object]: + """Run commutator-style preconditioning before pair fusion. + + Objective on each sampled pair i: + L = T^2 * KL(p_teacher || p_student) + mu * L_interaction(i) + + Interaction loss is computed locally on block (i+1): + r1 = B_{i+1}(h_{i+1}) - h_{i+1} + r0 = B_{i+1}(h_i) - h_i + L_interaction = ||r1-r0||^2 (or relative form). + """ + if not bool(getattr(args, "comm_enabled", False)): + return {"enabled": False} + if not student_layers or len(student_layers) < 2: + return {"enabled": False, "reason": "need_at_least_2_layers"} + + temp = float(getattr(args, "comm_temp", 2.0)) + steps_ratio = float(getattr(args, "comm_steps_ratio", 0.1)) + lr_scale = float(getattr(args, "comm_lr_scale", 0.1)) + sample_eta = float(getattr(args, "comm_sample_eta", 0.5)) + sample_dwce_scale = float(getattr(args, "comm_sample_dwce_scale", 1.0)) + top_k = int(getattr(args, "comm_topk", 1)) + interaction_mode = str(getattr(args, "comm_interaction_mode", "relative")).strip().lower() + interaction_eps = float(getattr(args, "comm_interaction_eps", 1e-8)) + mu_cfg = getattr(args, "comm_mu", None) + mu_auto = bool(getattr(args, "comm_mu_auto", False)) + mu_auto_rho = float(getattr(args, "comm_mu_auto_rho", 0.1)) + mu_auto_eps = float(getattr(args, "comm_mu_auto_eps", 1e-8)) + comm_train_mode = str(getattr(args, "comm_train_mode", "lora")).strip().lower() + log_steps = int(getattr(args, "comm_log_steps", 50)) + + if temp <= 0.0: + raise SystemExit("--comm_temp must be > 0") + if steps_ratio < 0.0: + raise SystemExit("--comm_steps_ratio must be >= 0") + if lr_scale <= 0.0: + raise SystemExit("--comm_lr_scale must be > 0") + if not (0.0 <= sample_eta <= 1.0): + raise SystemExit("--comm_sample_eta must be in [0, 1]") + if top_k <= 0: + raise SystemExit("--comm_topk must be >= 1") + if interaction_mode not in {"mse", "relative"}: + raise SystemExit("--comm_interaction_mode must be one of: mse, relative") + if comm_train_mode not in {"lora", "full"}: + raise SystemExit("--comm_train_mode must be one of: lora, full") + if interaction_eps <= 0.0: + raise SystemExit("--comm_interaction_eps must be > 0") + if mu_auto_rho < 0.0: + raise SystemExit("--comm_mu_auto_rho must be >= 0") + if mu_auto_eps <= 0.0: + raise SystemExit("--comm_mu_auto_eps must be > 0") + + if mu_cfg is None: + base_mu = 0.5 if interaction_mode == "relative" else 0.1 + else: + base_mu = float(mu_cfg) + if base_mu < 0.0: + raise SystemExit("--comm_mu must be >= 0") + + distill_epochs = float(getattr(args, "distill_epochs", 1.0)) + if distill_epochs <= 0.0: + distill_epochs = 1.0 + grad_accum = int(getattr(args, "distill_grad_accum_steps", 1)) + if grad_accum <= 0: + grad_accum = 1 + + try: + batches_per_epoch = len(dataloader) + except TypeError as exc: + raise SystemExit( + "Commutator preconditioning requires a finite-length distillation dataloader." + ) from exc + if batches_per_epoch <= 0: + return {"enabled": False, "reason": "empty_dataloader"} + + full_epochs = int(distill_epochs) + fractional = distill_epochs - full_epochs + if fractional < 1e-8: + fractional = 0.0 + total_batches = full_epochs * batches_per_epoch + if fractional > 0.0: + frac_batches = int(round(fractional * batches_per_epoch)) + if frac_batches <= 0: + frac_batches = 1 + total_batches += frac_batches + + distill_opt_steps = int(math.ceil(total_batches / float(grad_accum))) + target_opt_steps = int(round(steps_ratio * distill_opt_steps)) + if target_opt_steps <= 0: + target_opt_steps = 1 + + num_pairs = max(len(student_layers) - 1, 0) + exclude_set = { + int(idx) + for idx in (exclude_pairs or set()) + if isinstance(idx, int) and 0 <= int(idx) < num_pairs + } + allowed_pairs = [i for i in range(num_pairs) if i not in exclude_set] + if not allowed_pairs: + return {"enabled": False, "reason": "all_pairs_excluded"} + + ranked_pairs = list(allowed_pairs) + if dwce_scores is not None and len(dwce_scores) >= num_pairs: + finite_pairs = [] + for idx in allowed_pairs: + value = float(dwce_scores[idx]) + if math.isfinite(value): + finite_pairs.append(idx) + if finite_pairs: + ranked_pairs = sorted(finite_pairs, key=lambda i: float(dwce_scores[i])) + else: + ranked_pairs = list(allowed_pairs) + candidate_pairs = ranked_pairs[: min(top_k, len(ranked_pairs))] + if not candidate_pairs: + return {"enabled": False, "reason": "no_candidate_pairs"} + + layer_trainable_params: List[List[torch.nn.Parameter]] = [] + trainable_params: List[torch.nn.Parameter] = [] + if comm_train_mode == "lora": + # LoRA comm preconditioning: update LoRA adapters on receiver layer (i+1). + lora_modules = apply_lora_adapters(student_model, args) + if not lora_modules: + return {"enabled": False, "reason": "no_lora_modules"} + + trainable_seen: Set[int] = set() + for module in lora_modules: + for param in module.lora_parameters(): + pid = id(param) + if pid in trainable_seen: + continue + trainable_seen.add(pid) + trainable_params.append(param) + + for layer in student_layers: + seen: Set[int] = set() + params: List[torch.nn.Parameter] = [] + for module in layer.modules(): + if not isinstance(module, LoRALinear): + continue + for param in module.lora_parameters(): + pid = id(param) + if pid in seen: + continue + seen.add(pid) + params.append(param) + layer_trainable_params.append(params) + else: + # Full-weight comm preconditioning: update full receiver-layer weights. + for layer in student_layers: + seen: Set[int] = set() + params: List[torch.nn.Parameter] = [] + for param in layer.parameters(): + if not isinstance(param, torch.nn.Parameter): + continue + pid = id(param) + if pid in seen: + continue + seen.add(pid) + params.append(param) + layer_trainable_params.append(params) + + candidate_pairs = [ + i + for i in candidate_pairs + if (i + 1) < len(layer_trainable_params) and layer_trainable_params[i + 1] + ] + if not candidate_pairs: + if comm_train_mode == "lora": + merge_lora_adapters(student_model) + return {"enabled": False, "reason": "no_trainable_receiver_layers"} + + if comm_train_mode == "full": + trainable_seen: Set[int] = set() + for pair_idx in candidate_pairs: + for param in layer_trainable_params[pair_idx + 1]: + pid = id(param) + if pid in trainable_seen: + continue + trainable_seen.add(pid) + trainable_params.append(param) + if not trainable_params: + return {"enabled": False, "reason": "no_trainable_receiver_layers"} + + # Freeze non-comm params to reduce grad memory. + for param in student_model.parameters(): + param.requires_grad_(False) + for param in trainable_params: + param.requires_grad_(True) + + if not trainable_params: + if comm_train_mode == "lora": + merge_lora_adapters(student_model) + return {"enabled": False, "reason": "no_trainable_params"} + + candidate_probs = torch.full( + (len(candidate_pairs),), + 1.0 / float(len(candidate_pairs)), + dtype=torch.float32, + ) + if dwce_scores is not None and len(dwce_scores) >= num_pairs and sample_eta > 0.0: + score_vec = torch.tensor( + [float(dwce_scores[i]) for i in candidate_pairs], dtype=torch.float32 + ) + score_vec = torch.nan_to_num(score_vec, nan=1e9, posinf=1e9, neginf=-1e9) + biased = torch.softmax(-float(sample_dwce_scale) * score_vec, dim=0) + candidate_probs = (1.0 - sample_eta) * candidate_probs + sample_eta * biased + candidate_probs = candidate_probs / candidate_probs.sum() + + probs_by_pair = [0.0 for _ in range(num_pairs)] + for pos, pair_idx in enumerate(candidate_pairs): + probs_by_pair[pair_idx] = float(candidate_probs[pos].item()) + + measured_pair = int(candidate_pairs[0]) + gap_pre = None + if bool(getattr(args, "comm_measure_gap", False)): + max_gap_batches = int(getattr(args, "comm_gap_max_batches", 8)) + gap_pre = _measure_commutator_gap( + student_model=student_model, + student_layers=student_layers, + dataloader=measure_dataloader if measure_dataloader is not None else dataloader, + pair_idx=measured_pair, + args=args, + max_batches=max_gap_batches, + interaction_eps=interaction_eps, + ) + if gap_pre.get("enabled"): + print( + "[comm-gap] pre " + f"pair={measured_pair}-{measured_pair + 1} " + f"{_format_comm_gap_stats(gap_pre)} " + f"batches={gap_pre.get('batches')}" + ) + else: + print(f"[comm-gap] pre measurement skipped: {gap_pre.get('reason')}") + + lr = float(getattr(args, "distill_lr", 1e-4)) * lr_scale + optimizer = torch.optim.AdamW( + trainable_params, + lr=lr, + weight_decay=float(getattr(args, "distill_weight_decay", 0.0)), + ) + + device_type = torch.device(args.device).type + amp_dtype = None + if args.dtype == "float16": + amp_dtype = torch.float16 + elif args.dtype == "bfloat16": + amp_dtype = torch.bfloat16 + use_amp = amp_dtype is not None and device_type == "cuda" + use_scaler = use_amp and amp_dtype == torch.float16 + scaler = torch.cuda.amp.GradScaler() if use_scaler else None + + teacher_device = next(teacher_model.parameters()).device + teacher_model.eval() + student_model.train() + + gen = torch.Generator(device="cpu") + seed = int(getattr(args, "seed", 0)) + if progressive_cycle is not None: + seed += int(progressive_cycle) * 100003 + gen.manual_seed(seed) + + opt_step = 0 + total_loss_sum = 0.0 + anchor_sum = 0.0 + interaction_sum = 0.0 + mu_sum = 0.0 + counted = 0 + pair_counts = [0 for _ in range(num_pairs)] + + desc = "Comm" + if progressive_cycle is not None: + if progressive_total is not None: + desc = f"Comm (cycle {progressive_cycle}/{progressive_total})" + else: + desc = f"Comm (cycle {progressive_cycle})" + iterator = range(target_opt_steps) + if tqdm is not None and _tqdm_enabled(): + iterator = tqdm(iterator, desc=desc, unit="step") + + data_iter = iter(dataloader) + autocast_ctx = ( + torch.autocast(device_type=device_type, dtype=amp_dtype) + if use_amp + else nullcontext() + ) + + for _ in iterator: + optimizer.zero_grad(set_to_none=True) + accum_done = 0 + while accum_done < grad_accum: + try: + batch = next(data_iter) + except StopIteration: + data_iter = iter(dataloader) + batch = next(data_iter) + + input_ids = batch[0].to(args.device) + attention_mask = batch[1].to(args.device) + sampled_pos = int(torch.multinomial(candidate_probs, 1, generator=gen).item()) + pair_idx = int(candidate_pairs[sampled_pos]) + pair_counts[pair_idx] += 1 + + receiver_params = layer_trainable_params[pair_idx + 1] + receiver_param_ids = {id(param) for param in receiver_params} + + teacher_ids = input_ids.to(teacher_device) + teacher_mask = attention_mask.to(teacher_device) + with torch.no_grad(), autocast_ctx: + teacher_outputs = teacher_model( + input_ids=teacher_ids, + attention_mask=teacher_mask, + use_cache=False, + ) + teacher_logits = teacher_outputs.logits + + capture: Dict[str, object] = { + "h_l": None, + "h_lp1": None, + "y1": None, + "recv_args": None, + "recv_kwargs": None, + } + + def _hook_l(_module, inputs, _output): + if inputs and isinstance(inputs[0], torch.Tensor): + capture["h_l"] = inputs[0] + + def _hook_recv_pre(_module, inputs, kwargs): + capture["recv_args"] = inputs + capture["recv_kwargs"] = kwargs + + def _hook_recv(_module, inputs, output): + if inputs and isinstance(inputs[0], torch.Tensor): + capture["h_lp1"] = inputs[0] + capture["y1"] = _extract_hidden_tensor(output) + + handles: List[object] = [ + student_layers[pair_idx].register_forward_hook(_hook_l), + _register_forward_pre_hook_with_optional_kwargs( + student_layers[pair_idx + 1], _hook_recv_pre + ), + student_layers[pair_idx + 1].register_forward_hook(_hook_recv), + ] + try: + with autocast_ctx: + student_outputs = student_model( + input_ids=input_ids, + attention_mask=attention_mask, + use_cache=False, + ) + student_logits = student_outputs.logits + finally: + for handle in handles: + try: + handle.remove() + except Exception: + pass + + with autocast_ctx: + anchor_kl = _masked_kl( + teacher_logits, + student_logits, + attention_mask, + temp=temp, + detach_p=True, + chunk_size=int(getattr(args, "kl_chunk_size", 16384)), + ) + if anchor_kl is None: + continue + anchor_loss = (temp ** 2) * anchor_kl + + interaction_loss = None + h_l = capture.get("h_l") + h_lp1 = capture.get("h_lp1") + y1 = capture.get("y1") + recv_args = capture.get("recv_args") + recv_kwargs = capture.get("recv_kwargs") + if ( + isinstance(h_l, torch.Tensor) + and isinstance(h_lp1, torch.Tensor) + and isinstance(y1, torch.Tensor) + and isinstance(recv_args, tuple) + and len(recv_args) > 0 + and isinstance(recv_args[0], torch.Tensor) + ): + first_hidden = recv_args[0] + receiver_device = first_hidden.device + call_args = list( + _move_tensor_tree_to_device(recv_args, receiver_device) + ) + h_l_detached = h_l.detach().to( + device=receiver_device, + dtype=first_hidden.dtype, + ) + call_args[0] = h_l_detached + call_kwargs = ( + _move_tensor_tree_to_device(dict(recv_kwargs), receiver_device) + if isinstance(recv_kwargs, dict) + else {} + ) + + y0_raw = student_layers[pair_idx + 1](*tuple(call_args), **call_kwargs) + y0 = _extract_hidden_tensor(y0_raw) + if isinstance(y0, torch.Tensor): + if y0.device != y1.device: + y0 = y0.to(y1.device) + h_lp1_detached = h_lp1.detach().to(device=y1.device, dtype=y1.dtype) + h_l_for_res = h_l.detach().to(device=y0.device, dtype=y0.dtype) + r1 = y1 - h_lp1_detached + r0 = y0 - h_l_for_res + mask = attention_mask.to(device=r1.device, dtype=r1.dtype) + mask_sum = mask.sum() + if mask_sum.item() > 0: + if interaction_mode == "relative": + num = (r1 - r0).float().pow(2).sum(dim=-1) + den = r1.float().pow(2).sum(dim=-1) + float(interaction_eps) + ratio = (num / den) * mask.to(num.dtype) + interaction_loss = ratio.sum() / (mask_sum + 1e-8) + else: + denom = mask_sum * r1.size(-1) + if denom.item() > 0: + interaction_loss = ( + (r1 - r0).pow(2) * mask.unsqueeze(-1) + ).sum() / denom + + mu_effective = float(base_mu) + if ( + mu_auto + and interaction_loss is not None + and receiver_params + and mu_auto_rho > 0.0 + ): + anchor_grads = torch.autograd.grad( + anchor_loss, + receiver_params, + retain_graph=True, + allow_unused=True, + ) + interaction_grads = torch.autograd.grad( + interaction_loss, + receiver_params, + retain_graph=True, + allow_unused=True, + ) + anchor_norm = _grad_l2_norm(list(anchor_grads)) + interaction_norm = _grad_l2_norm(list(interaction_grads)) + if interaction_norm > 0.0: + mu_effective = float( + mu_auto_rho + * (anchor_norm / (interaction_norm + float(mu_auto_eps))) + ) + else: + mu_effective = float(base_mu) + if not math.isfinite(mu_effective): + mu_effective = float(base_mu) + + total_loss = anchor_loss + if interaction_loss is not None: + if interaction_loss.device != total_loss.device: + interaction_loss = interaction_loss.to(total_loss.device) + total_loss = total_loss + (float(mu_effective) * interaction_loss) + + if grad_accum > 1: + total_loss = total_loss / float(grad_accum) + + if use_scaler: + scaler.scale(total_loss).backward() + else: + total_loss.backward() + + # Only the sampled receiver layer updates on this micro-batch. + for param in trainable_params: + if id(param) in receiver_param_ids: + continue + if param.grad is not None: + if comm_train_mode == "lora": + param.grad.zero_() + else: + param.grad = None + + total_loss_sum += float(total_loss.detach().float().item()) + anchor_sum += float(anchor_loss.detach().float().item()) + if interaction_loss is not None: + interaction_sum += float(interaction_loss.detach().float().item()) + mu_sum += float(mu_effective) + counted += 1 + accum_done += 1 + + if args.distill_max_grad_norm is not None: + if use_scaler: + scaler.unscale_(optimizer) + torch.nn.utils.clip_grad_norm_( + trainable_params, + float(args.distill_max_grad_norm), + ) + + if use_scaler: + scaler.step(optimizer) + scaler.update() + else: + optimizer.step() + + opt_step += 1 + if log_steps and (opt_step == 1 or opt_step % log_steps == 0): + denom = max(counted, 1) + print( + f"[comm] step={opt_step}/{target_opt_steps} " + f"loss={total_loss_sum/denom:.6f} " + f"anchor={anchor_sum/denom:.6f} " + f"int={interaction_sum/denom:.6f} " + f"mu={mu_sum/denom:.6f}" + ) + + if comm_train_mode == "lora": + merge_lora_adapters(student_model) + + gap_post = None + if bool(getattr(args, "comm_measure_gap", False)): + max_gap_batches = int(getattr(args, "comm_gap_max_batches", 8)) + gap_post = _measure_commutator_gap( + student_model=student_model, + student_layers=student_layers, + dataloader=measure_dataloader if measure_dataloader is not None else dataloader, + pair_idx=measured_pair, + args=args, + max_batches=max_gap_batches, + interaction_eps=interaction_eps, + ) + if gap_post.get("enabled"): + print( + "[comm-gap] post " + f"pair={measured_pair}-{measured_pair + 1} " + f"{_format_comm_gap_stats(gap_post)} " + f"batches={gap_post.get('batches')}" + ) + else: + print(f"[comm-gap] post measurement skipped: {gap_post.get('reason')}") + + stats: Dict[str, object] = { + "enabled": True, + "train_mode": comm_train_mode, + "opt_steps": int(target_opt_steps), + "grad_accum_steps": int(grad_accum), + "lr": float(lr), + "temp": float(temp), + "steps_ratio": float(steps_ratio), + "lr_scale": float(lr_scale), + "interaction_mode": interaction_mode, + "interaction_eps": float(interaction_eps), + "mu": float(base_mu), + "mu_auto": bool(mu_auto), + "mu_auto_rho": float(mu_auto_rho), + "mu_auto_eps": float(mu_auto_eps), + "sample_eta": float(sample_eta), + "sample_dwce_scale": float(sample_dwce_scale), + "topk": int(top_k), + "candidate_pairs": [int(i) for i in candidate_pairs], + "trainable_params": int(sum(int(param.numel()) for param in trainable_params)), + } + if gap_pre is not None or gap_post is not None: + stats["gap_pair"] = int(measured_pair) + stats["gap_pre"] = gap_pre + stats["gap_post"] = gap_post + if ( + isinstance(gap_pre, dict) + and isinstance(gap_post, dict) + and gap_pre.get("enabled") + and gap_post.get("enabled") + ): + stats["gap_delta"] = { + key: float(gap_post[key] - gap_pre[key]) + for key in ("mse", "relative", "cosine_distance") + if key in gap_pre and key in gap_post + } + pre_components = gap_pre.get("components") + post_components = gap_post.get("components") + if isinstance(pre_components, dict) and isinstance(post_components, dict): + component_delta = {} + for name, pre_value in pre_components.items(): + post_value = post_components.get(name) + if not isinstance(pre_value, dict) or not isinstance(post_value, dict): + continue + component_delta[name] = { + key: float(post_value[key] - pre_value[key]) + for key in ("mse", "relative", "cosine_distance") + if key in pre_value and key in post_value + } + if component_delta: + stats["gap_delta"]["components"] = component_delta + stats["gap_ratio_post_over_pre"] = _comm_gap_ratio(gap_pre, gap_post) + total_samples = int(sum(pair_counts)) + probs_list = [float(x) for x in probs_by_pair] + freqs = ( + [float(c) / float(total_samples) for c in pair_counts] + if total_samples > 0 + else [0.0 for _ in pair_counts] + ) + top_show = min(10, num_pairs) + top_indices = sorted(range(num_pairs), key=lambda i: pair_counts[i], reverse=True)[:top_show] + top_pairs = [ + { + "pair": int(i), + "count": int(pair_counts[i]), + "freq": float(freqs[i]), + "prob": float(probs_list[i]) if i < len(probs_list) else None, + } + for i in top_indices + if pair_counts[i] > 0 + ] + stats["pair_selection"] = { + "num_pairs": int(num_pairs), + "excluded_pairs": sorted(exclude_set), + "candidate_pairs": [int(i) for i in candidate_pairs], + "total_samples": total_samples, + "unique_pairs": int(sum(1 for c in pair_counts if c > 0)), + "counts": [int(c) for c in pair_counts], + "freqs": freqs, + "probs": probs_list, + "top_pairs": top_pairs, + } + + if total_samples > 0 and top_pairs: + top_str = ", ".join( + f"{entry['pair']}-{entry['pair'] + 1}: {entry['count']} " + f"(obs={entry['freq']:.3f}, exp={entry['prob']:.3f})" + for entry in top_pairs + if entry.get("prob") is not None + ) + if not top_str: + top_str = ", ".join( + f"{entry['pair']}-{entry['pair'] + 1}: {entry['count']} " + f"(obs={entry['freq']:.3f})" + for entry in top_pairs + ) + print( + f"[comm] Pair sampling stats: total={total_samples} " + f"unique={stats['pair_selection']['unique_pairs']}/{num_pairs} " + f"top={top_str}" + ) + + if counted > 0: + stats["avg_loss"] = float(total_loss_sum / float(counted)) + stats["avg_anchor"] = float(anchor_sum / float(counted)) + stats["avg_interaction"] = float(interaction_sum / float(counted)) + stats["avg_mu"] = float(mu_sum / float(counted)) + return stats diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/launch_qwen3_nofit_bench8.sh b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/launch_qwen3_nofit_bench8.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a57605cf03cad75ed33d54e8c11e6c3d7fca131 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/launch_qwen3_nofit_bench8.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +set -euo pipefail +project="$1"; root="$2"; model="$3"; alias="$4" +export HF_HOME=/workspace/.hf_home HF_TOKEN_PATH=/root/.cache/huggingface/token +export HF_DATASETS_CACHE=/workspace/.hf_datasets36 HF_DATASETS_TRUST_REMOTE_CODE=1 +export PYTHONUNBUFFERED=1 TOKENIZERS_PARALLELISM=false OMP_NUM_THREADS=4 PYTHONPATH="$project/src" +mkdir -p "$root" +trap 'rc=$?; if ((rc)); then touch "$root/FAILED"; fi' EXIT +while [[ ! -f "$root/EVAL_READY" ]]; do [[ ! -f "$root/BOOTSTRAP_FAILED" ]] || exit 1; sleep 3; done +export HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 +run_arm() ( + arm="$1"; export CUDA_VISIBLE_DEVICES="$2"; out="$root/full/$arm"; stage="$out/compact/stage_09" + trap 'rc=$?; if ((rc)); then touch "$root/${arm}_FAILED"; fi' EXIT + mkdir -p "$out/logs" + if [[ ! -f "$out/eval/final_opencompass5.json" ]]; then + python "$project/scripts/eval_opencompass_ppl_fast.py" --model "$model" --tokenizer "$model" \ + --revision 49e3418fbbbca6ecbdf9608b4d22e5a407081db4 --compact-stage "$stage" --cycle 9 --anchor 12 \ + --data-root "$root/eval_data/data" --max-batch 32 --token-budget 8192 \ + --output "$out/eval/final_opencompass5.json" > "$out/logs/opencompass.log" 2>&1 + fi + if [[ ! -f "$out/eval/new_lmeval3.json" ]]; then + python "$project/scripts/eval_llama31_8b_12bench.py" --model "$model" \ + --revision 49e3418fbbbca6ecbdf9608b4d22e5a407081db4 --compact-stage "$stage" --cycle 9 --anchor 12 \ + --batch-size auto:4 --tasks sciq mmlu cmmlu --dataset-cache "$root/lmeval_cache" --local-files-only \ + --output "$out/eval/new_lmeval3.json" > "$out/logs/lmeval3.log" 2>&1 + fi + python "$project/scripts/merge_nofit_existing_zs6.py" "$out/eval/zs6.json" "$out/eval/new_lmeval3.json" "$out/eval/final_lmeval9.json" + python "$project/scripts/aggregate_transport_rho_fit_14bench.py" "$out" > "$out/logs/aggregate.log" + touch "$out/EVAL_COMPLETE" +) +run_arm off 0 > "$root/off_pipeline.log" 2>&1 & off_pid=$! +run_arm on 1 > "$root/on_pipeline.log" 2>&1 & on_pid=$! +failed=0;for pid in "$off_pid" "$on_pid";do wait "$pid" || failed=1;done +((failed==0)) || exit 1 +python - "$root" "$project" <<'PY' +import json,shutil,subprocess,sys +from pathlib import Path +r,project=map(Path,sys.argv[1:]); backup=r/'backup';backup.mkdir(exist_ok=True) +old=json.loads((project/'results/qwen3_8b_base_nofit_transport_zs6_20261009/summary_with_ppl.json').read_text()) +rows=[] +for row in old['rows']: + arm=row['transport'];out=r/'full'/arm + report=json.loads((out/'eval/final_14bench.json').read_text());scores=report['task_scores'] + assert len(scores)==14 + assert all(scores[k]==v for k,v in row['task_scores'].items()) + row.update(task_scores=scores,zs12_avg=sum(v for k,v in scores.items() if k not in {'mmlu','cmmlu'})/12, + mmlu=scores['mmlu'],cmmlu=scores['cmmlu'],bench14_avg=report['macro_mean_14'], + zs6_preserved=True,new_task_count=8,weight_restore=json.loads((out/'restore_receipt.json').read_text())) + rows.append(row) + target=backup/arm;target.mkdir(exist_ok=True) + shutil.copytree(out/'eval',target/'eval',dirs_exist_ok=True) + shutil.copytree(out/'logs',target/'logs',dirs_exist_ok=True) + shutil.copy2(out/'restore_receipt.json',target/'restore_receipt.json') +summary={'rows':rows,'source_commit':subprocess.check_output(['git','-C',str(project),'rev-parse','HEAD'],text=True).strip(), + 'protocol':'Unchanged legacy OpenCompass5 + lm-eval9, BF16 eager, zero-shot; immutable existing ZS6 retained; only missing eight newly evaluated'} +(r/'summary.json').write_text(json.dumps(summary,indent=2)+'\n');shutil.copy2(r/'summary.json',backup/'summary.json') +code=backup/'code';code.mkdir(exist_ok=True) +for name in ['bootstrap_qwen3_nofit_bench8.sh','launch_qwen3_nofit_bench8.sh','merge_nofit_existing_zs6.py', + 'eval_llama31_8b_12bench.py','eval_opencompass_ppl_fast.py','aggregate_transport_rho_fit_14bench.py']: + shutil.copy2(project/'scripts'/name,code/name) +shutil.copy2(project/'exp_md/2026-10-09_qwen3-base-nofit-bench14-supplement.md',backup/'protocol.md') +PY +python "$project/scripts/write_tree_manifest.py" "$root/backup" +HF_HUB_OFFLINE=0 HF_DATASETS_OFFLINE=0 TRANSFORMERS_OFFLINE=0 \ + python "$project/scripts/upload_verified_hf_tree.py" "$root/backup" --repo-id LJYAI/paper_revision \ + --path-in-repo "runs/$alias/20261009-qwen3-base-nofit-bench14-supplement" --verify-all-files \ + --commit-message 'Qwen3 Base Fisher Transport OFF ON no-FiT remaining eight tasks, existing ZS6 preserved' > "$root/backup.json" +touch "$root/COMPLETE" +echo 'COMPLETE: results backed up; instance retained by explicit user request.' diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/launch_qwen3_nofit_merge4.sh b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/launch_qwen3_nofit_merge4.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccfb64d06f0c6762b1719a4fda69641c6de3d1a1 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/launch_qwen3_nofit_merge4.sh @@ -0,0 +1,64 @@ +#!/usr/bin/env bash +set -euo pipefail +project="$1"; external="$2"; root="$3"; model="$4"; alias="$5" +export HF_HOME=/workspace/.hf_home HF_TOKEN_PATH=/root/.cache/huggingface/token +export HF_DATASETS_CACHE=/workspace/.hf_datasets36 PYTHONUNBUFFERED=1 TOKENIZERS_PARALLELISM=false OMP_NUM_THREADS=4 +export PYTHONPATH="$external/src:$project/src:$project" +export HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 +revision=49e3418fbbbca6ecbdf9608b4d22e5a407081db4 +trap 'rc=$?; if ((rc)); then touch "$root/FAILED"; fi' EXIT +while [[ ! -f "$root/INPUTS_READY" ]]; do [[ ! -f "$root/BOOTSTRAP_FAILED" ]] || exit 1; sleep 3; done +run_prune() { + local arm="$1" gpu="$2" out="$3" cycles="$4" + mkdir -p "$out/logs" "$out/audit" "$out/eval" + CUDA_VISIBLE_DEVICES="$gpu" python "$project/scripts/run_qwen3_nofit_merge_control.py" \ + --external-root "$external" --inputs "$root/inputs" --audit-root "$out/audit" --initializer "$arm" \ + --model "$model" --output_dir "$out/run" --layer 12 --num_progressive "$cycles" \ + --dataset slimpajama --dataset_config none --num_samples 64 --seed 42 --seq_len 1024 --batch_size 2 \ + --skip_distill --norm_policy copy_n1_n2 --fisher_mode param --eps 0 \ + --no_head_permute_merge --no_head_permute_select --source_feature_transport \ + --source_feature_transport_ridge_relative 1e-3 --dtype bfloat16 --eval_dtype bfloat16 \ + --lora_epochs 0 --skip_eval --skip_final_model_save > "$out/logs/prune.log" 2>&1 + python -m fusegpt.abprune_compact --run-root "$out/run" --output-root "$out/compact" \ + --model Qwen/Qwen3-8B-Base --base-revision "$revision" --run-id "qwen3_base_nofit_merge_${arm}_20261011" \ + --cycles "$cycles" --hard-link --layer-order "$(python -c "print(' '.join(['12']*$cycles))")" + python "$project/scripts/verify_qwen3_nofit_merge.py" "$out" "$arm" "$cycles" + touch "$out/PRUNE_COMPLETE" +} +job() ( + arm="$1"; gpu="$2"; out="$root/full/$arm"; smoke="$root/smoke/$arm" + trap 'rc=$?; if ((rc)); then touch "$root/${arm}_FAILED"; fi' EXIT + [[ -f "$smoke/PRUNE_COMPLETE" ]] || run_prune "$arm" "$gpu" "$smoke" 2 + for other in wa wb average mka; do + while [[ ! -f "$root/smoke/$other/PRUNE_COMPLETE" ]]; do + [[ ! -f "$root/${other}_FAILED" ]] || exit 1; sleep 3 + done + done + [[ -f "$out/PRUNE_COMPLETE" ]] || run_prune "$arm" "$gpu" "$out" 9 + cp "$root/full/base/offline_eval.json" "$out/offline_eval.json" + [[ -f "$out/eval/local_mse.json" ]] || CUDA_VISIBLE_DEVICES="$gpu" python "$project/scripts/qwen3_nofit_local_mse.py" \ + --model "$model" --cache "$root/local_mse_reference" --compact-stage "$out/compact/stage_09" \ + --output "$out/eval/local_mse.json" > "$out/logs/local_mse.log" 2>&1 + [[ -f "$out/eval/final_ppl.json" ]] || CUDA_VISIBLE_DEVICES="$gpu" python "$project/scripts/evaluate_abprune_compact_ppl.py" \ + --model "$model" --revision "$revision" --compact-stage "$out/compact/stage_09" --anchor 12 --cycles 9 \ + --original-layers 36 --seq-len 2048 --batch-size 1 --output "$out/eval/final_ppl.json" > "$out/logs/ppl.log" 2>&1 + MODEL_REVISION="$revision" LMEVAL_LOCAL_CACHE="$root/lmeval_cache" \ + bash "$project/scripts/eval_llama31_fit_ablation_one.sh" "$project" "$out" "$model" "$root/eval_data/data" "$(command -v python)" 12 9 "$gpu" + touch "$out/EVAL_COMPLETE" + backup="$root/backup/$arm" + python "$project/scripts/package_qwen3_nofit_merge_backup.py" "$out" "$backup" "$project" "$external" "$root" + python "$project/scripts/write_tree_manifest.py" "$backup" + HF_HUB_OFFLINE=0 HF_DATASETS_OFFLINE=0 TRANSFORMERS_OFFLINE=0 python "$project/scripts/upload_verified_hf_tree.py" \ + "$backup" --repo-id LJYAI/paper_revision --path-in-repo "runs/$alias/20261011-qwen3-base-nofit-merge4/$arm" \ + --verify-all-files --commit-message "Qwen3 base no-FiT merge control $arm; all9 stages" > "$root/${arm}_backup.json" + touch "$out/BACKUP_COMPLETE" +) +pids=(); gpu=0 +for arm in wa wb average mka; do job "$arm" "$gpu" > "$root/${arm}_pipeline.log" 2>&1 & pids+=("$!"); gpu=$((gpu+1)); done +failed=0; for pid in "${pids[@]}"; do wait "$pid" || failed=1; done +((failed==0)) || exit 1 +python "$project/scripts/summarize_qwen3_nofit_merge.py" "$root" "$project" +git -C "$project" add results/qwen3_base_nofit_merge4_20261011 +git -C "$project" commit -m 'Record four Qwen3 no-FiT transported merge controls and verified all-stage backups' +touch "$root/COMPLETE" "$root/RECORDS_COMMITTED" +echo 'Complete; retain instance until explicitly authorized to return.' diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/launch_qwen3_nofit_transport_zs6.sh b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/launch_qwen3_nofit_transport_zs6.sh new file mode 100644 index 0000000000000000000000000000000000000000..7830d1ac70d353aee0382e962145e3a3beb1c4e0 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/launch_qwen3_nofit_transport_zs6.sh @@ -0,0 +1,119 @@ +#!/usr/bin/env bash +set -euo pipefail +project="$1"; external="$2"; root="$3"; model="$4"; alias="$5" +source "$project/scripts/qwen3_nofit_transport_config.sh" +export HF_HOME=/workspace/.hf_home HF_TOKEN_PATH=/root/.cache/huggingface/token +export HF_DATASETS_CACHE=/workspace/.hf_datasets36 PYTHONUNBUFFERED=1 +export PYTHONPATH="$project/src:$external/src:$project" +trap 'rc=$?; if ((rc)); then touch "$root/FAILED"; fi' EXIT +prepare_eval() ( + trap 'rc=$?; if ((rc)); then touch "$root/EVAL_FAILED"; fi' EXIT + while [[ ! -f "$root/DEPS_READY" || ! -f "$root/EVAL_ASSETS_READY" ]]; do [[ ! -f "$root/BOOTSTRAP_FAILED" ]] || exit 1; sleep 3; done + tar -xzf "$root/lmeval-cache-131.tar.gz" -C "$root" + HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 python "$project/scripts/prepare_lmeval9_local_cache.py" "$root/lmeval_cache" --validate-local + touch "$root/EVAL_READY" +) +prepare_eval > "$root/eval_prepare.log" 2>&1 & eval_pid=$! +verify() { + python - "$1" "$2" "$3" <<'PY' +import json,sys,os +from pathlib import Path +r=Path(sys.argv[1]); arm=sys.argv[2]; cycles=int(sys.argv[3]) +anchor=int(os.environ['NOFIT_ANCHOR']) +for c in range(1,cycles+1): + m=json.loads((r/f'run/cycle_{c}/cycle_metadata.json').read_text()) + f=json.loads((r/f'audit/cycle_{c:02d}_fit.json').read_text()) + assert m['layer_merged']==anchor and m['num_layers_after']==36-c + assert m['fisher_num_batches']==32 + assert m['distill']['reparam_skip_train'] and not m['distill']['reparam_stats']['trained'] + assert f['attention_norm_unchanged'] and f['stats']['epochs']==0 + assert bool(m['source_feature_transport'])==(arm=='on') + assert not m['lora']['enabled'] and not (m['comm'] or {}).get('enabled',False) +meta=json.loads((r/f'compact/stage_{cycles:02d}/metadata.json').read_text()) +assert meta['removed_original_layers']==list(range(anchor+1,anchor+1+cycles)) +assert meta['model']==os.environ['NOFIT_MODEL_ID'] and meta['base_model_revision']==os.environ['NOFIT_MODEL_REVISION'] +if meta['format']=='abprune_compact_stage_v2': + assert meta['active_original_layers']==list(range(anchor+1))+list(range(anchor+1+cycles,36)) +else: + assert meta['anchor_index']==anchor and meta['removed_count']==cycles +print('MATCHED_FISHER_NO_FIT_VERIFIED',arm,cycles,flush=True) +PY +} +job() ( + arm="$1"; gpu="$2" + trap 'rc=$?; if ((rc)); then touch "$root/${arm}_FAILED"; fi' EXIT + while [[ ! -f "$root/BASE_READY" ]]; do [[ ! -f "$root/BOOTSTRAP_FAILED" ]] || exit 1; sleep 3; done + smoke="$root/smoke/$arm"; out="$root/full/$arm" + if [[ ! -f "$smoke/VERIFIED" ]]; then + if [[ ! -f "$smoke/PRUNE_COMPLETE" ]]; then + bash "$project/scripts/run_qwen3_nofit_transport_arm.sh" "$project" "$external" "$smoke" "$model" "$arm" "$gpu" 2 + fi + verify "$smoke" "$arm" 2; touch "$smoke/VERIFIED" + fi + while [[ ! -f "$root/smoke/off/VERIFIED" || ! -f "$root/smoke/on/VERIFIED" ]]; do + [[ ! -f "$root/off_FAILED" && ! -f "$root/on_FAILED" ]] || exit 1; sleep 2 + done + python - "$root" <<'PY' +import json,sys +from pathlib import Path +r=Path(sys.argv[1]) +assert json.loads((r/'smoke/off/audit/data_fingerprints.json').read_text())==json.loads((r/'smoke/on/audit/data_fingerprints.json').read_text()) +print('PAIRED_SMOKE_DATA_IDENTICAL',flush=True) +PY + if [[ ! -f "$out/PRUNE_COMPLETE" ]]; then + bash "$project/scripts/run_qwen3_nofit_transport_arm.sh" "$project" "$external" "$out" "$model" "$arm" "$gpu" 9 + fi + verify "$out" "$arm" 9 + while [[ ! -f "$root/EVAL_READY" ]]; do [[ ! -f "$root/EVAL_FAILED" ]] || exit 1; sleep 3; done + if [[ ! -f "$out/eval/zs6.json" ]]; then + CUDA_VISIBLE_DEVICES="$gpu" HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 \ + python "$project/scripts/eval_abprune_compact_zeroshot.py" --model "$model" \ + --revision "$NOFIT_MODEL_REVISION" --compact-stage "$out/compact/stage_09" \ + --cycle 9 --anchor "$NOFIT_ANCHOR" --batch-size 8 --dataset-cache "$root/lmeval_cache" --output "$out/eval/zs6.json" > "$out/logs/zs6.log" 2>&1 + fi + if [[ "$NOFIT_MEASURE_PPL" == 1 && ! -f "$out/eval/final_ppl.json" ]]; then + CUDA_VISIBLE_DEVICES="$gpu" HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 \ + python "$project/scripts/evaluate_abprune_compact_ppl.py" --model "$model" --revision "$NOFIT_MODEL_REVISION" \ + --compact-stage "$out/compact/stage_09" --anchor "$NOFIT_ANCHOR" --cycles 9 --original-layers 36 \ + --seq-len 2048 --batch-size 4 --output "$out/eval/final_ppl.json" > "$out/logs/ppl.log" 2>&1 + fi + touch "$out/EVAL_COMPLETE" + backup="$root/backup/$arm" + if [[ ! -d "$backup" ]]; then + python "$project/scripts/package_final_fit_backup.py" "$out" "$backup" "$project" "$external" \ + --protocol "$NOFIT_PROTOCOL" --cycles 9 --original-layers 36 + cp "$project/scripts/run_qwen3_nofit_transport_control.py" "$project/scripts/run_qwen3_nofit_transport_arm.sh" \ + "$project/scripts/launch_qwen3_nofit_transport_zs6.sh" "$project/scripts/qwen3_nofit_transport_config.sh" \ + "$project/scripts/eval_abprune_compact_zeroshot.py" "$backup/code/" + git -C "$project" rev-parse HEAD > "$backup/code/project_commit.txt" + python "$project/scripts/write_tree_manifest.py" "$backup" + fi + HF_HUB_OFFLINE=0 HF_DATASETS_OFFLINE=0 TRANSFORMERS_OFFLINE=0 \ + python "$project/scripts/upload_verified_hf_tree.py" "$backup" --repo-id LJYAI/paper_revision \ + --path-in-repo "runs/$alias/$NOFIT_RUN_SLUG/$arm" --verify-all-files \ + --commit-message "Qwen3 ${QWEN_NOFIT_VARIANT:-base} matched Fisher transport $arm no FiT" > "$root/${arm}_backup.json" + touch "$out/BACKUP_COMPLETE" +) +job off 0 > "$root/off_pipeline.log" 2>&1 & off_pid=$! +job on 1 > "$root/on_pipeline.log" 2>&1 & on_pid=$! +failed=0; for pid in "$off_pid" "$on_pid" "$eval_pid"; do wait "$pid" || failed=1; done +((failed==0)) || exit 1 +python - "$root" <<'PY' +import json,sys,os +from pathlib import Path +r=Path(sys.argv[1]); rows=[]; fingerprints=[] +anchor=int(os.environ['NOFIT_ANCHOR']) +for arm in ['off','on']: + out=r/'full'/arm; result=json.loads((out/'eval/zs6.json').read_text()) + fp=json.loads((out/'audit/data_fingerprints.json').read_text()); fingerprints.append(fp) + rows.append(dict(model=os.environ['NOFIT_MODEL_ID'],model_revision=os.environ['NOFIT_MODEL_REVISION'],removed_blocks=9,anchor=anchor,removed_original_layers=list(range(anchor+1,anchor+10)), + transport=arm,fit=False,fisher='same_anchor_contextual',task_scores=result['task_scores'], + zs6=result['six_task_mean'],backup=json.loads((r/f'{arm}_backup.json').read_text()))) + if os.environ['NOFIT_MEASURE_PPL']=='1': + ppl=json.loads((out/'eval/final_ppl.json').read_text()) + assert ppl['metrics']['sequences']==145 and ppl['metrics']['tokens']==296815 + rows[-1]['ppl']=ppl['metrics']['perplexity'] +assert fingerprints[0]==fingerprints[1] +(r/'summary.json').write_text(json.dumps(rows,indent=2)+'\n') +PY +touch "$root/COMPLETE" diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/monitor_qwen3_nofit_bench8.ps1 b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/monitor_qwen3_nofit_bench8.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..7d7a4f5ec3a4e3553ed33b3e197e4ce31f41ba78 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/monitor_qwen3_nofit_bench8.ps1 @@ -0,0 +1,58 @@ +param( + [string]$HostAlias='vast-paper_revision-qwen3-base-nofit-bench8-54984557-20261009', + [string]$LogDirectory='C:\Users\CELL\orca\artifacts\paper_revision\qwen3-base-nofit-bench8-20261009-monitor', + [ValidatePattern('^/workspace/artifacts/[A-Za-z0-9._-]+$')] + [string]$RemoteRoot='/workspace/artifacts/qwen3-base-nofit-bench8-20261009', + [ValidateRange(30,3600)][int]$IntervalSeconds=180 +) +$ErrorActionPreference='Stop' +New-Item -ItemType Directory -Force -Path $LogDirectory | Out-Null +$poll=@' +from pathlib import Path +import json,re,time,subprocess +r=Path('__ROOT__') +def tail(p): + return [re.sub(r'https?://\S+','[URL omitted]',s)[-500:] for s in p.read_text(errors='replace').splitlines()[-2:]] if p.exists() else [] +arms={} +for arm in ['off','on']: + d=r/'full'/arm + arms[arm]={'markers':[m for m in ['EVAL_COMPLETE','BENCH14_COMPLETE'] if (d/m).exists()], + 'logs':{n:tail(d/'logs'/n) for n in ['opencompass.log','lmeval3.log']}, + 'results':[p.name for p in (d/'eval').glob('*.json')]} +print('SNAPSHOT_JSON='+json.dumps({'utc':time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime()), + 'failed':any((r/m).exists() for m in ['FAILED','BOOTSTRAP_FAILED','off_FAILED','on_FAILED']), + 'complete':(r/'COMPLETE').exists(),'markers':[m for m in ['BASE_READY','EVAL_ASSETS_READY','EVAL_READY','BOOTSTRAP_COMPLETE'] if (r/m).exists()], + 'arms':arms,'logs':{n:tail(r/n) for n in ['bootstrap.log','controller.log','off_pipeline.log','on_pipeline.log']}})) +print(subprocess.check_output(['nvidia-smi','--query-gpu=index,utilization.gpu,memory.used','--format=csv,noheader'],text=True)) +'@ +$poll=$poll.Replace('__ROOT__',$RemoteRoot) +$payload=[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($poll.Replace("`r`n","`n"))) +while($true){ + $lines=@(& ssh -o BatchMode=yes -o ConnectTimeout=15 -o ServerAliveInterval=15 -o ServerAliveCountMax=2 $HostAlias "printf %s $payload | base64 -d | python") + $code=$LASTEXITCODE + Add-Content -LiteralPath (Join-Path $LogDirectory 'poll.log') -Value (@((Get-Date -Format o))+$lines) -Encoding UTF8 + $line=$lines | Where-Object {$_ -like 'SNAPSHOT_JSON=*'} | Select-Object -Last 1 + if($code -eq 0 -and $line){ + $snapshot=$line.Substring('SNAPSHOT_JSON='.Length) | ConvertFrom-Json + if($snapshot.failed){throw 'Benchmark supplement failed; instance retained.'} + if($snapshot.complete){ + $dest=Join-Path $LogDirectory 'completed_results';New-Item -ItemType Directory -Force -Path $dest | Out-Null + foreach($name in @('summary.json','backup.json','execution.json')){ + & scp -O "${HostAlias}:${RemoteRoot}/$name" (Join-Path $dest $name) + if($LASTEXITCODE -ne 0){throw "Recovery failed: $name"} + } + foreach($arm in @('off','on')){ + $folder=Join-Path $dest $arm;New-Item -ItemType Directory -Force -Path $folder | Out-Null + & scp -O "${HostAlias}:${RemoteRoot}/full/$arm/eval/*.json" $folder + if($LASTEXITCODE -ne 0){throw "Score recovery failed: $arm"} + & scp -O "${HostAlias}:${RemoteRoot}/full/$arm/restore_receipt.json" $folder + if($LASTEXITCODE -ne 0){throw "Restore receipt recovery failed: $arm"} + } + $receipt=Get-Content (Join-Path $dest 'backup.json') -Raw | ConvertFrom-Json + if(-not $receipt.verified -or -not $receipt.all_payload_hashes_match){throw 'Backup verification missing'} + Add-Content (Join-Path $LogDirectory 'poll.log') 'COMPLETE: scores recovered; instance retained by user request.' + break + } + } + Start-Sleep -Seconds $IntervalSeconds +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/monitor_qwen3_nofit_merge4.ps1 b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/monitor_qwen3_nofit_merge4.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..83d89b345dedf9c9a317369eade8051d1dbbfff0 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/monitor_qwen3_nofit_merge4.ps1 @@ -0,0 +1,52 @@ +param( + [string]$HostAlias='vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011', + [string]$RemoteRoot='/workspace/artifacts/qwen3-base-nofit-merge4-20261011', + [string]$LogDirectory='C:\Users\CELL\orca\artifacts\paper_revision\qwen3-base-nofit-merge4-55359231-20261011-monitor', + [int]$IntervalSeconds=300 +) +$ErrorActionPreference='Stop' +New-Item -ItemType Directory -Force -Path $LogDirectory | Out-Null +if ($RemoteRoot -notmatch '^/workspace/artifacts/[a-zA-Z0-9._-]+$') { throw 'Unsafe root' } +$taskPoll=@' +from pathlib import Path +import json,subprocess,re,datetime +r=Path('__ROOT__') +def tail(p): + return [re.sub(r'https?://\S+','[URL]',s)[-500:] for s in p.read_text(errors='replace').splitlines()[-3:]] if p.exists() else [] +arms={} +for arm in ('wa','wb','average','mka'): + a=r/'full'/arm + arms[arm]=dict(cycles=len(list((a/'run').glob('cycle_*/cycle_metadata.json'))), + smoke_cycles=len(list((r/'smoke'/arm/'run').glob('cycle_*/cycle_metadata.json'))), + markers=[x for x in ('PRUNE_COMPLETE','EVAL_COMPLETE','BACKUP_COMPLETE') if (a/x).exists()], + logs={str(p):tail(a/p) for p in map(Path,['logs/prune.log','logs/local_mse.log','logs/ppl.log','logs/eval14.log'])}) +state=dict(utc=datetime.datetime.now(datetime.timezone.utc).isoformat(), + failed=[p.name for p in r.glob('*FAILED')], complete=(r/'RECORDS_COMMITTED').exists(), + markers=[x for x in ('DEPS_READY','BASE_READY','DATA_READY','EVAL_READY','COMMON_TEACHER_READY','INPUTS_READY','COMPLETE') if (r/x).exists()], + logs={str(p):tail(r/p) for p in map(Path,['bootstrap.log','controller.log','data_prepare.log','local_mse_prepare.log'])},arms=arms) +print('SNAPSHOT_JSON='+json.dumps(state)) +print(subprocess.check_output(['nvidia-smi','--query-gpu=index,utilization.gpu,memory.used','--format=csv,noheader'],text=True)) +'@ +$taskPoll=$taskPoll.Replace('__ROOT__',$RemoteRoot) +$taskEncoded=[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($taskPoll.Replace("`r`n","`n"))) +while ($true) { + $taskPreference=$ErrorActionPreference + $ErrorActionPreference='Continue' + $taskLines=@(& ssh -o BatchMode=yes -o ConnectTimeout=15 -o ServerAliveInterval=15 -o ServerAliveCountMax=2 $HostAlias "printf %s $taskEncoded | base64 -d | python" 2>$null) + $ErrorActionPreference=$taskPreference + $taskLine=$taskLines | Where-Object { $_ -like 'SNAPSHOT_JSON=*' } | Select-Object -Last 1 + Add-Content -LiteralPath (Join-Path $LogDirectory 'poll.log') -Value (@((Get-Date -Format o))+$taskLines) -Encoding UTF8 + if ($taskLine) { + $taskState=$taskLine.Substring(14) | ConvertFrom-Json + if ($taskState.failed.Count -gt 0) { throw 'Experiment failed; retained. Inspect poll.log.' } + if ($taskState.complete) { + & powershell.exe -NoProfile -ExecutionPolicy Bypass -File (Join-Path $PSScriptRoot '../receive-project.ps1') -HostAlias $HostAlias + if ($LASTEXITCODE -ne 0) { throw 'Commit recovery failed' } + & git -C (Join-Path $PSScriptRoot '..') push origin "codex/$HostAlias" + if ($LASTEXITCODE -ne 0) { throw 'Local push failed' } + Add-Content -LiteralPath (Join-Path $LogDirectory 'poll.log') -Value 'COMPLETE: result commit recovered and pushed; instance retained.' + break + } + } + Start-Sleep -Seconds $IntervalSeconds +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/monitor_qwen3_nofit_transport_zs6.ps1 b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/monitor_qwen3_nofit_transport_zs6.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..0a73aecaba20c6034c5a38059fda24ad47b42b7b --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/monitor_qwen3_nofit_transport_zs6.ps1 @@ -0,0 +1,78 @@ +param( + [string]$HostAlias='vast-paper_revision-qwen3-base-nofit-transport-zs6-54974094-20261009', + [string]$LogDirectory='C:\Users\CELL\orca\artifacts\paper_revision\qwen3-base-nofit-transport-zs6-20261009-monitor', + [string]$RemoteRoot='/workspace/artifacts/qwen3-base-nofit-transport-zs6-20261009', + [ValidateRange(30,3600)][int]$IntervalSeconds=300, + [ValidateRange(1,40)][int]$RemovedBlocks=9, + [switch]$FullBench14 +) +$ErrorActionPreference='Stop' +New-Item -ItemType Directory -Force -Path $LogDirectory | Out-Null +$root=$RemoteRoot +if ($root -notmatch '^/workspace/artifacts/[A-Za-z0-9._-]+$') { throw 'Unsafe remote artifact root' } +$poll=@' +from pathlib import Path +import json,re,time,subprocess +r=Path('__REMOTE_ROOT__') +def tail(p): + return [re.sub(r'https?://\S+','[URL omitted]',s)[-500:] for s in p.read_text(errors='replace').splitlines()[-3:]] if p.exists() else [] +arms={} +for arm in ['off','on']: + d=r/'full'/arm;s=r/'smoke'/arm + arms[arm]={'smoke_verified':(s/'VERIFIED').exists(), + 'markers':[m for m in ['PRUNE_COMPLETE','EVAL_COMPLETE','BACKUP_COMPLETE'] if (d/m).exists()], + 'cycles':len(list((d/'run').glob('cycle_*/cycle_metadata.json'))), + 'logs':{phase:{n:tail(r/phase/arm/'logs'/n) for n in ['prune.log','zs6.log','ppl.log','eval14.log']} for phase in ['smoke','full']}} +print('SNAPSHOT_JSON='+json.dumps({'utc':time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime()), + 'failed':any((r/m).exists() for m in ['FAILED','BOOTSTRAP_FAILED','EVAL_FAILED','off_FAILED','on_FAILED']), + 'complete':(r/'COMPLETE').exists(),'arms':arms, + 'logs':{n:tail(r/n) for n in ['bootstrap.log','eval_prepare.log','controller.log','off_pipeline.log','on_pipeline.log']}})) +print(subprocess.check_output(['nvidia-smi','--query-gpu=index,utilization.gpu,memory.used','--format=csv,noheader'],text=True)) +'@ +$poll=$poll.Replace('__REMOTE_ROOT__',$root) +$payload=[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($poll.Replace("`r`n","`n"))) +while ($true) { + $lines=@(& ssh -o BatchMode=yes -o ConnectTimeout=15 -o ServerAliveInterval=15 -o ServerAliveCountMax=2 $HostAlias "printf %s $payload | base64 -d | python") + $code=$LASTEXITCODE + Add-Content -LiteralPath (Join-Path $LogDirectory 'poll.log') -Value (@((Get-Date -Format o))+$lines) -Encoding UTF8 + $line=$lines | Where-Object { $_ -like 'SNAPSHOT_JSON=*' } | Select-Object -Last 1 + if ($code -eq 0 -and $line) { + $snapshot=$line.Substring('SNAPSHOT_JSON='.Length) | ConvertFrom-Json + if ($snapshot.failed) { throw 'No-FiT transport control failed; inspect logs. Instance retained.' } + if ($snapshot.complete) { + $dest=Join-Path $LogDirectory 'completed_results' + New-Item -ItemType Directory -Force -Path $dest | Out-Null + & scp "${HostAlias}:${root}/summary.json" (Join-Path $dest 'summary.json') + if ($LASTEXITCODE -ne 0) { throw 'Summary recovery failed' } + foreach ($arm in @('off','on')) { + $folder=Join-Path $dest $arm + New-Item -ItemType Directory -Force -Path $folder | Out-Null + if ($FullBench14) { + & scp -O "${HostAlias}:${root}/full/${arm}/eval/*.json" $folder + } else { + & scp "${HostAlias}:${root}/full/${arm}/eval/zs6.json" (Join-Path $folder 'zs6.json') + } + if ($LASTEXITCODE -ne 0) { throw "Evaluation recovery failed: $arm" } + if ($rowHasPpl = ($snapshot.arms.$arm.logs.full.'ppl.log'.Count -gt 0)) { + & scp "${HostAlias}:${root}/full/${arm}/eval/final_ppl.json" (Join-Path $folder 'final_ppl.json') + if ($LASTEXITCODE -ne 0) { throw "PPL recovery failed: $arm" } + } + & scp -r "${HostAlias}:${root}/full/${arm}/audit" $folder + if ($LASTEXITCODE -ne 0) { throw "Audit recovery failed: $arm" } + & scp "${HostAlias}:${root}/${arm}_backup.json" (Join-Path $folder 'backup.json') + if ($LASTEXITCODE -ne 0) { throw "Backup receipt recovery failed: $arm" } + } + $rows=Get-Content -LiteralPath (Join-Path $dest 'summary.json') -Raw -Encoding UTF8 | ConvertFrom-Json + if ($FullBench14) { $rows=$rows.rows } + if ($rows.Count -ne 2) { throw 'Expected two completed arms' } + foreach ($row in $rows) { + if ($row.fit -or $row.removed_blocks -ne $RemovedBlocks -or -not $row.backup.verified -or -not $row.backup.all_payload_hashes_match) { + throw 'Protocol/backup mismatch' + } + } + Add-Content -LiteralPath (Join-Path $LogDirectory 'poll.log') -Value 'COMPLETE: both controls recovered; instance retained.' + break + } + } + Start-Sleep -Seconds $IntervalSeconds +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/nofit_merge_control.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/nofit_merge_control.py new file mode 100644 index 0000000000000000000000000000000000000000..40b2aa630419867f4a0eb965fe39a8267276e7d1 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/nofit_merge_control.py @@ -0,0 +1,37 @@ +"""Exact non-Fisher merge controls; never construct an optimizer or FiT U.""" +from __future__ import annotations + +import torch +from fusegpt.fixed_span_merge_init import MLP_NAMES, tensor_hash +from fusegpt.fit_ablation_mka import PROJECTION_WEIGHTS + + +def merge_in_place(a, transported_b, method, *, mka_lambda=None): + ratio = {"wa": 1., "wb": 0., "average": .5}.get(method, mka_lambda) + if method not in {"wa", "wb", "average", "mka"} or ratio is None or not 0 <= ratio <= 1: + raise ValueError((method, ratio)) + names = tuple(PROJECTION_WEIGHTS) if method == "mka" else MLP_NAMES + frozen = {n: tensor_hash(p) for n, p in a.named_parameters() if n not in names} + source = {n: tensor_hash(p) for n, p in transported_b.named_parameters()} + before = {n: tensor_hash(a.get_parameter(n)) for n in names} + with torch.no_grad(): + for name in names: + left = a.get_parameter(name) + right = transported_b.get_parameter(name) + assert left.shape == right.shape + # Match the corrected MKA / exact endpoint controls: FP32 mix, + # one cast to deployed BF16. No sigmoid endpoint clamping. + initial = left.detach().clone() if ratio == 1 else ( + right.detach().clone() if ratio == 0 else + torch.lerp(right.detach().float(), left.detach().float(), ratio).to(left.dtype)) + assert torch.isfinite(initial).all(), name + left.copy_(initial) + assert {n: tensor_hash(p) for n, p in a.named_parameters() if n not in names} == frozen + assert {n: tensor_hash(p) for n, p in transported_b.named_parameters()} == source + return {"initializer": method, "lambda_left": ratio, "lambda_right": 1 - ratio, + "projection_names": list(names), "scope": "attention_and_mlp" if method == "mka" else "mlp", + "frozen_anchor_sha256": frozen, "anchor_before_sha256": before, + "source_post_transport_sha256": source, + "anchor_after_sha256": {n: tensor_hash(a.get_parameter(n)) for n in names}, + "norm_policy": "keep_Wa_including_QK_norms", "source_mutated_by_merge": False, + "fisher_computed": False, "fit": False, "optimizer_steps": 0, "backward_calls": 0} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/offline_eval_policy.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/offline_eval_policy.py new file mode 100644 index 0000000000000000000000000000000000000000..44cb57cdff81cc7b2d738749364bfca9c156bd47 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/offline_eval_policy.py @@ -0,0 +1,26 @@ +"""Run-local offline policy, applied before importing Hugging Face libraries.""" +import json +import os +from pathlib import Path + + +def apply_run_offline_policy(argv): + output = None + for index, value in enumerate(argv): + if value == '--output' and index + 1 < len(argv): + output = argv[index + 1] + elif value.startswith('--output='): + output = value.split('=', 1)[1] + if output is None: + return None + policy_path = Path(output).parent.parent / 'offline_eval.json' + if not policy_path.is_file(): + return None + policy = json.loads(policy_path.read_text()) + cache = Path(policy['wikitext_cache']) + if not (cache / 'dataset_dict.json').is_file(): + raise FileNotFoundError(f'Offline WikiText cache missing: {cache}; no online fallback') + for key in ('HF_HUB_OFFLINE', 'HF_DATASETS_OFFLINE', 'TRANSFORMERS_OFFLINE'): + os.environ[key] = '1' + print('STRICT_OFFLINE_RUN_POLICY_APPLIED', flush=True) + return policy diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/package_qwen3_nofit_merge_backup.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/package_qwen3_nofit_merge_backup.py new file mode 100644 index 0000000000000000000000000000000000000000..81117956267ad424e29f5719bfdcbdce1f102307 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/package_qwen3_nofit_merge_backup.py @@ -0,0 +1,47 @@ +"""Retain every stage, not just final weights; enable previous-teacher MSE.""" +from pathlib import Path +import json +import shutil +import sys +out,backup,project,external,root=map(Path,sys.argv[1:]) +backup.mkdir(parents=True,exist_ok=True) +def link_immutable(src,dst): + src,dst=Path(src),Path(dst) + if dst.exists(): + assert src.samefile(dst), f'Refusing to overwrite non-linked file: {dst}' + else: + dst.hardlink_to(src) + return str(dst) +for folder in ('compact','audit','eval','logs'): + shutil.copytree(out/folder,backup/folder,dirs_exist_ok=True, + copy_function=link_immutable if folder in ('compact','audit') else shutil.copy2) +assert len(list((backup/'compact').glob('stage_*/*.pt')))==9 +for c in range(1,10): + d=backup/f'cycle_metadata/cycle_{c}';d.mkdir(parents=True,exist_ok=True) + shutil.copy2(out/f'run/cycle_{c}/cycle_metadata.json',d/'cycle_metadata.json') +shutil.copytree(root/'inputs',backup/'inputs',dirs_exist_ok=True) +# Dense activations are shared across the four arms. Exact inputs + original +# immutable teacher revision suffice to regenerate them; save protocol here. +shutil.copy2(root/'local_mse_reference/protocol.json',backup/'local_mse_protocol.json') +shutil.copy2(root/'local_mse_reference/evaluation_input_ids.pt',backup/'inputs/local_mse_evaluation_input_ids.pt') +shutil.copy2(root/'fisher_reference/local_mse.json',backup/'fisher_reference_local_mse.json') +shutil.copy2(root/'fisher_reference/restore_receipt.json',backup/'fisher_reference_restore_receipt.json') +code=backup/'code';code.mkdir(exist_ok=True) +for path in [*project.glob('scripts/*qwen3_nofit*'),project/'src/fusegpt/nofit_merge_control.py', + project/'src/fusegpt/fit_ablation_mka.py',project/'src/fusegpt/fixed_span_merge_init.py', + project/'src/fusegpt/abprune_compact.py',project/'src/fusegpt/abprune_stagewise_geometry.py', + project/'scripts/eval_llama31_fit_ablation_one.sh',project/'scripts/evaluate_abprune_compact_ppl.py', + project/'scripts/evaluate_hchc_wikitext2_ppl.py',project/'scripts/eval_opencompass_ppl_fast.py', + project/'scripts/eval_llama31_8b_12bench.py',project/'scripts/aggregate_transport_rho_fit_14bench.py', + project/'scripts/prepare_lmeval9_local_cache.py',project/'scripts/offline_eval_policy.py', + project/'exp_md/2026-10-11_qwen3-base-nofit-merge4.md', + *[external/'src'/n for n in ['fuse_layers.py','fuse_layers_distill.py','source_feature_transport.py','common_lm_data.py','dm500_rows.py']]]: + if path.is_file(): shutil.copy2(path,code/path.name) +import subprocess +(code/'project_commit.txt').write_text(subprocess.check_output(['git','-C',str(project),'rev-parse','HEAD'],text=True)) +receipt=dict(stages=list(range(1,10)),stage0_original_model='Qwen/Qwen3-8B-Base', + stage0_revision='49e3418fbbbca6ecbdf9608b4d22e5a407081db4', + previous_teacher_reconstruction='stage(k-1) compact anchor + immutable original unremoved layers', + original_input_ids_saved=True,all_transport_matrices_saved=True, + intermediate_weights_saved=True,fit=False) +(backup/'stage_retention.json').write_text(json.dumps(receipt,indent=2)+'\n') diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/prepare_lmeval9_local_cache.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/prepare_lmeval9_local_cache.py new file mode 100644 index 0000000000000000000000000000000000000000..0c169eca6c555cbd1fdb7fd1dd9bd9a085806b09 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/prepare_lmeval9_local_cache.py @@ -0,0 +1,108 @@ +"""Materialize the exact harness datasets once, without changing task definitions.""" +import argparse +from concurrent.futures import ThreadPoolExecutor, as_completed +import hashlib +import json +from pathlib import Path +import time + +import datasets +from lm_eval.tasks import TaskManager + + +def cache_key(path, name, kwargs): + return hashlib.sha256(json.dumps([path, name, kwargs], sort_keys=True).encode()).hexdigest() + + +def specs(): + manager = TaskManager() + names = ["piqa", "winogrande", "hellaswag", "arc_challenge", "arc_easy", "openbookqa", "sciq"] + entries = [manager.task_index[n] for n in names] + entries += [e for e in manager.task_index.values() + if e.yaml_path and e.yaml_path.parent.name == "default" + and (e.cfg or {}).get("dataset_path") == "cais/mmlu"] + entries += [e for e in manager.task_index.values() + if (e.cfg or {}).get("dataset_path") == "haonan-li/cmmlu"] + unique = {} + for entry in entries: + cfg = entry.cfg + path, name, kwargs = cfg["dataset_path"], cfg.get("dataset_name"), cfg.get("dataset_kwargs") or {} + unique[cache_key(path, name, kwargs)] = {"path": path, "name": name, "kwargs": kwargs} + assert len(unique) == 131, len(unique) + return unique + + +def materialize(root, key, spec, offline): + target = root / key + metadata = target / "source.json" + if metadata.is_file(): + return key, json.loads(metadata.read_text()) + start = time.monotonic() + try: + data = datasets.load_dataset(spec["path"], spec["name"], **spec["kwargs"]) + except Exception: + if offline: + return key, None + raise + data.save_to_disk(str(target)) + report = {**spec, "splits": {k: {"rows": len(v), "fingerprint": v._fingerprint} + for k, v in data.items()}} + metadata.write_text(json.dumps(report, indent=2) + "\n") + restored = datasets.load_from_disk(str(target)) + assert {k: len(v) for k, v in restored.items()} == {k: len(v) for k, v in data.items()} + assert all(restored[k].features == data[k].features for k in data) + assert all(restored[k].data.table.equals(data[k].data.table) for k in data) + print("READY", spec["path"], spec["name"], round(time.monotonic() - start, 2), flush=True) + return key, report + + +def install_local_loader(root): + manifest = json.loads((root / "manifest.json").read_text()) + assert len(manifest) == 131 + memo = {} + + def local_load(path, name=None, **kwargs): + key = cache_key(path, name, kwargs) + if key not in manifest: + raise RuntimeError(f"Unprepared dataset request: {path}/{name}; no online fallback") + if key not in memo: + memo[key] = datasets.load_from_disk(str(root / key)) + print("LOCAL_DATASET", path, name, flush=True) + return memo[key] + + datasets.load_dataset = local_load + + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + parser.add_argument("root", type=Path) + parser.add_argument("--offline-export", action="store_true") + parser.add_argument("--validate-local", action="store_true", + help="Validate a complete transferred cache without Hub requests") + parser.add_argument("--workers", type=int, default=8) + args = parser.parse_args() + args.root.mkdir(parents=True, exist_ok=True) + sources = specs() + if args.validate_local: + manifest = json.loads((args.root / "manifest.json").read_text()) + assert set(manifest) == set(sources), "Task configuration mismatch" + for key, spec in sources.items(): + report = manifest[key] + assert all(report[k] == v for k, v in spec.items()) + assert json.loads((args.root / key / "source.json").read_text()) == report + data = datasets.load_from_disk(str(args.root / key)) + assert {k: len(v) for k, v in data.items()} == { + k: v["rows"] for k, v in report["splits"].items()} + print("VALIDATED_LOCAL", len(manifest), "NO_HUB_REQUESTS", flush=True) + raise SystemExit(0) + completed = {} + with ThreadPoolExecutor(max_workers=1 if args.offline_export else args.workers) as executor: + futures = [executor.submit(materialize, args.root, k, v, args.offline_export) + for k, v in sources.items()] + for future in as_completed(futures): + key, result = future.result() + if result is not None: + completed[key] = result + print("PREPARED", len(completed), "OF", len(sources), flush=True) + if len(completed) == len(sources): + (args.root / "manifest.json").write_text(json.dumps(completed, indent=2) + "\n") diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/prepare_qwen3_nofit_merge_inputs.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/prepare_qwen3_nofit_merge_inputs.py new file mode 100644 index 0000000000000000000000000000000000000000..e7bcf87b09f3509d8144c5d52238ea3f3f10f75f --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/prepare_qwen3_nofit_merge_inputs.py @@ -0,0 +1,35 @@ +"""Materialize the exact historical calibration once for four workers.""" +import argparse +import json +import os +from pathlib import Path +import sys + +p = argparse.ArgumentParser() +p.add_argument('--external-root', type=Path, required=True) +p.add_argument('--model', required=True) +p.add_argument('--output', type=Path, required=True) +a = p.parse_args() +sys.path.insert(0, str(a.external_root / 'src')) +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'src')) +import torch +from transformers import AutoTokenizer +from common_lm_data import SharedLMDataSpec, build_chunks +from fusegpt.fixed_span_merge_init import tensor_hash + +os.environ['ABPRUNE_DATASET_REVISION'] = 'b5f90f419b7489cdba26fdbc8c022fcb5562f968' +tokenizer = AutoTokenizer.from_pretrained(a.model, local_files_only=True) +chunks = build_chunks(SharedLMDataSpec(dataset='slimpajama', config=None, split='train', + text_field='text', seq_len=1024, num_sequences=64, seed=42), tokenizer) +ids = torch.stack(chunks).long() +assert ids.shape == (64, 1024) +assert tensor_hash(ids) == '85a84b9a68cf0856fd363186d3a273860886b1c17f876cae145fd092454aff55' +a.output.mkdir(parents=True, exist_ok=True) +torch.save({'input_ids': ids, 'attention_mask': torch.ones_like(ids)}, a.output / 'calib.pt') +manifest = dict(model='Qwen/Qwen3-8B-Base', model_revision='49e3418fbbbca6ecbdf9608b4d22e5a407081db4', + dataset='DKYoon/SlimPajama-6B', revision=os.environ['ABPRUNE_DATASET_REVISION'], split='train', + packing='historical nonstreaming dataset.shuffle(seed42); concatenate encoded text without separators or BOS', + samples=64, seq_len=1024, batch_size=2, seed=42, valid_tokens=65536, + input_ids_sha256=tensor_hash(ids), attention_mask_sha256=tensor_hash(torch.ones_like(ids))) +(a.output / 'manifest.json').write_text(json.dumps(manifest, indent=2)+'\n') +print('EXACT_HISTORICAL_CALIBRATION_VERIFIED', json.dumps(manifest), flush=True) diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/project_commit.txt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/project_commit.txt new file mode 100644 index 0000000000000000000000000000000000000000..a3bc53a9e815a696d1461e9e40829b62cdda9029 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/project_commit.txt @@ -0,0 +1 @@ +228a79f631d8ddf633f8f5e77677af7add92c2bc diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/qwen3_nofit_local_mse.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/qwen3_nofit_local_mse.py new file mode 100644 index 0000000000000000000000000000000000000000..e57e264f76c08e19212e5493a8203a03d2775fa7 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/qwen3_nofit_local_mse.py @@ -0,0 +1,101 @@ +"""Evaluation-only boundary MSE, all variants against the same dense teacher.""" +from __future__ import annotations +import argparse +import json +from pathlib import Path +import torch +from fusegpt.fixed_span_merge_init import tensor_hash +from evaluate_hchc_wikitext2_ppl import packed_wikitext_tokens, primary + +REVISION = '49e3418fbbbca6ecbdf9608b4d22e5a407081db4' + + +class BoundaryReached(Exception): + pass + + +@torch.no_grad() +def capture(model, ids, boundary, batch_size=2): + outputs, inputs = [], [] + current = {} + def pre(module, args, kwargs): + value = args[0] if args else kwargs['hidden_states'] + current['input'] = value.detach().cpu() + def post(module, args, output): + current['output'] = primary(output).detach().cpu() + raise BoundaryReached() + h1 = model.model.layers[12].register_forward_pre_hook(pre, with_kwargs=True) + h2 = model.model.layers[boundary].register_forward_hook(post) + try: + for start in range(0, len(ids), batch_size): + current.clear() + batch = ids[start:start+batch_size].to('cuda') + try: + model.model(input_ids=batch, attention_mask=torch.ones_like(batch), use_cache=False) + except BoundaryReached: + pass + else: + raise RuntimeError('Boundary hook did not run') + inputs.append(current['input']) + outputs.append(current['output']) + finally: + h1.remove(); h2.remove() + return torch.cat(inputs), torch.cat(outputs) + + +def main(): + p = argparse.ArgumentParser() + p.add_argument('--model', required=True) + p.add_argument('--cache', type=Path, required=True) + p.add_argument('--wikitext-cache', type=Path) + p.add_argument('--prepare', action='store_true') + p.add_argument('--compact-stage', type=Path) + p.add_argument('--output', type=Path) + a = p.parse_args() + from transformers import AutoModelForCausalLM, AutoTokenizer + if a.prepare: + assert a.wikitext_cache and not a.compact_stage + tokenizer = AutoTokenizer.from_pretrained(a.model, local_files_only=True) + ids = packed_wikitext_tokens(tokenizer, 'test', dataset_cache=a.wikitext_cache)[:64*1024].reshape(64,1024) + model = AutoModelForCausalLM.from_pretrained(a.model, dtype=torch.bfloat16, + local_files_only=True, attn_implementation='eager').to('cuda').eval() + anchor_inputs, targets = capture(model, ids, 21) + a.cache.mkdir(parents=True, exist_ok=True) + torch.save(dict(input_ids=ids, anchor_inputs=anchor_inputs, targets=targets), a.cache/'dense_teacher.pt') + torch.save(dict(input_ids=ids, attention_mask=torch.ones_like(ids)), a.cache/'evaluation_input_ids.pt') + protocol = dict(model='Qwen/Qwen3-8B-Base', revision=REVISION, + teacher='common_original_dense', dense_input_layer=12, dense_output_layer=21, + student_output_layer=12, sequences=64, sequence_length=1024, valid_tokens=65536, + metric='sum float32 squared activation differences / valid tokens / hidden width', + dtype='bfloat16 eager; float32 differences; float64 aggregate', training=False, + input_ids_sha256=tensor_hash(ids), anchor_inputs_sha256=tensor_hash(anchor_inputs), + targets_sha256=tensor_hash(targets), dataset='WikiText2 test, first64 packed1024 windows, HCHC packing') + (a.cache/'protocol.json').write_text(json.dumps(protocol,indent=2)+'\n') + print('COMMON_DENSE_TEACHER_READY',json.dumps(protocol),flush=True) + return + assert a.compact_stage and a.output + from fusegpt.abprune_stagewise_geometry import load_compact_model + reference = torch.load(a.cache/'dense_teacher.pt',weights_only=True) + protocol = json.loads((a.cache/'protocol.json').read_text()) + for field in ('input_ids','anchor_inputs','targets'): + assert tensor_hash(reference[field]) == protocol[field+'_sha256'] + model = load_compact_model(a.model,a.compact_stage,cycle=9,anchor=12, + dtype=torch.bfloat16,device=torch.device('cuda'),attn='eager',revision=REVISION).eval() + inputs, outputs = capture(model,reference['input_ids'],12) + assert torch.equal(inputs,reference['anchor_inputs']), 'Upstream prefix changed; common MSE inputs not matched' + # Keep accumulation chunked; the cached tensors themselves remain BF16. + numerator = denominator = 0. + for output,target in zip(outputs,reference['targets'],strict=True): + numerator += (output.float()-target.float()).square().double().sum().item() + denominator += target.float().square().double().sum().item() + assert denominator > 0 and numerator >= 0 + report = dict(local_mse=numerator/outputs.numel(),local_nmse=numerator/denominator, + squared_error_sum=numerator,target_energy_sum=denominator,elements=outputs.numel(), + protocol=protocol,prefix_input_exact_match=True,compact_stage=str(a.compact_stage),fit=False) + a.output.parent.mkdir(parents=True,exist_ok=True) + a.output.write_text(json.dumps(report,indent=2)+'\n') + print('LOCAL_MSE_COMPLETE',json.dumps(report),flush=True) + + +if __name__ == '__main__': + main() diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/qwen3_nofit_transport_config.sh b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/qwen3_nofit_transport_config.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6d6cd478789ccc3d49cc0439d15172fffde6dea --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/qwen3_nofit_transport_config.sh @@ -0,0 +1,27 @@ +# Shared defaults preserve the completed Base protocol. Instruct is explicit. +if [[ "${QWEN_NOFIT_VARIANT:-base}" == llama_base ]]; then + export NOFIT_MODEL_ID=meta-llama/Llama-3.1-8B + export NOFIT_MODEL_REVISION=d04e592bb4f6aa9cfee91e2e20afa771667e1d4b + export NOFIT_ANCHOR=21 NOFIT_INSTRUCTION_DATA=0 NOFIT_MEASURE_PPL=1 + export ABPRUNE_DATASET_REVISION=b5f90f419b7489cdba26fdbc8c022fcb5562f968 + export NOFIT_EXPECTED_CALIB_SHA256=fa4a6219f7a7b17364eef6b5b7771533b57a407f1d26db1d483bbd955814ce38 + export NOFIT_PROTOCOL=exp_md/2026-10-09_llama31-base-nofit-transport-bench14.md + export NOFIT_RUN_SLUG=20261009-llama31-base-nofit-transport-bench14 + export NOFIT_MODEL_TAG=llama31_8b_base +elif [[ "${QWEN_NOFIT_VARIANT:-base}" == instruct ]]; then + export NOFIT_MODEL_ID=Qwen/Qwen3-8B + export NOFIT_MODEL_REVISION=b968826d9c46dd6066d109eabc6255188de91218 + export NOFIT_ANCHOR=24 NOFIT_INSTRUCTION_DATA=1 NOFIT_MEASURE_PPL=1 + export ABPRUNE_DATASET_REVISION=ce9ed009ef3292bac33d3520afaf5ec804066120 + export NOFIT_EXPECTED_CALIB_SHA256='' + export NOFIT_PROTOCOL=exp_md/2026-10-09_qwen3-instruct-nofit-transport-zs6-ppl.md + export NOFIT_RUN_SLUG=20261009-qwen3-instruct-nofit-transport-zs6-ppl +else + export NOFIT_MODEL_ID=Qwen/Qwen3-8B-Base + export NOFIT_MODEL_REVISION=49e3418fbbbca6ecbdf9608b4d22e5a407081db4 + export NOFIT_ANCHOR=12 NOFIT_INSTRUCTION_DATA=0 NOFIT_MEASURE_PPL=0 + export ABPRUNE_DATASET_REVISION=b5f90f419b7489cdba26fdbc8c022fcb5562f968 + export NOFIT_EXPECTED_CALIB_SHA256=85a84b9a68cf0856fd363186d3a273860886b1c17f876cae145fd092454aff55 + export NOFIT_PROTOCOL=exp_md/2026-10-09_qwen3-base-nofit-transport-zs6.md + export NOFIT_RUN_SLUG=20261009-qwen3-base-nofit-transport-zs6 +fi diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/run_qwen3_nofit_merge_control.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/run_qwen3_nofit_merge_control.py new file mode 100644 index 0000000000000000000000000000000000000000..59b1cf689eca5bf21a9b56d14c7d4b29add055c5 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/run_qwen3_nofit_merge_control.py @@ -0,0 +1,134 @@ +"""Our fixed span + existing MLP transport, exact merge, no FiT / Fisher.""" +from __future__ import annotations +import argparse +import json +from pathlib import Path +import sys + + +def main(): + p = argparse.ArgumentParser(allow_abbrev=False) + p.add_argument('--external-root', type=Path, required=True) + p.add_argument('--inputs', type=Path, required=True) + p.add_argument('--audit-root', type=Path, required=True) + p.add_argument('--initializer', choices=['wa', 'wb', 'average', 'mka'], required=True) + opt, rest = p.parse_known_args() + sys.path.insert(0, str(opt.external_root / 'src')) + sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'src')) + import torch + import fuse_layers as base + import source_feature_transport as transport + from fusegpt.fixed_span_merge_init import tensor_hash + from fusegpt.nofit_merge_control import merge_in_place + from fusegpt.fit_ablation_come import valid_calibration_batches + opt.audit_root.mkdir(parents=True, exist_ok=True) + payload = torch.load(opt.inputs / 'calib.pt', weights_only=True) + manifest = json.loads((opt.inputs / 'manifest.json').read_text()) + assert tensor_hash(payload['input_ids']) == manifest['input_ids_sha256'] + assert manifest['input_ids_sha256'] == '85a84b9a68cf0856fd363186d3a273860886b1c17f876cae145fd092454aff55' + assert payload['input_ids'].shape == (64, 1024) + records = [] + original_parse = base.parse_args + + def parse(): + args = original_parse() + assert args.skip_distill and args.lora_epochs == 0 and args.source_feature_transport + assert args.skip_eval and args.no_head_permute_merge and args.no_head_permute_select + assert args.seed == 42 and args.batch_size == 2 and args.num_samples == 64 + assert args.norm_policy == 'copy_n1_n2' and args.num_progressive in (2, 9) + return args + + base.parse_args = parse + + def calibration(args, tokenizer): + d = torch.utils.data.TensorDataset(payload['input_ids'], payload['attention_mask']) + return [], list(payload['input_ids']), torch.utils.data.DataLoader(d, batch_size=2, shuffle=False) + + base.build_calibration_dataloader = calibration + + def select(args, model, layers, dataloader, cosine_loader, scores, start, excluded): + cycle = len(records) + 1 + assert len(layers) == 37 - cycle + ratio = {'wa': 1., 'wb': 0., 'average': .5}.get(opt.initializer) + record = dict(cycle=cycle, anchor=12, removed_original_layer=12+cycle, + selection_policy='fixed_our_span_13_22_anchor12', fit=False) + if opt.initializer == 'mka': + from fusegpt import fit_ablation_mka as mka + config = mka.GeometryConfig() + batches = valid_calibration_batches(dataloader) + assert len(batches) == 64 + features = mka.collect_features(model, batches, pooling=config.pooling) + manifolds = [mka.diffusion_embedding(x, config) for x in features] + del features + matrix, entropies = mka.npib_matrix([x[0] for x in manifolds], config) + ratio = mka.upstream_lambda(matrix, 12, 13, config.beta) + record.update(npib_matrix=matrix.tolist(), entropies=entropies, + geometry_config=vars(config), geometry_samples=64, + implementation='corrected_local_MKA_not_exact_paper_reproduction') + del batches, manifolds, matrix + record['lambda_left'] = ratio + records.append(record) + print('NOFIT_FIXED_SELECTION', cycle, opt.initializer, ratio, flush=True) + return 12, None, {'method': opt.initializer, 'fisher_computed': False} + + base.resolve_layer_idx = select + solve = transport.solve_transport_from_statistics + + def saved_solve(*args, **kwargs): + solution, stats = solve(*args, **kwargs) + torch.save(solution.detach().cpu(), opt.audit_root / f'cycle_{len(records):02d}_transport.pt') + records[-1]['transport_matrix_sha256'] = tensor_hash(solution) + return solution, stats + + transport.solve_transport_from_statistics = saved_solve + transport_fn = base.fit_and_apply_source_feature_transport + + def transported(**kwargs): + b = kwargs['layer_b'] + before = {n: tensor_hash(p) for n, p in b.named_parameters()} + result = transport_fn(**kwargs) + after = {n: tensor_hash(p) for n, p in b.named_parameters()} + records[-1]['transport'] = dict(stats=result, source_before_sha256=before, + source_after_sha256=after, changed=[n for n in before if before[n] != after[n]]) + assert set(records[-1]['transport']['changed']) <= {'mlp.gate_proj.weight', 'mlp.up_proj.weight'} + return result + + base.fit_and_apply_source_feature_transport = transported + base.compute_fisher = lambda *a, **kw: ([{}, {}], 0, [{}, {}]) + base.compute_same_anchor_contextual_fisher = lambda **kw: ([{}, {}], 0, [{}, {}], + {'computed': False, 'anchor_candidate_mean_nll': 0., 'transported_source_candidate_mean_nll': 0.}) + + def merge(a, b, *args, **kwargs): + record = records[-1] + assert 'transport' in record + audit = merge_in_place(a, b, opt.initializer, mka_lambda=record['lambda_left']) + assert audit['source_post_transport_sha256'] == record['transport']['source_after_sha256'] + record['merge'] = audit + (opt.audit_root / f'cycle_{len(records):02d}_merge.json').write_text(json.dumps(record, indent=2)+'\n') + return len(audit['projection_names']) + + base.merge_layers = merge + # Qwen3 includes attention Q/K RMSNorm. All norms remain the recipient's; + # do not let a generic norm policy silently modify them after our merge. + base.apply_norm_policy = lambda *a, **kw: None + def forbidden(*a, **kw): + raise AssertionError('FiT/gradient optimization is forbidden in this experiment') + base.distill_reparam_merge = forbidden + torch.Tensor.backward = forbidden + (opt.audit_root / 'data_manifest.json').write_text(json.dumps(manifest, indent=2)+'\n') + sys.argv = [sys.argv[0], *rest] + base.main() + output = Path(rest[rest.index('--output_dir')+1]) + for record in records: + path = output / f"cycle_{record['cycle']}" / 'cycle_metadata.json' + metadata = json.loads(path.read_text()) + metadata.update(fisher_computed=False, fit=False, nofit_merge_control=record) + if metadata.get('source_feature_transport'): + metadata['source_feature_transport']['fisher_order'] = 'Transport then non-Fisher exact merge; no FiT' + path.write_text(json.dumps(metadata, indent=2)+'\n') + (opt.audit_root / 'selection.json').write_text(json.dumps(records, indent=2)+'\n') + print('NOFIT_ALL_CYCLES_COMPLETE', len(records), flush=True) + + +if __name__ == '__main__': + main() diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/run_qwen3_nofit_transport_arm.sh b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/run_qwen3_nofit_transport_arm.sh new file mode 100644 index 0000000000000000000000000000000000000000..89dec3ff69e054616591cf9faa3ca004dfd5ec58 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/run_qwen3_nofit_transport_arm.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +set -euo pipefail +project="$1"; external="$2"; out="$3"; model="$4"; arm="$5"; gpu="$6"; cycles="${7:-9}" +source "$project/scripts/qwen3_nofit_transport_config.sh" +export CUDA_VISIBLE_DEVICES="$gpu" HF_HOME=/workspace/.hf_home HF_TOKEN_PATH=/root/.cache/huggingface/token +export HF_DATASETS_CACHE=/workspace/.hf_datasets36 HF_DATASETS_TRUST_REMOTE_CODE=1 +export HF_HUB_OFFLINE=1 HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 +export PYTHONUNBUFFERED=1 TOKENIZERS_PARALLELISM=false OMP_NUM_THREADS=4 +export PYTHONPATH="$external/src:$project/src:$project" +mkdir -p "$out/logs" "$out/audit" "$out/eval" +order=(); for ((i=0;i "$out/logs/prune.log" 2>&1 +python -m fusegpt.abprune_compact --run-root "$out/run" --output-root "$out/compact" \ + --model "$NOFIT_MODEL_ID" --base-revision "$NOFIT_MODEL_REVISION" \ + --run-id "${NOFIT_MODEL_TAG:-qwen3_8b_${QWEN_NOFIT_VARIANT:-base}}_nofit_transport_${arm}_20261009" --cycles "$cycles" --layer-order "${order[*]}" +touch "$out/PRUNE_COMPLETE" diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/run_qwen3_nofit_transport_control.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/run_qwen3_nofit_transport_control.py new file mode 100644 index 0000000000000000000000000000000000000000..dd0fbe2494c48efe5488cbaccdabe3573977b8b6 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/run_qwen3_nofit_transport_control.py @@ -0,0 +1,106 @@ +"""Matched contextual Fisher at a fixed span; only source transport differs.""" +import argparse +import hashlib +import json +from pathlib import Path +import sys + +p = argparse.ArgumentParser(add_help=False) +p.add_argument('--external-root', required=True) +p.add_argument('--audit-root', type=Path, required=True) +p.add_argument('--transport', choices=['on', 'off'], required=True) +p.add_argument('--anchor', type=int, default=12) +p.add_argument('--instruction-data', action='store_true') +p.add_argument('--expected-calib-sha256', default='85a84b9a68cf0856fd363186d3a273860886b1c17f876cae145fd092454aff55') +opt, rest = p.parse_known_args() +sys.path.insert(0, str(Path(opt.external_root) / 'src')) +import fuse_layers as base +if opt.instruction_data: + import os + os.environ['ABPRUNE_EXTERNAL_SRC'] = str(Path(opt.external_root) / 'src') + import run_external_abprune_instruct_order # installs the established first-turn record loaders +import fuse_layers_order as ordered + +opt.audit_root.mkdir(parents=True, exist_ok=True) +original_parse = base.parse_args +original_prepare = base.prepare_all_data +original_merge = base.distill_reparam_merge +original_contextual = base.compute_same_anchor_contextual_fisher +cycle = 0 + +def checked_parse(): + args = original_parse() + assert args.reparam_skip_train and not args.skip_distill + assert args.reparam_param_subset == 'mlp' and args.reparam_additive_u + assert args.reparam_rho_objective == 'none' and args.lora_epochs == 0 + assert bool(args.source_feature_transport) == (opt.transport == 'on') + return args + +def prepare(*args, **kwargs): + prepared = original_prepare(*args, **kwargs) + fingerprints = {} + for name in ('calib_loader', 'distill_loader'): + loader = getattr(prepared, name) + ids_hash, mask_hash = hashlib.sha256(), hashlib.sha256() + tokens = 0 + for item in loader.dataset: + ids, mask = item[:2] + ids_hash.update(ids.cpu().numpy().astype(' "$out/logs/ppl.log" 2>&1 + fi +) +eval_arm off 0 & off_pid=$! +eval_arm on 1 & on_pid=$! +failed=0; for pid in "$off_pid" "$on_pid"; do wait "$pid" || failed=1; done +((failed==0)) || exit 1 +python - "$root" "$project" <<'PY' +import json,math,shutil,sys,subprocess +from pathlib import Path +r=Path(sys.argv[1]); project=Path(sys.argv[2]); rows=json.loads((r/'summary.json').read_text()) +for row in rows: + result=json.loads((r/'full'/row['transport']/'eval/final_ppl.json').read_text()) + assert result['metrics']['tokens']==296815 and result['metrics']['sequences']==145 + assert result['decoder_layers']==27 and result['sequence_length']==2048 and result['batch_size']==4 + assert result['offline_policy'] and math.isfinite(result['metrics']['perplexity']) + row['ppl']=result['metrics']['perplexity']; row['ppl_protocol']=result['protocol'] + row['ppl_tokens']=result['metrics']['tokens']; row['ppl_sequence_length']=2048 +summary={'rows':rows,'historical_transport_on_fit':{'zs6':0.5528594177270905,'ppl':11.45046489901775, + 'record_id':'qwen3_base_transport_9block','anchor':12,'removed_interval':[13,22], + 'ppl_source_commit':'d9bc7529658ffc6f7c5af9e2bae0161c73cfc264', + 'ppl_source_path':'results/qwen3_8b_transport_llmstreamline_ppl_20261001/transport/9block/ppl.json'}, + 'code_commit':subprocess.check_output(['git','-C',str(project),'rev-parse','HEAD'],text=True).strip()} +(r/'summary_with_ppl.json').write_text(json.dumps(summary,indent=2)+'\n') +b=r/'backup/ppl_supplement'; b.mkdir(exist_ok=True) +shutil.copy2(r/'summary_with_ppl.json',b/'summary_with_ppl.json') +shutil.copy2(r/'wikitext2_cache_hashes.json',b/'wikitext2_cache_hashes.json') +for arm in ['off','on']: + d=b/arm;d.mkdir(exist_ok=True) + for source,name in [(r/'full'/arm/'eval/final_ppl.json','final_ppl.json'), + (r/'full'/arm/'logs/ppl.log','ppl.log'), + (r/'full'/arm/'eval/zs6.json','zs6.json')]: shutil.copy2(source,d/name) +for name in ['run_qwen3_nofit_transport_ppl.sh','evaluate_abprune_compact_ppl.py', + 'evaluate_hchc_wikitext2_ppl.py','offline_eval_policy.py']: + shutil.copy2(project/'scripts'/name,b/name) +shutil.copy2(project/'exp_md/2026-10-09_qwen3-base-nofit-transport-zs6.md',b/'protocol.md') +print(json.dumps({'ppl':{x['transport']:x['ppl'] for x in rows}}),flush=True) +PY +python "$project/scripts/write_tree_manifest.py" "$root/backup/ppl_supplement" +HF_HUB_OFFLINE=0 HF_DATASETS_OFFLINE=0 TRANSFORMERS_OFFLINE=0 \ +python "$project/scripts/upload_verified_hf_tree.py" "$root/backup/ppl_supplement" --repo-id LJYAI/paper_revision \ + --path-in-repo "runs/$alias/20261009-qwen3-base-nofit-transport-zs6/ppl_supplement" --verify-all-files \ + --commit-message "Qwen3 Base no-FiT Transport OFF ON WikiText PPL supplement" > "$root/ppl_backup.json" +touch "$root/PPL_COMPLETE" diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/source_feature_transport.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/source_feature_transport.py new file mode 100644 index 0000000000000000000000000000000000000000..242e2e52572627622decabcc62b7e24a1b7f0046 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/source_feature_transport.py @@ -0,0 +1,342 @@ +"""Stage-local source MLP transport into the anchor MLP input coordinate. + +The fitted map ``T`` satisfies ``X_anchor @ T ~= X_source``. For linear +input projections stored as ``W`` (PyTorch convention ``y = x @ W.T``), the +equivalent source projection in the anchor coordinate is ``W @ T.T``. + +This module intentionally transports only ``gate_proj`` and ``up_proj``. +``down_proj`` consumes the SwiGLU intermediate representation rather than the +decoder hidden coordinate and is therefore left unchanged. +""" + +from __future__ import annotations + +import math +from typing import Dict, List, Tuple + +import torch + + +class _StopAfterSource(RuntimeError): + """Abort a model forward once both MLP inputs have been captured.""" + + +def _capture_mlp_inputs(model, layer_a, layer_b, input_ids, attention_mask=None): + captured: Dict[str, torch.Tensor] = {} + + def capture_anchor(_module, inputs): + captured["anchor"] = inputs[0].detach() + + def capture_source(_module, inputs): + captured["source"] = inputs[0].detach() + raise _StopAfterSource() + + handles = ( + layer_a.mlp.register_forward_pre_hook(capture_anchor), + layer_b.mlp.register_forward_pre_hook(capture_source), + ) + try: + kwargs = {"input_ids": input_ids, "use_cache": False} + if attention_mask is not None: + kwargs["attention_mask"] = attention_mask + try: + model(**kwargs) + except _StopAfterSource: + pass + finally: + for handle in handles: + handle.remove() + + if set(captured) != {"anchor", "source"}: + raise RuntimeError( + "Failed to capture anchor/source MLP inputs; " + f"captured={sorted(captured)}" + ) + return captured["anchor"], captured["source"] + + +def solve_transport_from_statistics( + gram_sum: torch.Tensor, + cross_sum: torch.Tensor, + source_sq_sum: float, + token_count: int, + ridge_relative: float, +) -> Tuple[torch.Tensor, Dict[str, float]]: + """Solve ridge OLS and return its calibration-set reconstruction metrics.""" + if token_count <= 0: + raise ValueError("token_count must be positive") + if ridge_relative < 0.0: + raise ValueError("ridge_relative must be non-negative") + + gram = gram_sum / float(token_count) + cross = cross_sum / float(token_count) + target_sq = float(source_sq_sum) / float(token_count) + mean_diagonal = float(torch.diagonal(gram).mean().item()) + ridge = float(ridge_relative) * mean_diagonal + regularized = gram.clone() + regularized.diagonal().add_(ridge) + chol, info = torch.linalg.cholesky_ex(regularized) + if int(info.max().item()) != 0: + raise RuntimeError( + "Source-feature transport Cholesky failed: " + f"info={int(info.max().item())}" + ) + solution = torch.cholesky_solve(cross, chol) + + # Since (G + ridge I) T = C, tr(T' G T) can be computed without another + # O(d^3) multiply as - ridge ||T||^2. + dot = float((solution.double() * cross.double()).sum().item()) + solution_sq = float(solution.double().square().sum().item()) + predicted_sq = max(0.0, dot - ridge * solution_sq) + error_sq = max(0.0, target_sq + predicted_sq - 2.0 * dot) + denominator = math.sqrt(max(predicted_sq, 0.0) * max(target_sq, 0.0)) + identity = torch.eye( + solution.shape[0], dtype=solution.dtype, device=solution.device + ) + relative_identity_distance = float( + torch.linalg.vector_norm((solution - identity).float()).item() + / math.sqrt(float(solution.shape[0])) + ) + del identity + + stats = { + "tokens": int(token_count), + "ridge_relative": float(ridge_relative), + "ridge_absolute": ridge, + "gram_mean_diagonal": mean_diagonal, + "calibration_nmse": error_sq / target_sq if target_sq > 0.0 else float("nan"), + "calibration_cosine": dot / denominator if denominator > 0.0 else float("nan"), + "calibration_norm_ratio": ( + math.sqrt(predicted_sq / target_sq) if target_sq > 0.0 else float("nan") + ), + "transport_relative_identity_distance": relative_identity_distance, + } + return solution, stats + + +def _apply_transport_to_source_mlp(source_mlp, solution, row_chunk: int) -> None: + if row_chunk <= 0: + raise ValueError("row_chunk must be positive") + with torch.no_grad(): + for projection_name in ("gate_proj", "up_proj"): + projection = getattr(source_mlp, projection_name) + original = projection.weight.detach().clone() + if original.ndim != 2 or original.shape[1] != solution.shape[0]: + raise ValueError( + f"Unexpected {projection_name} shape {tuple(original.shape)} " + f"for transport {tuple(solution.shape)}" + ) + for start in range(0, original.shape[0], row_chunk): + end = min(start + row_chunk, original.shape[0]) + transported = original[start:end].float() @ solution.transpose(0, 1) + projection.weight[start:end].copy_(transported.to(projection.weight.dtype)) + del original + + +def fit_and_apply_source_feature_transport( + model, + layer_a, + layer_b, + dataloader, + device: str, + ridge_relative: float = 1e-3, + max_batches: int = 0, + row_chunk: int = 128, +) -> Dict[str, object]: + """Fit ``X_a T ~= X_b`` and rewrite source MLP input projections.""" + if dataloader is None: + raise ValueError("Source-feature transport requires a dataloader") + + previous_training = model.training + model.eval() + gram_sum = None + cross_sum = None + source_sq_sum = 0.0 + token_count = 0 + batches = 0 + try: + with torch.no_grad(): + for batch in dataloader: + if max_batches > 0 and batches >= max_batches: + break + input_ids = batch[0].to(device, non_blocking=True) + attention_mask = ( + batch[1].to(device, non_blocking=True) if len(batch) > 1 else None + ) + x_a, x_b = _capture_mlp_inputs( + model, layer_a, layer_b, input_ids, attention_mask + ) + x_a = x_a.reshape(-1, x_a.shape[-1]).float() + x_b = x_b.reshape(-1, x_b.shape[-1]).float() + if attention_mask is not None: + valid = attention_mask.reshape(-1).to(dtype=torch.bool) + if valid.numel() != x_a.shape[0]: + raise RuntimeError( + "Attention mask does not align with captured MLP inputs" + ) + x_a = x_a[valid] + x_b = x_b[valid] + if gram_sum is None: + width = x_a.shape[-1] + gram_sum = torch.zeros( + (width, width), dtype=torch.float32, device=x_a.device + ) + cross_sum = torch.zeros_like(gram_sum) + gram_sum.addmm_(x_a.transpose(0, 1), x_a) + cross_sum.addmm_(x_a.transpose(0, 1), x_b) + source_sq_sum += float(x_b.double().square().sum().item()) + token_count += int(x_a.shape[0]) + batches += 1 + finally: + model.train(previous_training) + + if gram_sum is None or cross_sum is None or batches == 0: + raise RuntimeError("No batches were processed for source-feature transport") + solution, stats = solve_transport_from_statistics( + gram_sum, + cross_sum, + source_sq_sum, + token_count, + ridge_relative, + ) + _apply_transport_to_source_mlp(layer_b.mlp, solution, row_chunk=row_chunk) + stats.update( + { + "enabled": True, + "batches": int(batches), + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T", + ], + "down_proj_transported": False, + } + ) + del solution, gram_sum, cross_sum + if torch.cuda.is_available(): + torch.cuda.empty_cache() + return stats + + +def _drop_container_layer(container, index: int): + if isinstance(container, torch.nn.ModuleList): + return torch.nn.ModuleList( + [layer for layer_index, layer in enumerate(container) if layer_index != index] + ) + if isinstance(container, list): + return [layer for layer_index, layer in enumerate(container) if layer_index != index] + raise TypeError(f"Unsupported layer container: {type(container)}") + + +def compute_same_anchor_contextual_fisher( + model, + parent, + layer_attr: str, + container, + layer_idx: int, + layer_a, + layer_b, + dataloader, + device: str, + fisher_mode: str, +) -> Tuple[List[Dict[str, object]], int, List[Dict[str, int]], Dict[str, float]]: + """Measure both candidate MLPs in the same post-pruning anchor topology. + + The source MLP must already be feature-transported. Two virtual pruned + models are evaluated on every calibration batch: one uses the native + anchor MLP and one replaces it with the transported source MLP. The source + decoder block is absent in both arms, so the gradients describe the actual + deployment coordinate/topology rather than the source's old depth. + """ + if fisher_mode != "param": + raise ValueError("Same-anchor contextual Fisher currently requires fisher_mode=param") + + anchor_mlp = layer_a.mlp + source_mlp = layer_b.mlp + previous_container = container + pruned_container = _drop_container_layer(container, layer_idx + 1) + previous_training = model.training + + names_a = dict(layer_a.named_parameters()) + names_b = dict(layer_b.named_parameters()) + fisher_a: Dict[str, object] = {} + fisher_b: Dict[str, object] = {} + numels_a: Dict[str, int] = {} + numels_b: Dict[str, int] = {} + for name, parameter in names_a.items(): + if name.startswith("mlp."): + fisher_a[name] = torch.zeros_like(parameter, dtype=torch.float32, device="cpu") + else: + fisher_a[name] = 0.0 + numels_a[name] = int(parameter.numel()) + for name, parameter in names_b.items(): + if name.startswith("mlp."): + fisher_b[name] = torch.zeros_like(parameter, dtype=torch.float32, device="cpu") + else: + fisher_b[name] = 0.0 + numels_b[name] = int(parameter.numel()) + + for parameter in model.parameters(): + parameter.requires_grad_(False) + + anchor_loss_sum = 0.0 + source_loss_sum = 0.0 + num_batches = 0 + + def run_arm(candidate_mlp, fisher_target, input_ids, attention_mask): + layer_a.mlp = candidate_mlp + for parameter in candidate_mlp.parameters(): + parameter.requires_grad_(True) + model.zero_grad(set_to_none=True) + labels = input_ids + if attention_mask is not None: + labels = input_ids.masked_fill(attention_mask == 0, -100) + kwargs = {"input_ids": input_ids, "labels": labels, "use_cache": False} + if attention_mask is not None: + kwargs["attention_mask"] = attention_mask + output = model(**kwargs) + output.loss.backward() + for local_name, parameter in candidate_mlp.named_parameters(): + full_name = f"mlp.{local_name}" + if parameter.grad is not None: + fisher_target[full_name] += parameter.grad.detach().float().square().cpu() + loss = float(output.loss.detach().item()) + model.zero_grad(set_to_none=True) + for parameter in candidate_mlp.parameters(): + parameter.requires_grad_(False) + return loss + + try: + setattr(parent, layer_attr, pruned_container) + model.eval() + for batch in dataloader: + input_ids = batch[0].to(device, non_blocking=True) + attention_mask = ( + batch[1].to(device, non_blocking=True) if len(batch) > 1 else None + ) + anchor_loss_sum += run_arm( + anchor_mlp, fisher_a, input_ids, attention_mask + ) + source_loss_sum += run_arm( + source_mlp, fisher_b, input_ids, attention_mask + ) + num_batches += 1 + finally: + layer_a.mlp = anchor_mlp + setattr(parent, layer_attr, previous_container) + model.train(previous_training) + + if num_batches == 0: + raise RuntimeError("No batches were processed for same-anchor contextual Fisher") + stats = { + "num_batches": int(num_batches), + "anchor_candidate_mean_nll": anchor_loss_sum / float(num_batches), + "transported_source_candidate_mean_nll": source_loss_sum / float(num_batches), + "source_minus_anchor_mean_nll": ( + source_loss_sum - anchor_loss_sum + ) / float(num_batches), + "topology": "source block dropped; candidate MLP evaluated at anchor slot", + "shared_input_coordinate": True, + "scope": "mlp gate/up/down diagonal empirical Fisher", + } + return [fisher_a, fisher_b], num_batches, [numels_a, numels_b], stats diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/summarize_qwen3_nofit_merge.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/summarize_qwen3_nofit_merge.py new file mode 100644 index 0000000000000000000000000000000000000000..ecef42a2954e27709308155f731bbe03c906d9a0 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/summarize_qwen3_nofit_merge.py @@ -0,0 +1,41 @@ +from pathlib import Path +import json +import sys +root,project=map(Path,sys.argv[1:]); rows=[] +for arm in ('wa','wb','average','mka'): + out=root/'full'/arm + scores=json.loads((out/'eval/final_14bench.json').read_text())['task_scores'] + assert len(scores)==14 + ppl=json.loads((out/'eval/final_ppl.json').read_text())['metrics'] + assert ppl['tokens']==296815 and ppl['sequences']==145 + mse=json.loads((out/'eval/local_mse.json').read_text()) + backup=json.loads((root/f'{arm}_backup.json').read_text()) + assert backup['verified'] and backup['all_payload_hashes_match'] + rows.append(dict(model='Qwen/Qwen3-8B-Base',method=arm,removed_blocks=9, + interval=[13,22],anchor=12,transport=True,fit=False, + merge_scope='attention_and_mlp' if arm=='mka' else 'mlp', + ppl=ppl['perplexity'],local_mse=mse['local_mse'],local_nmse=mse['local_nmse'], + zs12=sum(v for k,v in scores.items() if k not in {'mmlu','cmmlu'})/12, + mmlu=scores['mmlu'],cmmlu=scores['cmmlu'],avg=sum(scores.values())/14, + avg_definition='unweighted Bench14 macro',task_scores=scores,backup=backup)) +baseline=json.loads((project/'results/qwen3_8b_base_nofit_bench14_20261009/summary.json').read_text()) +if isinstance(baseline,dict): baseline=baseline.get('rows',baseline.get('results',baseline)) +assert isinstance(baseline,list) +fisher=next(r for r in baseline if r['transport']=='on') +fmse=json.loads((root/'fisher_reference/local_mse.json').read_text()) +rows.append(dict(model='Qwen/Qwen3-8B-Base',method='fisher_existing',removed_blocks=9, + interval=[13,22],anchor=12,transport=True,fit=False,merge_scope='mlp', + ppl=fisher['ppl'],local_mse=fmse['local_mse'],local_nmse=fmse['local_nmse'], + zs12=fisher['zs12_avg'],mmlu=fisher['mmlu'],cmmlu=fisher['cmmlu'],avg=fisher['bench14_avg'], + task_scores=fisher['task_scores'],existing_scores_reused=True, + weight_restore=json.loads((root/'fisher_reference/restore_receipt.json').read_text()))) +report=dict(rows=rows,scope_caveat='MKA merges attention+MLP; four other controls are MLP-only. Not a same-scope coefficient-only comparison.', + local_mse_protocol=json.loads((root/'local_mse_reference/protocol.json').read_text())) +(root/'summary.json').write_text(json.dumps(report,indent=2)+'\n') +records=project/'results/qwen3_base_nofit_merge4_20261011';records.mkdir(parents=True,exist_ok=True) +(records/'summary.json').write_text(json.dumps(report,indent=2)+'\n') +import shutil +for arm in ('wa','wb','average','mka'): + d=records/arm;d.mkdir(exist_ok=True) + for path in (root/'full'/arm/'eval').glob('*.json'): shutil.copy2(path,d/path.name) + shutil.copy2(root/f'{arm}_backup.json',d/'backup.json') diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/verify_qwen3_nofit_merge.py b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/verify_qwen3_nofit_merge.py new file mode 100644 index 0000000000000000000000000000000000000000..321031a701a05eb9816738bf380d4e0a7b4a93f3 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/code/verify_qwen3_nofit_merge.py @@ -0,0 +1,23 @@ +"""Fail closed on mismatched topology, scope or accidental training.""" +from pathlib import Path +import json +import sys +r=Path(sys.argv[1]); arm=sys.argv[2]; cycles=int(sys.argv[3]) +for c in range(1,cycles+1): + m=json.loads((r/f'run/cycle_{c}/cycle_metadata.json').read_text()) + a=json.loads((r/f'audit/cycle_{c:02d}_merge.json').read_text()) + assert m['layer_merged']==12 and m['num_layers_after']==36-c + assert not m['fisher_computed'] and not m['fit'] and m['fisher_num_batches']==0 + assert m['source_feature_transport'] and not m['lora']['enabled'] + assert not (m.get('comm') or {}).get('enabled',False) + assert a['anchor']==12 and a['removed_original_layer']==12+c + assert a['merge']['initializer']==arm and not a['merge']['fit'] + assert a['merge']['optimizer_steps']==a['merge']['backward_calls']==0 + assert len(a['merge']['projection_names'])==(7 if arm=='mka' else 3) + assert a['merge']['source_post_transport_sha256']==a['transport']['source_after_sha256'] + assert a['transport']['stats']['batches']==32 and a['transport']['stats']['tokens']==65536 + assert (r/f'audit/cycle_{c:02d}_transport.pt').is_file() + meta=json.loads((r/f'compact/stage_{c:02d}/metadata.json').read_text()) + assert meta['anchor_index']==12 and meta['removed_original_layers']==list(range(13,13+c)) + assert len(list((r/f'compact/stage_{c:02d}').glob('*.pt')))==1 +print('NOFIT_MERGE_SCOPE_DATA_TOPOLOGY_VERIFIED',arm,cycles,flush=True) diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/manifest.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..f0c757c6ceaac7467fcfc06ef09ff680a0cc3e5b --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/manifest.json @@ -0,0 +1,335 @@ +{ + "format": "abprune_compact_manifest_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "stages": [ + { + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 1, + "removed_count": 1, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13 + ], + "source_cycle": "cycle_1", + "anchor_state_file": "anchor_layer.pt", + "sha256": "8bc6ba9872c2e670903cebfa10b96649f3bc3034510a2100d08e6fd2091a49ed" + }, + { + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 2, + "removed_count": 2, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14 + ], + "source_cycle": "cycle_2", + "anchor_state_file": "anchor_layer.pt", + "sha256": "6368d32eaa367b72a6f3471767b54c702b3d7f23329cf36363c898a8b8765e2f" + }, + { + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 3, + "removed_count": 3, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15 + ], + "source_cycle": "cycle_3", + "anchor_state_file": "anchor_layer.pt", + "sha256": "c40a50bf68fdebecd8f777dd21888268c4130462548b8e571f14194f413a77ab" + }, + { + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 4, + "removed_count": 4, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16 + ], + "source_cycle": "cycle_4", + "anchor_state_file": "anchor_layer.pt", + "sha256": "6631294e3ef72a6e189322815bb5c3df53a7fe936d9800205e2526ab3fd1ac1f" + }, + { + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 5, + "removed_count": 5, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16, + 17 + ], + "source_cycle": "cycle_5", + "anchor_state_file": "anchor_layer.pt", + "sha256": "aaa1cad4d0adb64e73ae174dcb16a9a7d4db877f8e832eb90ca75623141a55a7" + }, + { + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 6, + "removed_count": 6, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16, + 17, + 18 + ], + "source_cycle": "cycle_6", + "anchor_state_file": "anchor_layer.pt", + "sha256": "ef90aa4e1d532885199872e96747e924103c70c77303a41340d68ab0ff77add6" + }, + { + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 7, + "removed_count": 7, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16, + 17, + 18, + 19 + ], + "source_cycle": "cycle_7", + "anchor_state_file": "anchor_layer.pt", + "sha256": "f4e8aade1057d69959ea7d561dade1b3c284e99e06f74cc97fe90bc27bab622f" + }, + { + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 8, + "removed_count": 8, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20 + ], + "source_cycle": "cycle_8", + "anchor_state_file": "anchor_layer.pt", + "sha256": "6446334aa73c457d0637fe60dbbc17b06317cacdb73a486595dc8eebd8299e57" + }, + { + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 9, + "removed_count": 9, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21 + ], + "source_cycle": "cycle_9", + "anchor_state_file": "anchor_layer.pt", + "sha256": "ebef6e4f425ad4671d601a274e150ab72c837dc8ad070a431072ee0672b0b4b8" + } + ] +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_01/anchor_layer.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_01/anchor_layer.pt new file mode 100644 index 0000000000000000000000000000000000000000..c915495c353536c76375e3057fd24416f1f2a8f0 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_01/anchor_layer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8bc6ba9872c2e670903cebfa10b96649f3bc3034510a2100d08e6fd2091a49ed +size 385897862 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_01/metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_01/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ddcfb1e6e6b131ef87e4063f3b29226b547e6a01 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_01/metadata.json @@ -0,0 +1,31 @@ +{ + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 1, + "removed_count": 1, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13 + ], + "source_cycle": "cycle_1", + "anchor_state_file": "anchor_layer.pt", + "sha256": "8bc6ba9872c2e670903cebfa10b96649f3bc3034510a2100d08e6fd2091a49ed" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_02/anchor_layer.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_02/anchor_layer.pt new file mode 100644 index 0000000000000000000000000000000000000000..6f2fc5d7539642f4ef25121a9a799ef0719a845c --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_02/anchor_layer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6368d32eaa367b72a6f3471767b54c702b3d7f23329cf36363c898a8b8765e2f +size 385897862 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_02/metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_02/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..422cb3c376d55cd9237722fdd3684a092e3803f6 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_02/metadata.json @@ -0,0 +1,32 @@ +{ + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 2, + "removed_count": 2, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14 + ], + "source_cycle": "cycle_2", + "anchor_state_file": "anchor_layer.pt", + "sha256": "6368d32eaa367b72a6f3471767b54c702b3d7f23329cf36363c898a8b8765e2f" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_03/anchor_layer.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_03/anchor_layer.pt new file mode 100644 index 0000000000000000000000000000000000000000..4072e409106de92fdba3b92c44859d3d5467439e --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_03/anchor_layer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c40a50bf68fdebecd8f777dd21888268c4130462548b8e571f14194f413a77ab +size 385897862 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_03/metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_03/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ca4ef553132bc35189b47271f52f7345f27c424d --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_03/metadata.json @@ -0,0 +1,33 @@ +{ + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 3, + "removed_count": 3, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15 + ], + "source_cycle": "cycle_3", + "anchor_state_file": "anchor_layer.pt", + "sha256": "c40a50bf68fdebecd8f777dd21888268c4130462548b8e571f14194f413a77ab" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_04/anchor_layer.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_04/anchor_layer.pt new file mode 100644 index 0000000000000000000000000000000000000000..101af197b09569b38a1d1362073b19a3d7e8796f --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_04/anchor_layer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6631294e3ef72a6e189322815bb5c3df53a7fe936d9800205e2526ab3fd1ac1f +size 385897862 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_04/metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_04/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4ede858a1e48402f32baee6499168ebbe1cc8217 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_04/metadata.json @@ -0,0 +1,34 @@ +{ + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 4, + "removed_count": 4, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16 + ], + "source_cycle": "cycle_4", + "anchor_state_file": "anchor_layer.pt", + "sha256": "6631294e3ef72a6e189322815bb5c3df53a7fe936d9800205e2526ab3fd1ac1f" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_05/anchor_layer.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_05/anchor_layer.pt new file mode 100644 index 0000000000000000000000000000000000000000..e78882d07a8241fabc89a9892a9bb2161d99c2c2 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_05/anchor_layer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aaa1cad4d0adb64e73ae174dcb16a9a7d4db877f8e832eb90ca75623141a55a7 +size 385897862 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_05/metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_05/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4423867c202449f8becd1d08c24f68425db677e1 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_05/metadata.json @@ -0,0 +1,35 @@ +{ + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 5, + "removed_count": 5, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16, + 17 + ], + "source_cycle": "cycle_5", + "anchor_state_file": "anchor_layer.pt", + "sha256": "aaa1cad4d0adb64e73ae174dcb16a9a7d4db877f8e832eb90ca75623141a55a7" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_06/anchor_layer.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_06/anchor_layer.pt new file mode 100644 index 0000000000000000000000000000000000000000..91d8b10f56e8a0a399c1533c1ef11204889b2f32 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_06/anchor_layer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef90aa4e1d532885199872e96747e924103c70c77303a41340d68ab0ff77add6 +size 385897862 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_06/metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_06/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..9319f51735c6cb8e7bedebd478eacb23e29c62c3 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_06/metadata.json @@ -0,0 +1,36 @@ +{ + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 6, + "removed_count": 6, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16, + 17, + 18 + ], + "source_cycle": "cycle_6", + "anchor_state_file": "anchor_layer.pt", + "sha256": "ef90aa4e1d532885199872e96747e924103c70c77303a41340d68ab0ff77add6" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_07/anchor_layer.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_07/anchor_layer.pt new file mode 100644 index 0000000000000000000000000000000000000000..766d113925226b506203cfb43739e973695739a0 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_07/anchor_layer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4e8aade1057d69959ea7d561dade1b3c284e99e06f74cc97fe90bc27bab622f +size 385897862 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_07/metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_07/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..511484c6ed0c8442d31162a40bef4b2597ead14c --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_07/metadata.json @@ -0,0 +1,37 @@ +{ + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 7, + "removed_count": 7, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16, + 17, + 18, + 19 + ], + "source_cycle": "cycle_7", + "anchor_state_file": "anchor_layer.pt", + "sha256": "f4e8aade1057d69959ea7d561dade1b3c284e99e06f74cc97fe90bc27bab622f" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_08/anchor_layer.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_08/anchor_layer.pt new file mode 100644 index 0000000000000000000000000000000000000000..e385eded49d14d08b6bf0b6873d8b03d5dadd41f --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_08/anchor_layer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6446334aa73c457d0637fe60dbbc17b06317cacdb73a486595dc8eebd8299e57 +size 385897862 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_08/metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_08/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..9519bac2de3ba1f4546f727983489bb4347d5e3f --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_08/metadata.json @@ -0,0 +1,38 @@ +{ + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 8, + "removed_count": 8, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20 + ], + "source_cycle": "cycle_8", + "anchor_state_file": "anchor_layer.pt", + "sha256": "6446334aa73c457d0637fe60dbbc17b06317cacdb73a486595dc8eebd8299e57" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_09/anchor_layer.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_09/anchor_layer.pt new file mode 100644 index 0000000000000000000000000000000000000000..3ed1c67a1b7db92e672f7730f48ee72991b064ae --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_09/anchor_layer.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebef6e4f425ad4671d601a274e150ab72c837dc8ad070a431072ee0672b0b4b8 +size 385897862 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_09/metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_09/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f625a28b01cb0288c6f7766e6edfd503870d5368 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/compact/stage_09/metadata.json @@ -0,0 +1,39 @@ +{ + "format": "abprune_compact_stage_v1", + "model": "Qwen/Qwen3-8B-Base", + "base_model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "run_id": "qwen3_base_nofit_merge_mka_20261011", + "target_prune_count": 9, + "stage": 9, + "removed_count": 9, + "anchor_index": 12, + "layer_order": [ + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12 + ], + "packaged_stage_range": [ + 1, + 9 + ], + "removed_original_layers": [ + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21 + ], + "source_cycle": "cycle_9", + "anchor_state_file": "anchor_layer.pt", + "sha256": "ebef6e4f425ad4671d601a274e150ab72c837dc8ad070a431072ee0672b0b4b8" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_1/cycle_metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_1/cycle_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ca9ac8db042533ce9d74bedeb131907800d7f0d0 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_1/cycle_metadata.json @@ -0,0 +1,1704 @@ +{ + "cycle": 1, + "layer_merged": 12, + "num_layers_before": 36, + "num_layers_after": 35, + "fused_layer_state": "fused_layer.pt", + "profile_no_save": false, + "dwce_score": null, + "dwce_scores": null, + "dwce_meta": { + "method": "mka", + "fisher_computed": false + }, + "fisher_num_batches": 0, + "merge_method": "fisher", + "merged_params": 7, + "num_sequences": 64, + "teacher_source": "base_model", + "teacher_cycle": 0, + "eval": { + "datasets": [ + "wikitext2" + ], + "configs": [ + null + ], + "split": "test", + "num_samples": 0, + "seq_len": 1024, + "post_ppl": null, + "merge_only_ppl": null + }, + "comm": { + "enabled": false + }, + "distill": { + "enabled": false, + "method": "reparam", + "calib_samples": 256, + "inst_samples": 0, + "seq_len": 512, + "batch_size": 2, + "epochs": 1.0, + "lr": 0.0001, + "kl_weight": 0.01, + "kl_temp": 4.0, + "kl_chunk_size": 16384, + "hidden_mse_weight": 1.0, + "attn_mse_weight": 0.0, + "mlp_mse_weight": 0.0, + "reparam_eta": 0.01, + "reparam_gamma": 0.0001, + "reparam_attn_reg_scale": 1.0, + "reparam_mlp_reg_scale": 1.0, + "reparam_param_subset": "all", + "reparam_train_subset": "same", + "reparam_skip_train": false, + "reparam_stats": null, + "reparam_gate_summary": null, + "post_merge_nll_scale": null, + "merge_only_ppl": null, + "post_ppl": null, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "instruction_dataset": null, + "instruction_config": null, + "instruction_split": "train" + }, + "lora": { + "enabled": false, + "seq_len": 512, + "batch_size": 2, + "epochs": 0.0, + "rank": 8, + "alpha": 16.0, + "dropout": 0.0, + "target_modules": [ + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "gate_proj", + "down_proj", + "up_proj" + ], + "respect_exclude_pairs": false, + "kl_enabled": false, + "kl_weight": 0.1, + "kl_temp": 4.0, + "post_ppl": null, + "lr": 0.0001, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "log_steps": 100, + "eval_every": 0, + "eval_max_batches": null + }, + "norm_policy": "copy_n1_n2", + "source_feature_transport": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.060115993022919e-05, + "gram_mean_diagonal": 0.06060115993022919, + "calibration_nmse": 0.12798181447783583, + "calibration_cosine": 0.9338195359584089, + "calibration_norm_ratio": 0.9329591782339236, + "transport_relative_identity_distance": 0.4961368441581726, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "Transport then non-Fisher exact merge; no FiT" + }, + "same_anchor_contextual_fisher": { + "computed": false, + "anchor_candidate_mean_nll": 0.0, + "transported_source_candidate_mean_nll": 0.0 + }, + "full_model_saved": false, + "timing": { + "seconds": { + "selection": 11.40696722100256, + "rebase": 0.0, + "source_feature_transport": 4.113877665018663, + "fisher": 3.9049016777426004e-05, + "fit": 2.689880385005381, + "materialize_save_layer": 0.6253516979631968, + "metadata_write": 0.0004440979682840407, + "teacher_snapshot": 0.1429167989990674, + "cycle_cleanup": 0.23377672099741176, + "cycle_total": 19.214086704014335 + }, + "tracked_component_total_seconds": 19.21325363597134, + "cycle_total_seconds": 19.214086704014335, + "ratios_of_tracked_components": { + "selection": 0.5937030467159536, + "rebase": 0.0, + "source_feature_transport": 0.21411665837360308, + "fisher": 2.0324000045634046e-06, + "fit": 0.14000129472966238, + "materialize_save_layer": 0.032547933307475, + "metadata_write": 2.3114146968454828e-05, + "teacher_snapshot": 0.007438448568205878, + "cycle_cleanup": 0.012167471758126977 + }, + "ratios_of_cycle_total": { + "selection": 0.5936773054437888, + "rebase": 0.0, + "source_feature_transport": 0.21410737488548776, + "fisher": 2.0323118854911603e-06, + "fit": 0.13999522467249995, + "materialize_save_layer": 0.03254652212184221, + "metadata_write": 2.3113144804913198e-05, + "teacher_snapshot": 0.007438126058274124, + "cycle_cleanup": 0.012166944211226525 + } + }, + "fisher_computed": false, + "fit": false, + "nofit_merge_control": { + "cycle": 1, + "anchor": 12, + "removed_original_layer": 13, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.1270451660560696, + 2.123763872529156, + 2.5495269349077487, + 2.6668278419949014, + 2.6221918114453913, + 2.834988518027483, + 2.8922729066492625, + 3.1908798982034323, + 3.194260294621024, + 3.159925893688281, + 2.912077546379141, + 2.523976484946916, + 2.0873363367429096, + 2.0307487480485555, + 2.0998309783853064, + 1.892793019265785, + 1.2323749979709726, + 1.1554985550276557, + 1.6361373095610952, + 1.5091229131714066, + 1.5332473219580085, + 1.7281610575128585, + 1.3395909707398532, + 1.1117591517605714 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.2131003982189865, + 2.2530984101947746, + 2.675500859881959, + 2.703823042992612, + 2.690730038643846, + 2.8137952658155116, + 2.8884770056591518, + 3.2706936679338376, + 3.2906151212592096, + 3.2819402041940564, + 3.10814926185079, + 2.5581890670837786, + 2.1575961176050846, + 2.1510365414378714, + 2.1949098319479874, + 2.0618927253539225, + 1.304162272554706, + 1.298578647251505, + 1.7157864919666488, + 1.60382209502527, + 1.6471070913050834, + 1.7565851227256437, + 1.5055403784604025, + 1.1287707704578307 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.231263403712327, + 2.2666584628306836, + 2.6942629359080232, + 2.8362033602916394, + 2.7609862401099754, + 3.01987908296117, + 3.052706992464676, + 3.3402565009815977, + 3.354916682310258, + 3.3778728078973383, + 3.117534765825235, + 2.3605599508840873, + 2.0530017235362035, + 2.0464924855917928, + 2.112078320349174, + 1.8608378912090402, + 1.2222872380310943, + 1.2990359054560536, + 1.673049857398633, + 1.6102657441285892, + 1.615535355400224, + 1.7438885901750216, + 1.4002416452003645, + 1.0359435013629148 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.4754890920822006, + 2.578027319204853, + 3.1032077688738497, + 2.9481085803956644, + 2.6440814623259006, + 2.930383945514166, + 3.020408932198757, + 3.560716317835037, + 3.5253675227014254, + 3.3890395839546086, + 3.2714541505007237, + 2.3458471378368295, + 2.090218003239939, + 2.0603663956246576, + 2.1358882822000393, + 1.9515888171905973, + 1.4314242801348327, + 1.3835735513343532, + 1.5841428896011802, + 1.4892682420200092, + 1.5286444381812188, + 1.5582897635109576, + 1.136664371553417, + 1.113444495136599 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.436236285632656, + 2.5103800559910563, + 2.7799342846631823, + 2.6454465346815654, + 2.4008707407895544, + 2.6045912965021834, + 2.7572475578105533, + 3.1075674387788346, + 3.0187641528373192, + 2.8916450158880838, + 2.7353755027323556, + 2.070496971034631, + 1.8499864901659524, + 1.7444053887034863, + 1.7484197990566548, + 1.589818660061575, + 1.3091561219894234, + 1.191334047404436, + 1.4508408959134182, + 1.1566996057657548, + 1.171462292143678, + 1.24736435725554, + 1.0223291937084347, + 0.8438147443122362 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.591952971515432, + 2.6148843051988284, + 2.635361446836386, + 2.581586077135584, + 2.2621838262308804, + 2.4610620454880707, + 2.593166820601701, + 3.1238474120843027, + 3.0225458840286183, + 2.8286014437366647, + 2.81360019494018, + 1.9648777720598098, + 1.7113170686458719, + 1.7348233738764618, + 1.7825813590297923, + 1.5780584111304434, + 1.319108936095601, + 1.1332158798596677, + 1.44417706110947, + 1.136060795426327, + 1.221935386199036, + 1.2441307123037417, + 0.9901598805204426, + 0.8898267459937319 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.504860460453064, + 2.568734554515605, + 2.6819835542753556, + 2.734831292277967, + 2.4530946907141895, + 2.7327092194610363, + 2.8604565636035595, + 3.10673088694393, + 3.0088528678598365, + 2.855045555994516, + 2.7735568188266715, + 2.0256522516265836, + 1.7736696204303577, + 1.7267598432304099, + 1.7597922527112062, + 1.5573512506146105, + 1.3751644232244615, + 1.1406914317382841, + 1.390200478907952, + 1.0609191028795646, + 1.0695992398101668, + 1.187599709357724, + 0.9375080848315025, + 0.7551864080202297 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.4652884154964454, + 2.534327021750114, + 2.7234145076017615, + 2.7988422968971665, + 2.471174104089814, + 2.714886851558257, + 2.82319168264932, + 3.0040540789351615, + 2.9534004040767345, + 2.8686699322608753, + 2.752557301374667, + 2.0178333002565143, + 1.7759254655381718, + 1.7217262173657801, + 1.8523563991835827, + 1.6699879274275604, + 1.3662172137722333, + 1.2325254530790066, + 1.4191672404161844, + 1.1918953027631722, + 1.1546802433586727, + 1.2033217938745673, + 0.9138262687037109, + 0.7052304296020949 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.4854204405615006, + 2.5878280803110947, + 2.6827638953379696, + 2.6541354293737043, + 2.3930603475420975, + 2.6117427788570504, + 2.7367951859240778, + 3.1685772218311237, + 3.113798318328056, + 3.0688203719999856, + 2.971525229218135, + 2.209860302272856, + 1.9447425204453042, + 1.9234415921525554, + 2.093195415594123, + 1.8724290092661566, + 1.4900325603011977, + 1.3001835116335378, + 1.5592172331169845, + 1.2145378770702984, + 1.1467017054235111, + 1.248574489756711, + 0.9425908831706167, + 0.7640825875680176 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.3957430156365436, + 2.346307736720229, + 3.0097909909981135, + 2.79097772259688, + 2.4874002952301013, + 2.800233877794583, + 2.9486201492645456, + 3.3027540605970587, + 3.41031292280659, + 3.2639903476705556, + 3.018405282935397, + 2.3247200818328064, + 2.2747786419694793, + 2.2428956838232703, + 2.3772280583008896, + 2.227864740690477, + 1.5007847392800722, + 1.5503786607476264, + 1.660553322673839, + 1.3296147487820291, + 1.1649642179648472, + 1.2612006275214989, + 1.0622536237436497, + 0.8544718879638702 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 2.569679991154589, + 2.599006005362874, + 3.237590288221056, + 3.1502304389279705, + 2.7435218170320503, + 2.981124959584841, + 3.1731055968114874, + 3.841397196933097, + 3.9020807158797677, + 3.7060111050136464, + 3.478674621342708, + 2.617055016379998, + 2.4802945545754356, + 2.455495559655865, + 2.5664242821133914, + 2.4153810911774087, + 1.5245945445968723, + 1.5562138253708768, + 1.772382492022484, + 1.336536220805509, + 1.281205508859415, + 1.363892335502077, + 1.1615312519352017, + 0.8855618120504487 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 2.8271867664678747, + 2.842787479534727, + 3.1018961257640028, + 2.886462431760435, + 2.574896707529257, + 2.8430770723248315, + 2.9893657460578913, + 3.221700471547909, + 3.14967735712804, + 3.0070693689280477, + 2.942042115189412, + 2.236018557634299, + 1.9096403639282222, + 1.894450005912043, + 1.9956909807298007, + 1.882030084002398, + 1.510034002772697, + 1.3646436341642285, + 1.469793602065526, + 1.0555553471965182, + 1.02459243850127, + 1.1259213821097562, + 0.8984627746701634, + 0.6386254602456857 + ], + [ + 2.1270451660560696, + 2.2131003982189865, + 2.231263403712327, + 2.4754890920822006, + 2.436236285632656, + 2.591952971515432, + 2.504860460453064, + 2.4652884154964454, + 2.4854204405615006, + 2.3957430156365436, + 2.569679991154589, + 2.8271867664678747, + 3.812662698820945, + 3.3317575935949395, + 2.7854088126972494, + 2.7615157562158426, + 2.422851666536677, + 2.7373545269883564, + 2.8309107242350593, + 3.0535498438417137, + 2.9367829092428543, + 2.6685166631884876, + 2.6520392846282053, + 1.9685974830136408, + 1.8681834228049579, + 1.7839248116400461, + 1.8781519144317937, + 1.7180747899053552, + 1.3595250426795165, + 1.109927072692434, + 1.4736389690920333, + 1.0685055488155717, + 1.2063414335419105, + 1.3015396915833224, + 0.904167556149851, + 0.7549288394598197 + ], + [ + 2.123763872529156, + 2.2530984101947746, + 2.2666584628306836, + 2.578027319204853, + 2.5103800559910563, + 2.6148843051988284, + 2.568734554515605, + 2.534327021750114, + 2.5878280803110947, + 2.346307736720229, + 2.599006005362874, + 2.842787479534727, + 3.3317575935949395, + 3.820309516352677, + 2.9089456403116065, + 2.745087587093582, + 2.332153750959724, + 2.6392703125198462, + 2.84303451320742, + 2.982284077904956, + 2.9236149278173764, + 2.7356631706281522, + 2.65969439557133, + 1.9843613574928805, + 1.7907001379566398, + 1.7458862097114825, + 1.8945015653272739, + 1.7103414645756603, + 1.3630988201827707, + 1.071663527313717, + 1.4474214720038143, + 1.0212893666103973, + 1.1848339437301723, + 1.3001179677088908, + 0.9317517594130832, + 0.7222333629736347 + ], + [ + 2.5495269349077487, + 2.675500859881959, + 2.6942629359080232, + 3.1032077688738497, + 2.7799342846631823, + 2.635361446836386, + 2.6819835542753556, + 2.7234145076017615, + 2.6827638953379696, + 3.0097909909981135, + 3.237590288221056, + 3.1018961257640028, + 2.7854088126972494, + 2.9089456403116065, + 4.299089970353988, + 3.555337725787184, + 3.0189490111514776, + 3.3758214881702364, + 3.6521199992994533, + 3.6242033317546523, + 3.4609330485657717, + 3.2293454711282283, + 3.066163494055312, + 2.338396692958152, + 1.9698097818410572, + 1.9747344102650393, + 2.1356250367138543, + 1.998144858099896, + 1.3531717996896562, + 1.3684876354505549, + 1.4818454656250617, + 1.1173410045239887, + 1.0986568017878269, + 1.2271336502542167, + 0.9765235734909726, + 0.823735656853221 + ], + [ + 2.6668278419949014, + 2.703823042992612, + 2.8362033602916394, + 2.9481085803956644, + 2.6454465346815654, + 2.581586077135584, + 2.734831292277967, + 2.7988422968971665, + 2.6541354293737043, + 2.79097772259688, + 3.1502304389279705, + 2.886462431760435, + 2.7615157562158426, + 2.745087587093582, + 3.555337725787184, + 4.680683056201329, + 3.634424687619012, + 4.017699316478667, + 4.237325197746933, + 3.8260586299648, + 3.572258634318387, + 3.289965018455628, + 3.0578325218372906, + 2.2774128673287604, + 1.8826561996613425, + 1.8329116355557453, + 1.9767043841942658, + 1.7938335301543111, + 1.1202710089578178, + 1.0779874250819925, + 1.4483150615256646, + 1.0244594629381738, + 1.0083103829397622, + 1.1497672697130805, + 1.0429375634752587, + 0.7917520234147246 + ], + [ + 2.6221918114453913, + 2.690730038643846, + 2.7609862401099754, + 2.6440814623259006, + 2.4008707407895544, + 2.2621838262308804, + 2.4530946907141895, + 2.471174104089814, + 2.3930603475420975, + 2.4874002952301013, + 2.7435218170320503, + 2.574896707529257, + 2.422851666536677, + 2.332153750959724, + 3.0189490111514776, + 3.634424687619012, + 4.740015546406883, + 4.315260850600788, + 4.178945386391538, + 3.4452308159673795, + 3.1587445477918776, + 3.066248299474256, + 2.799566604400168, + 2.126109355154, + 1.7994761155933356, + 1.76769182410245, + 1.9011178318696713, + 1.7155540443356807, + 1.0377847871488473, + 1.0386909473614994, + 1.3325120317894406, + 0.9270411026490498, + 0.9735937351493019, + 1.051323225227053, + 0.9274629459107973, + 0.8050472328146363 + ], + [ + 2.834988518027483, + 2.8137952658155116, + 3.01987908296117, + 2.930383945514166, + 2.6045912965021834, + 2.4610620454880707, + 2.7327092194610363, + 2.714886851558257, + 2.6117427788570504, + 2.800233877794583, + 2.981124959584841, + 2.8430770723248315, + 2.7373545269883564, + 2.6392703125198462, + 3.3758214881702364, + 4.017699316478667, + 4.315260850600788, + 5.089181110259708, + 4.395720051977264, + 3.9466677429945762, + 3.685489464039797, + 3.4160448924461644, + 3.144376944651456, + 2.2645010089046105, + 1.9069030680970513, + 1.945614248302221, + 2.123865029931966, + 1.8888565249498932, + 1.1831778281069016, + 1.1847292700448848, + 1.5374256594893978, + 1.0225168675451546, + 1.0546030102052792, + 1.1773312843618118, + 1.123006785741699, + 0.8933998967343877 + ], + [ + 2.8922729066492625, + 2.8884770056591518, + 3.052706992464676, + 3.020408932198757, + 2.7572475578105533, + 2.593166820601701, + 2.8604565636035595, + 2.82319168264932, + 2.7367951859240778, + 2.9486201492645456, + 3.1731055968114874, + 2.9893657460578913, + 2.8309107242350593, + 2.84303451320742, + 3.6521199992994533, + 4.237325197746933, + 4.178945386391538, + 4.395720051977264, + 5.319154540321637, + 4.052051607029074, + 3.8306071485782707, + 3.5685676882579465, + 3.276844739099829, + 2.4709875714234957, + 2.1339012986892016, + 2.0916400142412415, + 2.226806251908289, + 1.9767909808759936, + 1.2272325597741451, + 1.1867531036630428, + 1.5073684679316288, + 1.0384951745881563, + 1.0951948706669947, + 1.2690089823478756, + 1.1369923869760008, + 0.9382665428863548 + ], + [ + 3.1908798982034323, + 3.2706936679338376, + 3.3402565009815977, + 3.560716317835037, + 3.1075674387788346, + 3.1238474120843027, + 3.10673088694393, + 3.0040540789351615, + 3.1685772218311237, + 3.3027540605970587, + 3.841397196933097, + 3.221700471547909, + 3.0535498438417137, + 2.982284077904956, + 3.6242033317546523, + 3.8260586299648, + 3.4452308159673795, + 3.9466677429945762, + 4.052051607029074, + 6.030635074506439, + 5.373502658488682, + 4.755588196311479, + 4.408340928265699, + 3.050002737161297, + 2.644663285812439, + 2.6301439885930145, + 2.794433815754178, + 2.5324938042856595, + 1.4739363755906232, + 1.4969524529010731, + 1.9021793608885131, + 1.5687080015982926, + 1.591871074645982, + 1.7837800559201187, + 1.4003555719327998, + 1.1380685685295455 + ], + [ + 3.194260294621024, + 3.2906151212592096, + 3.354916682310258, + 3.5253675227014254, + 3.0187641528373192, + 3.0225458840286183, + 3.0088528678598365, + 2.9534004040767345, + 3.113798318328056, + 3.41031292280659, + 3.9020807158797677, + 3.14967735712804, + 2.9367829092428543, + 2.9236149278173764, + 3.4609330485657717, + 3.572258634318387, + 3.1587445477918776, + 3.685489464039797, + 3.8306071485782707, + 5.373502658488682, + 5.726666773834767, + 4.96736011980298, + 4.416268076825157, + 3.202751350198948, + 2.6629691513453335, + 2.633247512593971, + 2.849688956453912, + 2.6332479164292724, + 1.5520623665562931, + 1.5647521351445735, + 2.0151679796236945, + 1.637924594419455, + 1.6600001002475147, + 1.8301299727996319, + 1.5173834431377982, + 1.1612451274153273 + ], + [ + 3.159925893688281, + 3.2819402041940564, + 3.3778728078973383, + 3.3890395839546086, + 2.8916450158880838, + 2.8286014437366647, + 2.855045555994516, + 2.8686699322608753, + 3.0688203719999856, + 3.2639903476705556, + 3.7060111050136464, + 3.0070693689280477, + 2.6685166631884876, + 2.7356631706281522, + 3.2293454711282283, + 3.289965018455628, + 3.066248299474256, + 3.4160448924461644, + 3.5685676882579465, + 4.755588196311479, + 4.96736011980298, + 5.35957793692388, + 4.468271377289655, + 3.343998967982652, + 2.6949635180701157, + 2.6687372186202025, + 2.9974498650199415, + 2.7413713745662864, + 1.583505273708417, + 1.606412603619795, + 2.062098628619096, + 1.6256028754238172, + 1.691747980153108, + 1.8299986034983793, + 1.586524868721254, + 1.0931487294174285 + ], + [ + 2.912077546379141, + 3.10814926185079, + 3.117534765825235, + 3.2714541505007237, + 2.7353755027323556, + 2.81360019494018, + 2.7735568188266715, + 2.752557301374667, + 2.971525229218135, + 3.018405282935397, + 3.478674621342708, + 2.942042115189412, + 2.6520392846282053, + 2.65969439557133, + 3.066163494055312, + 3.0578325218372906, + 2.799566604400168, + 3.144376944651456, + 3.276844739099829, + 4.408340928265699, + 4.416268076825157, + 4.468271377289655, + 5.059169100508454, + 3.394973583036432, + 2.776881384690432, + 2.760579633927592, + 3.072933245631255, + 2.8978196974938184, + 1.6646218190648874, + 1.733708713824975, + 2.028918100495332, + 1.6121655299217434, + 1.6257168975324168, + 1.7069000145703237, + 1.4325747824851467, + 1.0856925424560175 + ], + [ + 2.523976484946916, + 2.5581890670837786, + 2.3605599508840873, + 2.3458471378368295, + 2.070496971034631, + 1.9648777720598098, + 2.0256522516265836, + 2.0178333002565143, + 2.209860302272856, + 2.3247200818328064, + 2.617055016379998, + 2.236018557634299, + 1.9685974830136408, + 1.9843613574928805, + 2.338396692958152, + 2.2774128673287604, + 2.126109355154, + 2.2645010089046105, + 2.4709875714234957, + 3.050002737161297, + 3.202751350198948, + 3.343998967982652, + 3.394973583036432, + 4.519650309030202, + 2.767460765583157, + 2.714201424788431, + 2.853602737959896, + 2.813461087616291, + 1.6177386809214458, + 1.7443011079882076, + 2.1112523664163225, + 1.5795890644547845, + 1.6022995313259423, + 1.6776882004405225, + 1.6051943377379274, + 1.244378162917985 + ], + [ + 2.0873363367429096, + 2.1575961176050846, + 2.0530017235362035, + 2.090218003239939, + 1.8499864901659524, + 1.7113170686458719, + 1.7736696204303577, + 1.7759254655381718, + 1.9447425204453042, + 2.2747786419694793, + 2.4802945545754356, + 1.9096403639282222, + 1.8681834228049579, + 1.7907001379566398, + 1.9698097818410572, + 1.8826561996613425, + 1.7994761155933356, + 1.9069030680970513, + 2.1339012986892016, + 2.644663285812439, + 2.6629691513453335, + 2.6949635180701157, + 2.776881384690432, + 2.767460765583157, + 4.917050310486877, + 4.257039906395875, + 3.808692126270025, + 3.6763714070197575, + 2.0270791978126397, + 2.0835602545828813, + 2.8833400474341744, + 2.109980179044883, + 2.0576259801507772, + 2.1149094396230472, + 1.9000257895227817, + 1.5446542938469605 + ], + [ + 2.0307487480485555, + 2.1510365414378714, + 2.0464924855917928, + 2.0603663956246576, + 1.7444053887034863, + 1.7348233738764618, + 1.7267598432304099, + 1.7217262173657801, + 1.9234415921525554, + 2.2428956838232703, + 2.455495559655865, + 1.894450005912043, + 1.7839248116400461, + 1.7458862097114825, + 1.9747344102650393, + 1.8329116355557453, + 1.76769182410245, + 1.945614248302221, + 2.0916400142412415, + 2.6301439885930145, + 2.633247512593971, + 2.6687372186202025, + 2.760579633927592, + 2.714201424788431, + 4.257039906395875, + 5.145821066016456, + 4.269952168985326, + 4.0402431070688225, + 2.071389038763347, + 2.2046695849784044, + 2.9189082408208096, + 2.0337904556153292, + 1.8822223322468716, + 1.9731293435572848, + 1.7448665882850762, + 1.5753702246930679 + ], + [ + 2.0998309783853064, + 2.1949098319479874, + 2.112078320349174, + 2.1358882822000393, + 1.7484197990566548, + 1.7825813590297923, + 1.7597922527112062, + 1.8523563991835827, + 2.093195415594123, + 2.3772280583008896, + 2.5664242821133914, + 1.9956909807298007, + 1.8781519144317937, + 1.8945015653272739, + 2.1356250367138543, + 1.9767043841942658, + 1.9011178318696713, + 2.123865029931966, + 2.226806251908289, + 2.794433815754178, + 2.849688956453912, + 2.9974498650199415, + 3.072933245631255, + 2.853602737959896, + 3.808692126270025, + 4.269952168985326, + 5.9621803984756845, + 5.165936836613327, + 2.455912849698523, + 2.5237440753841174, + 3.328105075432791, + 2.0347596378619204, + 1.8651393002716692, + 1.911799190288745, + 1.868220183274588, + 1.3776230572762422 + ], + [ + 1.892793019265785, + 2.0618927253539225, + 1.8608378912090402, + 1.9515888171905973, + 1.589818660061575, + 1.5780584111304434, + 1.5573512506146105, + 1.6699879274275604, + 1.8724290092661566, + 2.227864740690477, + 2.4153810911774087, + 1.882030084002398, + 1.7180747899053552, + 1.7103414645756603, + 1.998144858099896, + 1.7938335301543111, + 1.7155540443356807, + 1.8888565249498932, + 1.9767909808759936, + 2.5324938042856595, + 2.6332479164292724, + 2.7413713745662864, + 2.8978196974938184, + 2.813461087616291, + 3.6763714070197575, + 4.0402431070688225, + 5.165936836613327, + 6.309418142054022, + 3.0193832756733054, + 3.0621250194592022, + 3.598081796083498, + 2.2567753795679257, + 2.043817132990763, + 2.063481427913692, + 2.163622684029622, + 1.4320223943077788 + ], + [ + 1.2323749979709726, + 1.304162272554706, + 1.2222872380310943, + 1.4314242801348327, + 1.3091561219894234, + 1.319108936095601, + 1.3751644232244615, + 1.3662172137722333, + 1.4900325603011977, + 1.5007847392800722, + 1.5245945445968723, + 1.510034002772697, + 1.3595250426795165, + 1.3630988201827707, + 1.3531717996896562, + 1.1202710089578178, + 1.0377847871488473, + 1.1831778281069016, + 1.2272325597741451, + 1.4739363755906232, + 1.5520623665562931, + 1.583505273708417, + 1.6646218190648874, + 1.6177386809214458, + 2.0270791978126397, + 2.071389038763347, + 2.455912849698523, + 3.0193832756733054, + 3.77697405977638, + 2.8294279817413215, + 2.8524728806662822, + 1.6707738199074762, + 1.3393016397835837, + 1.364261236123678, + 1.5765481852550356, + 1.0714798764931923 + ], + [ + 1.1554985550276557, + 1.298578647251505, + 1.2990359054560536, + 1.3835735513343532, + 1.191334047404436, + 1.1332158798596677, + 1.1406914317382841, + 1.2325254530790066, + 1.3001835116335378, + 1.5503786607476264, + 1.5562138253708768, + 1.3646436341642285, + 1.109927072692434, + 1.071663527313717, + 1.3684876354505549, + 1.0779874250819925, + 1.0386909473614994, + 1.1847292700448848, + 1.1867531036630428, + 1.4969524529010731, + 1.5647521351445735, + 1.606412603619795, + 1.733708713824975, + 1.7443011079882076, + 2.0835602545828813, + 2.2046695849784044, + 2.5237440753841174, + 3.0621250194592022, + 2.8294279817413215, + 4.500137042933295, + 3.4219012148108106, + 2.0937251200589717, + 1.652030631015508, + 1.8073432962068121, + 2.111049974866841, + 1.1599114377986668 + ], + [ + 1.6361373095610952, + 1.7157864919666488, + 1.673049857398633, + 1.5841428896011802, + 1.4508408959134182, + 1.44417706110947, + 1.390200478907952, + 1.4191672404161844, + 1.5592172331169845, + 1.660553322673839, + 1.772382492022484, + 1.469793602065526, + 1.4736389690920333, + 1.4474214720038143, + 1.4818454656250617, + 1.4483150615256646, + 1.3325120317894406, + 1.5374256594893978, + 1.5073684679316288, + 1.9021793608885131, + 2.0151679796236945, + 2.062098628619096, + 2.028918100495332, + 2.1112523664163225, + 2.8833400474341744, + 2.9189082408208096, + 3.328105075432791, + 3.598081796083498, + 2.8524728806662822, + 3.4219012148108106, + 5.785907291934449, + 3.2127957440854464, + 2.7940517453804774, + 2.7458259888984244, + 2.7534611138880143, + 1.5348024556330402 + ], + [ + 1.5091229131714066, + 1.60382209502527, + 1.6102657441285892, + 1.4892682420200092, + 1.1566996057657548, + 1.136060795426327, + 1.0609191028795646, + 1.1918953027631722, + 1.2145378770702984, + 1.3296147487820291, + 1.336536220805509, + 1.0555553471965182, + 1.0685055488155717, + 1.0212893666103973, + 1.1173410045239887, + 1.0244594629381738, + 0.9270411026490498, + 1.0225168675451546, + 1.0384951745881563, + 1.5687080015982926, + 1.637924594419455, + 1.6256028754238172, + 1.6121655299217434, + 1.5795890644547845, + 2.109980179044883, + 2.0337904556153292, + 2.0347596378619204, + 2.2567753795679257, + 1.6707738199074762, + 2.0937251200589717, + 3.2127957440854464, + 4.02263959453308, + 3.2610240487371422, + 2.970380141454948, + 2.47774614498879, + 1.4732632701207096 + ], + [ + 1.5332473219580085, + 1.6471070913050834, + 1.615535355400224, + 1.5286444381812188, + 1.171462292143678, + 1.221935386199036, + 1.0695992398101668, + 1.1546802433586727, + 1.1467017054235111, + 1.1649642179648472, + 1.281205508859415, + 1.02459243850127, + 1.2063414335419105, + 1.1848339437301723, + 1.0986568017878269, + 1.0083103829397622, + 0.9735937351493019, + 1.0546030102052792, + 1.0951948706669947, + 1.591871074645982, + 1.6600001002475147, + 1.691747980153108, + 1.6257168975324168, + 1.6022995313259423, + 2.0576259801507772, + 1.8822223322468716, + 1.8651393002716692, + 2.043817132990763, + 1.3393016397835837, + 1.652030631015508, + 2.7940517453804774, + 3.2610240487371422, + 4.039080580257261, + 3.33137090395557, + 2.6108808565558577, + 1.6172904504047905 + ], + [ + 1.7281610575128585, + 1.7565851227256437, + 1.7438885901750216, + 1.5582897635109576, + 1.24736435725554, + 1.2441307123037417, + 1.187599709357724, + 1.2033217938745673, + 1.248574489756711, + 1.2612006275214989, + 1.363892335502077, + 1.1259213821097562, + 1.3015396915833224, + 1.3001179677088908, + 1.2271336502542167, + 1.1497672697130805, + 1.051323225227053, + 1.1773312843618118, + 1.2690089823478756, + 1.7837800559201187, + 1.8301299727996319, + 1.8299986034983793, + 1.7069000145703237, + 1.6776882004405225, + 2.1149094396230472, + 1.9731293435572848, + 1.911799190288745, + 2.063481427913692, + 1.364261236123678, + 1.8073432962068121, + 2.7458259888984244, + 2.970380141454948, + 3.33137090395557, + 4.089278489112553, + 2.9295552577623636, + 1.76472528852034 + ], + [ + 1.3395909707398532, + 1.5055403784604025, + 1.4002416452003645, + 1.136664371553417, + 1.0223291937084347, + 0.9901598805204426, + 0.9375080848315025, + 0.9138262687037109, + 0.9425908831706167, + 1.0622536237436497, + 1.1615312519352017, + 0.8984627746701634, + 0.904167556149851, + 0.9317517594130832, + 0.9765235734909726, + 1.0429375634752587, + 0.9274629459107973, + 1.123006785741699, + 1.1369923869760008, + 1.4003555719327998, + 1.5173834431377982, + 1.586524868721254, + 1.4325747824851467, + 1.6051943377379274, + 1.9000257895227817, + 1.7448665882850762, + 1.868220183274588, + 2.163622684029622, + 1.5765481852550356, + 2.111049974866841, + 2.7534611138880143, + 2.47774614498879, + 2.6108808565558577, + 2.9295552577623636, + 5.723673633440012, + 2.586185417698912 + ], + [ + 1.1117591517605714, + 1.1287707704578307, + 1.0359435013629148, + 1.113444495136599, + 0.8438147443122362, + 0.8898267459937319, + 0.7551864080202297, + 0.7052304296020949, + 0.7640825875680176, + 0.8544718879638702, + 0.8855618120504487, + 0.6386254602456857, + 0.7549288394598197, + 0.7222333629736347, + 0.823735656853221, + 0.7917520234147246, + 0.8050472328146363, + 0.8933998967343877, + 0.9382665428863548, + 1.1380685685295455, + 1.1612451274153273, + 1.0931487294174285, + 1.0856925424560175, + 1.244378162917985, + 1.5446542938469605, + 1.5753702246930679, + 1.3776230572762422, + 1.4320223943077788, + 1.0714798764931923, + 1.1599114377986668, + 1.5348024556330402, + 1.4732632701207096, + 1.6172904504047905, + 1.76472528852034, + 2.586185417698912, + 4.535905116906884 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.4111329371397993, + -0.4107944627584447, + -0.3709441682662928, + -0.3712205684433753, + -0.35343240767287604, + -0.34152432382624814, + -0.3419198421173894, + -0.29014772631424307, + -0.30516631069564987, + -0.3379388936772931, + -0.3444230911381742, + -0.36868789800176577, + -0.3288747242250069, + -0.32431136462076376, + -0.3155910759382881, + -0.2847631125505851, + -0.39761539021067777, + -0.3664402491496291, + -0.2790347772653468, + -0.3643296960015641, + -0.3665443480384761, + -0.3650034614104159, + -0.33289112571954477, + -0.3505767320899869 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6223093790055023, + "transport_matrix_sha256": "ea43767088fa2f8cc0b7ba197024635f7b8a7e19fdd34170b499f470c2461672", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.060115993022919e-05, + "gram_mean_diagonal": 0.06060115993022919, + "calibration_nmse": 0.12798181447783583, + "calibration_cosine": 0.9338195359584089, + "calibration_norm_ratio": 0.9329591782339236, + "transport_relative_identity_distance": 0.4961368441581726, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "67540e2474547f1d622b738128696574720591fddabb8157d2f6812ecc3af308", + "self_attn.k_proj.weight": "efbe8b71b99ef90277849155ebc45e9aad5ffe746f2958c077c7c7130d783c7b", + "self_attn.v_proj.weight": "c53545e1ac9a6447efa83242434a0b28bcda5fe12ef3866e173dd13c3da45e38", + "self_attn.o_proj.weight": "8812afef76626e47fb5dffe3a77a0cb07a07e8a7f5cf3a97453368a1284b0ffa", + "self_attn.q_norm.weight": "79bbb659cb1c2af322ca85abf7d26b088c837bcd284e70efa95a6449f69b5673", + "self_attn.k_norm.weight": "e50a57833625792c16439de078eeb810df393e1a49ef7bbe43f5af6a93923adc", + "mlp.gate_proj.weight": "6bc0a4412e6639d40e3a7d5c9099a5a05f2573bd12744019550fc11da2c52c55", + "mlp.up_proj.weight": "8715dd4fa81b5d58a577a1b2fdfb24592b23775921014b36f832fe8dbf2bbf51", + "mlp.down_proj.weight": "032dc5aba56bd954e7498918ca13b8589c12587c97ad88560480e8d28c18883b", + "input_layernorm.weight": "c419d161cc4932ecddf0ec98cbe5737b92688f0d5aa71a7e95d2006ca824ffca", + "post_attention_layernorm.weight": "ee6a9a96c2b4f35eb0807060229f10bc28080072ed9ecfa0a17e1aaa3cb4df40" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "67540e2474547f1d622b738128696574720591fddabb8157d2f6812ecc3af308", + "self_attn.k_proj.weight": "efbe8b71b99ef90277849155ebc45e9aad5ffe746f2958c077c7c7130d783c7b", + "self_attn.v_proj.weight": "c53545e1ac9a6447efa83242434a0b28bcda5fe12ef3866e173dd13c3da45e38", + "self_attn.o_proj.weight": "8812afef76626e47fb5dffe3a77a0cb07a07e8a7f5cf3a97453368a1284b0ffa", + "self_attn.q_norm.weight": "79bbb659cb1c2af322ca85abf7d26b088c837bcd284e70efa95a6449f69b5673", + "self_attn.k_norm.weight": "e50a57833625792c16439de078eeb810df393e1a49ef7bbe43f5af6a93923adc", + "mlp.gate_proj.weight": "655a66345118a70ec952e549407ec7f19222782a04bf0db39c5ee8372372a2bf", + "mlp.up_proj.weight": "cb86cdbce20a724154f50658e0c2cfc3ec3d63e3802388217035698470825d82", + "mlp.down_proj.weight": "032dc5aba56bd954e7498918ca13b8589c12587c97ad88560480e8d28c18883b", + "input_layernorm.weight": "c419d161cc4932ecddf0ec98cbe5737b92688f0d5aa71a7e95d2006ca824ffca", + "post_attention_layernorm.weight": "ee6a9a96c2b4f35eb0807060229f10bc28080072ed9ecfa0a17e1aaa3cb4df40" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6223093790055023, + "lambda_right": 0.3776906209944977, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "7a34a8a9bcc1a25c928397e3be5c409081b9de0ec283d13425482c0020e6db43", + "mlp.up_proj.weight": "1f3dacc4c4a3af2a55d6273cfc2374077a2eda18cec7cf8237e05c54cc1b8ea5", + "mlp.gate_proj.weight": "3e138d6d890dfaeeeb88ae9b8a48c084aea69752230749e87f1586b975880ddd", + "self_attn.k_proj.weight": "8d6f656be7538039543561a8c96dca260b3db7bdcb26946d9dca9a10101bb58f", + "self_attn.o_proj.weight": "e3c5cc19864068b28a406400c10d2704664356085511c7e44b587a1eab278d92", + "self_attn.q_proj.weight": "1b6c758076acef0ff0bbf34e9ee7be3808252f432a10b0015a99b07a232ddf79", + "self_attn.v_proj.weight": "ae85148c6da3808090619c005e94364db614bdec475df91ba4e312cb026fa377" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "67540e2474547f1d622b738128696574720591fddabb8157d2f6812ecc3af308", + "self_attn.k_proj.weight": "efbe8b71b99ef90277849155ebc45e9aad5ffe746f2958c077c7c7130d783c7b", + "self_attn.v_proj.weight": "c53545e1ac9a6447efa83242434a0b28bcda5fe12ef3866e173dd13c3da45e38", + "self_attn.o_proj.weight": "8812afef76626e47fb5dffe3a77a0cb07a07e8a7f5cf3a97453368a1284b0ffa", + "self_attn.q_norm.weight": "79bbb659cb1c2af322ca85abf7d26b088c837bcd284e70efa95a6449f69b5673", + "self_attn.k_norm.weight": "e50a57833625792c16439de078eeb810df393e1a49ef7bbe43f5af6a93923adc", + "mlp.gate_proj.weight": "655a66345118a70ec952e549407ec7f19222782a04bf0db39c5ee8372372a2bf", + "mlp.up_proj.weight": "cb86cdbce20a724154f50658e0c2cfc3ec3d63e3802388217035698470825d82", + "mlp.down_proj.weight": "032dc5aba56bd954e7498918ca13b8589c12587c97ad88560480e8d28c18883b", + "input_layernorm.weight": "c419d161cc4932ecddf0ec98cbe5737b92688f0d5aa71a7e95d2006ca824ffca", + "post_attention_layernorm.weight": "ee6a9a96c2b4f35eb0807060229f10bc28080072ed9ecfa0a17e1aaa3cb4df40" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "95732a59144d689baf46fef38c0b43ffe9d4c4663cf160e2494d6146957f00e5", + "mlp.up_proj.weight": "2bf9bc06f266d744623ff42d772eb1d8c29012ef0d46f116eae908dbb08a89b8", + "mlp.gate_proj.weight": "95e7d27498b2eec4f1d4b641f8a528c393e6abee78b172b6284f69920f385125", + "self_attn.k_proj.weight": "c09a39b4dfd4e9121fcca782d6b4aa9603af01e398239090034c492af0cd887a", + "self_attn.o_proj.weight": "e39994b63ebe97dbd6d6d5405206a1673f3d2151a262572b8aff783a32a918e0", + "self_attn.q_proj.weight": "fe50101d44f36f6e7161e07949c2bc6c3eb25830f053bdaf06efc1b1c94f5f0f", + "self_attn.v_proj.weight": "c31fbee7c61e87cfa00e10371fc6d7f72d85f7b22cfab7b3e4390fe26508d6c7" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_2/cycle_metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_2/cycle_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..99a642934ed7f6b81961a2e3b9c13116895e579b --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_2/cycle_metadata.json @@ -0,0 +1,1630 @@ +{ + "cycle": 2, + "layer_merged": 12, + "num_layers_before": 35, + "num_layers_after": 34, + "fused_layer_state": "fused_layer.pt", + "profile_no_save": false, + "dwce_score": null, + "dwce_scores": null, + "dwce_meta": { + "method": "mka", + "fisher_computed": false + }, + "fisher_num_batches": 0, + "merge_method": "fisher", + "merged_params": 7, + "num_sequences": 64, + "teacher_source": "previous_cycle", + "teacher_cycle": 1, + "eval": { + "datasets": [ + "wikitext2" + ], + "configs": [ + null + ], + "split": "test", + "num_samples": 0, + "seq_len": 1024, + "post_ppl": null, + "merge_only_ppl": null + }, + "comm": { + "enabled": false + }, + "distill": { + "enabled": false, + "method": "reparam", + "calib_samples": 256, + "inst_samples": 0, + "seq_len": 512, + "batch_size": 2, + "epochs": 1.0, + "lr": 0.0001, + "kl_weight": 0.01, + "kl_temp": 4.0, + "kl_chunk_size": 16384, + "hidden_mse_weight": 1.0, + "attn_mse_weight": 0.0, + "mlp_mse_weight": 0.0, + "reparam_eta": 0.01, + "reparam_gamma": 0.0001, + "reparam_attn_reg_scale": 1.0, + "reparam_mlp_reg_scale": 1.0, + "reparam_param_subset": "all", + "reparam_train_subset": "same", + "reparam_skip_train": false, + "reparam_stats": null, + "reparam_gate_summary": null, + "post_merge_nll_scale": null, + "merge_only_ppl": null, + "post_ppl": null, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "instruction_dataset": null, + "instruction_config": null, + "instruction_split": "train" + }, + "lora": { + "enabled": false, + "seq_len": 512, + "batch_size": 2, + "epochs": 0.0, + "rank": 8, + "alpha": 16.0, + "dropout": 0.0, + "target_modules": [ + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "gate_proj", + "down_proj", + "up_proj" + ], + "respect_exclude_pairs": false, + "kl_enabled": false, + "kl_weight": 0.1, + "kl_temp": 4.0, + "post_ppl": null, + "lr": 0.0001, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "log_steps": 100, + "eval_every": 0, + "eval_max_batches": null + }, + "norm_policy": "copy_n1_n2", + "source_feature_transport": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.053740531206131e-05, + "gram_mean_diagonal": 0.06053740531206131, + "calibration_nmse": 0.04398877978906868, + "calibration_cosine": 0.9777586792322014, + "calibration_norm_ratio": 0.9768561256506773, + "transport_relative_identity_distance": 0.3179902136325836, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "Transport then non-Fisher exact merge; no FiT" + }, + "same_anchor_contextual_fisher": { + "computed": false, + "anchor_candidate_mean_nll": 0.0, + "transported_source_candidate_mean_nll": 0.0 + }, + "full_model_saved": false, + "timing": { + "seconds": { + "selection": 10.60977139195893, + "rebase": 0.0, + "source_feature_transport": 4.084727006033063, + "fisher": 5.067000165581703e-05, + "fit": 2.631959224003367, + "materialize_save_layer": 0.6144130620523356, + "metadata_write": 0.00046380795538425446, + "teacher_snapshot": 0.5205864149611443, + "cycle_cleanup": 0.16279807302635163, + "cycle_total": 18.625629225978628 + }, + "tracked_component_total_seconds": 18.62476964999223, + "cycle_total_seconds": 18.625629225978628, + "ratios_of_tracked_components": { + "selection": 0.5696592006958515, + "rebase": 0.0, + "source_feature_transport": 0.21931691413078855, + "fisher": 2.7205706490892446e-06, + "fit": 0.1413149946799189, + "materialize_save_layer": 0.032989028782570304, + "metadata_write": 2.4902748549400067e-05, + "teacher_snapshot": 0.02795129414990437, + "cycle_cleanup": 0.00874094424176782 + }, + "ratios_of_cycle_total": { + "selection": 0.5696329108259413, + "rebase": 0.0, + "source_feature_transport": 0.21930679261754946, + "fisher": 2.7204450942867263e-06, + "fit": 0.1413084729686537, + "materialize_save_layer": 0.032987506333228486, + "metadata_write": 2.490159928327925e-05, + "teacher_snapshot": 0.02795000419288072, + "cycle_cleanup": 0.00874054084569043 + } + }, + "fisher_computed": false, + "fit": false, + "nofit_merge_control": { + "cycle": 2, + "anchor": 12, + "removed_original_layer": 14, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.3460994946178024, + 2.3766555685616604, + 2.1660702768334765, + 1.5995648153972046, + 1.9039105990240157, + 2.317596408258066, + 2.4985278926945913, + 2.982298868508639, + 3.0121955967210168, + 2.658900943392461, + 2.6819167225857217, + 1.8257508607136372, + 1.9600940822577222, + 1.942752629151272, + 1.5693947828989996, + 1.0847383761454246, + 1.1261161765414247, + 1.698877362568659, + 1.2977168776485808, + 1.38720492450309, + 1.618789649034315, + 1.3053316760921456, + 1.1954305709860293 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.4113981182591977, + 2.4675569894943536, + 2.298714721340813, + 1.7470257494011263, + 1.980820224200878, + 2.416840554055094, + 2.6634514723924316, + 3.1774466897177294, + 3.189373346017945, + 2.8542676187243288, + 2.7901272347159676, + 1.9672712275889204, + 2.1328748003870768, + 2.152445994717053, + 1.7911692129918657, + 1.2325445482031443, + 1.2631285020925673, + 1.7581771211883654, + 1.4384783593002088, + 1.5302211383233428, + 1.6762132401906602, + 1.359274805778048, + 1.1952136942582152 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.518743912446343, + 2.550517752403105, + 2.333388414197134, + 1.810508792699171, + 2.0927696450407915, + 2.5783728916242836, + 2.775002312076615, + 3.2180018233186876, + 3.208114868135302, + 2.8910813462180194, + 2.6292710101420793, + 1.838199475928631, + 2.022506929738739, + 2.052502367874252, + 1.674312408368456, + 1.2166799589893798, + 1.325752571119606, + 1.7593862788547172, + 1.4071038274179397, + 1.4836611609073158, + 1.6699298590429534, + 1.2841219933574295, + 1.1345407135904007 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8284108250107707, + 2.8025305723514524, + 2.705512594065184, + 1.8867730294010843, + 2.287658004675237, + 2.5342612031110927, + 3.0411743725308327, + 3.459349056558749, + 3.418956140049179, + 3.259012742426114, + 2.6626927390197457, + 1.8331363378434844, + 2.0692600706078177, + 2.115673819852997, + 1.8330868508301452, + 1.449871122737371, + 1.4028214683039892, + 1.6702474584361513, + 1.248358677127305, + 1.4629487713380784, + 1.625676489165812, + 1.0499808535281512, + 1.118907156949541 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.696297500079943, + 2.6157337902848683, + 2.6648191119907354, + 1.8072442034249283, + 1.9945555112575153, + 2.155748459440918, + 2.571767840802845, + 2.926626490337606, + 2.946148594808052, + 2.6964568132060998, + 2.382411859735795, + 1.7137303458493387, + 1.8332384289371035, + 1.6981471964375652, + 1.4045533553532168, + 1.264607154293088, + 1.2204256383875012, + 1.4608859107318808, + 1.0535669102034275, + 1.1873438732052684, + 1.296585461610222, + 1.0907751396531875, + 0.9159084508309889 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.900215317980636, + 2.8020830262800787, + 2.480106416161784, + 1.8293829176535925, + 1.9671036161357154, + 2.1773011379652676, + 2.5823157955417937, + 2.9780744394414573, + 2.958323405075513, + 2.7103747505128393, + 2.2859336524484744, + 1.617629996603677, + 1.7387832654395032, + 1.7172962306792858, + 1.4127422890478287, + 1.2912705583998834, + 1.1264407139617774, + 1.3763175593869776, + 1.0359683122525731, + 1.2434429029958154, + 1.2648755869143877, + 0.939970108571266, + 0.987916205768816 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.807871372942674, + 2.7136039715815876, + 2.6556364486873103, + 1.8486182491608716, + 2.049116199401574, + 2.257536760831622, + 2.577889247414705, + 2.982647228087871, + 2.940621961605023, + 2.697894071737526, + 2.2800404889826744, + 1.6614162319272257, + 1.7800837006233292, + 1.7535883439830895, + 1.4527796271154203, + 1.3186525203475008, + 1.1642342654370599, + 1.3691860876993445, + 1.0310357584105359, + 1.1373290404363625, + 1.1710359835589554, + 1.0251707889630164, + 0.8442449571524366 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.7914918032961755, + 2.689514636816605, + 2.703190952440022, + 1.8767695791261763, + 2.0744228063394057, + 2.341825986907151, + 2.5593784823460743, + 2.9645097654818593, + 2.951751515417861, + 2.7287867375880146, + 2.3354948850573956, + 1.6663292408322201, + 1.7643821848318193, + 1.8298677124686078, + 1.512606363347052, + 1.312913551365708, + 1.3017669793931275, + 1.4279954730907891, + 1.1212760449231889, + 1.211342343793892, + 1.2488870452955416, + 1.026809747826745, + 0.7825108866922259 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.8898641090986676, + 2.8141512967721916, + 2.6673011757981064, + 1.869378749682932, + 2.0413188469681254, + 2.27118444013681, + 2.583648182390222, + 3.0776429488510484, + 3.096111034766446, + 2.8967812344453105, + 2.5023700069301906, + 1.7064903934350013, + 1.9112113251235057, + 1.9997154467301224, + 1.7447859583043093, + 1.3924541448658543, + 1.300719860980909, + 1.4338985995408828, + 1.0956340355389615, + 1.1788973798687417, + 1.2275586824999118, + 0.9599318959325378, + 0.830027412952144 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.7412737970029655, + 2.7060795516629446, + 2.7174354198093655, + 1.7690816460663168, + 2.089357691057759, + 2.403294590875812, + 2.8206662760962704, + 3.2260576185135226, + 3.2403046618954736, + 3.005975438404832, + 2.5500565591739845, + 2.0901829020039755, + 2.19872446189915, + 2.226893494938799, + 1.9881630000848824, + 1.435495848849056, + 1.4970807403803095, + 1.6411521825885067, + 1.166393816760872, + 1.2426504858383758, + 1.2929528634803762, + 1.041328330242362, + 0.9263982390375748 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 2.9978716535723575, + 2.950149508061185, + 2.8770405127390695, + 1.9064248468862524, + 2.3366986466372413, + 2.6826215340379824, + 3.254563722920821, + 3.7596375480064785, + 3.7164734680642773, + 3.376357058247065, + 2.948172496076496, + 2.287295760113314, + 2.4779345790123197, + 2.534006687207946, + 2.137505298806588, + 1.4421328334574037, + 1.5742889742691262, + 1.67693083764926, + 1.1780487517177762, + 1.2711147829936178, + 1.412752570413598, + 1.106421594113146, + 0.9912777697064321 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.370365972877624, + 3.2745666300176595, + 3.054311031734535, + 1.990604145381186, + 2.2584227373109713, + 2.4203727167829023, + 2.679993985117518, + 3.121726641609722, + 3.0421043191857735, + 2.8332398165546313, + 2.4720008772657187, + 1.8021338556226372, + 1.9627324168089326, + 2.0391930492518093, + 1.708768644256868, + 1.3853584617997567, + 1.434750354417122, + 1.3213941067439472, + 0.9963627523171967, + 1.0806253221399131, + 1.1180243717561449, + 0.9211486521083271, + 0.6797937210976216 + ], + [ + 2.3460994946178024, + 2.4113981182591977, + 2.518743912446343, + 2.8284108250107707, + 2.696297500079943, + 2.900215317980636, + 2.807871372942674, + 2.7914918032961755, + 2.8898641090986676, + 2.7412737970029655, + 2.9978716535723575, + 3.370365972877624, + 4.269134605136387, + 3.902058962324325, + 3.000470051643377, + 2.0966046019740685, + 2.274334922689901, + 2.549204663140267, + 2.6819658998782403, + 3.2231845237130092, + 3.100889724293477, + 2.9023967370903163, + 2.5253827694368245, + 1.8729984037780094, + 2.01836470627381, + 2.0804457310910736, + 1.694598424017695, + 1.3946858093809469, + 1.3768691286795196, + 1.4193146378040438, + 1.0650534499427424, + 1.2501266084163154, + 1.3015620057910038, + 0.9295930885071017, + 0.8329664432697043 + ], + [ + 2.3766555685616604, + 2.4675569894943536, + 2.550517752403105, + 2.8025305723514524, + 2.6157337902848683, + 2.8020830262800787, + 2.7136039715815876, + 2.689514636816605, + 2.8141512967721916, + 2.7060795516629446, + 2.950149508061185, + 3.2745666300176595, + 3.902058962324325, + 4.2117688341768424, + 2.9313427177541436, + 2.0330873212688063, + 2.177298424351198, + 2.4468254944447936, + 2.671070651955814, + 3.194736225084671, + 3.084773787649234, + 2.9065528946876857, + 2.523278908979153, + 1.9009335889475998, + 2.067425342202768, + 2.1002239710937456, + 1.7267840792121913, + 1.390796730026711, + 1.3536858922707409, + 1.4372533017612836, + 1.0376653430410985, + 1.2746837554169372, + 1.3242915910330701, + 0.9171297529485747, + 0.8285008364952394 + ], + [ + 2.1660702768334765, + 2.298714721340813, + 2.333388414197134, + 2.705512594065184, + 2.6648191119907354, + 2.480106416161784, + 2.6556364486873103, + 2.703190952440022, + 2.6673011757981064, + 2.7174354198093655, + 2.8770405127390695, + 3.054311031734535, + 3.000470051643377, + 2.9313427177541436, + 3.7106514834733133, + 2.021496042859979, + 2.3422861190899735, + 2.5588504101392093, + 2.7675940492060946, + 3.076343139875276, + 2.889189890704588, + 2.7455949662934005, + 2.3404432771767465, + 1.6403041377017564, + 1.83004357354458, + 1.8427798899343681, + 1.5284757313937025, + 1.2263220612662133, + 1.2725640055664202, + 1.272830971461503, + 0.9283668523997565, + 1.0600737224238204, + 1.0225190435369835, + 0.9607256643901847, + 0.6661878984014443 + ], + [ + 1.5995648153972046, + 1.7470257494011263, + 1.810508792699171, + 1.8867730294010843, + 1.8072442034249283, + 1.8293829176535925, + 1.8486182491608716, + 1.8767695791261763, + 1.869378749682932, + 1.7690816460663168, + 1.9064248468862524, + 1.990604145381186, + 2.0966046019740685, + 2.0330873212688063, + 2.021496042859979, + 3.3425359885856505, + 2.5881515808779243, + 2.547241300692336, + 2.3032290451438913, + 2.49054797641926, + 2.3522772232296196, + 2.131749190570782, + 1.8715137539037114, + 1.3442008566086954, + 1.3385716748307224, + 1.3058566917804801, + 1.0536036139900715, + 0.8744931215548148, + 0.8268480983327124, + 0.9635508002600905, + 0.8194671226869618, + 0.8248408246244702, + 0.8915893737625095, + 0.740678829094287, + 0.5508459763918322 + ], + [ + 1.9039105990240157, + 1.980820224200878, + 2.0927696450407915, + 2.287658004675237, + 1.9945555112575153, + 1.9671036161357154, + 2.049116199401574, + 2.0744228063394057, + 2.0413188469681254, + 2.089357691057759, + 2.3366986466372413, + 2.2584227373109713, + 2.274334922689901, + 2.177298424351198, + 2.3422861190899735, + 2.5881515808779243, + 3.5893158552867654, + 3.0527735935129225, + 2.7108874098124383, + 2.9584861837358876, + 2.6802221670587114, + 2.488629270498948, + 2.222950736518668, + 1.5692694145133517, + 1.604665992614145, + 1.6137958031121589, + 1.2959547166974847, + 0.9057204545777741, + 0.8984784523256504, + 1.0770096729333427, + 0.8731110125662055, + 0.8633736564654112, + 0.8588679618152188, + 0.6579695914011778, + 0.658613118001356 + ], + [ + 2.317596408258066, + 2.416840554055094, + 2.5783728916242836, + 2.5342612031110927, + 2.155748459440918, + 2.1773011379652676, + 2.257536760831622, + 2.341825986907151, + 2.27118444013681, + 2.403294590875812, + 2.6826215340379824, + 2.4203727167829023, + 2.549204663140267, + 2.4468254944447936, + 2.5588504101392093, + 2.547241300692336, + 3.0527735935129225, + 4.438712234795112, + 3.227388451634585, + 3.578539270557382, + 3.2670785298944867, + 2.903002601725292, + 2.591816317037175, + 1.7974719261713243, + 1.8025153762656232, + 1.8189916161174717, + 1.3728842475581566, + 0.9410108052358526, + 0.9680809986978666, + 1.2148313078661384, + 0.9286436260370562, + 1.0081668526872523, + 0.9666216629595575, + 0.7021632723030131, + 0.5724152455931204 + ], + [ + 2.4985278926945913, + 2.6634514723924316, + 2.775002312076615, + 3.0411743725308327, + 2.571767840802845, + 2.5823157955417937, + 2.577889247414705, + 2.5593784823460743, + 2.583648182390222, + 2.8206662760962704, + 3.254563722920821, + 2.679993985117518, + 2.6819658998782403, + 2.671070651955814, + 2.7675940492060946, + 2.3032290451438913, + 2.7108874098124383, + 3.227388451634585, + 4.829430784774722, + 4.668583027395963, + 4.245653743546512, + 3.839901353864509, + 3.165785315310753, + 2.101045427594832, + 2.252936775964287, + 2.366281071796832, + 1.9085675066876417, + 1.2626385509934217, + 1.2866538557482279, + 1.4634875679650245, + 1.0617335014957514, + 1.1046955463667694, + 1.184828506894162, + 0.8303793482758284, + 0.7913909581772823 + ], + [ + 2.982298868508639, + 3.1774466897177294, + 3.2180018233186876, + 3.459349056558749, + 2.926626490337606, + 2.9780744394414573, + 2.982647228087871, + 2.9645097654818593, + 3.0776429488510484, + 3.2260576185135226, + 3.7596375480064785, + 3.121726641609722, + 3.2231845237130092, + 3.194736225084671, + 3.076343139875276, + 2.49054797641926, + 2.9584861837358876, + 3.578539270557382, + 4.668583027395963, + 6.011401055168464, + 5.2012473303854465, + 4.494286271186834, + 3.732897294661687, + 2.6130230912320833, + 2.88490345257779, + 2.9035769756852976, + 2.337288218425385, + 1.4524510568936164, + 1.6154758428677078, + 1.7934092544312048, + 1.3389642819150764, + 1.4306937316458634, + 1.542302249513181, + 1.2323197174933946, + 1.1885199509403959 + ], + [ + 3.0121955967210168, + 3.189373346017945, + 3.208114868135302, + 3.418956140049179, + 2.946148594808052, + 2.958323405075513, + 2.940621961605023, + 2.951751515417861, + 3.096111034766446, + 3.2403046618954736, + 3.7164734680642773, + 3.0421043191857735, + 3.100889724293477, + 3.084773787649234, + 2.889189890704588, + 2.3522772232296196, + 2.6802221670587114, + 3.2670785298944867, + 4.245653743546512, + 5.2012473303854465, + 5.629599224071484, + 4.622772584327096, + 3.7986747515254513, + 2.5899689833516697, + 2.8316925801544075, + 2.921922438110233, + 2.387370701272687, + 1.5037329671442454, + 1.6225571858618422, + 1.922619006211545, + 1.4478077760477883, + 1.5113339675974458, + 1.66758238966184, + 1.3736454959417648, + 1.1944981922692168 + ], + [ + 2.658900943392461, + 2.8542676187243288, + 2.8910813462180194, + 3.259012742426114, + 2.6964568132060998, + 2.7103747505128393, + 2.697894071737526, + 2.7287867375880146, + 2.8967812344453105, + 3.005975438404832, + 3.376357058247065, + 2.8332398165546313, + 2.9023967370903163, + 2.9065528946876857, + 2.7455949662934005, + 2.131749190570782, + 2.488629270498948, + 2.903002601725292, + 3.839901353864509, + 4.494286271186834, + 4.622772584327096, + 5.031292988857355, + 3.7761439890236397, + 2.4537179283806, + 2.8036599433691465, + 2.910611810486001, + 2.502767450934093, + 1.6313219467143314, + 1.7284828387505766, + 1.791378763370347, + 1.3299686147127816, + 1.3746964740567698, + 1.4451646694822364, + 1.1387956303640974, + 1.0287860499235055 + ], + [ + 2.6819167225857217, + 2.7901272347159676, + 2.6292710101420793, + 2.6626927390197457, + 2.382411859735795, + 2.2859336524484744, + 2.2800404889826744, + 2.3354948850573956, + 2.5023700069301906, + 2.5500565591739845, + 2.948172496076496, + 2.4720008772657187, + 2.5253827694368245, + 2.523278908979153, + 2.3404432771767465, + 1.8715137539037114, + 2.222950736518668, + 2.591816317037175, + 3.165785315310753, + 3.732897294661687, + 3.7986747515254513, + 3.7761439890236397, + 4.824779550364668, + 2.6591069666952944, + 2.975842110552478, + 3.075264557047393, + 2.747530069987737, + 1.6984971508313702, + 1.7926913597568706, + 2.0447459635621037, + 1.4851637419197965, + 1.544164206098156, + 1.6233444377285602, + 1.5084104412217776, + 1.3587329061064106 + ], + [ + 1.8257508607136372, + 1.9672712275889204, + 1.838199475928631, + 1.8331363378434844, + 1.7137303458493387, + 1.617629996603677, + 1.6614162319272257, + 1.6663292408322201, + 1.7064903934350013, + 2.0901829020039755, + 2.287295760113314, + 1.8021338556226372, + 1.8729984037780094, + 1.9009335889475998, + 1.6403041377017564, + 1.3442008566086954, + 1.5692694145133517, + 1.7974719261713243, + 2.101045427594832, + 2.6130230912320833, + 2.5899689833516697, + 2.4537179283806, + 2.6591069666952944, + 4.34784475920183, + 3.9134155310762697, + 3.389373640241742, + 2.9834439839976294, + 1.6684767400790235, + 1.8674435702953391, + 2.2616410704733765, + 1.7600663931201856, + 1.7080129395777501, + 1.8355497765526327, + 1.7451736906922874, + 1.5138653640946587 + ], + [ + 1.9600940822577222, + 2.1328748003870768, + 2.022506929738739, + 2.0692600706078177, + 1.8332384289371035, + 1.7387832654395032, + 1.7800837006233292, + 1.7643821848318193, + 1.9112113251235057, + 2.19872446189915, + 2.4779345790123197, + 1.9627324168089326, + 2.01836470627381, + 2.067425342202768, + 1.83004357354458, + 1.3385716748307224, + 1.604665992614145, + 1.8025153762656232, + 2.252936775964287, + 2.88490345257779, + 2.8316925801544075, + 2.8036599433691465, + 2.975842110552478, + 3.9134155310762697, + 5.137990140927136, + 4.327916387218441, + 3.6929096997829265, + 2.0783598404471393, + 2.192105827208751, + 2.4677558585539634, + 1.835850231244013, + 1.6943966053070132, + 1.8751827749653784, + 1.7882231227094776, + 1.6151780013830135 + ], + [ + 1.942752629151272, + 2.152445994717053, + 2.052502367874252, + 2.115673819852997, + 1.6981471964375652, + 1.7172962306792858, + 1.7535883439830895, + 1.8298677124686078, + 1.9997154467301224, + 2.226893494938799, + 2.534006687207946, + 2.0391930492518093, + 2.0804457310910736, + 2.1002239710937456, + 1.8427798899343681, + 1.3058566917804801, + 1.6137958031121589, + 1.8189916161174717, + 2.366281071796832, + 2.9035769756852976, + 2.921922438110233, + 2.910611810486001, + 3.075264557047393, + 3.389373640241742, + 4.327916387218441, + 5.936310547966041, + 4.721052599330354, + 2.4125866134040086, + 2.420048397540707, + 2.5749719962373683, + 1.8398821242350887, + 1.7880844487325063, + 1.7691764672129087, + 1.8526515543932067, + 1.7011508309943804 + ], + [ + 1.5693947828989996, + 1.7911692129918657, + 1.674312408368456, + 1.8330868508301452, + 1.4045533553532168, + 1.4127422890478287, + 1.4527796271154203, + 1.512606363347052, + 1.7447859583043093, + 1.9881630000848824, + 2.137505298806588, + 1.708768644256868, + 1.694598424017695, + 1.7267840792121913, + 1.5284757313937025, + 1.0536036139900715, + 1.2959547166974847, + 1.3728842475581566, + 1.9085675066876417, + 2.337288218425385, + 2.387370701272687, + 2.502767450934093, + 2.747530069987737, + 2.9834439839976294, + 3.6929096997829265, + 4.721052599330354, + 5.589099073215265, + 2.819507579435277, + 2.8515549161285754, + 2.5899973366666704, + 1.9230865052047008, + 1.6863519239629916, + 1.6732099659449706, + 2.100544459375609, + 1.6603843637317464 + ], + [ + 1.0847383761454246, + 1.2325445482031443, + 1.2166799589893798, + 1.449871122737371, + 1.264607154293088, + 1.2912705583998834, + 1.3186525203475008, + 1.312913551365708, + 1.3924541448658543, + 1.435495848849056, + 1.4421328334574037, + 1.3853584617997567, + 1.3946858093809469, + 1.390796730026711, + 1.2263220612662133, + 0.8744931215548148, + 0.9057204545777741, + 0.9410108052358526, + 1.2626385509934217, + 1.4524510568936164, + 1.5037329671442454, + 1.6313219467143314, + 1.6984971508313702, + 1.6684767400790235, + 2.0783598404471393, + 2.4125866134040086, + 2.819507579435277, + 3.966216818766383, + 3.003259662626549, + 2.1748847026612514, + 1.5804774275258264, + 1.1930834413558686, + 1.2792015332642812, + 1.6163388534679872, + 1.2802362067117334 + ], + [ + 1.1261161765414247, + 1.2631285020925673, + 1.325752571119606, + 1.4028214683039892, + 1.2204256383875012, + 1.1264407139617774, + 1.1642342654370599, + 1.3017669793931275, + 1.300719860980909, + 1.4970807403803095, + 1.5742889742691262, + 1.434750354417122, + 1.3768691286795196, + 1.3536858922707409, + 1.2725640055664202, + 0.8268480983327124, + 0.8984784523256504, + 0.9680809986978666, + 1.2866538557482279, + 1.6154758428677078, + 1.6225571858618422, + 1.7284828387505766, + 1.7926913597568706, + 1.8674435702953391, + 2.192105827208751, + 2.420048397540707, + 2.8515549161285754, + 3.003259662626549, + 4.830566031503098, + 2.6501030280087234, + 2.059805161661137, + 1.607523068452763, + 1.683374143379282, + 2.2929671728791945, + 1.5971181810758361 + ], + [ + 1.698877362568659, + 1.7581771211883654, + 1.7593862788547172, + 1.6702474584361513, + 1.4608859107318808, + 1.3763175593869776, + 1.3691860876993445, + 1.4279954730907891, + 1.4338985995408828, + 1.6411521825885067, + 1.67693083764926, + 1.3213941067439472, + 1.4193146378040438, + 1.4372533017612836, + 1.272830971461503, + 0.9635508002600905, + 1.0770096729333427, + 1.2148313078661384, + 1.4634875679650245, + 1.7934092544312048, + 1.922619006211545, + 1.791378763370347, + 2.0447459635621037, + 2.2616410704733765, + 2.4677558585539634, + 2.5749719962373683, + 2.5899973366666704, + 2.1748847026612514, + 2.6501030280087234, + 4.531414608663701, + 2.816394180306384, + 2.4785983024722706, + 2.588450247430289, + 2.476592308600095, + 1.9821090626341347 + ], + [ + 1.2977168776485808, + 1.4384783593002088, + 1.4071038274179397, + 1.248358677127305, + 1.0535669102034275, + 1.0359683122525731, + 1.0310357584105359, + 1.1212760449231889, + 1.0956340355389615, + 1.166393816760872, + 1.1780487517177762, + 0.9963627523171967, + 1.0650534499427424, + 1.0376653430410985, + 0.9283668523997565, + 0.8194671226869618, + 0.8731110125662055, + 0.9286436260370562, + 1.0617335014957514, + 1.3389642819150764, + 1.4478077760477883, + 1.3299686147127816, + 1.4851637419197965, + 1.7600663931201856, + 1.835850231244013, + 1.8398821242350887, + 1.9230865052047008, + 1.5804774275258264, + 2.059805161661137, + 2.816394180306384, + 3.4593584569318567, + 2.6671834076401693, + 2.4828041712158226, + 2.346689830269671, + 1.7845020209753761 + ], + [ + 1.38720492450309, + 1.5302211383233428, + 1.4836611609073158, + 1.4629487713380784, + 1.1873438732052684, + 1.2434429029958154, + 1.1373290404363625, + 1.211342343793892, + 1.1788973798687417, + 1.2426504858383758, + 1.2711147829936178, + 1.0806253221399131, + 1.2501266084163154, + 1.2746837554169372, + 1.0600737224238204, + 0.8248408246244702, + 0.8633736564654112, + 1.0081668526872523, + 1.1046955463667694, + 1.4306937316458634, + 1.5113339675974458, + 1.3746964740567698, + 1.544164206098156, + 1.7080129395777501, + 1.6943966053070132, + 1.7880844487325063, + 1.6863519239629916, + 1.1930834413558686, + 1.607523068452763, + 2.4785983024722706, + 2.6671834076401693, + 3.457411387820302, + 2.933564252951035, + 2.569281040844969, + 1.9552587831490518 + ], + [ + 1.618789649034315, + 1.6762132401906602, + 1.6699298590429534, + 1.625676489165812, + 1.296585461610222, + 1.2648755869143877, + 1.1710359835589554, + 1.2488870452955416, + 1.2275586824999118, + 1.2929528634803762, + 1.412752570413598, + 1.1180243717561449, + 1.3015620057910038, + 1.3242915910330701, + 1.0225190435369835, + 0.8915893737625095, + 0.8588679618152188, + 0.9666216629595575, + 1.184828506894162, + 1.542302249513181, + 1.66758238966184, + 1.4451646694822364, + 1.6233444377285602, + 1.8355497765526327, + 1.8751827749653784, + 1.7691764672129087, + 1.6732099659449706, + 1.2792015332642812, + 1.683374143379282, + 2.588450247430289, + 2.4828041712158226, + 2.933564252951035, + 3.7721515698251973, + 2.721340136689427, + 2.047030006402578 + ], + [ + 1.3053316760921456, + 1.359274805778048, + 1.2841219933574295, + 1.0499808535281512, + 1.0907751396531875, + 0.939970108571266, + 1.0251707889630164, + 1.026809747826745, + 0.9599318959325378, + 1.041328330242362, + 1.106421594113146, + 0.9211486521083271, + 0.9295930885071017, + 0.9171297529485747, + 0.9607256643901847, + 0.740678829094287, + 0.6579695914011778, + 0.7021632723030131, + 0.8303793482758284, + 1.2323197174933946, + 1.3736454959417648, + 1.1387956303640974, + 1.5084104412217776, + 1.7451736906922874, + 1.7882231227094776, + 1.8526515543932067, + 2.100544459375609, + 1.6163388534679872, + 2.2929671728791945, + 2.476592308600095, + 2.346689830269671, + 2.569281040844969, + 2.721340136689427, + 6.2262459244812565, + 3.1491415574049597 + ], + [ + 1.1954305709860293, + 1.1952136942582152, + 1.1345407135904007, + 1.118907156949541, + 0.9159084508309889, + 0.987916205768816, + 0.8442449571524366, + 0.7825108866922259, + 0.830027412952144, + 0.9263982390375748, + 0.9912777697064321, + 0.6797937210976216, + 0.8329664432697043, + 0.8285008364952394, + 0.6661878984014443, + 0.5508459763918322, + 0.658613118001356, + 0.5724152455931204, + 0.7913909581772823, + 1.1885199509403959, + 1.1944981922692168, + 1.0287860499235055, + 1.3587329061064106, + 1.5138653640946587, + 1.6151780013830135, + 1.7011508309943804, + 1.6603843637317464, + 1.2802362067117334, + 1.5971181810758361, + 1.9821090626341347, + 1.7845020209753761, + 1.9552587831490518, + 2.047030006402578, + 3.1491415574049597, + 5.098644410668987 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3875203127630426, + -0.38982495527687305, + -0.4126353717850901, + -0.39281617177042766, + -0.3946403083239856, + -0.3666696994881257, + -0.35106344176074783, + -0.29038492195001425, + -0.3250329352471217, + -0.3582161072975027, + -0.35871848460734773, + -0.3615302885289184, + -0.31911363595721404, + -0.31000074934878746, + -0.3168124882263969, + -0.37916100613398623, + -0.34130179758911144, + -0.31823147587010364, + -0.39965976839596057, + -0.3979480194177509, + -0.3811916682569962, + -0.3083793468989284, + -0.3435598442934717 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6230683039754933, + "transport_matrix_sha256": "3429c7d7435cdd7cfd9bdf8fab675931f68e1968c36fe4ef4f63e7c4d0a0c83c", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.053740531206131e-05, + "gram_mean_diagonal": 0.06053740531206131, + "calibration_nmse": 0.04398877978906868, + "calibration_cosine": 0.9777586792322014, + "calibration_norm_ratio": 0.9768561256506773, + "transport_relative_identity_distance": 0.3179902136325836, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "f57ad388d57bb515af2ac9324d86dc9e19c4cc44bc73879a7b409f9c07597c15", + "self_attn.k_proj.weight": "09cba09d72eea6b683087478aeaaf6d321423335a9eb57d47006adbc1f336c63", + "self_attn.v_proj.weight": "af4adee7b325a938beb530808104ab27a70afc0d494134b3de1f5ea8ef060773", + "self_attn.o_proj.weight": "6888fff18d668ea322341951eb6ab19a3fbbc4cf94b758ed0f8dba411a262d1f", + "self_attn.q_norm.weight": "e3e9ec56f12aa5ec410018bbac99e6953ad52f3b8b796d73c5bd0cc6545fb93b", + "self_attn.k_norm.weight": "a5bf1576b21d93da019094f1a61912669136a5d9e89e8d2301c88f6bf2def290", + "mlp.gate_proj.weight": "1d90e8cf937190e4027f0c7bc34bbabd5bb43c5f3d081537e0d866da8a3efe3f", + "mlp.up_proj.weight": "dc867f2d0718d761bb166f69bd21878837006daf9ae392c955a2e9578a15ad97", + "mlp.down_proj.weight": "0ac1fc28ab86d85f9cb5f40fbde4485ceac5d2d531a13f5f05d81910ebd8b48d", + "input_layernorm.weight": "c21d58d80fa7aca24ff0dac67092f8204b3876926fa095bb7e6ceb3a16060706", + "post_attention_layernorm.weight": "1e599b9bd0ed7fdbcef34cff94651bf467bf923745a76a96d33a74ae551ad5d5" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "f57ad388d57bb515af2ac9324d86dc9e19c4cc44bc73879a7b409f9c07597c15", + "self_attn.k_proj.weight": "09cba09d72eea6b683087478aeaaf6d321423335a9eb57d47006adbc1f336c63", + "self_attn.v_proj.weight": "af4adee7b325a938beb530808104ab27a70afc0d494134b3de1f5ea8ef060773", + "self_attn.o_proj.weight": "6888fff18d668ea322341951eb6ab19a3fbbc4cf94b758ed0f8dba411a262d1f", + "self_attn.q_norm.weight": "e3e9ec56f12aa5ec410018bbac99e6953ad52f3b8b796d73c5bd0cc6545fb93b", + "self_attn.k_norm.weight": "a5bf1576b21d93da019094f1a61912669136a5d9e89e8d2301c88f6bf2def290", + "mlp.gate_proj.weight": "51888e91cfe1c9c9bc6ece30477da7f5c33bbcaff3827937e935c006c81f4d97", + "mlp.up_proj.weight": "885e7858c15bbd1456c7d26c25f3e7ce9e171653d770244e860435dcc3eefb00", + "mlp.down_proj.weight": "0ac1fc28ab86d85f9cb5f40fbde4485ceac5d2d531a13f5f05d81910ebd8b48d", + "input_layernorm.weight": "c21d58d80fa7aca24ff0dac67092f8204b3876926fa095bb7e6ceb3a16060706", + "post_attention_layernorm.weight": "1e599b9bd0ed7fdbcef34cff94651bf467bf923745a76a96d33a74ae551ad5d5" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6230683039754933, + "lambda_right": 0.3769316960245067, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "95732a59144d689baf46fef38c0b43ffe9d4c4663cf160e2494d6146957f00e5", + "mlp.up_proj.weight": "2bf9bc06f266d744623ff42d772eb1d8c29012ef0d46f116eae908dbb08a89b8", + "mlp.gate_proj.weight": "95e7d27498b2eec4f1d4b641f8a528c393e6abee78b172b6284f69920f385125", + "self_attn.k_proj.weight": "c09a39b4dfd4e9121fcca782d6b4aa9603af01e398239090034c492af0cd887a", + "self_attn.o_proj.weight": "e39994b63ebe97dbd6d6d5405206a1673f3d2151a262572b8aff783a32a918e0", + "self_attn.q_proj.weight": "fe50101d44f36f6e7161e07949c2bc6c3eb25830f053bdaf06efc1b1c94f5f0f", + "self_attn.v_proj.weight": "c31fbee7c61e87cfa00e10371fc6d7f72d85f7b22cfab7b3e4390fe26508d6c7" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "f57ad388d57bb515af2ac9324d86dc9e19c4cc44bc73879a7b409f9c07597c15", + "self_attn.k_proj.weight": "09cba09d72eea6b683087478aeaaf6d321423335a9eb57d47006adbc1f336c63", + "self_attn.v_proj.weight": "af4adee7b325a938beb530808104ab27a70afc0d494134b3de1f5ea8ef060773", + "self_attn.o_proj.weight": "6888fff18d668ea322341951eb6ab19a3fbbc4cf94b758ed0f8dba411a262d1f", + "self_attn.q_norm.weight": "e3e9ec56f12aa5ec410018bbac99e6953ad52f3b8b796d73c5bd0cc6545fb93b", + "self_attn.k_norm.weight": "a5bf1576b21d93da019094f1a61912669136a5d9e89e8d2301c88f6bf2def290", + "mlp.gate_proj.weight": "51888e91cfe1c9c9bc6ece30477da7f5c33bbcaff3827937e935c006c81f4d97", + "mlp.up_proj.weight": "885e7858c15bbd1456c7d26c25f3e7ce9e171653d770244e860435dcc3eefb00", + "mlp.down_proj.weight": "0ac1fc28ab86d85f9cb5f40fbde4485ceac5d2d531a13f5f05d81910ebd8b48d", + "input_layernorm.weight": "c21d58d80fa7aca24ff0dac67092f8204b3876926fa095bb7e6ceb3a16060706", + "post_attention_layernorm.weight": "1e599b9bd0ed7fdbcef34cff94651bf467bf923745a76a96d33a74ae551ad5d5" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "b76a10548dc24bd7497d10d001a9371df638adca19bfce75a56b0cfb27b6d065", + "mlp.up_proj.weight": "cc493840ce3a8e36490a2c80b25b2a5d90e9b0c366939c41740094d74ba5b184", + "mlp.gate_proj.weight": "30f9b1815d6369eeb6a1af9b0cd42e84e9f333e727e66e7cafbc63216d5d1f0f", + "self_attn.k_proj.weight": "9cd64498b33ff399a47d26bb60035f41cf2e1e27240d5bb0e12c5a38a72c366f", + "self_attn.o_proj.weight": "272948af1d61022705cc295ddb40b6214632b9fbe6e254d6b74a2a4507a49386", + "self_attn.q_proj.weight": "a49e9fe8337d0eecf534da70ba4af6662b57ed652fa49f1fd9d56c2d03684d2d", + "self_attn.v_proj.weight": "de40e6d4feaccef517aefdb991834ce833f6e7cfbf5f720a582ede927cec626e" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_3/cycle_metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_3/cycle_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8c8db85b88186e489e128edfd882baebb5f27e94 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_3/cycle_metadata.json @@ -0,0 +1,1558 @@ +{ + "cycle": 3, + "layer_merged": 12, + "num_layers_before": 34, + "num_layers_after": 33, + "fused_layer_state": "fused_layer.pt", + "profile_no_save": false, + "dwce_score": null, + "dwce_scores": null, + "dwce_meta": { + "method": "mka", + "fisher_computed": false + }, + "fisher_num_batches": 0, + "merge_method": "fisher", + "merged_params": 7, + "num_sequences": 64, + "teacher_source": "previous_cycle", + "teacher_cycle": 2, + "eval": { + "datasets": [ + "wikitext2" + ], + "configs": [ + null + ], + "split": "test", + "num_samples": 0, + "seq_len": 1024, + "post_ppl": null, + "merge_only_ppl": null + }, + "comm": { + "enabled": false + }, + "distill": { + "enabled": false, + "method": "reparam", + "calib_samples": 256, + "inst_samples": 0, + "seq_len": 512, + "batch_size": 2, + "epochs": 1.0, + "lr": 0.0001, + "kl_weight": 0.01, + "kl_temp": 4.0, + "kl_chunk_size": 16384, + "hidden_mse_weight": 1.0, + "attn_mse_weight": 0.0, + "mlp_mse_weight": 0.0, + "reparam_eta": 0.01, + "reparam_gamma": 0.0001, + "reparam_attn_reg_scale": 1.0, + "reparam_mlp_reg_scale": 1.0, + "reparam_param_subset": "all", + "reparam_train_subset": "same", + "reparam_skip_train": false, + "reparam_stats": null, + "reparam_gate_summary": null, + "post_merge_nll_scale": null, + "merge_only_ppl": null, + "post_ppl": null, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "instruction_dataset": null, + "instruction_config": null, + "instruction_split": "train" + }, + "lora": { + "enabled": false, + "seq_len": 512, + "batch_size": 2, + "epochs": 0.0, + "rank": 8, + "alpha": 16.0, + "dropout": 0.0, + "target_modules": [ + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "gate_proj", + "down_proj", + "up_proj" + ], + "respect_exclude_pairs": false, + "kl_enabled": false, + "kl_weight": 0.1, + "kl_temp": 4.0, + "post_ppl": null, + "lr": 0.0001, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "log_steps": 100, + "eval_every": 0, + "eval_max_batches": null + }, + "norm_policy": "copy_n1_n2", + "source_feature_transport": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.097011640667916e-05, + "gram_mean_diagonal": 0.06097011640667915, + "calibration_nmse": 0.03808019200585718, + "calibration_cosine": 0.9807755634286893, + "calibration_norm_ratio": 0.9798280272973131, + "transport_relative_identity_distance": 0.2715636193752289, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "Transport then non-Fisher exact merge; no FiT" + }, + "same_anchor_contextual_fisher": { + "computed": false, + "anchor_candidate_mean_nll": 0.0, + "transported_source_candidate_mean_nll": 0.0 + }, + "full_model_saved": false, + "timing": { + "seconds": { + "selection": 10.139696914004162, + "rebase": 0.0, + "source_feature_transport": 4.059608716983348, + "fisher": 3.865995677188039e-05, + "fit": 2.616822597978171, + "materialize_save_layer": 0.63223113497952, + "metadata_write": 0.00045613700058311224, + "teacher_snapshot": 0.5100259460159577, + "cycle_cleanup": 0.16090818302473053, + "cycle_total": 18.12062926503131 + }, + "tracked_component_total_seconds": 18.119788289943244, + "cycle_total_seconds": 18.12062926503131, + "ratios_of_tracked_components": { + "selection": 0.5595924605604717, + "rebase": 0.0, + "source_feature_transport": 0.2240428338357845, + "fisher": 2.133576626462973e-06, + "fit": 0.14441794551377551, + "materialize_save_layer": 0.034891750657507284, + "metadata_write": 2.517341777311356e-05, + "teacher_snapshot": 0.0281474561322016, + "cycle_cleanup": 0.008880246305859821 + }, + "ratios_of_cycle_total": { + "selection": 0.5595664899767839, + "rebase": 0.0, + "source_feature_transport": 0.2240324360488666, + "fisher": 2.133477607562189e-06, + "fit": 0.14441124310335307, + "materialize_save_layer": 0.03489013133774455, + "metadata_write": 2.5172249479401512e-05, + "teacher_snapshot": 0.028146149813913564, + "cycle_cleanup": 0.008879834175253874 + } + }, + "fisher_computed": false, + "fit": false, + "nofit_merge_control": { + "cycle": 3, + "anchor": 12, + "removed_original_layer": 15, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.2961740712446, + 2.2265408292569866, + 2.2294054536626784, + 2.20098168697199, + 2.750217699868455, + 2.744210339116167, + 3.0126632396199367, + 3.0681516371199, + 2.7827717106446754, + 1.779085744401428, + 1.9536840148377879, + 2.04529017365314, + 1.8968990542294144, + 1.6619700305370837, + 1.3287976956696048, + 1.0382251033231709, + 0.9974960152468008, + 0.9573822722400741, + 1.2327719262006276, + 1.269856142627865, + 1.278023707807586, + 1.216651572001522 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3854832635725245, + 2.296634639112775, + 2.408340609191363, + 2.2950504815933708, + 2.8115592883300904, + 2.9003865790265837, + 3.1270172215564287, + 3.2124079812590427, + 2.9869982118708838, + 1.8357929451819401, + 2.055928949099102, + 2.133747533980767, + 1.9840977164152918, + 1.7797733432446612, + 1.4062026564406804, + 1.0706111472864237, + 0.9883264678809361, + 1.0242670427010205, + 1.3342284561822984, + 1.3947177595654372, + 1.2960967242861405, + 1.3016142849512344 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.517411246570175, + 2.351843485013661, + 2.438247615105358, + 2.3358914268395137, + 3.03933113627953, + 2.947194515159887, + 3.1722479475622634, + 3.2391139369499315, + 2.971603885826749, + 1.74629638788516, + 1.9578099310937491, + 1.9701151200724099, + 1.8929979577419394, + 1.752398664281938, + 1.401423111514532, + 1.080574998691414, + 1.0303684971958667, + 1.027586356182353, + 1.2630423031875806, + 1.3720492502598325, + 1.1991783796826554, + 1.1671289318987268 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8228944093417385, + 2.692900638600751, + 2.7433894539238044, + 2.671665303609923, + 3.1506372639810074, + 3.32720364849532, + 3.255099497290125, + 3.4822715497993606, + 3.288240448259374, + 1.5846801835702071, + 2.0348193798844, + 2.161422618344603, + 2.0202140574695147, + 1.9556592903200267, + 1.2966168304867696, + 1.2535111591082295, + 1.0197007830486204, + 0.8566943380657652, + 1.204791361963996, + 1.2859580835177253, + 1.1500928872331737, + 1.0423537507225114 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.659267269167063, + 2.6882033306228843, + 2.733478079583862, + 2.536183503033427, + 2.791336854190576, + 2.7791445044117316, + 2.7458855712941177, + 2.7610831872456805, + 2.573140556247712, + 1.3773011148847771, + 1.7812947944102586, + 1.8066734207052417, + 1.6716434082023317, + 1.5459198777905163, + 1.0756161589167792, + 1.1028250754736775, + 0.9452393722012978, + 0.776647474506018, + 1.0533628992622066, + 1.0626027762632444, + 1.0716273433416739, + 0.8752272188160353 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.8655447414344155, + 2.5515251460437884, + 2.4879734387551045, + 2.5059546790814755, + 2.7664578712950614, + 2.8348788424866123, + 2.7455961913252915, + 2.8085384884222284, + 2.6275728468038726, + 1.2947685388083994, + 1.598529889595198, + 1.6728784660498024, + 1.5268589919681923, + 1.3896335469501893, + 1.1241964520018815, + 1.005739371273883, + 0.9452761164689318, + 0.7949861732261122, + 1.069509360953034, + 1.0590108307002604, + 0.9334732055880408, + 0.9646700898008067 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.7089250350546648, + 2.7870591850823523, + 2.646757956413812, + 2.6472013762253153, + 2.8450884720289515, + 2.762254975170635, + 2.7991111332919503, + 2.8323919762906113, + 2.5936448995813293, + 1.3122519585999812, + 1.6631677290112643, + 1.8202776681634036, + 1.6953899943493935, + 1.518191683082889, + 1.095937921841216, + 0.990514898603994, + 0.8926510435149461, + 0.7877889935659383, + 1.0020562354897726, + 1.0311389492259289, + 1.005268204660791, + 0.7959378214677061 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.7909636504037665, + 2.745253645766233, + 2.6822342942864457, + 2.562164365361802, + 2.8509304945694303, + 2.8182392320905976, + 2.7946271352731893, + 2.820158870011841, + 2.621699481602493, + 1.3052202930543506, + 1.7056956208767164, + 1.851281127270344, + 1.7349825337237061, + 1.6324585071739135, + 1.0971536873988512, + 1.0254610947195324, + 0.9183343752021358, + 0.8202263584587571, + 1.0346375425859482, + 1.0736078539883465, + 1.061703077903756, + 0.750928251918323 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.8626162139124416, + 2.868956644258049, + 2.6770162771885304, + 2.6713052288430803, + 2.8573960299180756, + 2.9045192602435574, + 2.909017754944431, + 2.940039654310432, + 2.8097752723839715, + 1.403436344193912, + 1.8810514394194797, + 2.0258294176021483, + 1.916046097860197, + 1.7735405049967192, + 1.2274120767221903, + 1.1653412570112063, + 0.9455512756751892, + 0.8519207845162863, + 1.0569597825996038, + 1.0679543221536223, + 1.0722998665067685, + 0.7857556816476677 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.799225835445906, + 2.8021608318113747, + 2.768613983379058, + 2.5612675221575207, + 3.043627947666004, + 3.1501889816525943, + 3.3351953920895854, + 3.40093246088817, + 3.2139927040849052, + 1.6308656728731434, + 2.2118682726744514, + 2.3891780480159532, + 2.203074123361157, + 2.0823842977296385, + 1.337159378677997, + 1.2178214568847878, + 1.0745302587679781, + 0.9880862293740414, + 1.128937788170324, + 1.118530715957504, + 1.1024368424997146, + 0.8211965440969131 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.089726204009028, + 2.966725190506758, + 2.9606918557049786, + 2.7470426567463755, + 3.4038245275455425, + 3.6291639932445916, + 3.7921193907518194, + 3.868442129904957, + 3.6501640281142556, + 1.8167413257218272, + 2.506664436621829, + 2.656321361539469, + 2.438680780704985, + 2.331471197826345, + 1.439399007923354, + 1.2779004782331687, + 1.0655010656168842, + 0.9555220335562823, + 1.1759321485459868, + 1.212693817241577, + 1.0874032193844418, + 0.8605743334958192 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.5308877512031924, + 3.4277156009186185, + 3.0563037437805685, + 3.149215949969835, + 3.100257983473962, + 2.987242647626295, + 2.9858423600178883, + 2.9266810109153116, + 2.8930073395735625, + 1.3639813313910698, + 1.8336531892193926, + 2.011429086620516, + 1.8186484276299015, + 1.773079498721575, + 1.1743970701065511, + 1.1631342051012237, + 0.9442230726008511, + 0.8105429744665921, + 1.0638786347040834, + 1.066785818022557, + 0.9661809267239458, + 0.6091327572189656 + ], + [ + 2.2961740712446, + 2.3854832635725245, + 2.517411246570175, + 2.8228944093417385, + 2.659267269167063, + 2.8655447414344155, + 2.7089250350546648, + 2.7909636504037665, + 2.8626162139124416, + 2.799225835445906, + 3.089726204009028, + 3.5308877512031924, + 4.074322116170248, + 3.330501339012661, + 3.0695110569647515, + 3.1339577044289157, + 3.187921726848283, + 3.0036610233922025, + 2.933811961206664, + 2.9353006716955843, + 2.9072433582899437, + 1.4194591663267446, + 1.8213487332268485, + 2.0018401174075393, + 1.8039546118867704, + 1.7290064064076904, + 1.1695812496781601, + 1.1425284982582389, + 0.9238574387899572, + 0.8395715724918208, + 1.1174902290837152, + 1.084405323626235, + 0.9389445094392284, + 0.7408847801884659 + ], + [ + 2.2265408292569866, + 2.296634639112775, + 2.351843485013661, + 2.692900638600751, + 2.6882033306228843, + 2.5515251460437884, + 2.7870591850823523, + 2.745253645766233, + 2.868956644258049, + 2.8021608318113747, + 2.966725190506758, + 3.4277156009186185, + 3.330501339012661, + 3.829494230870588, + 3.2658775991031708, + 3.3114882029249575, + 3.2211206354372957, + 3.0064511382031127, + 2.914163929846155, + 2.8093544225666, + 2.7004700629018035, + 1.2413606784756277, + 1.6680267240979694, + 1.7635822675382058, + 1.5879112578778187, + 1.5650694305819517, + 1.080940257582835, + 1.052615379150727, + 0.8511619904583895, + 0.7189668996617486, + 0.973206925277746, + 0.9256190976317537, + 0.9437641639402778, + 0.5668379983715642 + ], + [ + 2.2294054536626784, + 2.408340609191363, + 2.438247615105358, + 2.7433894539238044, + 2.733478079583862, + 2.4879734387551045, + 2.646757956413812, + 2.6822342942864457, + 2.6770162771885304, + 2.768613983379058, + 2.9606918557049786, + 3.0563037437805685, + 3.0695110569647515, + 3.2658775991031708, + 3.894781619819532, + 3.074719287081214, + 3.3024011032690592, + 3.112750892115238, + 2.990642149218585, + 2.920985094026071, + 2.7802197376628577, + 1.307210966239604, + 1.82234359494184, + 1.9440830095577433, + 1.6530946152717028, + 1.5950935690826553, + 0.9688494500959705, + 1.0138470729295956, + 0.8073867321971719, + 0.7348959353947062, + 0.9603041398586265, + 0.9055060263203509, + 0.9008572726882466, + 0.5954307161876768 + ], + [ + 2.20098168697199, + 2.2950504815933708, + 2.3358914268395137, + 2.671665303609923, + 2.536183503033427, + 2.5059546790814755, + 2.6472013762253153, + 2.562164365361802, + 2.6713052288430803, + 2.5612675221575207, + 2.7470426567463755, + 3.149215949969835, + 3.1339577044289157, + 3.3114882029249575, + 3.074719287081214, + 3.836883143768107, + 3.2803286761157673, + 2.934749047604581, + 2.800295732347418, + 2.7324417924928266, + 2.7145383227531736, + 1.2109991814746202, + 1.6804120596983405, + 1.8265264576958595, + 1.5850423417658608, + 1.5824086019390577, + 0.972901948636424, + 1.0546774115292759, + 0.8156520414306422, + 0.714056942550904, + 0.9759021323961402, + 0.934386527135768, + 0.9083999377960941, + 0.5822911456650849 + ], + [ + 2.750217699868455, + 2.8115592883300904, + 3.03933113627953, + 3.1506372639810074, + 2.791336854190576, + 2.7664578712950614, + 2.8450884720289515, + 2.8509304945694303, + 2.8573960299180756, + 3.043627947666004, + 3.4038245275455425, + 3.100257983473962, + 3.187921726848283, + 3.2211206354372957, + 3.3024011032690592, + 3.2803286761157673, + 4.936588413857563, + 3.6945893682183533, + 3.7193677218593972, + 3.6050689854583573, + 3.396048244406109, + 1.599257251228684, + 2.1136429319244447, + 2.236689784567688, + 2.049294625420705, + 1.9022043179834245, + 1.2002526826740785, + 1.0170644609101833, + 1.010998465327648, + 0.9222649100459831, + 1.122620566276374, + 1.130817514246351, + 1.0637525291712338, + 0.8107364603471738 + ], + [ + 2.744210339116167, + 2.9003865790265837, + 2.947194515159887, + 3.32720364849532, + 2.7791445044117316, + 2.8348788424866123, + 2.762254975170635, + 2.8182392320905976, + 2.9045192602435574, + 3.1501889816525943, + 3.6291639932445916, + 2.987242647626295, + 3.0036610233922025, + 3.0064511382031127, + 3.112750892115238, + 2.934749047604581, + 3.6945893682183533, + 5.259252199049146, + 4.773095561515951, + 4.535521737141902, + 4.252636603189827, + 1.9411612256577266, + 2.657796672128589, + 2.8276631552585627, + 2.5733232069682166, + 2.4097343593973823, + 1.3701486869004502, + 1.3055064584919385, + 1.116424898436383, + 0.9874489872560568, + 1.248828348192916, + 1.2056224669943416, + 1.1553120341304408, + 1.0623007897422523 + ], + [ + 3.0126632396199367, + 3.1270172215564287, + 3.1722479475622634, + 3.255099497290125, + 2.7458855712941177, + 2.7455961913252915, + 2.7991111332919503, + 2.7946271352731893, + 2.909017754944431, + 3.3351953920895854, + 3.7921193907518194, + 2.9858423600178883, + 2.933811961206664, + 2.914163929846155, + 2.990642149218585, + 2.800295732347418, + 3.7193677218593972, + 4.773095561515951, + 5.458562778026551, + 4.903611382501226, + 4.452108303383686, + 2.172672092331945, + 2.8560640528492085, + 3.0164495557495266, + 2.774910573416932, + 2.539687089173365, + 1.4933083447007152, + 1.3580926270655178, + 1.1960011565748747, + 1.1043924060935744, + 1.3129079030169561, + 1.2971334800433423, + 1.228866541925978, + 1.0202576151333456 + ], + [ + 3.0681516371199, + 3.2124079812590427, + 3.2391139369499315, + 3.4822715497993606, + 2.7610831872456805, + 2.8085384884222284, + 2.8323919762906113, + 2.820158870011841, + 2.940039654310432, + 3.40093246088817, + 3.868442129904957, + 2.9266810109153116, + 2.9353006716955843, + 2.8093544225666, + 2.920985094026071, + 2.7324417924928266, + 3.6050689854583573, + 4.535521737141902, + 4.903611382501226, + 5.622918872842758, + 4.72938048098086, + 2.27691407566306, + 2.858269469130371, + 3.039154027907367, + 2.7996851406382652, + 2.6045363664247105, + 1.5324446977263786, + 1.330270886841789, + 1.1937695113454727, + 1.1070141470825148, + 1.3718587761599492, + 1.3956472553283836, + 1.3257227847495872, + 1.0523757354830439 + ], + [ + 2.7827717106446754, + 2.9869982118708838, + 2.971603885826749, + 3.288240448259374, + 2.573140556247712, + 2.6275728468038726, + 2.5936448995813293, + 2.621699481602493, + 2.8097752723839715, + 3.2139927040849052, + 3.6501640281142556, + 2.8930073395735625, + 2.9072433582899437, + 2.7004700629018035, + 2.7802197376628577, + 2.7145383227531736, + 3.396048244406109, + 4.252636603189827, + 4.452108303383686, + 4.72938048098086, + 5.440895259529153, + 2.3740068874800944, + 3.1635511548422293, + 3.3466138779574703, + 3.14043243955404, + 2.9991085983397725, + 1.6595648708727313, + 1.5667955164519978, + 1.1904845594763174, + 1.072607651639629, + 1.2193618761963534, + 1.2814424332744843, + 1.2456438111979147, + 1.1246503991311638 + ], + [ + 1.779085744401428, + 1.8357929451819401, + 1.74629638788516, + 1.5846801835702071, + 1.3773011148847771, + 1.2947685388083994, + 1.3122519585999812, + 1.3052202930543506, + 1.403436344193912, + 1.6308656728731434, + 1.8167413257218272, + 1.3639813313910698, + 1.4194591663267446, + 1.2413606784756277, + 1.307210966239604, + 1.2109991814746202, + 1.599257251228684, + 1.9411612256577266, + 2.172672092331945, + 2.27691407566306, + 2.3740068874800944, + 3.4459281206895205, + 2.5905090343117085, + 2.625191785717486, + 2.274676018541524, + 2.1784813512146415, + 1.421877163823473, + 1.1540158447402287, + 1.0348707752809365, + 1.2420151843256224, + 1.258546637917256, + 1.288419588879108, + 1.1699311083058812, + 1.0932828393542537 + ], + [ + 1.9536840148377879, + 2.055928949099102, + 1.9578099310937491, + 2.0348193798844, + 1.7812947944102586, + 1.598529889595198, + 1.6631677290112643, + 1.7056956208767164, + 1.8810514394194797, + 2.2118682726744514, + 2.506664436621829, + 1.8336531892193926, + 1.8213487332268485, + 1.6680267240979694, + 1.82234359494184, + 1.6804120596983405, + 2.1136429319244447, + 2.657796672128589, + 2.8560640528492085, + 2.858269469130371, + 3.1635511548422293, + 2.5905090343117085, + 6.229371094517207, + 4.982056256159368, + 4.505782699183832, + 4.31600568995782, + 2.188168891171191, + 2.057007108414921, + 1.7166415433712034, + 1.6854646213687092, + 1.7246419357742153, + 1.6415104162359435, + 1.831417550301263, + 1.5855939772355068 + ], + [ + 2.04529017365314, + 2.133747533980767, + 1.9701151200724099, + 2.161422618344603, + 1.8066734207052417, + 1.6728784660498024, + 1.8202776681634036, + 1.851281127270344, + 2.0258294176021483, + 2.3891780480159532, + 2.656321361539469, + 2.011429086620516, + 2.0018401174075393, + 1.7635822675382058, + 1.9440830095577433, + 1.8265264576958595, + 2.236689784567688, + 2.8276631552585627, + 3.0164495557495266, + 3.039154027907367, + 3.3466138779574703, + 2.625191785717486, + 4.982056256159368, + 6.056947007106078, + 5.0367432865999975, + 4.670738921676782, + 2.2630938676105705, + 1.8868285906341824, + 1.5983707781263092, + 1.6189975468341289, + 1.5781412540086597, + 1.5617807034774085, + 1.6929259133370707, + 1.5647015057220164 + ], + [ + 1.8968990542294144, + 1.9840977164152918, + 1.8929979577419394, + 2.0202140574695147, + 1.6716434082023317, + 1.5268589919681923, + 1.6953899943493935, + 1.7349825337237061, + 1.916046097860197, + 2.203074123361157, + 2.438680780704985, + 1.8186484276299015, + 1.8039546118867704, + 1.5879112578778187, + 1.6530946152717028, + 1.5850423417658608, + 2.049294625420705, + 2.5733232069682166, + 2.774910573416932, + 2.7996851406382652, + 3.14043243955404, + 2.274676018541524, + 4.505782699183832, + 5.0367432865999975, + 6.170425743000087, + 5.226707629317684, + 2.2259254010142127, + 2.0582106140440137, + 1.651341034919874, + 1.563203986491781, + 1.4904957634661484, + 1.4433514160563297, + 1.81508557571789, + 1.612279763842038 + ], + [ + 1.6619700305370837, + 1.7797733432446612, + 1.752398664281938, + 1.9556592903200267, + 1.5459198777905163, + 1.3896335469501893, + 1.518191683082889, + 1.6324585071739135, + 1.7735405049967192, + 2.0823842977296385, + 2.331471197826345, + 1.773079498721575, + 1.7290064064076904, + 1.5650694305819517, + 1.5950935690826553, + 1.5824086019390577, + 1.9022043179834245, + 2.4097343593973823, + 2.539687089173365, + 2.6045363664247105, + 2.9991085983397725, + 2.1784813512146415, + 4.31600568995782, + 4.670738921676782, + 5.226707629317684, + 6.484197062569403, + 2.5033156559366256, + 2.575402051960755, + 1.9079716703733862, + 1.8325477095743776, + 1.7291822623997113, + 1.6148085670343204, + 2.067591522845982, + 1.5661674833574266 + ], + [ + 1.3287976956696048, + 1.4062026564406804, + 1.401423111514532, + 1.2966168304867696, + 1.0756161589167792, + 1.1241964520018815, + 1.095937921841216, + 1.0971536873988512, + 1.2274120767221903, + 1.337159378677997, + 1.439399007923354, + 1.1743970701065511, + 1.1695812496781601, + 1.080940257582835, + 0.9688494500959705, + 0.972901948636424, + 1.2002526826740785, + 1.3701486869004502, + 1.4933083447007152, + 1.5324446977263786, + 1.6595648708727313, + 1.421877163823473, + 2.188168891171191, + 2.2630938676105705, + 2.2259254010142127, + 2.5033156559366256, + 3.1129267568733487, + 1.9742157207684738, + 1.5103246940287773, + 1.3042731644652559, + 1.355683701594508, + 1.392118316061973, + 1.5116042910781324, + 1.2344697766668473 + ], + [ + 1.0382251033231709, + 1.0706111472864237, + 1.080574998691414, + 1.2535111591082295, + 1.1028250754736775, + 1.005739371273883, + 0.990514898603994, + 1.0254610947195324, + 1.1653412570112063, + 1.2178214568847878, + 1.2779004782331687, + 1.1631342051012237, + 1.1425284982582389, + 1.052615379150727, + 1.0138470729295956, + 1.0546774115292759, + 1.0170644609101833, + 1.3055064584919385, + 1.3580926270655178, + 1.330270886841789, + 1.5667955164519978, + 1.1540158447402287, + 2.057007108414921, + 1.8868285906341824, + 2.0582106140440137, + 2.575402051960755, + 1.9742157207684738, + 4.900169722904286, + 1.9734675491760252, + 1.7509947382814433, + 1.459299951487052, + 1.478836783362774, + 2.0288416291527365, + 1.2548721845908442 + ], + [ + 0.9974960152468008, + 0.9883264678809361, + 1.0303684971958667, + 1.0197007830486204, + 0.9452393722012978, + 0.9452761164689318, + 0.8926510435149461, + 0.9183343752021358, + 0.9455512756751892, + 1.0745302587679781, + 1.0655010656168842, + 0.9442230726008511, + 0.9238574387899572, + 0.8511619904583895, + 0.8073867321971719, + 0.8156520414306422, + 1.010998465327648, + 1.116424898436383, + 1.1960011565748747, + 1.1937695113454727, + 1.1904845594763174, + 1.0348707752809365, + 1.7166415433712034, + 1.5983707781263092, + 1.651341034919874, + 1.9079716703733862, + 1.5103246940287773, + 1.9734675491760252, + 2.7549509632764417, + 2.0173472511574344, + 1.6796236558986635, + 1.584573675743107, + 1.5325888271499963, + 1.1015711516371718 + ], + [ + 0.9573822722400741, + 1.0242670427010205, + 1.027586356182353, + 0.8566943380657652, + 0.776647474506018, + 0.7949861732261122, + 0.7877889935659383, + 0.8202263584587571, + 0.8519207845162863, + 0.9880862293740414, + 0.9555220335562823, + 0.8105429744665921, + 0.8395715724918208, + 0.7189668996617486, + 0.7348959353947062, + 0.714056942550904, + 0.9222649100459831, + 0.9874489872560568, + 1.1043924060935744, + 1.1070141470825148, + 1.072607651639629, + 1.2420151843256224, + 1.6854646213687092, + 1.6189975468341289, + 1.563203986491781, + 1.8325477095743776, + 1.3042731644652559, + 1.7509947382814433, + 2.0173472511574344, + 2.783097168691554, + 2.09703916792321, + 1.9083950524798377, + 1.7747413494130309, + 1.3098353406917949 + ], + [ + 1.2327719262006276, + 1.3342284561822984, + 1.2630423031875806, + 1.204791361963996, + 1.0533628992622066, + 1.069509360953034, + 1.0020562354897726, + 1.0346375425859482, + 1.0569597825996038, + 1.128937788170324, + 1.1759321485459868, + 1.0638786347040834, + 1.1174902290837152, + 0.973206925277746, + 0.9603041398586265, + 0.9759021323961402, + 1.122620566276374, + 1.248828348192916, + 1.3129079030169561, + 1.3718587761599492, + 1.2193618761963534, + 1.258546637917256, + 1.7246419357742153, + 1.5781412540086597, + 1.4904957634661484, + 1.7291822623997113, + 1.355683701594508, + 1.459299951487052, + 1.6796236558986635, + 2.09703916792321, + 3.040583716895786, + 2.4696838750005137, + 2.061981809373004, + 1.5715303097943691 + ], + [ + 1.269856142627865, + 1.3947177595654372, + 1.3720492502598325, + 1.2859580835177253, + 1.0626027762632444, + 1.0590108307002604, + 1.0311389492259289, + 1.0736078539883465, + 1.0679543221536223, + 1.118530715957504, + 1.212693817241577, + 1.066785818022557, + 1.084405323626235, + 0.9256190976317537, + 0.9055060263203509, + 0.934386527135768, + 1.130817514246351, + 1.2056224669943416, + 1.2971334800433423, + 1.3956472553283836, + 1.2814424332744843, + 1.288419588879108, + 1.6415104162359435, + 1.5617807034774085, + 1.4433514160563297, + 1.6148085670343204, + 1.392118316061973, + 1.478836783362774, + 1.584573675743107, + 1.9083950524798377, + 2.4696838750005137, + 3.237709207512389, + 2.161683828181645, + 1.711490238758212 + ], + [ + 1.278023707807586, + 1.2960967242861405, + 1.1991783796826554, + 1.1500928872331737, + 1.0716273433416739, + 0.9334732055880408, + 1.005268204660791, + 1.061703077903756, + 1.0722998665067685, + 1.1024368424997146, + 1.0874032193844418, + 0.9661809267239458, + 0.9389445094392284, + 0.9437641639402778, + 0.9008572726882466, + 0.9083999377960941, + 1.0637525291712338, + 1.1553120341304408, + 1.228866541925978, + 1.3257227847495872, + 1.2456438111979147, + 1.1699311083058812, + 1.831417550301263, + 1.6929259133370707, + 1.81508557571789, + 2.067591522845982, + 1.5116042910781324, + 2.0288416291527365, + 1.5325888271499963, + 1.7747413494130309, + 2.061981809373004, + 2.161683828181645, + 5.172976698787038, + 2.824647337941047 + ], + [ + 1.216651572001522, + 1.3016142849512344, + 1.1671289318987268, + 1.0423537507225114, + 0.8752272188160353, + 0.9646700898008067, + 0.7959378214677061, + 0.750928251918323, + 0.7857556816476677, + 0.8211965440969131, + 0.8605743334958192, + 0.6091327572189656, + 0.7408847801884659, + 0.5668379983715642, + 0.5954307161876768, + 0.5822911456650849, + 0.8107364603471738, + 1.0623007897422523, + 1.0202576151333456, + 1.0523757354830439, + 1.1246503991311638, + 1.0932828393542537, + 1.5855939772355068, + 1.5647015057220164, + 1.612279763842038, + 1.5661674833574266, + 1.2344697766668473, + 1.2548721845908442, + 1.1015711516371718, + 1.3098353406917949, + 1.5715303097943691, + 1.711490238758212, + 2.824647337941047, + 5.105147818704216 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.38944230427320486, + -0.4086471163222382, + -0.3980981363397869, + -0.4062306305399949, + -0.34938605307768383, + -0.32004282163274883, + -0.3170595556608155, + -0.3184024228631234, + -0.3326079993445777, + -0.39845035553048863, + -0.2891275881543313, + -0.3030250211732945, + -0.310174250289404, + -0.2940529831853839, + -0.4366641228322912, + -0.3365568439267927, + -0.4720012588689791, + -0.4726108904263335, + -0.436199044607594, + -0.4278269302238534, + -0.3600793930363095, + -0.3676631040292044 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6246677319752422, + "transport_matrix_sha256": "92240dc08b641dff66cf38ea210d31aba569eb4f8091ce99c4a8b75f433cadd4", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.097011640667916e-05, + "gram_mean_diagonal": 0.06097011640667915, + "calibration_nmse": 0.03808019200585718, + "calibration_cosine": 0.9807755634286893, + "calibration_norm_ratio": 0.9798280272973131, + "transport_relative_identity_distance": 0.2715636193752289, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "6005f741b04aefb4b83452f774f7d013b010b6218020e382a98c92a45d8878ac", + "self_attn.k_proj.weight": "e4d7d1464c351cfcb69799eb3e3bf63cc597383cbfb0d07263236ba2d8eb3d5b", + "self_attn.v_proj.weight": "25063dfdce05fdcb1a48c5d71c3e0107d7a894b7fb6c0f7defa2e768c68ba3d7", + "self_attn.o_proj.weight": "e96bf888e3b0629075b2ee05288e147fd875119467d978c2269ecfeb3b0db4eb", + "self_attn.q_norm.weight": "d77168c19fe27a0d64a2611360be089b4435adc62444d0e82a986419be1d9b44", + "self_attn.k_norm.weight": "2cbb9d53874b3fe1d350a9c9031d64cd138a1dbac549529d07da2927106a10ff", + "mlp.gate_proj.weight": "3acdf3c7c3b8dd224f2837ef92c5e72e8bc7963baa021e9ba2a032da6084c86a", + "mlp.up_proj.weight": "6a0bdd43c6eab5e133991697799089710e9077591b56bcbde02440054dbfebbc", + "mlp.down_proj.weight": "1f66d7843032883982c0b98e73d9193144e181de07f5506b718d1cea3edb23ea", + "input_layernorm.weight": "3f2e5d516a4c80f8d93f0221e5ecbc2e7e692f111118c7c629f210ee9d03419d", + "post_attention_layernorm.weight": "3a237234fa5182946c09967a08faec9d9060f4bd780bdd6627f6159edebe2f98" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "6005f741b04aefb4b83452f774f7d013b010b6218020e382a98c92a45d8878ac", + "self_attn.k_proj.weight": "e4d7d1464c351cfcb69799eb3e3bf63cc597383cbfb0d07263236ba2d8eb3d5b", + "self_attn.v_proj.weight": "25063dfdce05fdcb1a48c5d71c3e0107d7a894b7fb6c0f7defa2e768c68ba3d7", + "self_attn.o_proj.weight": "e96bf888e3b0629075b2ee05288e147fd875119467d978c2269ecfeb3b0db4eb", + "self_attn.q_norm.weight": "d77168c19fe27a0d64a2611360be089b4435adc62444d0e82a986419be1d9b44", + "self_attn.k_norm.weight": "2cbb9d53874b3fe1d350a9c9031d64cd138a1dbac549529d07da2927106a10ff", + "mlp.gate_proj.weight": "4066467968c4094943a227fdcf248b608a8990239e31840a275968d85f1b6716", + "mlp.up_proj.weight": "8fd58dd8a4e80ae482ac26be9f41504980492887ba8aef6e3d0c5bbc8304c743", + "mlp.down_proj.weight": "1f66d7843032883982c0b98e73d9193144e181de07f5506b718d1cea3edb23ea", + "input_layernorm.weight": "3f2e5d516a4c80f8d93f0221e5ecbc2e7e692f111118c7c629f210ee9d03419d", + "post_attention_layernorm.weight": "3a237234fa5182946c09967a08faec9d9060f4bd780bdd6627f6159edebe2f98" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6246677319752422, + "lambda_right": 0.37533226802475783, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "b76a10548dc24bd7497d10d001a9371df638adca19bfce75a56b0cfb27b6d065", + "mlp.up_proj.weight": "cc493840ce3a8e36490a2c80b25b2a5d90e9b0c366939c41740094d74ba5b184", + "mlp.gate_proj.weight": "30f9b1815d6369eeb6a1af9b0cd42e84e9f333e727e66e7cafbc63216d5d1f0f", + "self_attn.k_proj.weight": "9cd64498b33ff399a47d26bb60035f41cf2e1e27240d5bb0e12c5a38a72c366f", + "self_attn.o_proj.weight": "272948af1d61022705cc295ddb40b6214632b9fbe6e254d6b74a2a4507a49386", + "self_attn.q_proj.weight": "a49e9fe8337d0eecf534da70ba4af6662b57ed652fa49f1fd9d56c2d03684d2d", + "self_attn.v_proj.weight": "de40e6d4feaccef517aefdb991834ce833f6e7cfbf5f720a582ede927cec626e" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "6005f741b04aefb4b83452f774f7d013b010b6218020e382a98c92a45d8878ac", + "self_attn.k_proj.weight": "e4d7d1464c351cfcb69799eb3e3bf63cc597383cbfb0d07263236ba2d8eb3d5b", + "self_attn.v_proj.weight": "25063dfdce05fdcb1a48c5d71c3e0107d7a894b7fb6c0f7defa2e768c68ba3d7", + "self_attn.o_proj.weight": "e96bf888e3b0629075b2ee05288e147fd875119467d978c2269ecfeb3b0db4eb", + "self_attn.q_norm.weight": "d77168c19fe27a0d64a2611360be089b4435adc62444d0e82a986419be1d9b44", + "self_attn.k_norm.weight": "2cbb9d53874b3fe1d350a9c9031d64cd138a1dbac549529d07da2927106a10ff", + "mlp.gate_proj.weight": "4066467968c4094943a227fdcf248b608a8990239e31840a275968d85f1b6716", + "mlp.up_proj.weight": "8fd58dd8a4e80ae482ac26be9f41504980492887ba8aef6e3d0c5bbc8304c743", + "mlp.down_proj.weight": "1f66d7843032883982c0b98e73d9193144e181de07f5506b718d1cea3edb23ea", + "input_layernorm.weight": "3f2e5d516a4c80f8d93f0221e5ecbc2e7e692f111118c7c629f210ee9d03419d", + "post_attention_layernorm.weight": "3a237234fa5182946c09967a08faec9d9060f4bd780bdd6627f6159edebe2f98" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "589d2d560b63011f41524f9e4902e6b2453440cd645b4b500a28538a1cf4704d", + "mlp.up_proj.weight": "35d04fcf67ab22adbf6bcb1250c54bf267aea4a73f4bf2998beca5d4e5eccfff", + "mlp.gate_proj.weight": "2521e18eaf36850c9e28e3885e3f87dd0c9091aa16b24011b8753a9295247377", + "self_attn.k_proj.weight": "ce465b2cc7ff0c4ee4bd155b75efe66c5afcba97bba8dae2b852b0629cf4e8c3", + "self_attn.o_proj.weight": "8d49531ce242f536d1d27a2882f3562fdf3e7b2b1ba901c604e6ab2528857817", + "self_attn.q_proj.weight": "ba87131bcd890976f15ffd199dc564012b8aa6c1f3202f184596557259cd92b7", + "self_attn.v_proj.weight": "3631a170e4e61c2d0dcf2617a77489bca1f8d94c407d14ac10bb8a54cda02fbe" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_4/cycle_metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_4/cycle_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..69821f0b12bc68e9d417dccfe18021d3cda523fe --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_4/cycle_metadata.json @@ -0,0 +1,1488 @@ +{ + "cycle": 4, + "layer_merged": 12, + "num_layers_before": 33, + "num_layers_after": 32, + "fused_layer_state": "fused_layer.pt", + "profile_no_save": false, + "dwce_score": null, + "dwce_scores": null, + "dwce_meta": { + "method": "mka", + "fisher_computed": false + }, + "fisher_num_batches": 0, + "merge_method": "fisher", + "merged_params": 7, + "num_sequences": 64, + "teacher_source": "previous_cycle", + "teacher_cycle": 3, + "eval": { + "datasets": [ + "wikitext2" + ], + "configs": [ + null + ], + "split": "test", + "num_samples": 0, + "seq_len": 1024, + "post_ppl": null, + "merge_only_ppl": null + }, + "comm": { + "enabled": false + }, + "distill": { + "enabled": false, + "method": "reparam", + "calib_samples": 256, + "inst_samples": 0, + "seq_len": 512, + "batch_size": 2, + "epochs": 1.0, + "lr": 0.0001, + "kl_weight": 0.01, + "kl_temp": 4.0, + "kl_chunk_size": 16384, + "hidden_mse_weight": 1.0, + "attn_mse_weight": 0.0, + "mlp_mse_weight": 0.0, + "reparam_eta": 0.01, + "reparam_gamma": 0.0001, + "reparam_attn_reg_scale": 1.0, + "reparam_mlp_reg_scale": 1.0, + "reparam_param_subset": "all", + "reparam_train_subset": "same", + "reparam_skip_train": false, + "reparam_stats": null, + "reparam_gate_summary": null, + "post_merge_nll_scale": null, + "merge_only_ppl": null, + "post_ppl": null, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "instruction_dataset": null, + "instruction_config": null, + "instruction_split": "train" + }, + "lora": { + "enabled": false, + "seq_len": 512, + "batch_size": 2, + "epochs": 0.0, + "rank": 8, + "alpha": 16.0, + "dropout": 0.0, + "target_modules": [ + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "gate_proj", + "down_proj", + "up_proj" + ], + "respect_exclude_pairs": false, + "kl_enabled": false, + "kl_weight": 0.1, + "kl_temp": 4.0, + "post_ppl": null, + "lr": 0.0001, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "log_steps": 100, + "eval_every": 0, + "eval_max_batches": null + }, + "norm_policy": "copy_n1_n2", + "source_feature_transport": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.113433837890625e-05, + "gram_mean_diagonal": 0.06113433837890625, + "calibration_nmse": 0.02677125200720686, + "calibration_cosine": 0.9865240183756301, + "calibration_norm_ratio": 0.9855801755880016, + "transport_relative_identity_distance": 0.2614944577217102, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "Transport then non-Fisher exact merge; no FiT" + }, + "same_anchor_contextual_fisher": { + "computed": false, + "anchor_candidate_mean_nll": 0.0, + "transported_source_candidate_mean_nll": 0.0 + }, + "full_model_saved": false, + "timing": { + "seconds": { + "selection": 9.742598342010751, + "rebase": 0.0, + "source_feature_transport": 4.012954553007148, + "fisher": 6.193999433889985e-05, + "fit": 2.5048410780145787, + "materialize_save_layer": 0.5843631970346905, + "metadata_write": 0.0004444679943844676, + "teacher_snapshot": 0.5122203250066377, + "cycle_cleanup": 0.17212565802037716, + "cycle_total": 17.53041576599935 + }, + "tracked_component_total_seconds": 17.529609561082907, + "cycle_total_seconds": 17.53041576599935, + "ratios_of_tracked_components": { + "selection": 0.5557795402152068, + "rebase": 0.0, + "source_feature_transport": 0.22892435447713672, + "fisher": 3.5334497396001017e-06, + "fit": 0.14289200619593492, + "materialize_save_layer": 0.03333577938507097, + "metadata_write": 2.5355270625720096e-05, + "teacher_snapshot": 0.029220292854885175, + "cycle_cleanup": 0.0098191381514001 + }, + "ratios_of_cycle_total": { + "selection": 0.5557539805134997, + "rebase": 0.0, + "source_feature_transport": 0.22891382649294417, + "fisher": 3.5332872400570163e-06, + "fit": 0.14288543474666335, + "materialize_save_layer": 0.033334246308526036, + "metadata_write": 2.5354104564166904e-05, + "teacher_snapshot": 0.029218949045127666, + "cycle_cleanup": 0.009818686579825384 + } + }, + "fisher_computed": false, + "fit": false, + "nofit_merge_control": { + "cycle": 4, + "anchor": 12, + "removed_original_layer": 16, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.314300027105734, + 2.461919023433335, + 2.1525834524304894, + 2.2878599993587736, + 2.649216707734476, + 3.0156422135045475, + 3.122213040882858, + 2.735158415906826, + 2.8335350264143155, + 1.4476710763864702, + 1.6757910880417386, + 1.560077749109066, + 1.3105082884760846, + 1.3449146523213704, + 0.7867328199618516, + 1.0295279842914145, + 0.9976450629962423, + 1.0551311627117597, + 1.2135039258282794, + 1.3591603339230407, + 1.3953358624052978 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.403737161174292, + 2.597638610440688, + 2.264245884321682, + 2.3787100324982844, + 2.7277612956390977, + 3.1370637154368013, + 3.1696762295247107, + 2.9053430196477175, + 2.9992099691196215, + 1.6601984109646992, + 1.8354434405034292, + 1.7692311047970397, + 1.4514514803062588, + 1.455614489064811, + 0.8824892077111548, + 1.1137565329190535, + 1.1446827227156666, + 1.1310017970761124, + 1.2841266505454594, + 1.2945064357520133, + 1.3687794265131663 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.471676830375396, + 2.6490549773173284, + 2.287733838137879, + 2.437948935797838, + 2.821196618198155, + 3.22855616118193, + 3.2361888698373007, + 2.8956234872659334, + 2.9475113511326088, + 1.534689597529067, + 1.7481715931721336, + 1.7311299784369338, + 1.3549313023902774, + 1.419796533720719, + 0.8434019475919747, + 1.155251913975692, + 1.1178256592299947, + 1.1234932190884592, + 1.254512839091728, + 1.2419221049979003, + 1.218965095759463 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8097931203426354, + 3.009127293528697, + 2.566939930248229, + 2.824178768362589, + 3.06898893017062, + 3.2318720075944545, + 3.294301487573008, + 3.236104916150143, + 3.0298012160053225, + 1.8665905775445029, + 2.0020961767889873, + 1.843589545069702, + 1.5829701034661072, + 1.5864523507153467, + 0.9842629092970591, + 1.0833663819825314, + 1.0527711926543772, + 1.1302960072342605, + 1.2276297727276524, + 1.2682545105507188, + 1.281760629487778 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.684485421074143, + 2.710291631374167, + 2.3660928534026255, + 2.5021354745974405, + 2.7170570690583133, + 2.875442437072025, + 2.820028991822822, + 2.5706342498102113, + 2.5550329073120106, + 1.977044926904529, + 1.8439292062450405, + 1.6496830759987995, + 1.4721869550367672, + 1.4120372043709835, + 0.8161292366014105, + 0.9722650270236017, + 0.8477892108457493, + 0.9310834882602305, + 1.0302026270062674, + 1.148183987826183, + 1.0495423912360902 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.665742955821557, + 2.5794981154812304, + 2.342328835701662, + 2.447579475586948, + 2.6835443814538675, + 2.7608555994198474, + 2.634072528968371, + 2.5402087703565397, + 2.467476627692352, + 1.8071922155323132, + 1.6949663731773699, + 1.570303251246303, + 1.4143723722330284, + 1.365852011357938, + 0.8525749710753611, + 0.9825293700325594, + 0.8967780561942892, + 0.9444128194705904, + 1.001342143085715, + 1.072680225680396, + 1.295470380551076 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.810376446493185, + 2.6736977416647965, + 2.469645286596305, + 2.4861124142551194, + 2.6342022458406373, + 2.791618824788654, + 2.7069341876780633, + 2.5442820215971675, + 2.4445793489663017, + 1.9332649780278837, + 1.821922281557604, + 1.700187574806416, + 1.4839556767277615, + 1.413448759759593, + 0.8243704980245724, + 0.9313336387577859, + 0.8613350801923607, + 0.9431387629266099, + 0.9926589042391588, + 1.092739505581484, + 1.0462822337188293 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8604326518430807, + 2.752539599097301, + 2.4821132952428675, + 2.552230042937554, + 2.6587391965380647, + 2.891160217752835, + 2.860405920703912, + 2.626952983049047, + 2.5316669670984147, + 1.9043515786609861, + 1.8517012881252881, + 1.7475179504543674, + 1.4106259012845308, + 1.43847577063438, + 0.8069107914890946, + 0.972672384792874, + 0.9251104498215555, + 0.9958138686818863, + 1.0492769922561158, + 1.0890026759950953, + 0.9841123918210369 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 2.9708735865724574, + 2.73446934898001, + 2.586290481358667, + 2.5035650130784552, + 2.6304524969642205, + 2.8110631483320008, + 2.786189742174216, + 2.7121451734863506, + 2.622847342698003, + 1.8989955635181268, + 1.8747969939832225, + 1.8039727756960982, + 1.5473793084442458, + 1.570183010230387, + 0.8517991444075295, + 0.987086974883477, + 0.9476852799698333, + 0.9682259719700246, + 1.0666754568337995, + 1.0733110805534485, + 0.9899130507077791 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9243201398914542, + 3.067048761828838, + 2.5550835039284294, + 2.8371328612271056, + 2.901021170165633, + 3.1394835575391844, + 3.1076712216569073, + 3.0661818722694756, + 2.992499578110458, + 1.9784082138290793, + 2.112733961764548, + 1.9183625720284727, + 1.5754124136951366, + 1.579384286558107, + 0.8668212383108905, + 1.1116202500276509, + 1.1316271873153823, + 1.1275585551913094, + 1.1551859501110775, + 1.0834525349085238, + 0.8663890394901907 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.156237628612337, + 3.22763168797825, + 2.73868710779468, + 3.0449663058740315, + 3.2609220872069793, + 3.5853485176514597, + 3.55540397894272, + 3.516410805692872, + 3.457223234011531, + 2.058031323370723, + 2.265294235313926, + 2.149293336638887, + 1.7909503230947812, + 1.6350031347072727, + 0.895429961189473, + 1.120159080807125, + 1.080969991837595, + 1.0764722275586287, + 1.1635649050678059, + 1.0871307070163994, + 0.8988686133923639 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.7309871323170603, + 3.1697635966094198, + 2.9815883755229695, + 2.8706449248327366, + 2.7637379656283234, + 2.926399935409853, + 2.8069899461613677, + 2.782435228242578, + 2.6178603228142676, + 1.8281113295451992, + 1.8940490086059527, + 1.8324282044926903, + 1.5903296487262761, + 1.5925891286631313, + 0.7103705884241744, + 0.9742590427712182, + 0.9074007246987084, + 0.9405837864919065, + 0.9653002131210144, + 0.9716574943682296, + 0.7075053295536702 + ], + [ + 2.314300027105734, + 2.403737161174292, + 2.471676830375396, + 2.8097931203426354, + 2.684485421074143, + 2.665742955821557, + 2.810376446493185, + 2.8604326518430807, + 2.9708735865724574, + 2.9243201398914542, + 3.156237628612337, + 3.7309871323170603, + 3.930110731448644, + 3.172226992044064, + 2.9930181264204223, + 2.8622298357810667, + 2.7950413460541097, + 2.9375260085039856, + 2.7818981117731854, + 2.823966256893959, + 2.5967992990416917, + 1.8371983864997607, + 1.930693920629306, + 1.8312668092917004, + 1.6297347311890982, + 1.590342860366293, + 0.758068397101918, + 0.9855179645361212, + 0.9206874522819447, + 0.9471145924052544, + 0.9646477762334961, + 0.9842017201935188, + 0.7881220435062507 + ], + [ + 2.461919023433335, + 2.597638610440688, + 2.6490549773173284, + 3.009127293528697, + 2.710291631374167, + 2.5794981154812304, + 2.6736977416647965, + 2.752539599097301, + 2.73446934898001, + 3.067048761828838, + 3.22763168797825, + 3.1697635966094198, + 3.172226992044064, + 4.035081665752084, + 2.939290367346883, + 3.2855856778188324, + 3.1022074358861733, + 3.2434380825548583, + 2.9611568416170573, + 2.8083200440471563, + 2.616588132988076, + 1.8701275212550186, + 1.9626337009647723, + 1.8332344588363338, + 1.5315531347610734, + 1.3761963647729136, + 0.7615105506425894, + 0.9584874065307398, + 0.8832127284362556, + 0.9764170264661503, + 1.0167790137683346, + 1.0681571015390157, + 0.818919375117991 + ], + [ + 2.1525834524304894, + 2.264245884321682, + 2.287733838137879, + 2.566939930248229, + 2.3660928534026255, + 2.342328835701662, + 2.469645286596305, + 2.4821132952428675, + 2.586290481358667, + 2.5550835039284294, + 2.73868710779468, + 2.9815883755229695, + 2.9930181264204223, + 2.939290367346883, + 3.54298760125702, + 2.921527870550785, + 2.7483279693040963, + 2.8409775478574666, + 2.582925497768195, + 2.5143138199746344, + 2.3242644618808024, + 1.704633437412501, + 1.6773689678541912, + 1.6633119366913098, + 1.4153329172895461, + 1.5110900607395281, + 0.7627869709742732, + 0.9792399828469156, + 0.921689544430509, + 0.9851010273173267, + 1.015888700473225, + 1.055010937731094, + 0.8600265413524133 + ], + [ + 2.2878599993587736, + 2.3787100324982844, + 2.437948935797838, + 2.824178768362589, + 2.5021354745974405, + 2.447579475586948, + 2.4861124142551194, + 2.552230042937554, + 2.5035650130784552, + 2.8371328612271056, + 3.0449663058740315, + 2.8706449248327366, + 2.8622298357810667, + 3.2855856778188324, + 2.921527870550785, + 3.989889752665237, + 3.2105765691424217, + 3.205854992735177, + 2.9495276151007803, + 2.80577186205303, + 2.6039381688698398, + 1.9158155823324203, + 1.918068359685552, + 1.859059220886696, + 1.490544681999069, + 1.42152200322146, + 0.8256450365013723, + 0.9227987482439577, + 0.8419148226750538, + 0.9090979553138583, + 0.9876992114609472, + 1.11318027180485, + 0.897826980101583 + ], + [ + 2.649216707734476, + 2.7277612956390977, + 2.821196618198155, + 3.06898893017062, + 2.7170570690583133, + 2.6835443814538675, + 2.6342022458406373, + 2.6587391965380647, + 2.6304524969642205, + 2.901021170165633, + 3.2609220872069793, + 2.7637379656283234, + 2.7950413460541097, + 3.1022074358861733, + 2.7483279693040963, + 3.2105765691424217, + 4.7274008071415885, + 4.38098084783146, + 3.8502719802545187, + 3.7208657576381747, + 3.245223804381355, + 2.1499059349338636, + 2.365672701976562, + 2.1824613432316853, + 1.7786986929696287, + 1.6846157997484135, + 0.9622552867832426, + 1.0520608470397097, + 1.0401326790826153, + 1.1067779547477345, + 1.0999227111890348, + 1.1508544691025184, + 1.169515037282032 + ], + [ + 3.0156422135045475, + 3.1370637154368013, + 3.22855616118193, + 3.2318720075944545, + 2.875442437072025, + 2.7608555994198474, + 2.791618824788654, + 2.891160217752835, + 2.8110631483320008, + 3.1394835575391844, + 3.5853485176514597, + 2.926399935409853, + 2.9375260085039856, + 3.2434380825548583, + 2.8409775478574666, + 3.205854992735177, + 4.38098084783146, + 5.3037711447961575, + 4.4809239514048835, + 4.012760087028986, + 3.7401869628618276, + 2.2355950808922027, + 2.494227717737122, + 2.284219091232866, + 1.8598940761303475, + 1.7661991266693997, + 0.935047804677864, + 1.1393992797459442, + 1.1231809786337004, + 1.1519141825757822, + 1.1549949072252053, + 1.2333150141343838, + 1.200391335441381 + ], + [ + 3.122213040882858, + 3.1696762295247107, + 3.2361888698373007, + 3.294301487573008, + 2.820028991822822, + 2.634072528968371, + 2.7069341876780633, + 2.860405920703912, + 2.786189742174216, + 3.1076712216569073, + 3.55540397894272, + 2.8069899461613677, + 2.7818981117731854, + 2.9611568416170573, + 2.582925497768195, + 2.9495276151007803, + 3.8502719802545187, + 4.4809239514048835, + 5.306791688691005, + 4.131984698665956, + 4.030514704329098, + 2.2748944062117094, + 2.464640668724879, + 2.260154943705265, + 1.895376217718618, + 1.7805126164537326, + 0.9967152289904879, + 1.1899153252039334, + 1.130133463617499, + 1.1658109967831987, + 1.237127216811226, + 1.3502222931299264, + 1.2858726154933944 + ], + [ + 2.735158415906826, + 2.9053430196477175, + 2.8956234872659334, + 3.236104916150143, + 2.5706342498102113, + 2.5402087703565397, + 2.5442820215971675, + 2.626952983049047, + 2.7121451734863506, + 3.0661818722694756, + 3.516410805692872, + 2.782435228242578, + 2.823966256893959, + 2.8083200440471563, + 2.5143138199746344, + 2.80577186205303, + 3.7208657576381747, + 4.012760087028986, + 4.131984698665956, + 4.997935820179628, + 3.962636732284426, + 2.4747369016634724, + 2.7212739467253444, + 2.3513848388521, + 2.1624253347828892, + 2.0638583633735874, + 1.1048584391414855, + 1.1776002132319525, + 1.260497729733739, + 1.1974236119522488, + 1.209242733399492, + 1.3456393585688418, + 1.2996019104753054 + ], + [ + 2.8335350264143155, + 2.9992099691196215, + 2.9475113511326088, + 3.0298012160053225, + 2.5550329073120106, + 2.467476627692352, + 2.4445793489663017, + 2.5316669670984147, + 2.622847342698003, + 2.992499578110458, + 3.457223234011531, + 2.6178603228142676, + 2.5967992990416917, + 2.616588132988076, + 2.3242644618808024, + 2.6039381688698398, + 3.245223804381355, + 3.7401869628618276, + 4.030514704329098, + 3.962636732284426, + 5.424582695669656, + 2.6709932797011553, + 2.9109871982624167, + 2.5879330187056824, + 2.3588714636750794, + 2.2394388292920926, + 1.0353286120679521, + 1.334329990729527, + 1.3615573865691337, + 1.3653986617292104, + 1.4438250800166432, + 1.531797641897138, + 1.4995929307961264 + ], + [ + 1.4476710763864702, + 1.6601984109646992, + 1.534689597529067, + 1.8665905775445029, + 1.977044926904529, + 1.8071922155323132, + 1.9332649780278837, + 1.9043515786609861, + 1.8989955635181268, + 1.9784082138290793, + 2.058031323370723, + 1.8281113295451992, + 1.8371983864997607, + 1.8701275212550186, + 1.704633437412501, + 1.9158155823324203, + 2.1499059349338636, + 2.2355950808922027, + 2.2748944062117094, + 2.4747369016634724, + 2.6709932797011553, + 3.379131425981329, + 2.651530645654673, + 2.342599610812365, + 2.079936760442765, + 1.7187760810924886, + 0.7559185079850282, + 1.1777505999280131, + 1.0215960774092963, + 0.9367182764084494, + 0.9552406542818174, + 1.030976435758569, + 1.0083506902108008 + ], + [ + 1.6757910880417386, + 1.8354434405034292, + 1.7481715931721336, + 2.0020961767889873, + 1.8439292062450405, + 1.6949663731773699, + 1.821922281557604, + 1.8517012881252881, + 1.8747969939832225, + 2.112733961764548, + 2.265294235313926, + 1.8940490086059527, + 1.930693920629306, + 1.9626337009647723, + 1.6773689678541912, + 1.918068359685552, + 2.365672701976562, + 2.494227717737122, + 2.464640668724879, + 2.7212739467253444, + 2.9109871982624167, + 2.651530645654673, + 3.700480385834811, + 2.7274619208958346, + 2.4593391984596837, + 1.8006567967637055, + 0.7658942517923812, + 1.143022798771677, + 1.068164116581762, + 0.9167734362036271, + 0.8345832873694562, + 0.9954551213088274, + 0.921797273840585 + ], + [ + 1.560077749109066, + 1.7692311047970397, + 1.7311299784369338, + 1.843589545069702, + 1.6496830759987995, + 1.570303251246303, + 1.700187574806416, + 1.7475179504543674, + 1.8039727756960982, + 1.9183625720284727, + 2.149293336638887, + 1.8324282044926903, + 1.8312668092917004, + 1.8332344588363338, + 1.6633119366913098, + 1.859059220886696, + 2.1824613432316853, + 2.284219091232866, + 2.260154943705265, + 2.3513848388521, + 2.5879330187056824, + 2.342599610812365, + 2.7274619208958346, + 3.6363728657784233, + 2.6947085597538543, + 1.7746544951910237, + 0.6941655086565679, + 1.1690169013172815, + 1.035344224716548, + 0.8418969131638131, + 0.8250764754864821, + 0.9864211199831681, + 0.9556058874829595 + ], + [ + 1.3105082884760846, + 1.4514514803062588, + 1.3549313023902774, + 1.5829701034661072, + 1.4721869550367672, + 1.4143723722330284, + 1.4839556767277615, + 1.4106259012845308, + 1.5473793084442458, + 1.5754124136951366, + 1.7909503230947812, + 1.5903296487262761, + 1.6297347311890982, + 1.5315531347610734, + 1.4153329172895461, + 1.490544681999069, + 1.7786986929696287, + 1.8598940761303475, + 1.895376217718618, + 2.1624253347828892, + 2.3588714636750794, + 2.079936760442765, + 2.4593391984596837, + 2.6947085597538543, + 3.9600165881456326, + 2.244853333853068, + 0.7762316889570585, + 1.3851960910922103, + 1.2174581134169675, + 0.9213630782693091, + 0.9112985108066699, + 1.0036026898581505, + 0.9691482431827392 + ], + [ + 1.3449146523213704, + 1.455614489064811, + 1.419796533720719, + 1.5864523507153467, + 1.4120372043709835, + 1.365852011357938, + 1.413448759759593, + 1.43847577063438, + 1.570183010230387, + 1.579384286558107, + 1.6350031347072727, + 1.5925891286631313, + 1.590342860366293, + 1.3761963647729136, + 1.5110900607395281, + 1.42152200322146, + 1.6846157997484135, + 1.7661991266693997, + 1.7805126164537326, + 2.0638583633735874, + 2.2394388292920926, + 1.7187760810924886, + 1.8006567967637055, + 1.7746544951910237, + 2.244853333853068, + 4.126862603559787, + 1.8307068464132223, + 1.6892578951113346, + 1.5602236850273088, + 1.301467776140766, + 1.355598569157209, + 1.3825216818671957, + 1.1932043341070957 + ], + [ + 0.7867328199618516, + 0.8824892077111548, + 0.8434019475919747, + 0.9842629092970591, + 0.8161292366014105, + 0.8525749710753611, + 0.8243704980245724, + 0.8069107914890946, + 0.8517991444075295, + 0.8668212383108905, + 0.895429961189473, + 0.7103705884241744, + 0.758068397101918, + 0.7615105506425894, + 0.7627869709742732, + 0.8256450365013723, + 0.9622552867832426, + 0.935047804677864, + 0.9967152289904879, + 1.1048584391414855, + 1.0353286120679521, + 0.7559185079850282, + 0.7658942517923812, + 0.6941655086565679, + 0.7762316889570585, + 1.8307068464132223, + 3.2226666395910537, + 1.263493495183496, + 1.2065912891888106, + 1.0422827571401898, + 1.167915965143054, + 1.2379748751752127, + 1.2971150963787008 + ], + [ + 1.0295279842914145, + 1.1137565329190535, + 1.155251913975692, + 1.0833663819825314, + 0.9722650270236017, + 0.9825293700325594, + 0.9313336387577859, + 0.972672384792874, + 0.987086974883477, + 1.1116202500276509, + 1.120159080807125, + 0.9742590427712182, + 0.9855179645361212, + 0.9584874065307398, + 0.9792399828469156, + 0.9227987482439577, + 1.0520608470397097, + 1.1393992797459442, + 1.1899153252039334, + 1.1776002132319525, + 1.334329990729527, + 1.1777505999280131, + 1.143022798771677, + 1.1690169013172815, + 1.3851960910922103, + 1.6892578951113346, + 1.263493495183496, + 2.805180941646163, + 1.9190041484067935, + 1.589520778149614, + 1.555121151872259, + 1.2738054364504456, + 1.2600595639073078 + ], + [ + 0.9976450629962423, + 1.1446827227156666, + 1.1178256592299947, + 1.0527711926543772, + 0.8477892108457493, + 0.8967780561942892, + 0.8613350801923607, + 0.9251104498215555, + 0.9476852799698333, + 1.1316271873153823, + 1.080969991837595, + 0.9074007246987084, + 0.9206874522819447, + 0.8832127284362556, + 0.921689544430509, + 0.8419148226750538, + 1.0401326790826153, + 1.1231809786337004, + 1.130133463617499, + 1.260497729733739, + 1.3615573865691337, + 1.0215960774092963, + 1.068164116581762, + 1.035344224716548, + 1.2174581134169675, + 1.5602236850273088, + 1.2065912891888106, + 1.9190041484067935, + 2.7554258296757266, + 1.938038648948368, + 1.781189792047324, + 1.4376687473222314, + 1.3775397250173684 + ], + [ + 1.0551311627117597, + 1.1310017970761124, + 1.1234932190884592, + 1.1302960072342605, + 0.9310834882602305, + 0.9444128194705904, + 0.9431387629266099, + 0.9958138686818863, + 0.9682259719700246, + 1.1275585551913094, + 1.0764722275586287, + 0.9405837864919065, + 0.9471145924052544, + 0.9764170264661503, + 0.9851010273173267, + 0.9090979553138583, + 1.1067779547477345, + 1.1519141825757822, + 1.1658109967831987, + 1.1974236119522488, + 1.3653986617292104, + 0.9367182764084494, + 0.9167734362036271, + 0.8418969131638131, + 0.9213630782693091, + 1.301467776140766, + 1.0422827571401898, + 1.589520778149614, + 1.938038648948368, + 2.8012456953203824, + 2.213163009832198, + 1.7779756318043214, + 1.5564826744953513 + ], + [ + 1.2135039258282794, + 1.2841266505454594, + 1.254512839091728, + 1.2276297727276524, + 1.0302026270062674, + 1.001342143085715, + 0.9926589042391588, + 1.0492769922561158, + 1.0666754568337995, + 1.1551859501110775, + 1.1635649050678059, + 0.9653002131210144, + 0.9646477762334961, + 1.0167790137683346, + 1.015888700473225, + 0.9876992114609472, + 1.0999227111890348, + 1.1549949072252053, + 1.237127216811226, + 1.209242733399492, + 1.4438250800166432, + 0.9552406542818174, + 0.8345832873694562, + 0.8250764754864821, + 0.9112985108066699, + 1.355598569157209, + 1.167915965143054, + 1.555121151872259, + 1.781189792047324, + 2.213163009832198, + 2.9700067248715416, + 1.910223378463109, + 1.749278752453771 + ], + [ + 1.3591603339230407, + 1.2945064357520133, + 1.2419221049979003, + 1.2682545105507188, + 1.148183987826183, + 1.072680225680396, + 1.092739505581484, + 1.0890026759950953, + 1.0733110805534485, + 1.0834525349085238, + 1.0871307070163994, + 0.9716574943682296, + 0.9842017201935188, + 1.0681571015390157, + 1.055010937731094, + 1.11318027180485, + 1.1508544691025184, + 1.2333150141343838, + 1.3502222931299264, + 1.3456393585688418, + 1.531797641897138, + 1.030976435758569, + 0.9954551213088274, + 0.9864211199831681, + 1.0036026898581505, + 1.3825216818671957, + 1.2379748751752127, + 1.2738054364504456, + 1.4376687473222314, + 1.7779756318043214, + 1.910223378463109, + 4.867109220537086, + 3.2877996158340754 + ], + [ + 1.3953358624052978, + 1.3687794265131663, + 1.218965095759463, + 1.281760629487778, + 1.0495423912360902, + 1.295470380551076, + 1.0462822337188293, + 0.9841123918210369, + 0.9899130507077791, + 0.8663890394901907, + 0.8988686133923639, + 0.7075053295536702, + 0.7881220435062507, + 0.818919375117991, + 0.8600265413524133, + 0.897826980101583, + 1.169515037282032, + 1.200391335441381, + 1.2858726154933944, + 1.2996019104753054, + 1.4995929307961264, + 1.0083506902108008, + 0.921797273840585, + 0.9556058874829595, + 0.9691482431827392, + 1.1932043341070957, + 1.2971150963787008, + 1.2600595639073078, + 1.3775397250173684, + 1.5564826744953513, + 1.749278752453771, + 3.2877996158340754, + 6.785350938802596 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.39629581536575914, + -0.39392408968380227, + -0.4249299366788886, + -0.3858839856956466, + -0.3413208391183487, + -0.3231474525675428, + -0.32045481597735254, + -0.33767751962196185, + -0.3303917205137287, + -0.4347258131497242, + -0.39758334223454067, + -0.3944413347919116, + -0.3859768635984357, + -0.37205332031609534, + -0.4163590927666799, + -0.46259253830850405, + -0.4794860295820968, + -0.45219894423816637, + -0.44479066197100775, + -0.34358299724361435, + -0.2797879744610617 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.621696986035118, + "transport_matrix_sha256": "7a007f3fdd875ef86f1976706799e8f654c8fd9e93d7851f85e6b8a8a2f23d17", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.113433837890625e-05, + "gram_mean_diagonal": 0.06113433837890625, + "calibration_nmse": 0.02677125200720686, + "calibration_cosine": 0.9865240183756301, + "calibration_norm_ratio": 0.9855801755880016, + "transport_relative_identity_distance": 0.2614944577217102, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "a9874967bd53acfd480ed2bd5552fab4e1a06f610af242d411e176c279e0191a", + "self_attn.k_proj.weight": "0a285bc594b54a921f698937c566bce629295ff4befcebb203038dd0d97eb3f0", + "self_attn.v_proj.weight": "dd8847c5b10e200df29bf79b30321ec7f1d90427ab9b3d273e18a4cbd83e597d", + "self_attn.o_proj.weight": "e6afd2a9ba7c9e6f1911d773062b9d37442a01ead339c9aa9255ff20f146b196", + "self_attn.q_norm.weight": "48de60cd86dec981224231f275146bc8d17990394835783504bbf5f0e9c5bb1a", + "self_attn.k_norm.weight": "d6ef88be0fc007a2bc5e9f1a0a70b7eac493495b5b54b4f72582378340b9bb4d", + "mlp.gate_proj.weight": "171beb5701a83f117d0a59a14a78be2936a062c7aa5700ec39efd9c816af96db", + "mlp.up_proj.weight": "e04d543903d934aae9062d2034f71ac4d3fb1ac69bd5f31d365f404c764e535e", + "mlp.down_proj.weight": "c297d40f8af2ed96c90ff2f616877b4aaeed4bc2918f0e3b56ea769203724ce1", + "input_layernorm.weight": "45d58615dedc0906944d998c52fed1d0d139338362abd51fc1b98ae12edec92a", + "post_attention_layernorm.weight": "af332049d823017194704880c92765ab0cf4a519c8819753d0539106ea951cef" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "a9874967bd53acfd480ed2bd5552fab4e1a06f610af242d411e176c279e0191a", + "self_attn.k_proj.weight": "0a285bc594b54a921f698937c566bce629295ff4befcebb203038dd0d97eb3f0", + "self_attn.v_proj.weight": "dd8847c5b10e200df29bf79b30321ec7f1d90427ab9b3d273e18a4cbd83e597d", + "self_attn.o_proj.weight": "e6afd2a9ba7c9e6f1911d773062b9d37442a01ead339c9aa9255ff20f146b196", + "self_attn.q_norm.weight": "48de60cd86dec981224231f275146bc8d17990394835783504bbf5f0e9c5bb1a", + "self_attn.k_norm.weight": "d6ef88be0fc007a2bc5e9f1a0a70b7eac493495b5b54b4f72582378340b9bb4d", + "mlp.gate_proj.weight": "e585ef500e837ee8ba120cdf78c68222cd5d33cce3cace60bb0916e239526f4d", + "mlp.up_proj.weight": "006510c182eac74fd119cccb59f5a21f56be6ae8ad84582247abf117ef4b00af", + "mlp.down_proj.weight": "c297d40f8af2ed96c90ff2f616877b4aaeed4bc2918f0e3b56ea769203724ce1", + "input_layernorm.weight": "45d58615dedc0906944d998c52fed1d0d139338362abd51fc1b98ae12edec92a", + "post_attention_layernorm.weight": "af332049d823017194704880c92765ab0cf4a519c8819753d0539106ea951cef" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.621696986035118, + "lambda_right": 0.378303013964882, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "589d2d560b63011f41524f9e4902e6b2453440cd645b4b500a28538a1cf4704d", + "mlp.up_proj.weight": "35d04fcf67ab22adbf6bcb1250c54bf267aea4a73f4bf2998beca5d4e5eccfff", + "mlp.gate_proj.weight": "2521e18eaf36850c9e28e3885e3f87dd0c9091aa16b24011b8753a9295247377", + "self_attn.k_proj.weight": "ce465b2cc7ff0c4ee4bd155b75efe66c5afcba97bba8dae2b852b0629cf4e8c3", + "self_attn.o_proj.weight": "8d49531ce242f536d1d27a2882f3562fdf3e7b2b1ba901c604e6ab2528857817", + "self_attn.q_proj.weight": "ba87131bcd890976f15ffd199dc564012b8aa6c1f3202f184596557259cd92b7", + "self_attn.v_proj.weight": "3631a170e4e61c2d0dcf2617a77489bca1f8d94c407d14ac10bb8a54cda02fbe" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "a9874967bd53acfd480ed2bd5552fab4e1a06f610af242d411e176c279e0191a", + "self_attn.k_proj.weight": "0a285bc594b54a921f698937c566bce629295ff4befcebb203038dd0d97eb3f0", + "self_attn.v_proj.weight": "dd8847c5b10e200df29bf79b30321ec7f1d90427ab9b3d273e18a4cbd83e597d", + "self_attn.o_proj.weight": "e6afd2a9ba7c9e6f1911d773062b9d37442a01ead339c9aa9255ff20f146b196", + "self_attn.q_norm.weight": "48de60cd86dec981224231f275146bc8d17990394835783504bbf5f0e9c5bb1a", + "self_attn.k_norm.weight": "d6ef88be0fc007a2bc5e9f1a0a70b7eac493495b5b54b4f72582378340b9bb4d", + "mlp.gate_proj.weight": "e585ef500e837ee8ba120cdf78c68222cd5d33cce3cace60bb0916e239526f4d", + "mlp.up_proj.weight": "006510c182eac74fd119cccb59f5a21f56be6ae8ad84582247abf117ef4b00af", + "mlp.down_proj.weight": "c297d40f8af2ed96c90ff2f616877b4aaeed4bc2918f0e3b56ea769203724ce1", + "input_layernorm.weight": "45d58615dedc0906944d998c52fed1d0d139338362abd51fc1b98ae12edec92a", + "post_attention_layernorm.weight": "af332049d823017194704880c92765ab0cf4a519c8819753d0539106ea951cef" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "b435c15455b9acea20e4c29c945a6c82e17f681d8d7e66ad87acb8fac7170d83", + "mlp.up_proj.weight": "fbf0e81a87ba5cc794a443b499a5b146e8852438e93e6d63e089d797b3cbcea1", + "mlp.gate_proj.weight": "4fa198abc19c57731465efea76911d71ffa46ff751d5fe8a60b44c576e10f6e7", + "self_attn.k_proj.weight": "032c027fe01cb5fab5f4c1e3dc67e7cf0df68ec9aaa6d17ec2e475e82d3c1e55", + "self_attn.o_proj.weight": "9f0e48310cf38889f4ed316f139295db2cf5e538bf7e55485aad5e71e23ecd5e", + "self_attn.q_proj.weight": "3bc8c412dc5060b6e560e3239eeae87e063ebc8dab8004e85753243c608887e1", + "self_attn.v_proj.weight": "60ce6d426d898b9dfafeb8708e5cd7ab0ab1ed9ecb72406ed7ced29ddf241f92" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_5/cycle_metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_5/cycle_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0e403a119d407b201688a49677dc82720a0f94b4 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_5/cycle_metadata.json @@ -0,0 +1,1420 @@ +{ + "cycle": 5, + "layer_merged": 12, + "num_layers_before": 32, + "num_layers_after": 31, + "fused_layer_state": "fused_layer.pt", + "profile_no_save": false, + "dwce_score": null, + "dwce_scores": null, + "dwce_meta": { + "method": "mka", + "fisher_computed": false + }, + "fisher_num_batches": 0, + "merge_method": "fisher", + "merged_params": 7, + "num_sequences": 64, + "teacher_source": "previous_cycle", + "teacher_cycle": 4, + "eval": { + "datasets": [ + "wikitext2" + ], + "configs": [ + null + ], + "split": "test", + "num_samples": 0, + "seq_len": 1024, + "post_ppl": null, + "merge_only_ppl": null + }, + "comm": { + "enabled": false + }, + "distill": { + "enabled": false, + "method": "reparam", + "calib_samples": 256, + "inst_samples": 0, + "seq_len": 512, + "batch_size": 2, + "epochs": 1.0, + "lr": 0.0001, + "kl_weight": 0.01, + "kl_temp": 4.0, + "kl_chunk_size": 16384, + "hidden_mse_weight": 1.0, + "attn_mse_weight": 0.0, + "mlp_mse_weight": 0.0, + "reparam_eta": 0.01, + "reparam_gamma": 0.0001, + "reparam_attn_reg_scale": 1.0, + "reparam_mlp_reg_scale": 1.0, + "reparam_param_subset": "all", + "reparam_train_subset": "same", + "reparam_skip_train": false, + "reparam_stats": null, + "reparam_gate_summary": null, + "post_merge_nll_scale": null, + "merge_only_ppl": null, + "post_ppl": null, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "instruction_dataset": null, + "instruction_config": null, + "instruction_split": "train" + }, + "lora": { + "enabled": false, + "seq_len": 512, + "batch_size": 2, + "epochs": 0.0, + "rank": 8, + "alpha": 16.0, + "dropout": 0.0, + "target_modules": [ + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "gate_proj", + "down_proj", + "up_proj" + ], + "respect_exclude_pairs": false, + "kl_enabled": false, + "kl_weight": 0.1, + "kl_temp": 4.0, + "post_ppl": null, + "lr": 0.0001, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "log_steps": 100, + "eval_every": 0, + "eval_max_batches": null + }, + "norm_policy": "copy_n1_n2", + "source_feature_transport": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.142368912696839e-05, + "gram_mean_diagonal": 0.061423689126968384, + "calibration_nmse": 0.02465241517369944, + "calibration_cosine": 0.9875973430746754, + "calibration_norm_ratio": 0.9866344194757573, + "transport_relative_identity_distance": 0.24454472959041595, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "Transport then non-Fisher exact merge; no FiT" + }, + "same_anchor_contextual_fisher": { + "computed": false, + "anchor_candidate_mean_nll": 0.0, + "transported_source_candidate_mean_nll": 0.0 + }, + "full_model_saved": false, + "timing": { + "seconds": { + "selection": 9.367764841997996, + "rebase": 0.0, + "source_feature_transport": 4.039573482994456, + "fisher": 4.157004877924919e-05, + "fit": 2.708148366014939, + "materialize_save_layer": 0.6125890000257641, + "metadata_write": 0.00046943704364821315, + "teacher_snapshot": 0.814950903004501, + "cycle_cleanup": 0.1682299769599922, + "cycle_total": 17.712532436009496 + }, + "tracked_component_total_seconds": 17.711767578090075, + "cycle_total_seconds": 17.712532436009496, + "ratios_of_tracked_components": { + "selection": 0.5289006193591976, + "rebase": 0.0, + "source_feature_transport": 0.22807285976310546, + "fisher": 2.3470299390486832e-06, + "fit": 0.1529010785668275, + "materialize_save_layer": 0.03458655367539674, + "metadata_write": 2.6504245924552396e-05, + "teacher_snapshot": 0.046011833624816575, + "cycle_cleanup": 0.009498203734792519 + }, + "ratios_of_cycle_total": { + "selection": 0.5288777805116887, + "rebase": 0.0, + "source_feature_transport": 0.22806301118083044, + "fisher": 2.346928590218837e-06, + "fit": 0.15289447603264714, + "materialize_save_layer": 0.034585060167927964, + "metadata_write": 2.650310142517226e-05, + "teacher_snapshot": 0.04600984675391248, + "cycle_cleanup": 0.00949779358585571 + } + }, + "fisher_computed": false, + "fit": false, + "nofit_merge_control": { + "cycle": 5, + "anchor": 12, + "removed_original_layer": 17, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.2973014672443273, + 2.402313465345035, + 2.7751658007372124, + 2.431967012817301, + 2.555949570500245, + 2.9490550065873617, + 2.933062839998181, + 2.985586109185286, + 1.393497006924735, + 1.5549888324033396, + 1.6172032381708137, + 1.2895455137771423, + 1.3305508398944483, + 0.809612793475257, + 0.96576077948826, + 0.9678482963357555, + 1.076437300927, + 1.1106831656359657, + 1.2818385237479304, + 1.367331307834341 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3593836873266576, + 2.4969686514309237, + 2.761282372061731, + 2.514009710327687, + 2.678313267524417, + 3.0385727050761773, + 3.146421624678776, + 3.1126286988238836, + 1.4966492525721014, + 1.7356666744877467, + 1.760067430971546, + 1.3822790019247668, + 1.44865621676555, + 0.8706680369307369, + 1.087681668858802, + 1.016765063089871, + 1.168092624762163, + 1.240202514748782, + 1.2512539741859132, + 1.5289417353969423 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.472799166107413, + 2.5487305066435324, + 2.862739133796854, + 2.459992013000342, + 2.6895761883196476, + 3.0540897711329347, + 3.1636333863106842, + 2.956284068558032, + 1.427682139973012, + 1.666052580315572, + 1.6172506596558796, + 1.3478479434049486, + 1.4524278573457412, + 0.8472268087342227, + 1.0915963974461942, + 1.0233891066594845, + 1.1170455724981618, + 1.189972476000872, + 1.204138405946318, + 1.4489879568487152 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.826623250750395, + 2.829128529870874, + 3.2520301403879524, + 2.855804693529714, + 3.0138645684949963, + 3.41710960611837, + 3.308103776833983, + 2.862256429918106, + 1.5543731860514867, + 2.032282844095036, + 1.8485855337863513, + 1.5356195883615302, + 1.5954369023407893, + 1.1125602833908146, + 1.0939111250358495, + 0.9625166787034021, + 1.1018882409886093, + 1.221910865722635, + 1.2988461323624159, + 1.3737590918672091 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.740993573260234, + 2.7078545559894063, + 2.808013590210768, + 2.7302198303918033, + 2.6733525405195957, + 2.9306109298562504, + 2.724838391647251, + 2.4668328844542935, + 1.382441321958602, + 1.843551366503246, + 1.691076875650992, + 1.2705448428608754, + 1.4552881932284591, + 0.9296751122667901, + 0.9863193465434471, + 0.7896427441625843, + 0.870606594507396, + 1.0034121877274516, + 1.1606232700187604, + 1.1671181849656456 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.614220787093429, + 2.6501461085544795, + 2.731432821325423, + 2.665173718303485, + 2.529184666025586, + 2.747125470323815, + 2.730871060839862, + 2.4255575688637157, + 1.4399598585545985, + 1.7393478905969277, + 1.6833521238772298, + 1.3394242790383133, + 1.4772322241979203, + 1.0018227306191279, + 1.0514234553417974, + 0.898569320285732, + 0.9275928769055607, + 1.0328114187502706, + 1.2249622386495047, + 1.249906287774621 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8357127176867145, + 2.7175887262467424, + 2.810749227598172, + 2.6396113340815632, + 2.610701692748886, + 2.865836600395961, + 2.7201746726471985, + 2.376016027573937, + 1.3548302877521203, + 1.7813569087158272, + 1.7431930238989644, + 1.3193022606522211, + 1.4935638799943822, + 0.8907893733515545, + 0.9541463292028871, + 0.8076943037291087, + 0.8314839027100833, + 0.9526857565002524, + 1.0656383876649953, + 1.043281432100314 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8895048272012303, + 2.7809944225774386, + 2.8859910412636007, + 2.6382373642462347, + 2.6344756125377433, + 2.955985931473798, + 2.759363968261283, + 2.4185247447673555, + 1.3498300313754128, + 1.7333495052521455, + 1.684202508148144, + 1.31790487922462, + 1.5481601596292842, + 0.8667593274210247, + 0.9706611467753349, + 0.8327209980937196, + 0.8290287059936796, + 0.962538409183641, + 1.0024617353618726, + 1.0392645329380419 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0698740923791608, + 2.9039236660401033, + 2.885517872292078, + 2.7205889657416087, + 2.729609472173427, + 2.9254031628239963, + 2.8947586207155362, + 2.5344803496790393, + 1.3752413744530156, + 1.8392546121026203, + 1.7394218576958254, + 1.3351316714512602, + 1.5927354985510551, + 0.8643039502278661, + 1.0066776903105028, + 0.8417119057336107, + 0.8499465349219155, + 0.9379137996971791, + 1.06155710262533, + 1.0577599205726012 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.981353692057144, + 2.9416116014811853, + 3.1978591518906905, + 2.8033148259375067, + 2.978134204609236, + 3.3500533488820174, + 3.248905158339224, + 3.01273866422778, + 1.4928379209748757, + 2.0924587099912397, + 1.7548677066584348, + 1.2369197720830687, + 1.524747419944472, + 0.9006708186297612, + 1.1102994045064498, + 0.9265597470579497, + 0.9631736463922361, + 1.0518952278190978, + 1.0687943067750203, + 1.0312919104536666 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.1462477950594425, + 3.197764002772733, + 3.5145079587265986, + 3.0963171168830788, + 3.376910422849725, + 3.8097273751913714, + 3.7128669817900093, + 3.369007918369798, + 1.601815791683029, + 2.2794413850211392, + 1.958799524682474, + 1.4267650342785887, + 1.5981651898152902, + 1.010415534218139, + 1.1526793324075288, + 0.9586410845387935, + 0.9939020368009012, + 1.1163003101618856, + 1.110389294859144, + 1.0823317673509731 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.742356002929944, + 3.383371706835006, + 3.3924240199074394, + 2.8649469601508533, + 2.8585780244852512, + 3.0953476446887365, + 2.9867173626254933, + 2.7205950369429406, + 1.3211525124858672, + 1.9314244774738658, + 1.778438445338661, + 1.2462945730282928, + 1.4966216237493208, + 0.9035245075969893, + 0.9981064040212014, + 0.7704070877183071, + 0.8470461781091146, + 0.9009734489294722, + 0.907101625722732, + 0.8051401540773183 + ], + [ + 2.2973014672443273, + 2.3593836873266576, + 2.472799166107413, + 2.826623250750395, + 2.740993573260234, + 2.614220787093429, + 2.8357127176867145, + 2.8895048272012303, + 3.0698740923791608, + 2.981353692057144, + 3.1462477950594425, + 3.742356002929944, + 3.926896195886476, + 3.378387193141527, + 3.40639052240984, + 2.901356735718054, + 2.8452156256952406, + 3.0510592363605302, + 2.947438147038787, + 2.6499170368364497, + 1.3258955764285345, + 1.893871414298415, + 1.7568690902004291, + 1.2429056819733337, + 1.469791917632966, + 0.9365202592561014, + 1.004637568041793, + 0.7828648605184062, + 0.8330063452812045, + 0.8843537874750571, + 0.9185482308646887, + 0.8080135947050936 + ], + [ + 2.402313465345035, + 2.4969686514309237, + 2.5487305066435324, + 2.829128529870874, + 2.7078545559894063, + 2.6501461085544795, + 2.7175887262467424, + 2.7809944225774386, + 2.9039236660401033, + 2.9416116014811853, + 3.197764002772733, + 3.383371706835006, + 3.378387193141527, + 3.977717511296361, + 3.3957283734533923, + 3.1466679050000828, + 2.990727096977889, + 3.22903601241262, + 3.3032477564880938, + 2.8382784084862847, + 1.444539873757418, + 2.101374619522435, + 1.8370410783297462, + 1.2770064769215446, + 1.5434148937022019, + 0.9240100500797772, + 1.0793408063954195, + 0.8847784953583515, + 0.9438680711395592, + 1.0283057129304165, + 0.9970837608559847, + 0.868986464026517 + ], + [ + 2.7751658007372124, + 2.761282372061731, + 2.862739133796854, + 3.2520301403879524, + 2.808013590210768, + 2.731432821325423, + 2.810749227598172, + 2.8859910412636007, + 2.885517872292078, + 3.1978591518906905, + 3.5145079587265986, + 3.3924240199074394, + 3.40639052240984, + 3.3957283734533923, + 4.892215542768703, + 3.1740534654334596, + 3.321833699142465, + 3.6589134914425383, + 3.63390900227163, + 3.180349577486336, + 1.5989628805855263, + 2.1830519220782056, + 2.144417546208945, + 1.4174847424003068, + 1.5951068262493873, + 1.0244748288118561, + 1.0841754468016427, + 0.974834022828838, + 1.0481723689210447, + 1.098285987385861, + 1.135548717844255, + 1.0941816270646254 + ], + [ + 2.431967012817301, + 2.514009710327687, + 2.459992013000342, + 2.855804693529714, + 2.7302198303918033, + 2.665173718303485, + 2.6396113340815632, + 2.6382373642462347, + 2.7205889657416087, + 2.8033148259375067, + 3.0963171168830788, + 2.8649469601508533, + 2.901356735718054, + 3.1466679050000828, + 3.1740534654334596, + 3.9937463096980435, + 3.2892693731094194, + 3.362995995453261, + 3.2820594914322996, + 2.9379288712078795, + 1.517146685539057, + 2.1505826674201907, + 1.9336302740148246, + 1.3748626102577917, + 1.587569614006051, + 0.9792879160948031, + 1.0461209849114563, + 0.8259884927845619, + 0.8811686570437808, + 0.9785137877000379, + 1.127827705135187, + 1.1299096754924907 + ], + [ + 2.555949570500245, + 2.678313267524417, + 2.6895761883196476, + 3.0138645684949963, + 2.6733525405195957, + 2.529184666025586, + 2.610701692748886, + 2.6344756125377433, + 2.729609472173427, + 2.978134204609236, + 3.376910422849725, + 2.8585780244852512, + 2.8452156256952406, + 2.990727096977889, + 3.321833699142465, + 3.2892693731094194, + 4.163008311074229, + 3.9690584539072478, + 3.6519173618617806, + 3.2242557399783744, + 1.6410061439206283, + 2.2918670182603424, + 2.0878782343313675, + 1.4316718192558455, + 1.6377007628378921, + 0.9904978093895298, + 1.0743450115299802, + 0.8834000312529767, + 0.9322221128868772, + 1.0129472995324105, + 1.2665063037524904, + 1.132887344840433 + ], + [ + 2.9490550065873617, + 3.0385727050761773, + 3.0540897711329347, + 3.41710960611837, + 2.9306109298562504, + 2.747125470323815, + 2.865836600395961, + 2.955985931473798, + 2.9254031628239963, + 3.3500533488820174, + 3.8097273751913714, + 3.0953476446887365, + 3.0510592363605302, + 3.22903601241262, + 3.6589134914425383, + 3.362995995453261, + 3.9690584539072478, + 5.047886961735841, + 4.275349958339594, + 3.7707458819401136, + 1.8294959169854674, + 2.4545366487281703, + 2.2664141218564233, + 1.5745255179962556, + 1.752542746445554, + 1.0800613648428137, + 1.230985966321403, + 0.9507795887895371, + 0.9769855341349886, + 1.1100384736074926, + 1.351214034030075, + 1.3367682085177501 + ], + [ + 2.933062839998181, + 3.146421624678776, + 3.1636333863106842, + 3.308103776833983, + 2.724838391647251, + 2.730871060839862, + 2.7201746726471985, + 2.759363968261283, + 2.8947586207155362, + 3.248905158339224, + 3.7128669817900093, + 2.9867173626254933, + 2.947438147038787, + 3.3032477564880938, + 3.63390900227163, + 3.2820594914322996, + 3.6519173618617806, + 4.275349958339594, + 5.426031556242451, + 4.149988710776244, + 2.080162689795472, + 2.764652358825801, + 2.5397823837630455, + 1.81100182883071, + 1.9611577176484447, + 1.1619509149657, + 1.3315860486791715, + 1.1272128544317608, + 1.060654069484848, + 1.2303075516476945, + 1.2886692408533105, + 1.2709965464820308 + ], + [ + 2.985586109185286, + 3.1126286988238836, + 2.956284068558032, + 2.862256429918106, + 2.4668328844542935, + 2.4255575688637157, + 2.376016027573937, + 2.4185247447673555, + 2.5344803496790393, + 3.01273866422778, + 3.369007918369798, + 2.7205950369429406, + 2.6499170368364497, + 2.8382784084862847, + 3.180349577486336, + 2.9379288712078795, + 3.2242557399783744, + 3.7707458819401136, + 4.149988710776244, + 5.760680057504002, + 2.5433746993647866, + 2.940625393953212, + 2.675974706286473, + 1.7988875255035213, + 2.1125439422500314, + 1.1983649393968143, + 1.4995825238836793, + 1.2963236347184819, + 1.2967534923001087, + 1.4926260852969229, + 1.3754856915417923, + 1.3118021479573374 + ], + [ + 1.393497006924735, + 1.4966492525721014, + 1.427682139973012, + 1.5543731860514867, + 1.382441321958602, + 1.4399598585545985, + 1.3548302877521203, + 1.3498300313754128, + 1.3752413744530156, + 1.4928379209748757, + 1.601815791683029, + 1.3211525124858672, + 1.3258955764285345, + 1.444539873757418, + 1.5989628805855263, + 1.517146685539057, + 1.6410061439206283, + 1.8294959169854674, + 2.080162689795472, + 2.5433746993647866, + 3.2415823320350934, + 2.136247080734255, + 1.7509282992203057, + 1.7605169443473938, + 1.597933569087796, + 0.9771971856262035, + 1.081744762728614, + 0.9839543776707738, + 0.951335897899678, + 1.0498730662286713, + 1.0009268238033238, + 1.0254695008636976 + ], + [ + 1.5549888324033396, + 1.7356666744877467, + 1.666052580315572, + 2.032282844095036, + 1.843551366503246, + 1.7393478905969277, + 1.7813569087158272, + 1.7333495052521455, + 1.8392546121026203, + 2.0924587099912397, + 2.2794413850211392, + 1.9314244774738658, + 1.893871414298415, + 2.101374619522435, + 2.1830519220782056, + 2.1505826674201907, + 2.2918670182603424, + 2.4545366487281703, + 2.764652358825801, + 2.940625393953212, + 2.136247080734255, + 3.7433293114626203, + 2.6522568801224247, + 1.7812082253107901, + 1.7655319712353623, + 0.9934748802586484, + 1.2358469784832062, + 0.9900622855122434, + 1.0029436774472766, + 1.043426011805801, + 1.115318024248577, + 0.9907595105539888 + ], + [ + 1.6172032381708137, + 1.760067430971546, + 1.6172506596558796, + 1.8485855337863513, + 1.691076875650992, + 1.6833521238772298, + 1.7431930238989644, + 1.684202508148144, + 1.7394218576958254, + 1.7548677066584348, + 1.958799524682474, + 1.778438445338661, + 1.7568690902004291, + 1.8370410783297462, + 2.144417546208945, + 1.9336302740148246, + 2.0878782343313675, + 2.2664141218564233, + 2.5397823837630455, + 2.675974706286473, + 1.7509282992203057, + 2.6522568801224247, + 3.929784173912892, + 1.9032373556992475, + 1.79303664362297, + 0.8167595914171575, + 1.126547276720132, + 0.8831167206913367, + 0.8410660045930087, + 0.9127028248523051, + 1.0594927498670856, + 0.9185604690429728 + ], + [ + 1.2895455137771423, + 1.3822790019247668, + 1.3478479434049486, + 1.5356195883615302, + 1.2705448428608754, + 1.3394242790383133, + 1.3193022606522211, + 1.31790487922462, + 1.3351316714512602, + 1.2369197720830687, + 1.4267650342785887, + 1.2462945730282928, + 1.2429056819733337, + 1.2770064769215446, + 1.4174847424003068, + 1.3748626102577917, + 1.4316718192558455, + 1.5745255179962556, + 1.81100182883071, + 1.7988875255035213, + 1.7605169443473938, + 1.7812082253107901, + 1.9032373556992475, + 3.1634133870706007, + 1.7442408529919895, + 1.142280174983554, + 1.123337897272546, + 0.990091530579744, + 0.8748908514181322, + 0.908115314705634, + 1.107390592919758, + 1.1015997433903038 + ], + [ + 1.3305508398944483, + 1.44865621676555, + 1.4524278573457412, + 1.5954369023407893, + 1.4552881932284591, + 1.4772322241979203, + 1.4935638799943822, + 1.5481601596292842, + 1.5927354985510551, + 1.524747419944472, + 1.5981651898152902, + 1.4966216237493208, + 1.469791917632966, + 1.5434148937022019, + 1.5951068262493873, + 1.587569614006051, + 1.6377007628378921, + 1.752542746445554, + 1.9611577176484447, + 2.1125439422500314, + 1.597933569087796, + 1.7655319712353623, + 1.79303664362297, + 1.7442408529919895, + 4.095072905352145, + 1.6993387694896525, + 1.5891175184671247, + 1.474397437057268, + 1.3310095646121312, + 1.3414743923513788, + 1.7182292618138892, + 1.4635013370395875 + ], + [ + 0.809612793475257, + 0.8706680369307369, + 0.8472268087342227, + 1.1125602833908146, + 0.9296751122667901, + 1.0018227306191279, + 0.8907893733515545, + 0.8667593274210247, + 0.8643039502278661, + 0.9006708186297612, + 1.010415534218139, + 0.9035245075969893, + 0.9365202592561014, + 0.9240100500797772, + 1.0244748288118561, + 0.9792879160948031, + 0.9904978093895298, + 1.0800613648428137, + 1.1619509149657, + 1.1983649393968143, + 0.9771971856262035, + 0.9934748802586484, + 0.8167595914171575, + 1.142280174983554, + 1.6993387694896525, + 3.366825461799139, + 1.3991243730423708, + 1.2097247492612313, + 1.0003841276177026, + 1.1110568418443512, + 1.338417660190867, + 1.17022008082777 + ], + [ + 0.96576077948826, + 1.087681668858802, + 1.0915963974461942, + 1.0939111250358495, + 0.9863193465434471, + 1.0514234553417974, + 0.9541463292028871, + 0.9706611467753349, + 1.0066776903105028, + 1.1102994045064498, + 1.1526793324075288, + 0.9981064040212014, + 1.004637568041793, + 1.0793408063954195, + 1.0841754468016427, + 1.0461209849114563, + 1.0743450115299802, + 1.230985966321403, + 1.3315860486791715, + 1.4995825238836793, + 1.081744762728614, + 1.2358469784832062, + 1.126547276720132, + 1.123337897272546, + 1.5891175184671247, + 1.3991243730423708, + 2.879460227813676, + 1.9757119382044999, + 1.6111652175439402, + 1.5326104886531977, + 1.319866031177833, + 1.141507322989192 + ], + [ + 0.9678482963357555, + 1.016765063089871, + 1.0233891066594845, + 0.9625166787034021, + 0.7896427441625843, + 0.898569320285732, + 0.8076943037291087, + 0.8327209980937196, + 0.8417119057336107, + 0.9265597470579497, + 0.9586410845387935, + 0.7704070877183071, + 0.7828648605184062, + 0.8847784953583515, + 0.974834022828838, + 0.8259884927845619, + 0.8834000312529767, + 0.9507795887895371, + 1.1272128544317608, + 1.2963236347184819, + 0.9839543776707738, + 0.9900622855122434, + 0.8831167206913367, + 0.990091530579744, + 1.474397437057268, + 1.2097247492612313, + 1.9757119382044999, + 2.7779162408224236, + 2.1035654385907288, + 1.9039810372217418, + 1.5922120206718369, + 1.3697557328928607 + ], + [ + 1.076437300927, + 1.168092624762163, + 1.1170455724981618, + 1.1018882409886093, + 0.870606594507396, + 0.9275928769055607, + 0.8314839027100833, + 0.8290287059936796, + 0.8499465349219155, + 0.9631736463922361, + 0.9939020368009012, + 0.8470461781091146, + 0.8330063452812045, + 0.9438680711395592, + 1.0481723689210447, + 0.8811686570437808, + 0.9322221128868772, + 0.9769855341349886, + 1.060654069484848, + 1.2967534923001087, + 0.951335897899678, + 1.0029436774472766, + 0.8410660045930087, + 0.8748908514181322, + 1.3310095646121312, + 1.0003841276177026, + 1.6111652175439402, + 2.1035654385907288, + 2.8825074365192322, + 2.3249462560764216, + 1.8677781215246263, + 1.5449633983228568 + ], + [ + 1.1106831656359657, + 1.240202514748782, + 1.189972476000872, + 1.221910865722635, + 1.0034121877274516, + 1.0328114187502706, + 0.9526857565002524, + 0.962538409183641, + 0.9379137996971791, + 1.0518952278190978, + 1.1163003101618856, + 0.9009734489294722, + 0.8843537874750571, + 1.0283057129304165, + 1.098285987385861, + 0.9785137877000379, + 1.0129472995324105, + 1.1100384736074926, + 1.2303075516476945, + 1.4926260852969229, + 1.0498730662286713, + 1.043426011805801, + 0.9127028248523051, + 0.908115314705634, + 1.3414743923513788, + 1.1110568418443512, + 1.5326104886531977, + 1.9039810372217418, + 2.3249462560764216, + 3.07466532933071, + 2.0437135782636835, + 1.8100946203763444 + ], + [ + 1.2818385237479304, + 1.2512539741859132, + 1.204138405946318, + 1.2988461323624159, + 1.1606232700187604, + 1.2249622386495047, + 1.0656383876649953, + 1.0024617353618726, + 1.06155710262533, + 1.0687943067750203, + 1.110389294859144, + 0.907101625722732, + 0.9185482308646887, + 0.9970837608559847, + 1.135548717844255, + 1.127827705135187, + 1.2665063037524904, + 1.351214034030075, + 1.2886692408533105, + 1.3754856915417923, + 1.0009268238033238, + 1.115318024248577, + 1.0594927498670856, + 1.107390592919758, + 1.7182292618138892, + 1.338417660190867, + 1.319866031177833, + 1.5922120206718369, + 1.8677781215246263, + 2.0437135782636835, + 5.299513926176732, + 3.090275892253667 + ], + [ + 1.367331307834341, + 1.5289417353969423, + 1.4489879568487152, + 1.3737590918672091, + 1.1671181849656456, + 1.249906287774621, + 1.043281432100314, + 1.0392645329380419, + 1.0577599205726012, + 1.0312919104536666, + 1.0823317673509731, + 0.8051401540773183, + 0.8080135947050936, + 0.868986464026517, + 1.0941816270646254, + 1.1299096754924907, + 1.132887344840433, + 1.3367682085177501, + 1.2709965464820308, + 1.3118021479573374, + 1.0254695008636976, + 0.9907595105539888, + 0.9185604690429728, + 1.1015997433903038, + 1.4635013370395875, + 1.17022008082777, + 1.141507322989192, + 1.3697557328928607, + 1.5449633983228568, + 1.8100946203763444, + 3.090275892253667, + 5.518869361273439 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3934658606024219, + -0.39259187412147983, + -0.3377555977647751, + -0.37632650044476507, + -0.37895259447481705, + -0.33392298685326866, + -0.3322073896733531, + -0.3115842881436845, + -0.42857010958813097, + -0.40717918768662403, + -0.3753846787143737, + -0.41459418954074917, + -0.36942472289547384, + -0.41046340496550865, + -0.4555393320829025, + -0.4710645819454757, + -0.45749422779620924, + -0.43821164092214854, + -0.3244608195565201, + -0.3303627830225326 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6210185221513229, + "transport_matrix_sha256": "5f4b2d203b216049aa97250ed4151e66943ff55080663d2235aab5fd1f7da3b7", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.142368912696839e-05, + "gram_mean_diagonal": 0.061423689126968384, + "calibration_nmse": 0.02465241517369944, + "calibration_cosine": 0.9875973430746754, + "calibration_norm_ratio": 0.9866344194757573, + "transport_relative_identity_distance": 0.24454472959041595, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "93af1649dbcf27dcc906cff079a1448af3e0b78dc0ae7fcd0038e95d05f79fdc", + "self_attn.k_proj.weight": "919f1a2454b2957fa1f611232b1c0aaccdab718aed512b435923cf972cd52015", + "self_attn.v_proj.weight": "2a660e851663561147921fae640f303f3f599da61afc8d68545fed320cc9b63d", + "self_attn.o_proj.weight": "bfb11d528abdacfc054070ed7a55f90ddde74fb17704bc742ceffa065adcc717", + "self_attn.q_norm.weight": "a4538fa22891825dbfbac330127ff29569ac04b5ab0ee89e60db7e7bc64f26a3", + "self_attn.k_norm.weight": "f26654e4f51003513e7ff0cd2f23e99387481dc5c639b01444903ec9632ae685", + "mlp.gate_proj.weight": "1ec134d886ea6246b31de9cb6cbb4c451fddfb333fca1e90375f8659eb27d81c", + "mlp.up_proj.weight": "b7549bcdd3b5089f09aebb1847587e2049463294f52f4335b88b7e64888edd45", + "mlp.down_proj.weight": "2b6fe52a74f5b15de22764a2c9b51acdfc75070dac110580366d2dcd9d207e0f", + "input_layernorm.weight": "70025e492885453112e0108ebf4311dfd994db35383e90da14292277834fb949", + "post_attention_layernorm.weight": "41357e377104509608d219bc3f4d8a51dde14749a9a6e6b592f6d4f4594faa85" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "93af1649dbcf27dcc906cff079a1448af3e0b78dc0ae7fcd0038e95d05f79fdc", + "self_attn.k_proj.weight": "919f1a2454b2957fa1f611232b1c0aaccdab718aed512b435923cf972cd52015", + "self_attn.v_proj.weight": "2a660e851663561147921fae640f303f3f599da61afc8d68545fed320cc9b63d", + "self_attn.o_proj.weight": "bfb11d528abdacfc054070ed7a55f90ddde74fb17704bc742ceffa065adcc717", + "self_attn.q_norm.weight": "a4538fa22891825dbfbac330127ff29569ac04b5ab0ee89e60db7e7bc64f26a3", + "self_attn.k_norm.weight": "f26654e4f51003513e7ff0cd2f23e99387481dc5c639b01444903ec9632ae685", + "mlp.gate_proj.weight": "0328abc908aeeb430c28f7ba29d16795dbb63b5ea0edd7154a0122eda63c1bdc", + "mlp.up_proj.weight": "6e0aa5ee42d201a8ba2113bbccdd85e38104b4373d3ce0b76c361993bdc40cf4", + "mlp.down_proj.weight": "2b6fe52a74f5b15de22764a2c9b51acdfc75070dac110580366d2dcd9d207e0f", + "input_layernorm.weight": "70025e492885453112e0108ebf4311dfd994db35383e90da14292277834fb949", + "post_attention_layernorm.weight": "41357e377104509608d219bc3f4d8a51dde14749a9a6e6b592f6d4f4594faa85" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6210185221513229, + "lambda_right": 0.3789814778486771, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "b435c15455b9acea20e4c29c945a6c82e17f681d8d7e66ad87acb8fac7170d83", + "mlp.up_proj.weight": "fbf0e81a87ba5cc794a443b499a5b146e8852438e93e6d63e089d797b3cbcea1", + "mlp.gate_proj.weight": "4fa198abc19c57731465efea76911d71ffa46ff751d5fe8a60b44c576e10f6e7", + "self_attn.k_proj.weight": "032c027fe01cb5fab5f4c1e3dc67e7cf0df68ec9aaa6d17ec2e475e82d3c1e55", + "self_attn.o_proj.weight": "9f0e48310cf38889f4ed316f139295db2cf5e538bf7e55485aad5e71e23ecd5e", + "self_attn.q_proj.weight": "3bc8c412dc5060b6e560e3239eeae87e063ebc8dab8004e85753243c608887e1", + "self_attn.v_proj.weight": "60ce6d426d898b9dfafeb8708e5cd7ab0ab1ed9ecb72406ed7ced29ddf241f92" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "93af1649dbcf27dcc906cff079a1448af3e0b78dc0ae7fcd0038e95d05f79fdc", + "self_attn.k_proj.weight": "919f1a2454b2957fa1f611232b1c0aaccdab718aed512b435923cf972cd52015", + "self_attn.v_proj.weight": "2a660e851663561147921fae640f303f3f599da61afc8d68545fed320cc9b63d", + "self_attn.o_proj.weight": "bfb11d528abdacfc054070ed7a55f90ddde74fb17704bc742ceffa065adcc717", + "self_attn.q_norm.weight": "a4538fa22891825dbfbac330127ff29569ac04b5ab0ee89e60db7e7bc64f26a3", + "self_attn.k_norm.weight": "f26654e4f51003513e7ff0cd2f23e99387481dc5c639b01444903ec9632ae685", + "mlp.gate_proj.weight": "0328abc908aeeb430c28f7ba29d16795dbb63b5ea0edd7154a0122eda63c1bdc", + "mlp.up_proj.weight": "6e0aa5ee42d201a8ba2113bbccdd85e38104b4373d3ce0b76c361993bdc40cf4", + "mlp.down_proj.weight": "2b6fe52a74f5b15de22764a2c9b51acdfc75070dac110580366d2dcd9d207e0f", + "input_layernorm.weight": "70025e492885453112e0108ebf4311dfd994db35383e90da14292277834fb949", + "post_attention_layernorm.weight": "41357e377104509608d219bc3f4d8a51dde14749a9a6e6b592f6d4f4594faa85" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "931265955af0a49db53c4639efbe90c02dce31656aa286a6cbbff86f0817e9c3", + "mlp.up_proj.weight": "a12a9422c9b7455a35fcae6e844f09123ea97d36cafb4e6db0a46f85566ef405", + "mlp.gate_proj.weight": "50273255d4e8070a1066dba24766196dba00f749cea470ff7d6bb9c8dc474c80", + "self_attn.k_proj.weight": "347fe193ed6ff1bac4c56d1a78af82943c3421f0f2f2abbcc90ac73f69d8aa8a", + "self_attn.o_proj.weight": "30adb37b1d10ef9bf2d40b0fad32c78c6e3366a3d6f91dd0aaa851ad36da2eef", + "self_attn.q_proj.weight": "ee22fb615d5ac51abd3c7cdd7fe4d35bcaa72469754363c924c38201ad763076", + "self_attn.v_proj.weight": "498b70698c015bd3df265cfffcc73fc3101a9f2ff48dee8a01d837ccdfc9674d" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_6/cycle_metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_6/cycle_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..6218832e65d354a42b5f540290e573be26b819b9 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_6/cycle_metadata.json @@ -0,0 +1,1354 @@ +{ + "cycle": 6, + "layer_merged": 12, + "num_layers_before": 31, + "num_layers_after": 30, + "fused_layer_state": "fused_layer.pt", + "profile_no_save": false, + "dwce_score": null, + "dwce_scores": null, + "dwce_meta": { + "method": "mka", + "fisher_computed": false + }, + "fisher_num_batches": 0, + "merge_method": "fisher", + "merged_params": 7, + "num_sequences": 64, + "teacher_source": "previous_cycle", + "teacher_cycle": 5, + "eval": { + "datasets": [ + "wikitext2" + ], + "configs": [ + null + ], + "split": "test", + "num_samples": 0, + "seq_len": 1024, + "post_ppl": null, + "merge_only_ppl": null + }, + "comm": { + "enabled": false + }, + "distill": { + "enabled": false, + "method": "reparam", + "calib_samples": 256, + "inst_samples": 0, + "seq_len": 512, + "batch_size": 2, + "epochs": 1.0, + "lr": 0.0001, + "kl_weight": 0.01, + "kl_temp": 4.0, + "kl_chunk_size": 16384, + "hidden_mse_weight": 1.0, + "attn_mse_weight": 0.0, + "mlp_mse_weight": 0.0, + "reparam_eta": 0.01, + "reparam_gamma": 0.0001, + "reparam_attn_reg_scale": 1.0, + "reparam_mlp_reg_scale": 1.0, + "reparam_param_subset": "all", + "reparam_train_subset": "same", + "reparam_skip_train": false, + "reparam_stats": null, + "reparam_gate_summary": null, + "post_merge_nll_scale": null, + "merge_only_ppl": null, + "post_ppl": null, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "instruction_dataset": null, + "instruction_config": null, + "instruction_split": "train" + }, + "lora": { + "enabled": false, + "seq_len": 512, + "batch_size": 2, + "epochs": 0.0, + "rank": 8, + "alpha": 16.0, + "dropout": 0.0, + "target_modules": [ + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "gate_proj", + "down_proj", + "up_proj" + ], + "respect_exclude_pairs": false, + "kl_enabled": false, + "kl_weight": 0.1, + "kl_temp": 4.0, + "post_ppl": null, + "lr": 0.0001, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "log_steps": 100, + "eval_every": 0, + "eval_max_batches": null + }, + "norm_policy": "copy_n1_n2", + "source_feature_transport": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.122951209545135e-05, + "gram_mean_diagonal": 0.061229512095451355, + "calibration_nmse": 0.023367684345013368, + "calibration_cosine": 0.9882475615974408, + "calibration_norm_ratio": 0.9872845723445823, + "transport_relative_identity_distance": 0.27332234382629395, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "Transport then non-Fisher exact merge; no FiT" + }, + "same_anchor_contextual_fisher": { + "computed": false, + "anchor_candidate_mean_nll": 0.0, + "transported_source_candidate_mean_nll": 0.0 + }, + "full_model_saved": false, + "timing": { + "seconds": { + "selection": 8.923900666006375, + "rebase": 0.0, + "source_feature_transport": 4.050237821997143, + "fisher": 3.2858981285244226e-05, + "fit": 2.5934875899692997, + "materialize_save_layer": 0.5950076860026456, + "metadata_write": 0.0004923180094920099, + "teacher_snapshot": 0.7746397870359942, + "cycle_cleanup": 0.16402204800397158, + "cycle_total": 17.10249965300318 + }, + "tracked_component_total_seconds": 17.101820776006207, + "cycle_total_seconds": 17.10249965300318, + "ratios_of_tracked_components": { + "selection": 0.5218099746739584, + "rebase": 0.0, + "source_feature_transport": 0.236830795682271, + "fisher": 1.9213732687074618e-06, + "fit": 0.15164979354759428, + "materialize_save_layer": 0.034792066517118414, + "metadata_write": 2.8787461635823613e-05, + "teacher_snapshot": 0.04529574933464459, + "cycle_cleanup": 0.009590911409508742 + }, + "ratios_of_cycle_total": { + "selection": 0.521789261632252, + "rebase": 0.0, + "source_feature_transport": 0.23682139477698666, + "fisher": 1.9212970005512747e-06, + "fit": 0.1516437738686863, + "materialize_save_layer": 0.034790685459722435, + "metadata_write": 2.878631892885666e-05, + "teacher_snapshot": 0.04529395133769048, + "cycle_cleanup": 0.009590530702052638 + } + }, + "fisher_computed": false, + "fit": false, + "nofit_merge_control": { + "cycle": 6, + "anchor": 12, + "removed_original_layer": 18, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.3278695372662797, + 2.412594067531639, + 2.178654644799034, + 2.2279402200443994, + 2.6401199303050675, + 2.725841466616703, + 2.7640730185852886, + 1.6716528532148598, + 1.7635099098022406, + 1.4086998893921017, + 1.477408277179992, + 0.9328266860150757, + 0.8507456755218248, + 0.9911293031073009, + 0.9290066973250799, + 0.9219584478601873, + 0.9438822003514675, + 1.4488316860802468, + 1.3904728032063813 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3947148090480765, + 2.5264878500941985, + 2.235815423269575, + 2.2848048886302554, + 2.70376198961464, + 2.7712909184035426, + 2.883846132185663, + 1.6878554089490294, + 1.901581097032974, + 1.5837229566716142, + 1.5665696499719233, + 0.960800802689899, + 0.9444828705677419, + 1.1641070293422944, + 1.0332124200817485, + 1.0454848008393454, + 1.0583577594561875, + 1.4472232707912611, + 1.523027030070537 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.4498911997606476, + 2.5859863056347585, + 2.244892531501051, + 2.289544512465232, + 2.7759845807017154, + 2.74957996626213, + 2.832445558941616, + 1.5760264193526106, + 1.7959004190903176, + 1.5031707933511986, + 1.5061694464044502, + 0.96682440816284, + 0.8504221807191988, + 1.15834611780117, + 0.9784430088533902, + 0.9884607941125881, + 1.0187399208466674, + 1.3329884026749963, + 1.2589748854089644 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8534025393630973, + 2.943226560390688, + 2.4414469288196443, + 2.461556128997419, + 3.0192338810434816, + 2.993183617618689, + 2.790780655600522, + 1.8232415508469078, + 2.2570736032213587, + 1.8878365161484372, + 1.5972833557615747, + 1.1039601794856724, + 1.1323323483478356, + 1.1301529553068477, + 1.0091837298753048, + 0.9523078121656469, + 1.0591696992981134, + 1.3661146773612052, + 1.351357274740947 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7900249601003413, + 2.719318269486715, + 2.124692068684987, + 2.4546173100296613, + 2.624650175269048, + 2.468247062545179, + 2.411410068388747, + 1.6738481733674302, + 2.0751380675044286, + 1.7313570443922968, + 1.569555321186868, + 1.0365148266795334, + 1.0533543857746497, + 0.9837583957200597, + 0.8432204879462575, + 0.7907125877514589, + 0.8482134823496299, + 1.2515500929105505, + 1.1966144600397615 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.6217295939397656, + 2.535853362351341, + 2.2901797734712157, + 2.32922864111831, + 2.426842498050469, + 2.461473508166703, + 2.332522642032023, + 1.8121784341371077, + 2.202665649321342, + 1.8134171406932, + 1.7099267813362402, + 1.3033376572734114, + 1.1441953215323046, + 1.0906179413993544, + 0.9418925405498434, + 0.8387228222835885, + 0.9171114540161461, + 1.346526005088597, + 1.356316051168337 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8619175760949243, + 2.697713873096314, + 2.134424513386433, + 2.4132862073068835, + 2.675664907822656, + 2.5196694643989055, + 2.4057444179435246, + 1.6992210188822332, + 2.081707496456699, + 1.799796582283025, + 1.7347855216250665, + 1.0654016664805235, + 0.9767957096174948, + 0.9305594930047602, + 0.8063760794780072, + 0.756161813904911, + 0.8459840258279926, + 1.2523018338129166, + 1.0482358572038428 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8807793962233808, + 2.7964916343581105, + 2.0950876861345806, + 2.4505877040429698, + 2.8277056389441837, + 2.563043523074367, + 2.4229833029153673, + 1.6250841117635486, + 2.020417304075875, + 1.7451642297785872, + 1.712876214369122, + 0.9792730959532795, + 0.9212871117747935, + 0.9841897453496665, + 0.8406634924167978, + 0.7954954044054243, + 0.8803641617473075, + 1.2166300923757931, + 1.0054481727095188 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0126451613537175, + 2.7208393914961673, + 2.1731292807425255, + 2.5417710063738754, + 2.7650430883558323, + 2.6192830250174537, + 2.426047740895965, + 1.6859062776503346, + 2.0981617334313216, + 1.7302309792696027, + 1.7220406280370137, + 1.042278246013682, + 0.9121864227441605, + 1.0038805070227452, + 0.8166968034332579, + 0.7481499062612393, + 0.8469633197704839, + 1.2345821271587656, + 0.9781786102151615 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9486560965142994, + 3.0176180191820117, + 2.2760064494349126, + 2.405311940302755, + 3.0221835964096675, + 3.0294418571597355, + 2.8591780481502034, + 1.823934595272818, + 2.0436272046589483, + 1.625945426433735, + 1.621132418283413, + 0.9278070849376074, + 0.9521865027566202, + 1.0918130617079855, + 0.9393687892945974, + 0.9245437266443934, + 0.9707073616769933, + 1.1305747787258014, + 0.994255875725664 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.126174859286365, + 3.181616502612121, + 2.5385355805316077, + 2.616826674666754, + 3.4215095140851575, + 3.524640873548172, + 3.355936033117902, + 1.9753314273929534, + 2.271644716681084, + 1.7125666564375046, + 1.702745316105221, + 0.9639932322148094, + 1.0699003344859797, + 1.1190466182405365, + 0.8997226027339599, + 0.8065204967036288, + 0.836329407805829, + 1.1365174892851748, + 0.9704065678089673 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.5601730488704098, + 3.18111812562463, + 2.219899066073203, + 2.625293135617808, + 2.67275413450134, + 2.7335886671671537, + 2.5764465342738414, + 1.7587510155997517, + 2.1018641165985055, + 1.6492769194315011, + 1.6714062038152662, + 1.0344853511120067, + 1.0315320711639988, + 1.0329821952120402, + 0.8372046375477995, + 0.7566421529762217, + 0.7361562719282517, + 1.0741978372858239, + 0.7535689613518621 + ], + [ + 2.3278695372662797, + 2.3947148090480765, + 2.4498911997606476, + 2.8534025393630973, + 2.7900249601003413, + 2.6217295939397656, + 2.8619175760949243, + 2.8807793962233808, + 3.0126451613537175, + 2.9486560965142994, + 3.126174859286365, + 3.5601730488704098, + 3.9102473983879578, + 3.3338660242895957, + 2.251831527629599, + 2.608193472911632, + 2.6848247034422346, + 2.7335593850866964, + 2.545107270396881, + 1.7359250240194444, + 2.169014151429469, + 1.6858594534321472, + 1.7042281349937507, + 1.0516198814265456, + 1.0414375473821944, + 0.9963861497413141, + 0.83346275641943, + 0.7429845932746778, + 0.7118542258672332, + 1.08522448311072, + 0.8351830287505464 + ], + [ + 2.412594067531639, + 2.5264878500941985, + 2.5859863056347585, + 2.943226560390688, + 2.719318269486715, + 2.535853362351341, + 2.697713873096314, + 2.7964916343581105, + 2.7208393914961673, + 3.0176180191820117, + 3.181616502612121, + 3.18111812562463, + 3.3338660242895957, + 4.066702992959844, + 2.2814802695296112, + 2.571621595772587, + 2.8252255370448354, + 2.8552248894807177, + 2.7343143190047936, + 1.780390818608993, + 2.214061118500761, + 1.795900453932971, + 1.8038479801512204, + 0.998433006922895, + 1.1271231786359497, + 1.1335242080562071, + 0.8970451822403432, + 0.8277082460350063, + 0.8174174055705404, + 1.0790302676507486, + 0.9106720078062971 + ], + [ + 2.178654644799034, + 2.235815423269575, + 2.244892531501051, + 2.4414469288196443, + 2.124692068684987, + 2.2901797734712157, + 2.134424513386433, + 2.0950876861345806, + 2.1731292807425255, + 2.2760064494349126, + 2.5385355805316077, + 2.219899066073203, + 2.251831527629599, + 2.2814802695296112, + 3.636545595119301, + 2.380370213512099, + 2.42766177098348, + 2.5323640830099063, + 2.4077863442397764, + 2.063756967509895, + 2.1797555185573483, + 1.6952809660081152, + 1.5515690342180866, + 1.0967582526744648, + 1.0106204650562, + 1.2337152368063558, + 1.0672215149307638, + 1.0998048139146657, + 1.0931238830142, + 1.3713813119446934, + 1.3991126064719077 + ], + [ + 2.2279402200443994, + 2.2848048886302554, + 2.289544512465232, + 2.461556128997419, + 2.4546173100296613, + 2.32922864111831, + 2.4132862073068835, + 2.4505877040429698, + 2.5417710063738754, + 2.405311940302755, + 2.616826674666754, + 2.625293135617808, + 2.608193472911632, + 2.571621595772587, + 2.380370213512099, + 3.6333770089527047, + 2.8333389250961014, + 2.706014634677106, + 2.6285583314284073, + 1.848052125282191, + 2.1339332507262956, + 1.7025142589077553, + 1.5979512046558593, + 1.1102281783351873, + 1.0630320405147327, + 1.1464618927808734, + 0.8848605570602981, + 0.8265661852954894, + 0.8843852054473551, + 1.2220743309190305, + 1.1431348202256963 + ], + [ + 2.6401199303050675, + 2.70376198961464, + 2.7759845807017154, + 3.0192338810434816, + 2.624650175269048, + 2.426842498050469, + 2.675664907822656, + 2.8277056389441837, + 2.7650430883558323, + 3.0221835964096675, + 3.4215095140851575, + 2.67275413450134, + 2.6848247034422346, + 2.8252255370448354, + 2.42766177098348, + 2.8333389250961014, + 4.148936820568242, + 3.568665661116569, + 3.3611186193204516, + 2.133034308289555, + 2.396968619333977, + 1.8731894407175904, + 1.7138163880774806, + 1.0933772747398869, + 1.0898392378204789, + 1.1350615166761873, + 0.9001693223770512, + 0.9416643702457774, + 0.9973049727824443, + 1.3421174641742952, + 1.129224847138255 + ], + [ + 2.725841466616703, + 2.7712909184035426, + 2.74957996626213, + 2.993183617618689, + 2.468247062545179, + 2.461473508166703, + 2.5196694643989055, + 2.563043523074367, + 2.6192830250174537, + 3.0294418571597355, + 3.524640873548172, + 2.7335886671671537, + 2.7335593850866964, + 2.8552248894807177, + 2.5323640830099063, + 2.706014634677106, + 3.568665661116569, + 4.604030281478637, + 3.819399446977045, + 2.283500471488039, + 2.5778816998401184, + 1.931159493520156, + 1.716040278709003, + 1.1985736993142555, + 1.1204134881078036, + 1.159403894137641, + 1.003058345126093, + 0.9414476710890552, + 0.9220678107520991, + 1.1880603647125003, + 1.1670704840814958 + ], + [ + 2.7640730185852886, + 2.883846132185663, + 2.832445558941616, + 2.790780655600522, + 2.411410068388747, + 2.332522642032023, + 2.4057444179435246, + 2.4229833029153673, + 2.426047740895965, + 2.8591780481502034, + 3.355936033117902, + 2.5764465342738414, + 2.545107270396881, + 2.7343143190047936, + 2.4077863442397764, + 2.6285583314284073, + 3.3611186193204516, + 3.819399446977045, + 4.815778289867421, + 2.3257000594040673, + 2.5034430351832624, + 2.0956483281348737, + 1.8769352875946392, + 1.0366246476848082, + 1.0600824101446409, + 1.2534184741893808, + 1.0702186264849458, + 1.1028847716758192, + 1.1373958657940275, + 1.2748962188144428, + 1.220588367238796 + ], + [ + 1.6716528532148598, + 1.6878554089490294, + 1.5760264193526106, + 1.8232415508469078, + 1.6738481733674302, + 1.8121784341371077, + 1.6992210188822332, + 1.6250841117635486, + 1.6859062776503346, + 1.823934595272818, + 1.9753314273929534, + 1.7587510155997517, + 1.7359250240194444, + 1.780390818608993, + 2.063756967509895, + 1.848052125282191, + 2.133034308289555, + 2.283500471488039, + 2.3257000594040673, + 3.511974869626656, + 2.450139574087916, + 1.7926717204015636, + 1.6630772881917042, + 1.1192716053048892, + 0.9824301970643626, + 1.3126858725776838, + 1.18741770967854, + 1.1696345022141212, + 1.1591946677183165, + 1.2308211284331536, + 1.278332031098522 + ], + [ + 1.7635099098022406, + 1.901581097032974, + 1.7959004190903176, + 2.2570736032213587, + 2.0751380675044286, + 2.202665649321342, + 2.081707496456699, + 2.020417304075875, + 2.0981617334313216, + 2.0436272046589483, + 2.271644716681084, + 2.1018641165985055, + 2.169014151429469, + 2.214061118500761, + 2.1797555185573483, + 2.1339332507262956, + 2.396968619333977, + 2.5778816998401184, + 2.5034430351832624, + 2.450139574087916, + 4.1242668127768045, + 2.6880313655643873, + 1.972117870039026, + 1.2701103750194387, + 1.1252107319814078, + 1.3030819978611685, + 1.1706611507788, + 1.075062040174633, + 1.079827290185216, + 1.3217173487802882, + 1.8093329402105287 + ], + [ + 1.4086998893921017, + 1.5837229566716142, + 1.5031707933511986, + 1.8878365161484372, + 1.7313570443922968, + 1.8134171406932, + 1.799796582283025, + 1.7451642297785872, + 1.7302309792696027, + 1.625945426433735, + 1.7125666564375046, + 1.6492769194315011, + 1.6858594534321472, + 1.795900453932971, + 1.6952809660081152, + 1.7025142589077553, + 1.8731894407175904, + 1.931159493520156, + 2.0956483281348737, + 1.7926717204015636, + 2.6880313655643873, + 3.880027837850573, + 1.8709064710964205, + 1.0825926165766335, + 0.9942986201867106, + 1.174499728176335, + 1.0390798312467808, + 1.0422951870024684, + 1.0173317181540764, + 1.3915615975931317, + 1.42945594766063 + ], + [ + 1.477408277179992, + 1.5665696499719233, + 1.5061694464044502, + 1.5972833557615747, + 1.569555321186868, + 1.7099267813362402, + 1.7347855216250665, + 1.712876214369122, + 1.7220406280370137, + 1.621132418283413, + 1.702745316105221, + 1.6714062038152662, + 1.7042281349937507, + 1.8038479801512204, + 1.5515690342180866, + 1.5979512046558593, + 1.7138163880774806, + 1.716040278709003, + 1.8769352875946392, + 1.6630772881917042, + 1.972117870039026, + 1.8709064710964205, + 3.7743066350911803, + 1.0724458294785477, + 0.9559066574930217, + 1.2092865001808728, + 1.106953432644458, + 1.0086037451725165, + 0.9870169161097767, + 0.9898000542295682, + 0.8664630314954903 + ], + [ + 0.9328266860150757, + 0.960800802689899, + 0.96682440816284, + 1.1039601794856724, + 1.0365148266795334, + 1.3033376572734114, + 1.0654016664805235, + 0.9792730959532795, + 1.042278246013682, + 0.9278070849376074, + 0.9639932322148094, + 1.0344853511120067, + 1.0516198814265456, + 0.998433006922895, + 1.0967582526744648, + 1.1102281783351873, + 1.0933772747398869, + 1.1985736993142555, + 1.0366246476848082, + 1.1192716053048892, + 1.2701103750194387, + 1.0825926165766335, + 1.0724458294785477, + 3.215958402897243, + 1.6731245094763563, + 1.1256898409959875, + 0.986378878624688, + 0.7634087900614543, + 0.7551605911340397, + 0.7697139642040289, + 0.8141969232305275 + ], + [ + 0.8507456755218248, + 0.9444828705677419, + 0.8504221807191988, + 1.1323323483478356, + 1.0533543857746497, + 1.1441953215323046, + 0.9767957096174948, + 0.9212871117747935, + 0.9121864227441605, + 0.9521865027566202, + 1.0699003344859797, + 1.0315320711639988, + 1.0414375473821944, + 1.1271231786359497, + 1.0106204650562, + 1.0630320405147327, + 1.0898392378204789, + 1.1204134881078036, + 1.0600824101446409, + 0.9824301970643626, + 1.1252107319814078, + 0.9942986201867106, + 0.9559066574930217, + 1.6731245094763563, + 3.1874624022808065, + 1.1890966789162452, + 0.9866186902346132, + 0.7057762737826563, + 0.8198788088923837, + 1.0533012487559361, + 1.0803994617619865 + ], + [ + 0.9911293031073009, + 1.1641070293422944, + 1.15834611780117, + 1.1301529553068477, + 0.9837583957200597, + 1.0906179413993544, + 0.9305594930047602, + 0.9841897453496665, + 1.0038805070227452, + 1.0918130617079855, + 1.1190466182405365, + 1.0329821952120402, + 0.9963861497413141, + 1.1335242080562071, + 1.2337152368063558, + 1.1464618927808734, + 1.1350615166761873, + 1.159403894137641, + 1.2534184741893808, + 1.3126858725776838, + 1.3030819978611685, + 1.174499728176335, + 1.2092865001808728, + 1.1256898409959875, + 1.1890966789162452, + 3.029293408640695, + 2.082369997721176, + 1.7147142215939126, + 1.6842343718438173, + 1.207531090793095, + 1.3897666078573305 + ], + [ + 0.9290066973250799, + 1.0332124200817485, + 0.9784430088533902, + 1.0091837298753048, + 0.8432204879462575, + 0.9418925405498434, + 0.8063760794780072, + 0.8406634924167978, + 0.8166968034332579, + 0.9393687892945974, + 0.8997226027339599, + 0.8372046375477995, + 0.83346275641943, + 0.8970451822403432, + 1.0672215149307638, + 0.8848605570602981, + 0.9001693223770512, + 1.003058345126093, + 1.0702186264849458, + 1.18741770967854, + 1.1706611507788, + 1.0390798312467808, + 1.106953432644458, + 0.986378878624688, + 0.9866186902346132, + 2.082369997721176, + 2.9762829951754624, + 2.156028303378821, + 1.9874604547433694, + 1.6245166764468153, + 1.444080071876557 + ], + [ + 0.9219584478601873, + 1.0454848008393454, + 0.9884607941125881, + 0.9523078121656469, + 0.7907125877514589, + 0.8387228222835885, + 0.756161813904911, + 0.7954954044054243, + 0.7481499062612393, + 0.9245437266443934, + 0.8065204967036288, + 0.7566421529762217, + 0.7429845932746778, + 0.8277082460350063, + 1.0998048139146657, + 0.8265661852954894, + 0.9416643702457774, + 0.9414476710890552, + 1.1028847716758192, + 1.1696345022141212, + 1.075062040174633, + 1.0422951870024684, + 1.0086037451725165, + 0.7634087900614543, + 0.7057762737826563, + 1.7147142215939126, + 2.156028303378821, + 2.979782129953852, + 2.484336328271396, + 1.7612041104958036, + 1.5272647406913584 + ], + [ + 0.9438822003514675, + 1.0583577594561875, + 1.0187399208466674, + 1.0591696992981134, + 0.8482134823496299, + 0.9171114540161461, + 0.8459840258279926, + 0.8803641617473075, + 0.8469633197704839, + 0.9707073616769933, + 0.836329407805829, + 0.7361562719282517, + 0.7118542258672332, + 0.8174174055705404, + 1.0931238830142, + 0.8843852054473551, + 0.9973049727824443, + 0.9220678107520991, + 1.1373958657940275, + 1.1591946677183165, + 1.079827290185216, + 1.0173317181540764, + 0.9870169161097767, + 0.7551605911340397, + 0.8198788088923837, + 1.6842343718438173, + 1.9874604547433694, + 2.484336328271396, + 3.2451726319279555, + 1.92688273234345, + 1.7268469042559054 + ], + [ + 1.4488316860802468, + 1.4472232707912611, + 1.3329884026749963, + 1.3661146773612052, + 1.2515500929105505, + 1.346526005088597, + 1.2523018338129166, + 1.2166300923757931, + 1.2345821271587656, + 1.1305747787258014, + 1.1365174892851748, + 1.0741978372858239, + 1.08522448311072, + 1.0790302676507486, + 1.3713813119446934, + 1.2220743309190305, + 1.3421174641742952, + 1.1880603647125003, + 1.2748962188144428, + 1.2308211284331536, + 1.3217173487802882, + 1.3915615975931317, + 0.9898000542295682, + 0.7697139642040289, + 1.0533012487559361, + 1.207531090793095, + 1.6245166764468153, + 1.7612041104958036, + 1.92688273234345, + 4.118550545461159, + 2.534750078997116 + ], + [ + 1.3904728032063813, + 1.523027030070537, + 1.2589748854089644, + 1.351357274740947, + 1.1966144600397615, + 1.356316051168337, + 1.0482358572038428, + 1.0054481727095188, + 0.9781786102151615, + 0.994255875725664, + 0.9704065678089673, + 0.7535689613518621, + 0.8351830287505464, + 0.9106720078062971, + 1.3991126064719077, + 1.1431348202256963, + 1.129224847138255, + 1.1670704840814958, + 1.220588367238796, + 1.278332031098522, + 1.8093329402105287, + 1.42945594766063, + 0.8664630314954903, + 0.8141969232305275, + 1.0803994617619865, + 1.3897666078573305, + 1.444080071876557, + 1.5272647406913584, + 1.7268469042559054, + 2.534750078997116, + 6.652567633480407 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3978205190736734, + -0.38841201755494065, + -0.41543926245449386, + -0.4174321627046042, + -0.3861626614464441, + -0.36754449667405936, + -0.35268198168350934, + -0.39546964792403, + -0.36855061401477046, + -0.36670771395923113, + -0.42626960767172223, + -0.40221489815317707, + -0.39432480389768837, + -0.4274842720454585, + -0.44040559712951705, + -0.44743016215938763, + -0.41919594288893797, + -0.35586032703161335, + -0.30153807610997035 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6217058706168793, + "transport_matrix_sha256": "e62fc35a452db66e796080302f8b40711233bc6f3103ea4d091b1b85a2c00bf3", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.122951209545135e-05, + "gram_mean_diagonal": 0.061229512095451355, + "calibration_nmse": 0.023367684345013368, + "calibration_cosine": 0.9882475615974408, + "calibration_norm_ratio": 0.9872845723445823, + "transport_relative_identity_distance": 0.27332234382629395, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "3d50a07d21693613e0d831209868828215164c78606ad76bb5339d0093e2b167", + "self_attn.k_proj.weight": "055922b3d6d8ae628f8a4761be8273b2b35bd979a899e599e03a4aebc9b31b15", + "self_attn.v_proj.weight": "35d50fc9ef07106a763c826a6bed55f5f8de393edeac002703ab161116d8dead", + "self_attn.o_proj.weight": "a211c679b699b735e0587b7e0bab5610d182a4c54868438be766544a8f36b4eb", + "self_attn.q_norm.weight": "41ed057917753085abc49146d705c39743047800a2ac65dba3e227fb675ad494", + "self_attn.k_norm.weight": "f01c939b42b6e7b3a03519eadb0a08a563897458717fc05d98b7c7d158621f02", + "mlp.gate_proj.weight": "a60ac64753890f45bc06d840148fad55807f022c4f14d6437d926bfe08d6e401", + "mlp.up_proj.weight": "f614342e9f77c5b73e0b93c34e9a6cbfb1692decfd132853765e9da75c5a2edc", + "mlp.down_proj.weight": "b61bbddd0e5ee13e6679fb129a28885d063105955f6cb5176c39b0ac18fbfda7", + "input_layernorm.weight": "2c7f7059994a701ae1bfd696bd109340fa7a22df9deee3bfd6c4afb890155523", + "post_attention_layernorm.weight": "d85cdb5cf77b8d6d42c74fbd6aff643661b72fcfbe4f343311c4d31db4afc67f" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "3d50a07d21693613e0d831209868828215164c78606ad76bb5339d0093e2b167", + "self_attn.k_proj.weight": "055922b3d6d8ae628f8a4761be8273b2b35bd979a899e599e03a4aebc9b31b15", + "self_attn.v_proj.weight": "35d50fc9ef07106a763c826a6bed55f5f8de393edeac002703ab161116d8dead", + "self_attn.o_proj.weight": "a211c679b699b735e0587b7e0bab5610d182a4c54868438be766544a8f36b4eb", + "self_attn.q_norm.weight": "41ed057917753085abc49146d705c39743047800a2ac65dba3e227fb675ad494", + "self_attn.k_norm.weight": "f01c939b42b6e7b3a03519eadb0a08a563897458717fc05d98b7c7d158621f02", + "mlp.gate_proj.weight": "22a05a2d80f9b5bca061ef41c4e0eeec4162a886b3189a1e718924e640066c7a", + "mlp.up_proj.weight": "d9facf666807baf62ab2e0f6ef258bc81ff85a99b0e320e2e03c06a06286cadd", + "mlp.down_proj.weight": "b61bbddd0e5ee13e6679fb129a28885d063105955f6cb5176c39b0ac18fbfda7", + "input_layernorm.weight": "2c7f7059994a701ae1bfd696bd109340fa7a22df9deee3bfd6c4afb890155523", + "post_attention_layernorm.weight": "d85cdb5cf77b8d6d42c74fbd6aff643661b72fcfbe4f343311c4d31db4afc67f" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6217058706168793, + "lambda_right": 0.3782941293831207, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "931265955af0a49db53c4639efbe90c02dce31656aa286a6cbbff86f0817e9c3", + "mlp.up_proj.weight": "a12a9422c9b7455a35fcae6e844f09123ea97d36cafb4e6db0a46f85566ef405", + "mlp.gate_proj.weight": "50273255d4e8070a1066dba24766196dba00f749cea470ff7d6bb9c8dc474c80", + "self_attn.k_proj.weight": "347fe193ed6ff1bac4c56d1a78af82943c3421f0f2f2abbcc90ac73f69d8aa8a", + "self_attn.o_proj.weight": "30adb37b1d10ef9bf2d40b0fad32c78c6e3366a3d6f91dd0aaa851ad36da2eef", + "self_attn.q_proj.weight": "ee22fb615d5ac51abd3c7cdd7fe4d35bcaa72469754363c924c38201ad763076", + "self_attn.v_proj.weight": "498b70698c015bd3df265cfffcc73fc3101a9f2ff48dee8a01d837ccdfc9674d" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "3d50a07d21693613e0d831209868828215164c78606ad76bb5339d0093e2b167", + "self_attn.k_proj.weight": "055922b3d6d8ae628f8a4761be8273b2b35bd979a899e599e03a4aebc9b31b15", + "self_attn.v_proj.weight": "35d50fc9ef07106a763c826a6bed55f5f8de393edeac002703ab161116d8dead", + "self_attn.o_proj.weight": "a211c679b699b735e0587b7e0bab5610d182a4c54868438be766544a8f36b4eb", + "self_attn.q_norm.weight": "41ed057917753085abc49146d705c39743047800a2ac65dba3e227fb675ad494", + "self_attn.k_norm.weight": "f01c939b42b6e7b3a03519eadb0a08a563897458717fc05d98b7c7d158621f02", + "mlp.gate_proj.weight": "22a05a2d80f9b5bca061ef41c4e0eeec4162a886b3189a1e718924e640066c7a", + "mlp.up_proj.weight": "d9facf666807baf62ab2e0f6ef258bc81ff85a99b0e320e2e03c06a06286cadd", + "mlp.down_proj.weight": "b61bbddd0e5ee13e6679fb129a28885d063105955f6cb5176c39b0ac18fbfda7", + "input_layernorm.weight": "2c7f7059994a701ae1bfd696bd109340fa7a22df9deee3bfd6c4afb890155523", + "post_attention_layernorm.weight": "d85cdb5cf77b8d6d42c74fbd6aff643661b72fcfbe4f343311c4d31db4afc67f" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "c7245c9dbe25165f24ba5f3c0086c83749cd9c5fcb690c38a3d8f60927216cec", + "mlp.up_proj.weight": "e2976ab21f45c3e509180bb5364531b92e802e940e8dbfd4b3740724854017b3", + "mlp.gate_proj.weight": "bd12f5c8ad5ebb331b34e02db2e88ac46a7354e0fe9b51c706a0a5f779e34ca4", + "self_attn.k_proj.weight": "f49b61266ee47a2c0ad04bf974ffdd0c21127fe614489f2ddb0f2076a034d6d8", + "self_attn.o_proj.weight": "da8ef0271df8de08ca9b525df230e9a07982d22f8da947e5b909e3226a9d41d8", + "self_attn.q_proj.weight": "c0faa3d71e6bbc52998951b3214c5f070278501f3267bfb60986f2204af63f48", + "self_attn.v_proj.weight": "c6691dbe4fd3e5bb534c4e151f5e9ba5e93e75c70b9f708f94959670ade827d6" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_7/cycle_metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_7/cycle_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..6b08f75075c5382a31a67f47c3e7a9225d336218 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_7/cycle_metadata.json @@ -0,0 +1,1290 @@ +{ + "cycle": 7, + "layer_merged": 12, + "num_layers_before": 30, + "num_layers_after": 29, + "fused_layer_state": "fused_layer.pt", + "profile_no_save": false, + "dwce_score": null, + "dwce_scores": null, + "dwce_meta": { + "method": "mka", + "fisher_computed": false + }, + "fisher_num_batches": 0, + "merge_method": "fisher", + "merged_params": 7, + "num_sequences": 64, + "teacher_source": "previous_cycle", + "teacher_cycle": 6, + "eval": { + "datasets": [ + "wikitext2" + ], + "configs": [ + null + ], + "split": "test", + "num_samples": 0, + "seq_len": 1024, + "post_ppl": null, + "merge_only_ppl": null + }, + "comm": { + "enabled": false + }, + "distill": { + "enabled": false, + "method": "reparam", + "calib_samples": 256, + "inst_samples": 0, + "seq_len": 512, + "batch_size": 2, + "epochs": 1.0, + "lr": 0.0001, + "kl_weight": 0.01, + "kl_temp": 4.0, + "kl_chunk_size": 16384, + "hidden_mse_weight": 1.0, + "attn_mse_weight": 0.0, + "mlp_mse_weight": 0.0, + "reparam_eta": 0.01, + "reparam_gamma": 0.0001, + "reparam_attn_reg_scale": 1.0, + "reparam_mlp_reg_scale": 1.0, + "reparam_param_subset": "all", + "reparam_train_subset": "same", + "reparam_skip_train": false, + "reparam_stats": null, + "reparam_gate_summary": null, + "post_merge_nll_scale": null, + "merge_only_ppl": null, + "post_ppl": null, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "instruction_dataset": null, + "instruction_config": null, + "instruction_split": "train" + }, + "lora": { + "enabled": false, + "seq_len": 512, + "batch_size": 2, + "epochs": 0.0, + "rank": 8, + "alpha": 16.0, + "dropout": 0.0, + "target_modules": [ + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "gate_proj", + "down_proj", + "up_proj" + ], + "respect_exclude_pairs": false, + "kl_enabled": false, + "kl_weight": 0.1, + "kl_temp": 4.0, + "post_ppl": null, + "lr": 0.0001, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "log_steps": 100, + "eval_every": 0, + "eval_max_batches": null + }, + "norm_policy": "copy_n1_n2", + "source_feature_transport": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.162425130605698e-05, + "gram_mean_diagonal": 0.061624251306056976, + "calibration_nmse": 0.04445477035491676, + "calibration_cosine": 0.9775203668922895, + "calibration_norm_ratio": 0.9766049193770479, + "transport_relative_identity_distance": 0.388338178396225, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "Transport then non-Fisher exact merge; no FiT" + }, + "same_anchor_contextual_fisher": { + "computed": false, + "anchor_candidate_mean_nll": 0.0, + "transported_source_candidate_mean_nll": 0.0 + }, + "full_model_saved": false, + "timing": { + "seconds": { + "selection": 8.574684071005322, + "rebase": 0.0, + "source_feature_transport": 4.064997929031961, + "fisher": 4.111998714506626e-05, + "fit": 2.622245803999249, + "materialize_save_layer": 0.6034704589983448, + "metadata_write": 0.00044056703336536884, + "teacher_snapshot": 0.45985248300712556, + "cycle_cleanup": 0.16297529998701066, + "cycle_total": 16.489441270008683 + }, + "tracked_component_total_seconds": 16.488707733049523, + "cycle_total_seconds": 16.489441270008683, + "ratios_of_tracked_components": { + "selection": 0.5200337230684522, + "rebase": 0.0, + "source_feature_transport": 0.2465322325341596, + "fisher": 2.4938271580038055e-06, + "fit": 0.15903282697790136, + "materialize_save_layer": 0.036599014839032225, + "metadata_write": 2.671931848742204e-05, + "teacher_snapshot": 0.02788893407852755, + "cycle_cleanup": 0.00988405535628164 + }, + "ratios_of_cycle_total": { + "selection": 0.5200105892369515, + "rebase": 0.0, + "source_feature_transport": 0.24652126548553577, + "fisher": 2.4937162194728875e-06, + "fit": 0.1590257523624309, + "materialize_save_layer": 0.036597386722614346, + "metadata_write": 2.6718129871791395e-05, + "teacher_snapshot": 0.027887693432251958, + "cycle_cleanup": 0.009883615661582986 + } + }, + "fisher_computed": false, + "fit": false, + "nofit_merge_control": { + "cycle": 7, + "anchor": 12, + "removed_original_layer": 19, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.335060653067787, + 1.9151508919498, + 2.1470476790502167, + 2.2382104224145882, + 2.482035492079157, + 2.9541623183747747, + 1.7355899186653978, + 1.6389862016834942, + 1.310776197267927, + 1.445540861674972, + 1.0557278746966603, + 0.7263011651368967, + 0.7563077739895328, + 0.78555708780847, + 0.8434020029659363, + 0.9817131964461834, + 1.1575913324896967, + 1.1485335814928896 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.3750802150461072, + 1.9966194546704634, + 2.3416926258364814, + 2.3646307199697656, + 2.651764672663068, + 3.0896073133453217, + 1.8648788025080432, + 1.7680385141742023, + 1.4789101804297322, + 1.549351858682733, + 1.0636639815562277, + 0.7665259459729624, + 0.9210271442561554, + 0.9093409439886264, + 0.9889309253643355, + 1.081870129101897, + 1.218261424813981, + 1.269153958649878 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.4775990755654735, + 1.9795751310587053, + 2.324618414792716, + 2.4053275618843184, + 2.6550345187256914, + 3.028798368438027, + 1.7297992788415166, + 1.6205850193978752, + 1.3824615122439445, + 1.510439673755109, + 1.0967437788482517, + 0.7706653821299205, + 0.8629506874422704, + 0.8715741446827898, + 0.8922972515026302, + 1.035381478804706, + 1.1008205496333037, + 1.108045590796737 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8018150167083102, + 2.3396378838368115, + 2.6077546458993544, + 2.7544491300773006, + 2.9027328937488286, + 3.112539029546369, + 2.0101244838004186, + 1.7512663146114917, + 1.6994034730831251, + 1.4636880420662681, + 1.3053891261589767, + 0.916802150236169, + 0.9260510966234697, + 0.802837803285485, + 0.8261934592480294, + 0.9059512837175536, + 1.2353730155872134, + 1.1438871911111252 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7603766180970735, + 2.09245531720537, + 2.494009320317859, + 2.680352467743221, + 2.5314323877151113, + 2.65733196705272, + 2.0287553209778175, + 1.4255146653638688, + 1.6282332198606198, + 1.309752569075819, + 1.16877241599604, + 0.8019279106827464, + 0.8503715595975953, + 0.6960107441990685, + 0.7462430099545769, + 0.8055523210468205, + 1.2425621289318833, + 1.0932438771466049 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.603889724671732, + 2.30004883508431, + 2.7060687538540478, + 2.5143787627219445, + 2.3677048632298194, + 2.707565400064352, + 2.025648292993888, + 1.5269642578355482, + 1.8083655409068216, + 1.4259702866020565, + 1.500750250775114, + 0.9970580626827362, + 1.0222874472031613, + 0.8795377386331051, + 0.815051788079297, + 0.8935573121139433, + 1.3130642440577682, + 1.26007734424592 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.847520969500037, + 2.0392033506382985, + 2.514186407447737, + 2.697675984516935, + 2.452909786990882, + 2.633937297517078, + 1.994960165105681, + 1.4926270825271737, + 1.6009022209565196, + 1.33143269657914, + 1.1646262157578426, + 0.7812955895279096, + 0.8116076292957498, + 0.6807634053296279, + 0.740336689801715, + 0.7868165911783517, + 1.0930526558812224, + 1.0009504792306274 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.881354581028014, + 2.016733763369577, + 2.444807706226864, + 2.673938777952214, + 2.430156787729497, + 2.6358404420831296, + 1.9428613663993468, + 1.4084369048473353, + 1.518026766512977, + 1.3539901414251467, + 1.0464130746336255, + 0.7683486029413958, + 0.8386901915240803, + 0.6384046068507135, + 0.7448342028168569, + 0.8116704120501036, + 1.0411583610854698, + 0.8865983103216261 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0238653292175734, + 2.096878357753872, + 2.544282696680575, + 2.8100249477670807, + 2.5215617695799812, + 2.716839737952336, + 2.0683032311603218, + 1.4748677515004418, + 1.555346205251822, + 1.4523334796188776, + 1.094041824012496, + 0.7650662896346687, + 0.8590899631155138, + 0.6638319919330038, + 0.7484579971253583, + 0.7514442554241185, + 1.0388756932404553, + 0.9260038892652837 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9716204992851947, + 1.990014159078375, + 2.3932224889510496, + 2.7586891549152885, + 3.0319171138794747, + 3.184961023077555, + 2.046644158724472, + 1.4935702247175424, + 1.4155547651935, + 1.3743370076996033, + 0.9865220163190762, + 0.6987606138809618, + 0.8775588591806454, + 0.7643863078100356, + 0.8123849076131157, + 0.8185415944651515, + 1.088812229935361, + 1.024330388860401 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.142899079659547, + 2.2300848269862987, + 2.666436746152326, + 3.0080203350100283, + 3.439548839369472, + 3.5819757646893025, + 2.178945334062802, + 1.717053476493485, + 1.5439120725418845, + 1.4584713753332919, + 1.0322979410608635, + 0.7975928855188846, + 0.9158273124950627, + 0.7294274655038945, + 0.762384357947228, + 0.8008120642715584, + 1.1429469311839828, + 1.0058135790841483 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.687780773818941, + 2.0611341753159533, + 2.59527774784413, + 2.765222939052188, + 2.587079963799439, + 2.930872563570401, + 2.05654595829283, + 1.6115209963931763, + 1.6519618836416574, + 1.4915965655765555, + 1.1870371767410295, + 0.7508322300666679, + 0.8419028544418945, + 0.7184158962207927, + 0.7556317064304325, + 0.7092811826287099, + 1.0618746249918978, + 0.7889106729381317 + ], + [ + 2.335060653067787, + 2.3750802150461072, + 2.4775990755654735, + 2.8018150167083102, + 2.7603766180970735, + 2.603889724671732, + 2.847520969500037, + 2.881354581028014, + 3.0238653292175734, + 2.9716204992851947, + 3.142899079659547, + 3.687780773818941, + 3.8829142774143133, + 2.0779937683849505, + 2.58058323324637, + 2.7504398878029557, + 2.569246285480185, + 2.892389816763984, + 2.0753073706185874, + 1.6056916585243415, + 1.682410703198068, + 1.479445887951913, + 1.2202227347627026, + 0.7558254928103254, + 0.8281597513106194, + 0.681461541623871, + 0.7462858110236558, + 0.6631736687929489, + 1.0513097453000022, + 0.8210695838033376 + ], + [ + 1.9151508919498, + 1.9966194546704634, + 1.9795751310587053, + 2.3396378838368115, + 2.09245531720537, + 2.30004883508431, + 2.0392033506382985, + 2.016733763369577, + 2.096878357753872, + 1.990014159078375, + 2.2300848269862987, + 2.0611341753159533, + 2.0779937683849505, + 3.4416427102836304, + 2.5003654197019722, + 2.0631460895067195, + 2.1764290005130538, + 2.353005797834471, + 1.8550347880382718, + 1.4440750564582634, + 1.5781721751823408, + 1.436664363937981, + 1.195084732425717, + 1.0195732107191993, + 1.019409980271241, + 0.9114488673463137, + 0.9291503774714044, + 0.960255731460862, + 1.3740083911190164, + 1.1587729003607112 + ], + [ + 2.1470476790502167, + 2.3416926258364814, + 2.324618414792716, + 2.6077546458993544, + 2.494009320317859, + 2.7060687538540478, + 2.514186407447737, + 2.444807706226864, + 2.544282696680575, + 2.3932224889510496, + 2.666436746152326, + 2.59527774784413, + 2.58058323324637, + 2.5003654197019722, + 3.8869870744122736, + 2.7626207396485976, + 2.597105476047908, + 2.919639100312835, + 2.1485412027903696, + 1.6080698019742459, + 1.8609487659971795, + 1.505281546807699, + 1.294995638194655, + 0.9556628674527027, + 1.0901298716692587, + 0.9423458972209501, + 0.9501876099221909, + 0.9894552180989364, + 1.529739859337895, + 1.246139406665727 + ], + [ + 2.2382104224145882, + 2.3646307199697656, + 2.4053275618843184, + 2.7544491300773006, + 2.680352467743221, + 2.5143787627219445, + 2.697675984516935, + 2.673938777952214, + 2.8100249477670807, + 2.7586891549152885, + 3.0080203350100283, + 2.765222939052188, + 2.7504398878029557, + 2.0631460895067195, + 2.7626207396485976, + 3.9479349329115236, + 3.159328522193469, + 3.2452559007494948, + 2.269813592358904, + 1.5756899406735705, + 1.5530640737277885, + 1.5056590929943277, + 1.1705655194425106, + 0.7860663144049597, + 0.8885059103358778, + 0.7187360067239392, + 0.7935085952391593, + 0.8389232442714559, + 1.133533822916724, + 1.005304840537486 + ], + [ + 2.482035492079157, + 2.651764672663068, + 2.6550345187256914, + 2.9027328937488286, + 2.5314323877151113, + 2.3677048632298194, + 2.452909786990882, + 2.430156787729497, + 2.5215617695799812, + 3.0319171138794747, + 3.439548839369472, + 2.587079963799439, + 2.569246285480185, + 2.1764290005130538, + 2.597105476047908, + 3.159328522193469, + 4.8171851507294505, + 4.168800959304893, + 2.4893325516846336, + 1.775382036524939, + 1.6695615561673247, + 1.5748769095294133, + 1.075541842340863, + 0.8296408394508974, + 1.0398423199848308, + 0.8865446015217652, + 0.8853028665632072, + 0.8851802532429629, + 1.332072697231281, + 1.2073849680493283 + ], + [ + 2.9541623183747747, + 3.0896073133453217, + 3.028798368438027, + 3.112539029546369, + 2.65733196705272, + 2.707565400064352, + 2.633937297517078, + 2.6358404420831296, + 2.716839737952336, + 3.184961023077555, + 3.5819757646893025, + 2.930872563570401, + 2.892389816763984, + 2.353005797834471, + 2.919639100312835, + 3.2452559007494948, + 4.168800959304893, + 5.625939556469685, + 2.836420728469044, + 2.0696698049374493, + 1.9159187887356972, + 1.7345949199400814, + 1.2486668293058323, + 1.0338163046045126, + 1.1597765316104274, + 1.0265449038458745, + 1.0319384725387906, + 1.1424211083846607, + 1.3954934011367532, + 1.4562693444030974 + ], + [ + 1.7355899186653978, + 1.8648788025080432, + 1.7297992788415166, + 2.0101244838004186, + 2.0287553209778175, + 2.025648292993888, + 1.994960165105681, + 1.9428613663993468, + 2.0683032311603218, + 2.046644158724472, + 2.178945334062802, + 2.05654595829283, + 2.0753073706185874, + 1.8550347880382718, + 2.1485412027903696, + 2.269813592358904, + 2.4893325516846336, + 2.836420728469044, + 3.756756885534718, + 1.613144246991716, + 2.3294744381964936, + 1.471409747072838, + 1.1856335038656773, + 1.002860820442963, + 1.1390299554920584, + 0.9036097762989808, + 0.9360942873817044, + 0.843126941640358, + 1.2314673280711448, + 0.9863908483341315 + ], + [ + 1.6389862016834942, + 1.7680385141742023, + 1.6205850193978752, + 1.7512663146114917, + 1.4255146653638688, + 1.5269642578355482, + 1.4926270825271737, + 1.4084369048473353, + 1.4748677515004418, + 1.4935702247175424, + 1.717053476493485, + 1.6115209963931763, + 1.6056916585243415, + 1.4440750564582634, + 1.6080698019742459, + 1.5756899406735705, + 1.775382036524939, + 2.0696698049374493, + 1.613144246991716, + 3.2050139986328965, + 1.356212899834525, + 1.1997820946226645, + 0.9317094606804038, + 1.1339483613882577, + 0.8354919350865416, + 0.6846104434385133, + 0.6664804565253172, + 0.8396948443667854, + 0.8725514123593239, + 0.8344604151451003 + ], + [ + 1.310776197267927, + 1.4789101804297322, + 1.3824615122439445, + 1.6994034730831251, + 1.6282332198606198, + 1.8083655409068216, + 1.6009022209565196, + 1.518026766512977, + 1.555346205251822, + 1.4155547651935, + 1.5439120725418845, + 1.6519618836416574, + 1.682410703198068, + 1.5781721751823408, + 1.8609487659971795, + 1.5530640737277885, + 1.6695615561673247, + 1.9159187887356972, + 2.3294744381964936, + 1.356212899834525, + 3.416206219036406, + 1.5826657045262058, + 1.1129454165435082, + 0.8835317428395627, + 1.1630585568679892, + 1.0624035213403704, + 1.0055576624668554, + 0.8681777693504479, + 1.3681221757212054, + 1.1643245860437612 + ], + [ + 1.445540861674972, + 1.549351858682733, + 1.510439673755109, + 1.4636880420662681, + 1.309752569075819, + 1.4259702866020565, + 1.33143269657914, + 1.3539901414251467, + 1.4523334796188776, + 1.3743370076996033, + 1.4584713753332919, + 1.4915965655765555, + 1.479445887951913, + 1.436664363937981, + 1.505281546807699, + 1.5056590929943277, + 1.5748769095294133, + 1.7345949199400814, + 1.471409747072838, + 1.1997820946226645, + 1.5826657045262058, + 2.9435635466073036, + 1.2980398820296755, + 1.1045451385857452, + 1.0688829822121406, + 1.0944463492537697, + 0.9534468323318136, + 0.986713447997249, + 0.9813283030413763, + 0.7615277040242429 + ], + [ + 1.0557278746966603, + 1.0636639815562277, + 1.0967437788482517, + 1.3053891261589767, + 1.16877241599604, + 1.500750250775114, + 1.1646262157578426, + 1.0464130746336255, + 1.094041824012496, + 0.9865220163190762, + 1.0322979410608635, + 1.1870371767410295, + 1.2202227347627026, + 1.195084732425717, + 1.294995638194655, + 1.1705655194425106, + 1.075541842340863, + 1.2486668293058323, + 1.1856335038656773, + 0.9317094606804038, + 1.1129454165435082, + 1.2980398820296755, + 3.315992143445085, + 1.4662763003301709, + 1.083205539460729, + 0.9029044779158781, + 0.7476312776793488, + 0.7396221082271548, + 0.9387548551748491, + 0.6486265236006119 + ], + [ + 0.7263011651368967, + 0.7665259459729624, + 0.7706653821299205, + 0.916802150236169, + 0.8019279106827464, + 0.9970580626827362, + 0.7812955895279096, + 0.7683486029413958, + 0.7650662896346687, + 0.6987606138809618, + 0.7975928855188846, + 0.7508322300666679, + 0.7558254928103254, + 1.0195732107191993, + 0.9556628674527027, + 0.7860663144049597, + 0.8296408394508974, + 1.0338163046045126, + 1.002860820442963, + 1.1339483613882577, + 0.8835317428395627, + 1.1045451385857452, + 1.4662763003301709, + 3.1802755429056164, + 1.0961775563983311, + 0.9028584446836112, + 0.7389973944614426, + 0.7326991159504191, + 0.9498945356494484, + 0.7308764560552143 + ], + [ + 0.7563077739895328, + 0.9210271442561554, + 0.8629506874422704, + 0.9260510966234697, + 0.8503715595975953, + 1.0222874472031613, + 0.8116076292957498, + 0.8386901915240803, + 0.8590899631155138, + 0.8775588591806454, + 0.9158273124950627, + 0.8419028544418945, + 0.8281597513106194, + 1.019409980271241, + 1.0901298716692587, + 0.8885059103358778, + 1.0398423199848308, + 1.1597765316104274, + 1.1390299554920584, + 0.8354919350865416, + 1.1630585568679892, + 1.0688829822121406, + 1.083205539460729, + 1.0961775563983311, + 3.122100146047263, + 1.8185289145349615, + 1.3872229332512878, + 1.1959568991391398, + 1.0330771274431814, + 1.1925852530558634 + ], + [ + 0.78555708780847, + 0.9093409439886264, + 0.8715741446827898, + 0.802837803285485, + 0.6960107441990685, + 0.8795377386331051, + 0.6807634053296279, + 0.6384046068507135, + 0.6638319919330038, + 0.7643863078100356, + 0.7294274655038945, + 0.7184158962207927, + 0.681461541623871, + 0.9114488673463137, + 0.9423458972209501, + 0.7187360067239392, + 0.8865446015217652, + 1.0265449038458745, + 0.9036097762989808, + 0.6846104434385133, + 1.0624035213403704, + 1.0944463492537697, + 0.9029044779158781, + 0.9028584446836112, + 1.8185289145349615, + 2.6945045344805623, + 1.876418646156149, + 1.6552659821863145, + 1.478696417249966, + 1.4718810323832487 + ], + [ + 0.8434020029659363, + 0.9889309253643355, + 0.8922972515026302, + 0.8261934592480294, + 0.7462430099545769, + 0.815051788079297, + 0.740336689801715, + 0.7448342028168569, + 0.7484579971253583, + 0.8123849076131157, + 0.762384357947228, + 0.7556317064304325, + 0.7462858110236558, + 0.9291503774714044, + 0.9501876099221909, + 0.7935085952391593, + 0.8853028665632072, + 1.0319384725387906, + 0.9360942873817044, + 0.6664804565253172, + 1.0055576624668554, + 0.9534468323318136, + 0.7476312776793488, + 0.7389973944614426, + 1.3872229332512878, + 1.876418646156149, + 2.565809890338776, + 1.782803313293456, + 1.5627074716811857, + 1.2133802600453527 + ], + [ + 0.9817131964461834, + 1.081870129101897, + 1.035381478804706, + 0.9059512837175536, + 0.8055523210468205, + 0.8935573121139433, + 0.7868165911783517, + 0.8116704120501036, + 0.7514442554241185, + 0.8185415944651515, + 0.8008120642715584, + 0.7092811826287099, + 0.6631736687929489, + 0.960255731460862, + 0.9894552180989364, + 0.8389232442714559, + 0.8851802532429629, + 1.1424211083846607, + 0.843126941640358, + 0.8396948443667854, + 0.8681777693504479, + 0.986713447997249, + 0.7396221082271548, + 0.7326991159504191, + 1.1959568991391398, + 1.6552659821863145, + 1.782803313293456, + 2.8125165484992634, + 1.555281094134444, + 1.4418265844673068 + ], + [ + 1.1575913324896967, + 1.218261424813981, + 1.1008205496333037, + 1.2353730155872134, + 1.2425621289318833, + 1.3130642440577682, + 1.0930526558812224, + 1.0411583610854698, + 1.0388756932404553, + 1.088812229935361, + 1.1429469311839828, + 1.0618746249918978, + 1.0513097453000022, + 1.3740083911190164, + 1.529739859337895, + 1.133533822916724, + 1.332072697231281, + 1.3954934011367532, + 1.2314673280711448, + 0.8725514123593239, + 1.3681221757212054, + 0.9813283030413763, + 0.9387548551748491, + 0.9498945356494484, + 1.0330771274431814, + 1.478696417249966, + 1.5627074716811857, + 1.555281094134444, + 5.034528896538704, + 2.692335526128771 + ], + [ + 1.1485335814928896, + 1.269153958649878, + 1.108045590796737, + 1.1438871911111252, + 1.0932438771466049, + 1.26007734424592, + 1.0009504792306274, + 0.8865983103216261, + 0.9260038892652837, + 1.024330388860401, + 1.0058135790841483, + 0.7889106729381317, + 0.8210695838033376, + 1.1587729003607112, + 1.246139406665727, + 1.005304840537486, + 1.2073849680493283, + 1.4562693444030974, + 0.9863908483341315, + 0.8344604151451003, + 1.1643245860437612, + 0.7615277040242429, + 0.6486265236006119, + 0.7308764560552143, + 1.1925852530558634, + 1.4718810323832487, + 1.2133802600453527, + 1.4418265844673068, + 2.692335526128771, + 6.275216006750274 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.40225823656719, + -0.418053972510334, + -0.3997182031781498, + -0.3987454959504672, + -0.3711019616231918, + -0.3143880026596337, + -0.38441244775601685, + -0.3819347586277721, + -0.4231815585212399, + -0.47236814579757364, + -0.39228402418752356, + -0.39850851178831764, + -0.4376051592384302, + -0.48694327113139696, + -0.4970580211590117, + -0.4698274086389756, + -0.32397405546888375, + -0.3153829001171697 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6320229056860514, + "transport_matrix_sha256": "f5711125d44097953522f7ced877f6e2d8c65c0ef6e88139df158d650cc8dbf4", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.162425130605698e-05, + "gram_mean_diagonal": 0.061624251306056976, + "calibration_nmse": 0.04445477035491676, + "calibration_cosine": 0.9775203668922895, + "calibration_norm_ratio": 0.9766049193770479, + "transport_relative_identity_distance": 0.388338178396225, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "d14bc25171528405c3db791fd017b4e0fe37d06a9b07a9878cb81c1f0eb98ae6", + "self_attn.k_proj.weight": "8911d7363eb8d7e35ff407ac925183a06d54d624a8d2bd0ff41db97423515a54", + "self_attn.v_proj.weight": "4781046a7d6224a77c3e34dda92a2ef5748eb777d9d554acf5621c4e5742be2a", + "self_attn.o_proj.weight": "90f47fc1bc507ddfad16299dfcecb78a6b4efac01e21d3a6402c6ef3eae56348", + "self_attn.q_norm.weight": "6915d87fcc2402518b382dee5f5929f5774006c5d82904db327d2f118d6a5c99", + "self_attn.k_norm.weight": "cb20faa93398541fe6b2fbda2a527ea3243337db753acebdfd045bf309cbc4ae", + "mlp.gate_proj.weight": "aaf6792caf14dc5a810bfa937c966c7989238e23b21080752c784428eedbf79c", + "mlp.up_proj.weight": "5a9cf857484fc35820ab3032e13383687631e54fc1a7c7ff0443ec36e962cf17", + "mlp.down_proj.weight": "d65d2b30d50eb54acafa83fef24d9a0fa7d57b6cb6cc06a94e476c758f8812d6", + "input_layernorm.weight": "316472831e20dec19263b56944811a059efb241cc842d8ace4fce706c98a8b11", + "post_attention_layernorm.weight": "7a462c4c15d73900fe1275d32448251905112e9530f615fe6776622c416f0f52" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "d14bc25171528405c3db791fd017b4e0fe37d06a9b07a9878cb81c1f0eb98ae6", + "self_attn.k_proj.weight": "8911d7363eb8d7e35ff407ac925183a06d54d624a8d2bd0ff41db97423515a54", + "self_attn.v_proj.weight": "4781046a7d6224a77c3e34dda92a2ef5748eb777d9d554acf5621c4e5742be2a", + "self_attn.o_proj.weight": "90f47fc1bc507ddfad16299dfcecb78a6b4efac01e21d3a6402c6ef3eae56348", + "self_attn.q_norm.weight": "6915d87fcc2402518b382dee5f5929f5774006c5d82904db327d2f118d6a5c99", + "self_attn.k_norm.weight": "cb20faa93398541fe6b2fbda2a527ea3243337db753acebdfd045bf309cbc4ae", + "mlp.gate_proj.weight": "a86a2062e8c118a4474629683e24d72e8c99b88d34acc3933f226c5f3b0b84ef", + "mlp.up_proj.weight": "1484ab5f1507d90553911f2c5b3c89955db4b9a0c276f892bde6be260708b1ad", + "mlp.down_proj.weight": "d65d2b30d50eb54acafa83fef24d9a0fa7d57b6cb6cc06a94e476c758f8812d6", + "input_layernorm.weight": "316472831e20dec19263b56944811a059efb241cc842d8ace4fce706c98a8b11", + "post_attention_layernorm.weight": "7a462c4c15d73900fe1275d32448251905112e9530f615fe6776622c416f0f52" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6320229056860514, + "lambda_right": 0.36797709431394865, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "c7245c9dbe25165f24ba5f3c0086c83749cd9c5fcb690c38a3d8f60927216cec", + "mlp.up_proj.weight": "e2976ab21f45c3e509180bb5364531b92e802e940e8dbfd4b3740724854017b3", + "mlp.gate_proj.weight": "bd12f5c8ad5ebb331b34e02db2e88ac46a7354e0fe9b51c706a0a5f779e34ca4", + "self_attn.k_proj.weight": "f49b61266ee47a2c0ad04bf974ffdd0c21127fe614489f2ddb0f2076a034d6d8", + "self_attn.o_proj.weight": "da8ef0271df8de08ca9b525df230e9a07982d22f8da947e5b909e3226a9d41d8", + "self_attn.q_proj.weight": "c0faa3d71e6bbc52998951b3214c5f070278501f3267bfb60986f2204af63f48", + "self_attn.v_proj.weight": "c6691dbe4fd3e5bb534c4e151f5e9ba5e93e75c70b9f708f94959670ade827d6" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "d14bc25171528405c3db791fd017b4e0fe37d06a9b07a9878cb81c1f0eb98ae6", + "self_attn.k_proj.weight": "8911d7363eb8d7e35ff407ac925183a06d54d624a8d2bd0ff41db97423515a54", + "self_attn.v_proj.weight": "4781046a7d6224a77c3e34dda92a2ef5748eb777d9d554acf5621c4e5742be2a", + "self_attn.o_proj.weight": "90f47fc1bc507ddfad16299dfcecb78a6b4efac01e21d3a6402c6ef3eae56348", + "self_attn.q_norm.weight": "6915d87fcc2402518b382dee5f5929f5774006c5d82904db327d2f118d6a5c99", + "self_attn.k_norm.weight": "cb20faa93398541fe6b2fbda2a527ea3243337db753acebdfd045bf309cbc4ae", + "mlp.gate_proj.weight": "a86a2062e8c118a4474629683e24d72e8c99b88d34acc3933f226c5f3b0b84ef", + "mlp.up_proj.weight": "1484ab5f1507d90553911f2c5b3c89955db4b9a0c276f892bde6be260708b1ad", + "mlp.down_proj.weight": "d65d2b30d50eb54acafa83fef24d9a0fa7d57b6cb6cc06a94e476c758f8812d6", + "input_layernorm.weight": "316472831e20dec19263b56944811a059efb241cc842d8ace4fce706c98a8b11", + "post_attention_layernorm.weight": "7a462c4c15d73900fe1275d32448251905112e9530f615fe6776622c416f0f52" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "657dc1f64bd3d898d5894e974818d8a6ee15650a86a229a5861b2acee0f9b088", + "mlp.up_proj.weight": "b9870148d064b28f15148348ff85a24cc6b0c9d5f05d238eb2d53d3094328aee", + "mlp.gate_proj.weight": "44926d75745b5eb02f07c0b546ac898b7d296542b32908a8174f7bb4cbcb63e3", + "self_attn.k_proj.weight": "fed731b48c19553af379834ed7f2f4dcf42fd0bc98f6e7ba8c4f93aee94d6b50", + "self_attn.o_proj.weight": "9744ed76ae0f10005c77c4d12ab99864251e6a7ceca3a0b9974f8154a64e4d13", + "self_attn.q_proj.weight": "18db3b31a5755e8c0ef7ac707cd25132accfe2a969a558824cd0fc89be91ef3a", + "self_attn.v_proj.weight": "9da1c888324adec31ad08af91e699e3c682a3b9ff1115a0e3a715c73d06730e0" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_8/cycle_metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_8/cycle_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..03a87b5b742f7ad01ccd1a83f67b3a010b048621 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_8/cycle_metadata.json @@ -0,0 +1,1228 @@ +{ + "cycle": 8, + "layer_merged": 12, + "num_layers_before": 29, + "num_layers_after": 28, + "fused_layer_state": "fused_layer.pt", + "profile_no_save": false, + "dwce_score": null, + "dwce_scores": null, + "dwce_meta": { + "method": "mka", + "fisher_computed": false + }, + "fisher_num_batches": 0, + "merge_method": "fisher", + "merged_params": 7, + "num_sequences": 64, + "teacher_source": "previous_cycle", + "teacher_cycle": 7, + "eval": { + "datasets": [ + "wikitext2" + ], + "configs": [ + null + ], + "split": "test", + "num_samples": 0, + "seq_len": 1024, + "post_ppl": null, + "merge_only_ppl": null + }, + "comm": { + "enabled": false + }, + "distill": { + "enabled": false, + "method": "reparam", + "calib_samples": 256, + "inst_samples": 0, + "seq_len": 512, + "batch_size": 2, + "epochs": 1.0, + "lr": 0.0001, + "kl_weight": 0.01, + "kl_temp": 4.0, + "kl_chunk_size": 16384, + "hidden_mse_weight": 1.0, + "attn_mse_weight": 0.0, + "mlp_mse_weight": 0.0, + "reparam_eta": 0.01, + "reparam_gamma": 0.0001, + "reparam_attn_reg_scale": 1.0, + "reparam_mlp_reg_scale": 1.0, + "reparam_param_subset": "all", + "reparam_train_subset": "same", + "reparam_skip_train": false, + "reparam_stats": null, + "reparam_gate_summary": null, + "post_merge_nll_scale": null, + "merge_only_ppl": null, + "post_ppl": null, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "instruction_dataset": null, + "instruction_config": null, + "instruction_split": "train" + }, + "lora": { + "enabled": false, + "seq_len": 512, + "batch_size": 2, + "epochs": 0.0, + "rank": 8, + "alpha": 16.0, + "dropout": 0.0, + "target_modules": [ + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "gate_proj", + "down_proj", + "up_proj" + ], + "respect_exclude_pairs": false, + "kl_enabled": false, + "kl_weight": 0.1, + "kl_temp": 4.0, + "post_ppl": null, + "lr": 0.0001, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "log_steps": 100, + "eval_every": 0, + "eval_max_batches": null + }, + "norm_policy": "copy_n1_n2", + "source_feature_transport": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.112820282578468e-05, + "gram_mean_diagonal": 0.06112820282578468, + "calibration_nmse": 0.026729135765656057, + "calibration_cosine": 0.9865453606596748, + "calibration_norm_ratio": 0.9856049326804817, + "transport_relative_identity_distance": 0.3915551006793976, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "Transport then non-Fisher exact merge; no FiT" + }, + "same_anchor_contextual_fisher": { + "computed": false, + "anchor_candidate_mean_nll": 0.0, + "transported_source_candidate_mean_nll": 0.0 + }, + "full_model_saved": false, + "timing": { + "seconds": { + "selection": 8.171953178010881, + "rebase": 0.0, + "source_feature_transport": 4.068521958950441, + "fisher": 4.543998511508107e-05, + "fit": 2.6212748870020732, + "materialize_save_layer": 0.6200574100366794, + "metadata_write": 0.00043794699013233185, + "teacher_snapshot": 0.42193241900531575, + "cycle_cleanup": 0.1620301390066743, + "cycle_total": 16.066917605989147 + }, + "tracked_component_total_seconds": 16.066253378987312, + "cycle_total_seconds": 16.066917605989147, + "ratios_of_tracked_components": { + "selection": 0.5086408750840935, + "rebase": 0.0, + "source_feature_transport": 0.25323402183309074, + "fisher": 2.8282875940766e-06, + "fit": 0.16315408609392276, + "materialize_save_layer": 0.03859377761635693, + "metadata_write": 2.7258812605626697e-05, + "teacher_snapshot": 0.026262029426048487, + "cycle_cleanup": 0.010085122846287849 + }, + "ratios_of_cycle_total": { + "selection": 0.5086198472172834, + "rebase": 0.0, + "source_feature_transport": 0.25322355281350595, + "fisher": 2.8281706690362777e-06, + "fit": 0.16314734109453327, + "materialize_save_layer": 0.038592182100040465, + "metadata_write": 2.725768569131652e-05, + "teacher_snapshot": 0.026260943720034707, + "cycle_cleanup": 0.010084705914361291 + } + }, + "fisher_computed": false, + "fit": false, + "nofit_merge_control": { + "cycle": 8, + "anchor": 12, + "removed_original_layer": 20, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.3309365228903673, + 2.7076092864496464, + 2.5828283307414557, + 2.0749659862953007, + 1.8979614932482212, + 1.1598080027339115, + 0.9672907304270633, + 0.8445215272130093, + 0.8440981478902723, + 0.8566488119015174, + 0.6571332992167694, + 0.5023196441941121, + 0.32566316749285007, + 0.38883380564887415, + 0.35209432139022473, + 0.4392291203369543, + 0.6603155047706846 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.405989787018054, + 2.7637422845239583, + 2.6409109631066072, + 2.2523696359218266, + 2.066468296027738, + 1.0707011599641276, + 1.0376263444080625, + 0.857389703634527, + 0.8567747625139767, + 0.8225140766141141, + 0.6031320426857619, + 0.491486916403898, + 0.27557926960127255, + 0.383833846407171, + 0.33847945341342583, + 0.4280067994597013, + 0.6532412871774632 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.4954062467270446, + 2.8697417706380772, + 2.7257889339964594, + 2.1704722729811854, + 2.023153201695174, + 1.075993263032202, + 1.0422793635905534, + 0.9414682463324875, + 0.8661451321692677, + 0.875799744758322, + 0.6588638613293223, + 0.5268713914536275, + 0.33841867331499653, + 0.45475373404890224, + 0.38620430422412844, + 0.3681037980647821, + 0.564554207511363 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.833696447730915, + 3.1614221583114817, + 2.9583957894293498, + 2.2258037903416095, + 2.0156942253472385, + 1.3229097043364508, + 1.2197585012656948, + 0.8759670341946174, + 1.0652078473337494, + 0.8854529800796043, + 0.6926146471738837, + 0.607424845907371, + 0.4623910240590529, + 0.5775695311816474, + 0.49617153988795293, + 0.37085318959253116, + 0.6021446812809288 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7153847200460635, + 2.8312036876666813, + 2.61277829758875, + 2.147593605314885, + 1.8902649458833995, + 1.3404355507732728, + 1.2675230516749558, + 0.7881833899249291, + 0.9627347984687167, + 0.7572455607080214, + 0.628883786808813, + 0.5090281334334943, + 0.4222692480273592, + 0.6289234765604497, + 0.6267672068235964, + 0.45982951227324276, + 0.6424982784917262 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.666635424676098, + 2.6568330363906343, + 2.3476147668818568, + 1.935170869443875, + 1.7451546005394534, + 1.2771052231969091, + 1.263298118955975, + 0.9222650423853106, + 1.154926071388586, + 0.7787611470905941, + 0.599707989600881, + 0.5147347507455198, + 0.4782011189866908, + 0.6815150208103763, + 0.6190772863921186, + 0.46985483472275247, + 0.6769790753508953 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8275903230168438, + 2.8271521158478485, + 2.587147345577654, + 1.948920475269127, + 1.7932851187358931, + 1.331509734705745, + 1.1921343724610476, + 0.8251036160191069, + 1.018559612365238, + 0.8339813671627474, + 0.6802464312482578, + 0.5239661054080991, + 0.36881181332363233, + 0.5720311361428948, + 0.5402754416053439, + 0.36187383423052877, + 0.4923000156590594 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.8616855835835855, + 2.980810572843346, + 2.7919449295961, + 1.9944480872282742, + 1.8135729278965373, + 1.2519042697254033, + 1.1343416164476894, + 0.8118511794756429, + 0.9786932918581343, + 0.7557512073885176, + 0.5702026076559154, + 0.447623711804456, + 0.33706558020716904, + 0.5358704899706146, + 0.5153548561783989, + 0.3516229720450111, + 0.5197393815527795 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0638693263033883, + 2.949341751103695, + 2.8061340958890635, + 2.039301796845377, + 1.9016639473832662, + 1.34751689561985, + 1.2058908049060586, + 0.8002074175588133, + 0.9976383048607629, + 0.8074598014510884, + 0.682603610047435, + 0.5656838072141143, + 0.40495504386653874, + 0.5767909557361679, + 0.5238521641898339, + 0.4305755417786651, + 0.5046278110871457 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.9719062730805663, + 3.2804921180478996, + 3.1506235549322157, + 2.358249044198347, + 2.100291029500201, + 1.5228904375417096, + 1.3403517084090089, + 0.9394278887187737, + 1.002835491211815, + 0.8301201238979781, + 0.6171105254619391, + 0.5120051300248155, + 0.46352334784178245, + 0.5297341402970216, + 0.5474499124140347, + 0.45915536720643313, + 0.506353112130403 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.1886729098128264, + 3.596193277979301, + 3.4274081509473544, + 2.6294576267684318, + 2.2575485674282825, + 1.5331959391624363, + 1.3999020734055807, + 0.9427618803574035, + 1.0138260631382647, + 0.8571841410018289, + 0.6547503214716471, + 0.5696265803587445, + 0.4800564467778891, + 0.5721758055454501, + 0.5835517573598624, + 0.5773531282005996, + 0.5446788979495212 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.764349207195852, + 3.2840094044095656, + 2.8499861187409694, + 2.0793631077044763, + 1.888278646196623, + 1.4607331553612526, + 1.3167571224183574, + 0.8454124903915474, + 0.9542652481245173, + 0.8234688819380526, + 0.6425072690994564, + 0.5027617871925458, + 0.41182465838769056, + 0.6086370410593199, + 0.5976496501310937, + 0.40677227709404207, + 0.5105061342743143 + ], + [ + 2.3309365228903673, + 2.405989787018054, + 2.4954062467270446, + 2.833696447730915, + 2.7153847200460635, + 2.666635424676098, + 2.8275903230168438, + 2.8616855835835855, + 3.0638693263033883, + 2.9719062730805663, + 3.1886729098128264, + 3.764349207195852, + 3.9204464452072068, + 3.276955566585207, + 2.8332851883230403, + 2.0728637967866637, + 1.8685674075236853, + 1.4665176781822364, + 1.3264734794316646, + 0.8397044445741981, + 0.9946398203044753, + 0.8459905502635207, + 0.6795072671971512, + 0.5564186531280123, + 0.44725191379425205, + 0.6192714663116863, + 0.6023716586640435, + 0.4330405475355302, + 0.4975801048677152 + ], + [ + 2.7076092864496464, + 2.7637422845239583, + 2.8697417706380772, + 3.1614221583114817, + 2.8312036876666813, + 2.6568330363906343, + 2.8271521158478485, + 2.980810572843346, + 2.949341751103695, + 3.2804921180478996, + 3.596193277979301, + 3.2840094044095656, + 3.276955566585207, + 4.450160083532561, + 3.354581508307865, + 2.4506232900595717, + 2.0166760000018664, + 1.3737167581177256, + 1.2717341538220308, + 0.8653757870712303, + 0.9308252518305845, + 0.6956120367593819, + 0.5373193274772248, + 0.442540545525281, + 0.4120116346295056, + 0.5605135113309031, + 0.49855397278279723, + 0.4703669283142906, + 0.5613620344815683 + ], + [ + 2.5828283307414557, + 2.6409109631066072, + 2.7257889339964594, + 2.9583957894293498, + 2.61277829758875, + 2.3476147668818568, + 2.587147345577654, + 2.7919449295961, + 2.8061340958890635, + 3.1506235549322157, + 3.4274081509473544, + 2.8499861187409694, + 2.8332851883230403, + 3.354581508307865, + 3.8941965929822517, + 2.512258216561545, + 2.109944816498539, + 1.5221555611808821, + 1.3008074911284095, + 0.8622915032500171, + 0.9886899472844323, + 0.7967312679936626, + 0.6480705264378424, + 0.5166219675235342, + 0.5118713003918643, + 0.668291846365047, + 0.61445542233892, + 0.4938389409718524, + 0.6555957845420977 + ], + [ + 2.0749659862953007, + 2.2523696359218266, + 2.1704722729811854, + 2.2258037903416095, + 2.147593605314885, + 1.935170869443875, + 1.948920475269127, + 1.9944480872282742, + 2.039301796845377, + 2.358249044198347, + 2.6294576267684318, + 2.0793631077044763, + 2.0728637967866637, + 2.4506232900595717, + 2.512258216561545, + 4.90743187825186, + 3.2425119775186513, + 2.125119281876137, + 1.7834078262191897, + 1.1391505216442175, + 1.2052969718575213, + 1.0993786643889853, + 0.9388189018389506, + 0.9510551284121005, + 0.863083659807576, + 1.067900319214004, + 1.0300870183661899, + 0.7798765125666617, + 0.7145790687609579 + ], + [ + 1.8979614932482212, + 2.066468296027738, + 2.023153201695174, + 2.0156942253472385, + 1.8902649458833995, + 1.7451546005394534, + 1.7932851187358931, + 1.8135729278965373, + 1.9016639473832662, + 2.100291029500201, + 2.2575485674282825, + 1.888278646196623, + 1.8685674075236853, + 2.0166760000018664, + 2.109944816498539, + 3.2425119775186513, + 4.266436093566324, + 2.257737910329508, + 1.7805828299253046, + 1.099406982739901, + 1.1406763086919225, + 1.075988678383306, + 0.9797226633091868, + 1.0446832173745924, + 0.9705576509784317, + 1.1324981320047498, + 1.112673044182778, + 0.9777242419671022, + 0.8156873108649764 + ], + [ + 1.1598080027339115, + 1.0707011599641276, + 1.075993263032202, + 1.3229097043364508, + 1.3404355507732728, + 1.2771052231969091, + 1.331509734705745, + 1.2519042697254033, + 1.34751689561985, + 1.5228904375417096, + 1.5331959391624363, + 1.4607331553612526, + 1.4665176781822364, + 1.3737167581177256, + 1.5221555611808821, + 2.125119281876137, + 2.257737910329508, + 3.5279131147070037, + 1.8303800681950804, + 1.4590627593580845, + 1.659529784219106, + 2.0348852544248035, + 1.727490463356549, + 1.4813387866952683, + 1.2056497577423677, + 1.260379537568893, + 1.2863159214992974, + 1.0568912756028728, + 0.7198573076682224 + ], + [ + 0.9672907304270633, + 1.0376263444080625, + 1.0422793635905534, + 1.2197585012656948, + 1.2675230516749558, + 1.263298118955975, + 1.1921343724610476, + 1.1343416164476894, + 1.2058908049060586, + 1.3403517084090089, + 1.3999020734055807, + 1.3167571224183574, + 1.3264734794316646, + 1.2717341538220308, + 1.3008074911284095, + 1.7834078262191897, + 1.7805828299253046, + 1.8303800681950804, + 3.2970597610256607, + 1.2818910671717847, + 1.3632384798959274, + 1.266646346691466, + 1.1135469239785525, + 1.0805289008429617, + 1.0336263724346257, + 1.0950131004183015, + 1.0144802194455806, + 0.7843761189319597, + 0.5001545142419945 + ], + [ + 0.8445215272130093, + 0.857389703634527, + 0.9414682463324875, + 0.8759670341946174, + 0.7881833899249291, + 0.9222650423853106, + 0.8251036160191069, + 0.8118511794756429, + 0.8002074175588133, + 0.9394278887187737, + 0.9427618803574035, + 0.8454124903915474, + 0.8397044445741981, + 0.8653757870712303, + 0.8622915032500171, + 1.1391505216442175, + 1.099406982739901, + 1.4590627593580845, + 1.2818910671717847, + 2.719110261240313, + 1.3694577407078374, + 1.572516860127116, + 1.4481590429362807, + 1.10721158710782, + 0.9120886707248242, + 0.8466345756616924, + 0.8731484821026729, + 0.7917154525986383, + 0.4157543559332934 + ], + [ + 0.8440981478902723, + 0.8567747625139767, + 0.8661451321692677, + 1.0652078473337494, + 0.9627347984687167, + 1.154926071388586, + 1.018559612365238, + 0.9786932918581343, + 0.9976383048607629, + 1.002835491211815, + 1.0138260631382647, + 0.9542652481245173, + 0.9946398203044753, + 0.9308252518305845, + 0.9886899472844323, + 1.2052969718575213, + 1.1406763086919225, + 1.659529784219106, + 1.3632384798959274, + 1.3694577407078374, + 3.262293047290917, + 2.362002646403123, + 2.1315002304126036, + 1.730453971905019, + 1.3334436505809015, + 1.2351334056598986, + 1.2833466486389273, + 1.0671390908815683, + 0.43958593807564617 + ], + [ + 0.8566488119015174, + 0.8225140766141141, + 0.875799744758322, + 0.8854529800796043, + 0.7572455607080214, + 0.7787611470905941, + 0.8339813671627474, + 0.7557512073885176, + 0.8074598014510884, + 0.8301201238979781, + 0.8571841410018289, + 0.8234688819380526, + 0.8459905502635207, + 0.6956120367593819, + 0.7967312679936626, + 1.0993786643889853, + 1.075988678383306, + 2.0348852544248035, + 1.266646346691466, + 1.572516860127116, + 2.362002646403123, + 4.696747519272648, + 3.9275108846674445, + 2.986102587232692, + 2.4629770239322157, + 1.97136094303752, + 1.9647998472799757, + 1.6395909476241857, + 0.5870369292723031 + ], + [ + 0.6571332992167694, + 0.6031320426857619, + 0.6588638613293223, + 0.6926146471738837, + 0.628883786808813, + 0.599707989600881, + 0.6802464312482578, + 0.5702026076559154, + 0.682603610047435, + 0.6171105254619391, + 0.6547503214716471, + 0.6425072690994564, + 0.6795072671971512, + 0.5373193274772248, + 0.6480705264378424, + 0.9388189018389506, + 0.9797226633091868, + 1.727490463356549, + 1.1135469239785525, + 1.4481590429362807, + 2.1315002304126036, + 3.9275108846674445, + 4.746275193005467, + 3.157970292245538, + 2.7732997107524424, + 2.2155651252168247, + 2.184003027387029, + 1.8831891986078493, + 0.6702791846867505 + ], + [ + 0.5023196441941121, + 0.491486916403898, + 0.5268713914536275, + 0.607424845907371, + 0.5090281334334943, + 0.5147347507455198, + 0.5239661054080991, + 0.447623711804456, + 0.5656838072141143, + 0.5120051300248155, + 0.5696265803587445, + 0.5027617871925458, + 0.5564186531280123, + 0.442540545525281, + 0.5166219675235342, + 0.9510551284121005, + 1.0446832173745924, + 1.4813387866952683, + 1.0805289008429617, + 1.10721158710782, + 1.730453971905019, + 2.986102587232692, + 3.157970292245538, + 4.616151115450268, + 3.2932920399318277, + 2.8016596679898846, + 2.606793400087374, + 2.2988642541587714, + 0.7264989864776129 + ], + [ + 0.32566316749285007, + 0.27557926960127255, + 0.33841867331499653, + 0.4623910240590529, + 0.4222692480273592, + 0.4782011189866908, + 0.36881181332363233, + 0.33706558020716904, + 0.40495504386653874, + 0.46352334784178245, + 0.4800564467778891, + 0.41182465838769056, + 0.44725191379425205, + 0.4120116346295056, + 0.5118713003918643, + 0.863083659807576, + 0.9705576509784317, + 1.2056497577423677, + 1.0336263724346257, + 0.9120886707248242, + 1.3334436505809015, + 2.4629770239322157, + 2.7732997107524424, + 3.2932920399318277, + 4.728953162844408, + 3.662165790263802, + 3.131333228509583, + 2.7234418208402, + 0.9758023506113968 + ], + [ + 0.38883380564887415, + 0.383833846407171, + 0.45475373404890224, + 0.5775695311816474, + 0.6289234765604497, + 0.6815150208103763, + 0.5720311361428948, + 0.5358704899706146, + 0.5767909557361679, + 0.5297341402970216, + 0.5721758055454501, + 0.6086370410593199, + 0.6192714663116863, + 0.5605135113309031, + 0.668291846365047, + 1.067900319214004, + 1.1324981320047498, + 1.260379537568893, + 1.0950131004183015, + 0.8466345756616924, + 1.2351334056598986, + 1.97136094303752, + 2.2155651252168247, + 2.8016596679898846, + 3.662165790263802, + 5.043940915809106, + 3.9769495525067367, + 2.891689460947579, + 1.4565140949390514 + ], + [ + 0.35209432139022473, + 0.33847945341342583, + 0.38620430422412844, + 0.49617153988795293, + 0.6267672068235964, + 0.6190772863921186, + 0.5402754416053439, + 0.5153548561783989, + 0.5238521641898339, + 0.5474499124140347, + 0.5835517573598624, + 0.5976496501310937, + 0.6023716586640435, + 0.49855397278279723, + 0.61445542233892, + 1.0300870183661899, + 1.112673044182778, + 1.2863159214992974, + 1.0144802194455806, + 0.8731484821026729, + 1.2833466486389273, + 1.9647998472799757, + 2.184003027387029, + 2.606793400087374, + 3.131333228509583, + 3.9769495525067367, + 4.783271182718377, + 3.1281726349846193, + 1.441437731689 + ], + [ + 0.4392291203369543, + 0.4280067994597013, + 0.3681037980647821, + 0.37085318959253116, + 0.45982951227324276, + 0.46985483472275247, + 0.36187383423052877, + 0.3516229720450111, + 0.4305755417786651, + 0.45915536720643313, + 0.5773531282005996, + 0.40677227709404207, + 0.4330405475355302, + 0.4703669283142906, + 0.4938389409718524, + 0.7798765125666617, + 0.9777242419671022, + 1.0568912756028728, + 0.7843761189319597, + 0.7917154525986383, + 1.0671390908815683, + 1.6395909476241857, + 1.8831891986078493, + 2.2988642541587714, + 2.7234418208402, + 2.891689460947579, + 3.1281726349846193, + 4.82235319409226, + 1.5822018048674753 + ], + [ + 0.6603155047706846, + 0.6532412871774632, + 0.564554207511363, + 0.6021446812809288, + 0.6424982784917262, + 0.6769790753508953, + 0.4923000156590594, + 0.5197393815527795, + 0.5046278110871457, + 0.506353112130403, + 0.5446788979495212, + 0.5105061342743143, + 0.4975801048677152, + 0.5613620344815683, + 0.6555957845420977, + 0.7145790687609579, + 0.8156873108649764, + 0.7198573076682224, + 0.5001545142419945, + 0.4157543559332934, + 0.43958593807564617, + 0.5870369292723031, + 0.6702791846867505, + 0.7264989864776129, + 0.9758023506113968, + 1.4565140949390514, + 1.441437731689, + 1.5822018048674753, + 4.407041142306895 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.3931526237695033, + -0.36951939261723216, + -0.413975195553756, + -0.34623825414016357, + -0.36202212133681827, + -0.4086193744162315, + -0.4189445882058546, + -0.474844644258788, + -0.426843370972324, + -0.3637193914001952, + -0.351305868935799, + -0.3502024839981304, + -0.34813704053617117, + -0.3272967409915019, + -0.3438184399055548, + -0.3460114968867764, + -0.3804017419758176 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6197847717397531, + "transport_matrix_sha256": "d4755841394082a812a7b01d533bbededa02bbccd9c1e1bbd968dd4c56ac6c35", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.112820282578468e-05, + "gram_mean_diagonal": 0.06112820282578468, + "calibration_nmse": 0.026729135765656057, + "calibration_cosine": 0.9865453606596748, + "calibration_norm_ratio": 0.9856049326804817, + "transport_relative_identity_distance": 0.3915551006793976, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "6bdb1d9174c7bf6d06b12d5d55b3a7649f4f880714e3e2d5a6f90c1449ad1a50", + "self_attn.k_proj.weight": "e3a98bfec07bba4f0fc6aa01b510f13fce379d8a5fdce7a70ce0870da65a2e43", + "self_attn.v_proj.weight": "f250ec94ab67ea3d397297fa0c70e7e24c7f77ca609a3a83cc8f7e792e4bc608", + "self_attn.o_proj.weight": "18f0f0ec64b28cbc88f0937245cb010fd86dcf094de2d96d1bd2162b76020229", + "self_attn.q_norm.weight": "2172344fe2c1fda6f261ece920fbd07a4b03d2385d2c0848c497aae4f07e69b5", + "self_attn.k_norm.weight": "a2c8f7815e194c45bad87d1e291c9ff2ad3a36929b1201d024354ec501563a4e", + "mlp.gate_proj.weight": "8334c424ddf9edb282ccb34d6f90321e9530eff5e81b7881ba9b3d74417a9672", + "mlp.up_proj.weight": "db91586fd2907e8ecccb075f036e5c180641fa35f7cd899a3f81411caa9d10df", + "mlp.down_proj.weight": "4d5fefc568246a3abfa21725082f7fdf4dd62e7c580a1280aebe0ec60a2230cd", + "input_layernorm.weight": "96fb39db2f64c716ae6891acb4e4e7f2a1276921a97d0d9a50d746727e4bbcd0", + "post_attention_layernorm.weight": "cd331d158252933122eae174cda361e7f3eb260b867b079b375650b368a4ae06" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "6bdb1d9174c7bf6d06b12d5d55b3a7649f4f880714e3e2d5a6f90c1449ad1a50", + "self_attn.k_proj.weight": "e3a98bfec07bba4f0fc6aa01b510f13fce379d8a5fdce7a70ce0870da65a2e43", + "self_attn.v_proj.weight": "f250ec94ab67ea3d397297fa0c70e7e24c7f77ca609a3a83cc8f7e792e4bc608", + "self_attn.o_proj.weight": "18f0f0ec64b28cbc88f0937245cb010fd86dcf094de2d96d1bd2162b76020229", + "self_attn.q_norm.weight": "2172344fe2c1fda6f261ece920fbd07a4b03d2385d2c0848c497aae4f07e69b5", + "self_attn.k_norm.weight": "a2c8f7815e194c45bad87d1e291c9ff2ad3a36929b1201d024354ec501563a4e", + "mlp.gate_proj.weight": "59f0c61a08c61036a25ef4e7d124df5605da010332feb29f6f749e1927ba5565", + "mlp.up_proj.weight": "402d52b4eeefe5c1f052613d0dc0c2395733ef11267a6f15a28a5a16221b633b", + "mlp.down_proj.weight": "4d5fefc568246a3abfa21725082f7fdf4dd62e7c580a1280aebe0ec60a2230cd", + "input_layernorm.weight": "96fb39db2f64c716ae6891acb4e4e7f2a1276921a97d0d9a50d746727e4bbcd0", + "post_attention_layernorm.weight": "cd331d158252933122eae174cda361e7f3eb260b867b079b375650b368a4ae06" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6197847717397531, + "lambda_right": 0.3802152282602469, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "657dc1f64bd3d898d5894e974818d8a6ee15650a86a229a5861b2acee0f9b088", + "mlp.up_proj.weight": "b9870148d064b28f15148348ff85a24cc6b0c9d5f05d238eb2d53d3094328aee", + "mlp.gate_proj.weight": "44926d75745b5eb02f07c0b546ac898b7d296542b32908a8174f7bb4cbcb63e3", + "self_attn.k_proj.weight": "fed731b48c19553af379834ed7f2f4dcf42fd0bc98f6e7ba8c4f93aee94d6b50", + "self_attn.o_proj.weight": "9744ed76ae0f10005c77c4d12ab99864251e6a7ceca3a0b9974f8154a64e4d13", + "self_attn.q_proj.weight": "18db3b31a5755e8c0ef7ac707cd25132accfe2a969a558824cd0fc89be91ef3a", + "self_attn.v_proj.weight": "9da1c888324adec31ad08af91e699e3c682a3b9ff1115a0e3a715c73d06730e0" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "6bdb1d9174c7bf6d06b12d5d55b3a7649f4f880714e3e2d5a6f90c1449ad1a50", + "self_attn.k_proj.weight": "e3a98bfec07bba4f0fc6aa01b510f13fce379d8a5fdce7a70ce0870da65a2e43", + "self_attn.v_proj.weight": "f250ec94ab67ea3d397297fa0c70e7e24c7f77ca609a3a83cc8f7e792e4bc608", + "self_attn.o_proj.weight": "18f0f0ec64b28cbc88f0937245cb010fd86dcf094de2d96d1bd2162b76020229", + "self_attn.q_norm.weight": "2172344fe2c1fda6f261ece920fbd07a4b03d2385d2c0848c497aae4f07e69b5", + "self_attn.k_norm.weight": "a2c8f7815e194c45bad87d1e291c9ff2ad3a36929b1201d024354ec501563a4e", + "mlp.gate_proj.weight": "59f0c61a08c61036a25ef4e7d124df5605da010332feb29f6f749e1927ba5565", + "mlp.up_proj.weight": "402d52b4eeefe5c1f052613d0dc0c2395733ef11267a6f15a28a5a16221b633b", + "mlp.down_proj.weight": "4d5fefc568246a3abfa21725082f7fdf4dd62e7c580a1280aebe0ec60a2230cd", + "input_layernorm.weight": "96fb39db2f64c716ae6891acb4e4e7f2a1276921a97d0d9a50d746727e4bbcd0", + "post_attention_layernorm.weight": "cd331d158252933122eae174cda361e7f3eb260b867b079b375650b368a4ae06" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "f926ad9c3c3f97ea0981a49912e70a874892421e7e3be53d739da8c33c3733c4", + "mlp.up_proj.weight": "15df00e706f8be49186d2d459a8692be3c37a3f3a36511c2a9cee08d6671bef4", + "mlp.gate_proj.weight": "bc8d924ace2b9eb5f75c4967bf454b643694bdd2ec244376b525540048ba3375", + "self_attn.k_proj.weight": "3a295ef70c850e301d4a125159ac91820b49729061dd25b2a90c4d511e49395e", + "self_attn.o_proj.weight": "2b6fba36fc4b06e46e6afdff3f11d23aec9cda1286a6f075354c1fb8df3f3a31", + "self_attn.q_proj.weight": "82c9e9730b8ad6984087b423049cfc8996595d5b40f404ab9d4312fd784a4b14", + "self_attn.v_proj.weight": "48edbfeb6b967df8697c7c36be5816eb088856bba380604801a54492378cef3a" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_9/cycle_metadata.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_9/cycle_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f81fb331ff5f421c8d4a9b3f4cefbea90fb5191d --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/cycle_metadata/cycle_9/cycle_metadata.json @@ -0,0 +1,1168 @@ +{ + "cycle": 9, + "layer_merged": 12, + "num_layers_before": 28, + "num_layers_after": 27, + "fused_layer_state": "fused_layer.pt", + "profile_no_save": false, + "dwce_score": null, + "dwce_scores": null, + "dwce_meta": { + "method": "mka", + "fisher_computed": false + }, + "fisher_num_batches": 0, + "merge_method": "fisher", + "merged_params": 7, + "num_sequences": 64, + "teacher_source": "previous_cycle", + "teacher_cycle": 8, + "eval": { + "datasets": [ + "wikitext2" + ], + "configs": [ + null + ], + "split": "test", + "num_samples": 0, + "seq_len": 1024, + "post_ppl": null, + "merge_only_ppl": null + }, + "comm": { + "enabled": false + }, + "distill": { + "enabled": false, + "method": "reparam", + "calib_samples": 256, + "inst_samples": 0, + "seq_len": 512, + "batch_size": 2, + "epochs": 1.0, + "lr": 0.0001, + "kl_weight": 0.01, + "kl_temp": 4.0, + "kl_chunk_size": 16384, + "hidden_mse_weight": 1.0, + "attn_mse_weight": 0.0, + "mlp_mse_weight": 0.0, + "reparam_eta": 0.01, + "reparam_gamma": 0.0001, + "reparam_attn_reg_scale": 1.0, + "reparam_mlp_reg_scale": 1.0, + "reparam_param_subset": "all", + "reparam_train_subset": "same", + "reparam_skip_train": false, + "reparam_stats": null, + "reparam_gate_summary": null, + "post_merge_nll_scale": null, + "merge_only_ppl": null, + "post_ppl": null, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "instruction_dataset": null, + "instruction_config": null, + "instruction_split": "train" + }, + "lora": { + "enabled": false, + "seq_len": 512, + "batch_size": 2, + "epochs": 0.0, + "rank": 8, + "alpha": 16.0, + "dropout": 0.0, + "target_modules": [ + "q_proj", + "k_proj", + "v_proj", + "o_proj", + "gate_proj", + "down_proj", + "up_proj" + ], + "respect_exclude_pairs": false, + "kl_enabled": false, + "kl_weight": 0.1, + "kl_temp": 4.0, + "post_ppl": null, + "lr": 0.0001, + "weight_decay": 0.0, + "max_grad_norm": 1.0, + "grad_accum_steps": 1, + "log_steps": 100, + "eval_every": 0, + "eval_max_batches": null + }, + "norm_policy": "copy_n1_n2", + "source_feature_transport": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.13890141248703e-05, + "gram_mean_diagonal": 0.0613890141248703, + "calibration_nmse": 0.03578479326997579, + "calibration_cosine": 0.981945031412953, + "calibration_norm_ratio": 0.9810296153539277, + "transport_relative_identity_distance": 0.524169921875, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "Transport then non-Fisher exact merge; no FiT" + }, + "same_anchor_contextual_fisher": { + "computed": false, + "anchor_candidate_mean_nll": 0.0, + "transported_source_candidate_mean_nll": 0.0 + }, + "full_model_saved": false, + "timing": { + "seconds": { + "selection": 7.848725592019036, + "rebase": 0.0, + "source_feature_transport": 4.235219576046802, + "fisher": 4.701002035290003e-05, + "fit": 2.7066501850495115, + "materialize_save_layer": 0.6214375830022618, + "metadata_write": 0.00046299700625240803, + "teacher_snapshot": 0.44943679601419717, + "cycle_cleanup": 0.16279929800657555, + "cycle_total": 16.02556606300641 + }, + "tracked_component_total_seconds": 16.02477903716499, + "cycle_total_seconds": 16.02556606300641, + "ratios_of_tracked_components": { + "selection": 0.489786821635176, + "rebase": 0.0, + "source_feature_transport": 0.2642919173003506, + "fisher": 2.933583061824032e-06, + "fit": 0.16890405657214955, + "materialize_save_layer": 0.03877979106988067, + "metadata_write": 2.8892567265895902e-05, + "teacher_snapshot": 0.028046364631415778, + "cycle_cleanup": 0.01015922264069964 + }, + "ratios_of_cycle_total": { + "selection": 0.48976276788981077, + "rebase": 0.0, + "source_feature_transport": 0.2642789377545564, + "fisher": 2.933438991675837e-06, + "fit": 0.1688957615854564, + "materialize_save_layer": 0.03877788656943577, + "metadata_write": 2.889114833336186e-05, + "teacher_snapshot": 0.028044987256436574, + "cycle_cleanup": 0.01015872371475122 + } + }, + "fisher_computed": false, + "fit": false, + "nofit_merge_control": { + "cycle": 9, + "anchor": 12, + "removed_original_layer": 21, + "selection_policy": "fixed_our_span_13_22_anchor12", + "fit": false, + "npib_matrix": [ + [ + 5.166917057097049, + 4.296601023756129, + 3.9830024245965183, + 3.10410738669276, + 2.2841123788950113, + 2.1480634162105217, + 2.3549079374983717, + 2.3600671348256728, + 2.376830684871432, + 2.550421074797846, + 2.821279415292682, + 2.3480856668618664, + 2.354904735045606, + 2.312837006069805, + 0.3307119798264093, + 0.38882979531465905, + 1.3287478362742415, + 1.4392382897821736, + 0.9615229262925192, + 1.2278997650317163, + 0.8263828612781615, + 1.1193242283958542, + 1.0201956237367105, + 0.9109442596255879, + 0.749378969563884, + 0.90322487606263, + 0.8635046798315051, + 0.7446489743439781 + ], + [ + 4.296601023756129, + 5.306699964567971, + 4.556499539439456, + 3.3583997857777335, + 2.5039763973715843, + 2.307521418108658, + 2.4642296328990634, + 2.5589070812959713, + 2.567284259026071, + 2.5970385620766923, + 2.9672402379786202, + 2.3810676238414588, + 2.415775219637126, + 2.362970422189651, + 0.48600688936814973, + 0.41891121339867415, + 1.2717239849236417, + 1.2946769973587537, + 0.8517998016019664, + 1.2357249620929298, + 0.8224324293049441, + 1.167170866440037, + 1.1223524160172733, + 0.9711281109627545, + 0.755306201435458, + 0.8803498455117649, + 0.7499715840746748, + 0.6158216690064374 + ], + [ + 3.9830024245965183, + 4.556499539439456, + 5.111568192247359, + 3.448523582213777, + 2.520412074174913, + 2.295944413509171, + 2.533356832326971, + 2.671600694841501, + 2.662498547013608, + 2.8060597570692956, + 3.066561749123121, + 2.4818440585789143, + 2.5127952452221116, + 2.40186050988633, + 0.42061537235726365, + 0.41508573338492766, + 1.2293368071179154, + 1.2654087240074934, + 0.8138520586542975, + 1.1374628585667586, + 0.8251048692716371, + 1.1218500861105365, + 1.057826850914651, + 0.9370539597703822, + 0.6883427896153081, + 0.8087319848354482, + 0.7350440039238897, + 0.6390224355159521 + ], + [ + 3.10410738669276, + 3.3583997857777335, + 3.448523582213777, + 4.661734276321969, + 3.062605089874211, + 2.831039549048126, + 2.937153065038304, + 2.988807123078588, + 2.951395824404601, + 3.0401401499159624, + 3.404874873873298, + 2.7736615438110146, + 2.8298172809503326, + 2.6733576317928294, + 0.27891768076106005, + 0.3345382667124743, + 1.1920848009593235, + 1.2273268388454024, + 0.8693423129068647, + 1.1988810948671296, + 0.9570404158372792, + 1.2287689820028347, + 1.2185128384653263, + 1.037214160089925, + 0.7681530454115186, + 0.8938725914929445, + 0.7555569535361598, + 0.558535957103443 + ], + [ + 2.2841123788950113, + 2.5039763973715843, + 2.520412074174913, + 3.062605089874211, + 3.7720999119708054, + 2.90423342952753, + 3.0184887173167905, + 2.983526699386118, + 2.8511120232361327, + 2.5551018009187954, + 2.7332233919508493, + 2.6738756693358754, + 2.7566340722157374, + 2.5824900119327636, + 0.39788015132379284, + 0.363146003815999, + 0.9241769214948886, + 1.0087801369047389, + 0.7673273357913692, + 1.0617748845970556, + 0.7679554215431607, + 1.0469198965978141, + 0.9874397401659214, + 0.8506796705084928, + 0.7271441086291381, + 0.676016192226224, + 0.49610000091316014, + 0.4178031943607356 + ], + [ + 2.1480634162105217, + 2.307521418108658, + 2.295944413509171, + 2.831039549048126, + 2.90423342952753, + 3.830904542134809, + 2.8237527765598465, + 2.6694289588674374, + 2.653400814990035, + 2.3475534678549046, + 2.6005835581627803, + 2.6149597082643457, + 2.618581097813819, + 2.5456965872894637, + 0.5415195973544007, + 0.31977074889857493, + 0.9795479535096984, + 1.051772279356039, + 0.7925510445506377, + 1.147224356265611, + 0.8706240926354653, + 1.0734239153570844, + 0.9314014558669682, + 0.8096236531063354, + 0.683821524896421, + 0.7838861318726456, + 0.5974212218310718, + 0.4026841284371468 + ], + [ + 2.3549079374983717, + 2.4642296328990634, + 2.533356832326971, + 2.937153065038304, + 3.0184887173167905, + 2.8237527765598465, + 3.8901916493191484, + 3.36132687881428, + 3.1298950037829307, + 2.7205094748745364, + 2.8816089335951163, + 2.8002588773552564, + 2.8495146416569086, + 2.6289078958745504, + 0.3046562670577072, + 0.2967348415425515, + 0.870028778566192, + 1.0106856838436287, + 0.7316192389657744, + 0.9639152899822973, + 0.7552783600964255, + 0.950713764858555, + 0.7955043629484608, + 0.7035173902979468, + 0.675169086110335, + 0.7061658873566447, + 0.4603092419814475, + 0.3697175589632769 + ], + [ + 2.3600671348256728, + 2.5589070812959713, + 2.671600694841501, + 2.988807123078588, + 2.983526699386118, + 2.6694289588674374, + 3.36132687881428, + 3.8080105299103084, + 3.26067274803389, + 2.8024467831594055, + 2.952886858315388, + 2.827583719104836, + 2.895778787118561, + 2.7298059363772573, + 0.3375690222307773, + 0.3379296504973858, + 0.8797947355929516, + 0.9905049611101461, + 0.7302062013805602, + 0.9949397733039065, + 0.7173160054338853, + 0.9020932168965605, + 0.8586203708740789, + 0.7539692891525165, + 0.6854442631498163, + 0.7054575422629963, + 0.48223814856357294, + 0.37546072791741264 + ], + [ + 2.376830684871432, + 2.567284259026071, + 2.662498547013608, + 2.951395824404601, + 2.8511120232361327, + 2.653400814990035, + 3.1298950037829307, + 3.26067274803389, + 3.7819134317030514, + 2.8798852418085854, + 2.999760862760205, + 2.981621886641877, + 3.0285667123475686, + 2.7801168441440427, + 0.4378755621211716, + 0.3533273947926343, + 0.9555675621630234, + 1.0400006691675523, + 0.8015828018274135, + 1.0602732731318416, + 0.7766809594813818, + 0.9581276124326714, + 0.9422705876565094, + 0.8762575567072247, + 0.7757395497887083, + 0.7947456226798513, + 0.5837055463649709, + 0.4354921655100933 + ], + [ + 2.550421074797846, + 2.5970385620766923, + 2.8060597570692956, + 3.0401401499159624, + 2.5551018009187954, + 2.3475534678549046, + 2.7205094748745364, + 2.8024467831594055, + 2.8798852418085854, + 3.960785123911616, + 3.5997398275871624, + 2.9382255699975124, + 2.996587805188197, + 2.755891018415263, + 0.4587399421548764, + 0.3011473445040103, + 0.9625056704050592, + 1.0639470825051633, + 0.7538632673077167, + 0.9892050840503231, + 0.7360648692158933, + 0.8915597887543809, + 0.9905106791338412, + 0.9202107008952923, + 0.7489924347735547, + 0.8867549136842681, + 0.797813008643516, + 0.6422275896876818 + ], + [ + 2.821279415292682, + 2.9672402379786202, + 3.066561749123121, + 3.404874873873298, + 2.7332233919508493, + 2.6005835581627803, + 2.8816089335951163, + 2.952886858315388, + 2.999760862760205, + 3.5997398275871624, + 4.516606027929059, + 3.1624921278421185, + 3.1628933305346587, + 2.9808571018582457, + 0.49724982360602865, + 0.41500706439726925, + 1.133566766951892, + 1.2096549184964591, + 0.8331025603005594, + 1.085031335606536, + 0.7683552737423831, + 0.9355569891034842, + 1.079788087690286, + 0.9851562304439355, + 0.7838484102334218, + 1.0413190688721983, + 1.0308354850424926, + 0.7613066501685022 + ], + [ + 2.3480856668618664, + 2.3810676238414588, + 2.4818440585789143, + 2.7736615438110146, + 2.6738756693358754, + 2.6149597082643457, + 2.8002588773552564, + 2.827583719104836, + 2.981621886641877, + 2.9382255699975124, + 3.1624921278421185, + 3.846466119612277, + 3.7044595925112382, + 3.126136862833155, + 0.3307996052401007, + 0.2868875647594833, + 0.9494501550721898, + 1.0654209831016133, + 0.7972204483574115, + 0.9907688626768275, + 0.7670533802097879, + 0.9401008693507901, + 0.8742794106060604, + 0.841111271021977, + 0.7010345508382346, + 0.756655742862572, + 0.5635161438826931, + 0.5150841575472963 + ], + [ + 2.354904735045606, + 2.415775219637126, + 2.5127952452221116, + 2.8298172809503326, + 2.7566340722157374, + 2.618581097813819, + 2.8495146416569086, + 2.895778787118561, + 3.0285667123475686, + 2.996587805188197, + 3.1628933305346587, + 3.7044595925112382, + 3.8899209217377266, + 3.0949456558032784, + 0.3195712725866662, + 0.30916133200082907, + 0.9654216235743767, + 1.0902065742897291, + 0.8158107646499925, + 1.0190497048477805, + 0.776547765708914, + 0.9552971481074828, + 0.9092141537287992, + 0.8675705618607096, + 0.7286517808566375, + 0.7433216786793788, + 0.5440496311111911, + 0.5026659810644237 + ], + [ + 2.312837006069805, + 2.362970422189651, + 2.40186050988633, + 2.6733576317928294, + 2.5824900119327636, + 2.5456965872894637, + 2.6289078958745504, + 2.7298059363772573, + 2.7801168441440427, + 2.755891018415263, + 2.9808571018582457, + 3.126136862833155, + 3.0949456558032784, + 3.6812425866388723, + 0.3899375939212445, + 0.30007880116521063, + 0.9628924308248515, + 1.0872556335848418, + 0.8044493382609295, + 0.997337623008618, + 0.72840896216759, + 0.9257065187946212, + 0.9251594650807294, + 0.9249346931655472, + 0.7512787318505508, + 0.7705648378485978, + 0.5399899361205283, + 0.48188832066719883 + ], + [ + 0.3307119798264093, + 0.48600688936814973, + 0.42061537235726365, + 0.27891768076106005, + 0.39788015132379284, + 0.5415195973544007, + 0.3046562670577072, + 0.3375690222307773, + 0.4378755621211716, + 0.4587399421548764, + 0.49724982360602865, + 0.3307996052401007, + 0.3195712725866662, + 0.3899375939212445, + 5.428302447269453, + 2.442446396265685, + 1.328753710792894, + 0.9642266347937211, + 0.4825043957128179, + 1.0156156269160304, + 0.3893739589587789, + 0.49626636656374123, + 0.7424714310257223, + 0.6956106067387712, + 0.5043708817460063, + 0.540307107625599, + 0.4876176781842678, + 1.064303848039494 + ], + [ + 0.38882979531465905, + 0.41891121339867415, + 0.41508573338492766, + 0.3345382667124743, + 0.363146003815999, + 0.31977074889857493, + 0.2967348415425515, + 0.3379296504973858, + 0.3533273947926343, + 0.3011473445040103, + 0.41500706439726925, + 0.2868875647594833, + 0.30916133200082907, + 0.30007880116521063, + 2.442446396265685, + 4.37708763449559, + 1.4480315385393474, + 1.1677651808436267, + 0.6336859587206934, + 0.9510684437188098, + 0.5884726240294303, + 0.6024154925135219, + 0.6550057634883452, + 0.5646525465117775, + 0.4272356785287004, + 0.512458746065239, + 0.5572659007719092, + 0.88378761436946 + ], + [ + 1.3287478362742415, + 1.2717239849236417, + 1.2293368071179154, + 1.1920848009593235, + 0.9241769214948886, + 0.9795479535096984, + 0.870028778566192, + 0.8797947355929516, + 0.9555675621630234, + 0.9625056704050592, + 1.133566766951892, + 0.9494501550721898, + 0.9654216235743767, + 0.9628924308248515, + 1.328753710792894, + 1.4480315385393474, + 3.4386646767250286, + 2.70675889505815, + 1.370199454914521, + 1.5636699618412089, + 1.2127100993914566, + 1.615738063749116, + 1.4954556151610805, + 1.3651543466867444, + 0.9807843923216132, + 1.3461033600802588, + 1.475167554384498, + 1.2101879921213499 + ], + [ + 1.4392382897821736, + 1.2946769973587537, + 1.2654087240074934, + 1.2273268388454024, + 1.0087801369047389, + 1.051772279356039, + 1.0106856838436287, + 0.9905049611101461, + 1.0400006691675523, + 1.0639470825051633, + 1.2096549184964591, + 1.0654209831016133, + 1.0902065742897291, + 1.0872556335848418, + 0.9642266347937211, + 1.1677651808436267, + 2.70675889505815, + 3.712884593325546, + 1.612040339436234, + 1.787324021168131, + 1.4687055530194928, + 2.0636547257060727, + 1.7547924051420734, + 1.5286482781361608, + 1.1521789545580585, + 1.5527955236993158, + 1.7764178852494859, + 1.2484262184734722 + ], + [ + 0.9615229262925192, + 0.8517998016019664, + 0.8138520586542975, + 0.8693423129068647, + 0.7673273357913692, + 0.7925510445506377, + 0.7316192389657744, + 0.7302062013805602, + 0.8015828018274135, + 0.7538632673077167, + 0.8331025603005594, + 0.7972204483574115, + 0.8158107646499925, + 0.8044493382609295, + 0.4825043957128179, + 0.6336859587206934, + 1.370199454914521, + 1.612040339436234, + 2.6032168997379164, + 1.5575135264470188, + 1.1089805387696472, + 1.5751360227957385, + 1.5766390647501294, + 1.40768754580905, + 1.2094995626487288, + 1.398594916814925, + 1.3995524490446105, + 0.8551653898454695 + ], + [ + 1.2278997650317163, + 1.2357249620929298, + 1.1374628585667586, + 1.1988810948671296, + 1.0617748845970556, + 1.147224356265611, + 0.9639152899822973, + 0.9949397733039065, + 1.0602732731318416, + 0.9892050840503231, + 1.085031335606536, + 0.9907688626768275, + 1.0190497048477805, + 0.997337623008618, + 1.0156156269160304, + 0.9510684437188098, + 1.5636699618412089, + 1.787324021168131, + 1.5575135264470188, + 3.0050615327575905, + 1.4162198539235844, + 2.0226955366447905, + 1.9666630047605944, + 1.817450998029019, + 1.5815466867085692, + 1.5299095324406284, + 1.5790788324131817, + 1.1832471612269353 + ], + [ + 0.8263828612781615, + 0.8224324293049441, + 0.8251048692716371, + 0.9570404158372792, + 0.7679554215431607, + 0.8706240926354653, + 0.7552783600964255, + 0.7173160054338853, + 0.7766809594813818, + 0.7360648692158933, + 0.7683552737423831, + 0.7670533802097879, + 0.776547765708914, + 0.72840896216759, + 0.3893739589587789, + 0.5884726240294303, + 1.2127100993914566, + 1.4687055530194928, + 1.1089805387696472, + 1.4162198539235844, + 3.0044075079175534, + 2.4050247015462096, + 2.121684180288626, + 1.9453488612405616, + 1.6263416672495048, + 1.7274173245481044, + 1.5946149125628282, + 1.0183469481143976 + ], + [ + 1.1193242283958542, + 1.167170866440037, + 1.1218500861105365, + 1.2287689820028347, + 1.0469198965978141, + 1.0734239153570844, + 0.950713764858555, + 0.9020932168965605, + 0.9581276124326714, + 0.8915597887543809, + 0.9355569891034842, + 0.9401008693507901, + 0.9552971481074828, + 0.9257065187946212, + 0.49626636656374123, + 0.6024154925135219, + 1.615738063749116, + 2.0636547257060727, + 1.5751360227957385, + 2.0226955366447905, + 2.4050247015462096, + 5.066603294284001, + 3.7940498768536792, + 3.5021321016150875, + 2.948467939937635, + 2.8726389818268196, + 2.5092024677362152, + 1.2837005444522271 + ], + [ + 1.0201956237367105, + 1.1223524160172733, + 1.057826850914651, + 1.2185128384653263, + 0.9874397401659214, + 0.9314014558669682, + 0.7955043629484608, + 0.8586203708740789, + 0.9422705876565094, + 0.9905106791338412, + 1.079788087690286, + 0.8742794106060604, + 0.9092141537287992, + 0.9251594650807294, + 0.7424714310257223, + 0.6550057634883452, + 1.4954556151610805, + 1.7547924051420734, + 1.5766390647501294, + 1.9666630047605944, + 2.121684180288626, + 3.7940498768536792, + 5.920276532817296, + 5.291144113915918, + 4.116782505181741, + 3.6862694590284275, + 2.950210732641706, + 1.7546389323385339 + ], + [ + 0.9109442596255879, + 0.9711281109627545, + 0.9370539597703822, + 1.037214160089925, + 0.8506796705084928, + 0.8096236531063354, + 0.7035173902979468, + 0.7539692891525165, + 0.8762575567072247, + 0.9202107008952923, + 0.9851562304439355, + 0.841111271021977, + 0.8675705618607096, + 0.9249346931655472, + 0.6956106067387712, + 0.5646525465117775, + 1.3651543466867444, + 1.5286482781361608, + 1.40768754580905, + 1.817450998029019, + 1.9453488612405616, + 3.5021321016150875, + 5.291144113915918, + 5.722240976971763, + 4.324457018460413, + 3.76294628626449, + 2.971241965408863, + 1.667657998116971 + ], + [ + 0.749378969563884, + 0.755306201435458, + 0.6883427896153081, + 0.7681530454115186, + 0.7271441086291381, + 0.683821524896421, + 0.675169086110335, + 0.6854442631498163, + 0.7757395497887083, + 0.7489924347735547, + 0.7838484102334218, + 0.7010345508382346, + 0.7286517808566375, + 0.7512787318505508, + 0.5043708817460063, + 0.4272356785287004, + 0.9807843923216132, + 1.1521789545580585, + 1.2094995626487288, + 1.5815466867085692, + 1.6263416672495048, + 2.948467939937635, + 4.116782505181741, + 4.324457018460413, + 4.911633699069733, + 3.193461725325584, + 2.3504794382740073, + 1.3275007256936364 + ], + [ + 0.90322487606263, + 0.8803498455117649, + 0.8087319848354482, + 0.8938725914929445, + 0.676016192226224, + 0.7838861318726456, + 0.7061658873566447, + 0.7054575422629963, + 0.7947456226798513, + 0.8867549136842681, + 1.0413190688721983, + 0.756655742862572, + 0.7433216786793788, + 0.7705648378485978, + 0.540307107625599, + 0.512458746065239, + 1.3461033600802588, + 1.5527955236993158, + 1.398594916814925, + 1.5299095324406284, + 1.7274173245481044, + 2.8726389818268196, + 3.6862694590284275, + 3.76294628626449, + 3.193461725325584, + 5.186409301256866, + 3.741789768467055, + 1.7802021381501596 + ], + [ + 0.8635046798315051, + 0.7499715840746748, + 0.7350440039238897, + 0.7555569535361598, + 0.49610000091316014, + 0.5974212218310718, + 0.4603092419814475, + 0.48223814856357294, + 0.5837055463649709, + 0.797813008643516, + 1.0308354850424926, + 0.5635161438826931, + 0.5440496311111911, + 0.5399899361205283, + 0.4876176781842678, + 0.5572659007719092, + 1.475167554384498, + 1.7764178852494859, + 1.3995524490446105, + 1.5790788324131817, + 1.5946149125628282, + 2.5092024677362152, + 2.950210732641706, + 2.971241965408863, + 2.3504794382740073, + 3.741789768467055, + 5.883064241826724, + 2.1346720250208673 + ], + [ + 0.7446489743439781, + 0.6158216690064374, + 0.6390224355159521, + 0.558535957103443, + 0.4178031943607356, + 0.4026841284371468, + 0.3697175589632769, + 0.37546072791741264, + 0.4354921655100933, + 0.6422275896876818, + 0.7613066501685022, + 0.5150841575472963, + 0.5026659810644237, + 0.48188832066719883, + 1.064303848039494, + 0.88378761436946, + 1.2101879921213499, + 1.2484262184734722, + 0.8551653898454695, + 1.1832471612269353, + 1.0183469481143976, + 1.2837005444522271, + 1.7546389323385339, + 1.667657998116971, + 1.3275007256936364, + 1.7802021381501596, + 2.1346720250208673, + 5.208468905531033 + ] + ], + "entropies": [ + -0.32062016317766545, + -0.3208638156728714, + -0.3269258164743278, + -0.3385920413320373, + -0.39976993175395986, + -0.4026365987210763, + -0.39544585895507084, + -0.4043808952055014, + -0.39977870926684317, + -0.40308203025714934, + -0.36526956055955967, + -0.40260844914153276, + -0.4011061735471199, + -0.40598079701950246, + -0.3106188965367697, + -0.34299059894938394, + -0.405722298876856, + -0.40182750809958806, + -0.46382435350423107, + -0.4382272623539742, + -0.45940053931246466, + -0.35871333919403176, + -0.31995395297370394, + -0.32472277179038683, + -0.3448652230509099, + -0.35098075366819675, + -0.33746577357229895, + -0.29544598824703944 + ], + "geometry_config": { + "sigma": 8.0, + "alpha": 0.5, + "dimensions": 2, + "mi_neighbors": 5, + "entropy_neighbors": 50, + "beta": 1.0, + "seed": 0, + "pooling": "mean" + }, + "geometry_samples": 64, + "implementation": "corrected_local_MKA_not_exact_paper_reproduction", + "lambda_left": 0.6252624360747442, + "transport_matrix_sha256": "2ddddb87dd62e24f6864b5610b03544524480f1dd6429bbe3b60702cd9b4d83d", + "transport": { + "stats": { + "tokens": 65536, + "ridge_relative": 0.001, + "ridge_absolute": 6.13890141248703e-05, + "gram_mean_diagonal": 0.0613890141248703, + "calibration_nmse": 0.03578479326997579, + "calibration_cosine": 0.981945031412953, + "calibration_norm_ratio": 0.9810296153539277, + "transport_relative_identity_distance": 0.524169921875, + "enabled": true, + "batches": 32, + "coordinate_fit": "X_anchor @ T ~= X_source", + "weight_rewrite": [ + "mlp.gate_proj.weight <- W_source @ T.T", + "mlp.up_proj.weight <- W_source @ T.T" + ], + "down_proj_transported": false, + "fisher_order": "source transport first; same-anchor post-pruning contextual Fisher second" + }, + "source_before_sha256": { + "self_attn.q_proj.weight": "1839858bb3153a7d2907bbc4837cab44494ea4f8f73db2dac5a973f1500537c0", + "self_attn.k_proj.weight": "34776759a30508b301e6eeb4c03e74afc6e315a0e4005b788772f03267fa6bad", + "self_attn.v_proj.weight": "25ed7a7bfff05b2a63a9489ed945f49ed624baa5ffa7f971c263e4d3aade1d04", + "self_attn.o_proj.weight": "a8c4e7b3c03654158c39ea33456a291809aee2893e9dde1fa2d530da216b313c", + "self_attn.q_norm.weight": "21aa357e3be95df8e0b87310db2cf759d951d8c9a706c9e1bee207de27cbb87f", + "self_attn.k_norm.weight": "0dfad6f8b52d3a2c224e7cd2b5c1fe87db29b927a7d7fb4161f231df6df2ac02", + "mlp.gate_proj.weight": "4d745750b386ff30e96c0fe5ac21229e0672de87a3c4d30b7a877c333f250622", + "mlp.up_proj.weight": "b0b002f9bd65d4a6b4b37b6cf06139deb86a51ebc96fc27b4ebcff016f3e450b", + "mlp.down_proj.weight": "279864f62a9b78fa49dde314b363ca78f22fda503fbf8e9f64437ea6644a084a", + "input_layernorm.weight": "2974f6d5be715ca00edf542f4e51e5eb5ced2a292277c1974a92f5f6fec44871", + "post_attention_layernorm.weight": "a00da323dd47889f5a6238369523374a092cab49267ad69f4716d7b1c3778d5f" + }, + "source_after_sha256": { + "self_attn.q_proj.weight": "1839858bb3153a7d2907bbc4837cab44494ea4f8f73db2dac5a973f1500537c0", + "self_attn.k_proj.weight": "34776759a30508b301e6eeb4c03e74afc6e315a0e4005b788772f03267fa6bad", + "self_attn.v_proj.weight": "25ed7a7bfff05b2a63a9489ed945f49ed624baa5ffa7f971c263e4d3aade1d04", + "self_attn.o_proj.weight": "a8c4e7b3c03654158c39ea33456a291809aee2893e9dde1fa2d530da216b313c", + "self_attn.q_norm.weight": "21aa357e3be95df8e0b87310db2cf759d951d8c9a706c9e1bee207de27cbb87f", + "self_attn.k_norm.weight": "0dfad6f8b52d3a2c224e7cd2b5c1fe87db29b927a7d7fb4161f231df6df2ac02", + "mlp.gate_proj.weight": "87e2a5acae8d6873e7a823620d245c3ad67d65b6dc91408a635268cd9d5d61e0", + "mlp.up_proj.weight": "7d5ed12a5ca5cee4157d03a1097a167b7e270d224702761b55ef63f98c8890be", + "mlp.down_proj.weight": "279864f62a9b78fa49dde314b363ca78f22fda503fbf8e9f64437ea6644a084a", + "input_layernorm.weight": "2974f6d5be715ca00edf542f4e51e5eb5ced2a292277c1974a92f5f6fec44871", + "post_attention_layernorm.weight": "a00da323dd47889f5a6238369523374a092cab49267ad69f4716d7b1c3778d5f" + }, + "changed": [ + "mlp.gate_proj.weight", + "mlp.up_proj.weight" + ] + }, + "merge": { + "initializer": "mka", + "lambda_left": 0.6252624360747442, + "lambda_right": 0.3747375639252558, + "projection_names": [ + "mlp.down_proj.weight", + "mlp.up_proj.weight", + "mlp.gate_proj.weight", + "self_attn.k_proj.weight", + "self_attn.o_proj.weight", + "self_attn.q_proj.weight", + "self_attn.v_proj.weight" + ], + "scope": "attention_and_mlp", + "frozen_anchor_sha256": { + "self_attn.q_norm.weight": "70223d2ee9393af355e7fa894d500b5c5bf032873b6b27cba6bb1f1b971cb904", + "self_attn.k_norm.weight": "df93c74989ee20de00c5875567ad98be1eb5d115d51bacb1dc615d22b15f488e", + "input_layernorm.weight": "f65024195899b2e5822f33d9c7d7c70442aaa262dd8bb1f4847d5c70f18d09e3", + "post_attention_layernorm.weight": "017c0603fff83a0a0231a2f3b9ae54ebe7f1d495c8d7092da5a10a87fadda049" + }, + "anchor_before_sha256": { + "mlp.down_proj.weight": "f926ad9c3c3f97ea0981a49912e70a874892421e7e3be53d739da8c33c3733c4", + "mlp.up_proj.weight": "15df00e706f8be49186d2d459a8692be3c37a3f3a36511c2a9cee08d6671bef4", + "mlp.gate_proj.weight": "bc8d924ace2b9eb5f75c4967bf454b643694bdd2ec244376b525540048ba3375", + "self_attn.k_proj.weight": "3a295ef70c850e301d4a125159ac91820b49729061dd25b2a90c4d511e49395e", + "self_attn.o_proj.weight": "2b6fba36fc4b06e46e6afdff3f11d23aec9cda1286a6f075354c1fb8df3f3a31", + "self_attn.q_proj.weight": "82c9e9730b8ad6984087b423049cfc8996595d5b40f404ab9d4312fd784a4b14", + "self_attn.v_proj.weight": "48edbfeb6b967df8697c7c36be5816eb088856bba380604801a54492378cef3a" + }, + "source_post_transport_sha256": { + "self_attn.q_proj.weight": "1839858bb3153a7d2907bbc4837cab44494ea4f8f73db2dac5a973f1500537c0", + "self_attn.k_proj.weight": "34776759a30508b301e6eeb4c03e74afc6e315a0e4005b788772f03267fa6bad", + "self_attn.v_proj.weight": "25ed7a7bfff05b2a63a9489ed945f49ed624baa5ffa7f971c263e4d3aade1d04", + "self_attn.o_proj.weight": "a8c4e7b3c03654158c39ea33456a291809aee2893e9dde1fa2d530da216b313c", + "self_attn.q_norm.weight": "21aa357e3be95df8e0b87310db2cf759d951d8c9a706c9e1bee207de27cbb87f", + "self_attn.k_norm.weight": "0dfad6f8b52d3a2c224e7cd2b5c1fe87db29b927a7d7fb4161f231df6df2ac02", + "mlp.gate_proj.weight": "87e2a5acae8d6873e7a823620d245c3ad67d65b6dc91408a635268cd9d5d61e0", + "mlp.up_proj.weight": "7d5ed12a5ca5cee4157d03a1097a167b7e270d224702761b55ef63f98c8890be", + "mlp.down_proj.weight": "279864f62a9b78fa49dde314b363ca78f22fda503fbf8e9f64437ea6644a084a", + "input_layernorm.weight": "2974f6d5be715ca00edf542f4e51e5eb5ced2a292277c1974a92f5f6fec44871", + "post_attention_layernorm.weight": "a00da323dd47889f5a6238369523374a092cab49267ad69f4716d7b1c3778d5f" + }, + "anchor_after_sha256": { + "mlp.down_proj.weight": "1e50605707164b7be8ed1451f38d7286cd3f72292e6dc8e69a88514c0cda3041", + "mlp.up_proj.weight": "b10622f9b6d457f37d0445ee62394e50bc29bf881403962590f415efe35182d4", + "mlp.gate_proj.weight": "d1f0108f04350e9e59e0b6cb3da4880c6a33bd1061744d0cf19f3d76a177c07c", + "self_attn.k_proj.weight": "2fd8450c3cd02efe11c715d7c94756b5d0a04dd4c654fad04529e9e698b03458", + "self_attn.o_proj.weight": "94081d86e3044ec4bcd58daeb0d43313cb3973b6359b19655613efed85dfd801", + "self_attn.q_proj.weight": "92fbf2361181f49d9c65fd97a2e0a7773dcfe91556cba39789a8b3e958041612", + "self_attn.v_proj.weight": "2fdbedd6da63acd2d31baef207afc7d348179a95503552c09aac1d0fd786e3c1" + }, + "norm_policy": "keep_Wa_including_QK_norms", + "source_mutated_by_merge": false, + "fisher_computed": false, + "fit": false, + "optimizer_steps": 0, + "backward_calls": 0 + } + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_14bench.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_14bench.json new file mode 100644 index 0000000000000000000000000000000000000000..b278f6402b9117147c43c792036ae7a4f4d1a749 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_14bench.json @@ -0,0 +1,37 @@ +{ + "task_scores": { + "race_high": 0.27329902801600914, + "race_middle": 0.2827298050139276, + "c3": 0.503013698630137, + "cmnli": 0.3236663671268687, + "chid": 0.7079207920792079, + "piqa": 0.6991294885745375, + "winogrande": 0.5335438042620363, + "hellaswag": 0.5320653256323441, + "arc_challenge": 0.3387372013651877, + "arc_easy": 0.5959595959595959, + "openbookqa": 0.388, + "sciq": 0.771, + "mmlu": 0.25765560461472725, + "cmmlu": 0.25496460024175444 + }, + "macro_mean_14": 0.4615489508225952, + "tasks": [ + "race_high", + "race_middle", + "c3", + "cmnli", + "chid", + "piqa", + "winogrande", + "hellaswag", + "arc_challenge", + "arc_easy", + "openbookqa", + "sciq", + "mmlu", + "cmmlu" + ], + "opencompass_protocol": "OpenCompass 0.5.4 canonical PPL prompts; full-prompt mean CE; lowest PPL", + "lm_eval_num_fewshot": 0 +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_lmeval9.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_lmeval9.json new file mode 100644 index 0000000000000000000000000000000000000000..e50ed59b8c09509812e2d0791494776b076d3623 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_lmeval9.json @@ -0,0 +1,1401 @@ +{ + "model": "/workspace/models/qwen3-8b-base-49e3418", + "revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "compact_stage": "/workspace/artifacts/qwen3-base-nofit-merge4-20261011/full/mka/compact/stage_09", + "cycle": 9, + "anchor": 12, + "tasks": [ + "piqa", + "winogrande", + "hellaswag", + "arc_challenge", + "arc_easy", + "openbookqa", + "sciq", + "mmlu", + "cmmlu" + ], + "num_fewshot": 0, + "batch_size": "auto:4", + "limit": null, + "dataset_cache": "/workspace/artifacts/qwen3-base-nofit-merge4-20261011/lmeval_cache", + "preferred_metrics": { + "piqa": "acc_norm,none", + "winogrande": "acc,none", + "hellaswag": "acc_norm,none", + "arc_challenge": "acc_norm,none", + "arc_easy": "acc_norm,none", + "openbookqa": "acc_norm,none", + "sciq": "acc_norm,none", + "mmlu": "acc,none", + "cmmlu": "acc,none" + }, + "task_scores": { + "piqa": 0.6991294885745375, + "winogrande": 0.5335438042620363, + "hellaswag": 0.5320653256323441, + "arc_challenge": 0.3387372013651877, + "arc_easy": 0.5959595959595959, + "openbookqa": 0.388, + "sciq": 0.771, + "mmlu": 0.25765560461472725, + "cmmlu": 0.25496460024175444 + }, + "macro_mean_all_rows": 0.4856728467389092, + "lm_eval_results": { + "piqa": { + "name": "piqa", + "alias": "piqa", + "sample_len": 1838, + "acc,none": 0.6942328618063112, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.6991294885745375, + "acc_norm_stderr,none": "N/A" + }, + "winogrande": { + "name": "winogrande", + "alias": "winogrande", + "sample_len": 1267, + "acc,none": 0.5335438042620363, + "acc_stderr,none": "N/A" + }, + "hellaswag": { + "name": "hellaswag", + "alias": "hellaswag", + "sample_len": 10042, + "acc,none": 0.4018123879705238, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.5320653256323441, + "acc_norm_stderr,none": "N/A" + }, + "arc_challenge": { + "name": "arc_challenge", + "alias": "arc_challenge", + "sample_len": 1172, + "acc,none": 0.30887372013651876, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.3387372013651877, + "acc_norm_stderr,none": "N/A" + }, + "arc_easy": { + "name": "arc_easy", + "alias": "arc_easy", + "sample_len": 2376, + "acc,none": 0.6258417508417509, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.5959595959595959, + "acc_norm_stderr,none": "N/A" + }, + "openbookqa": { + "name": "openbookqa", + "alias": "openbookqa", + "sample_len": 500, + "acc,none": 0.262, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.388, + "acc_norm_stderr,none": "N/A" + }, + "sciq": { + "name": "sciq", + "alias": "sciq", + "sample_len": 1000, + "acc,none": 0.817, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.771, + "acc_norm_stderr,none": "N/A" + }, + "mmlu_abstract_algebra": { + "name": "mmlu_abstract_algebra", + "alias": "abstract_algebra", + "sample_len": 100, + "acc,none": 0.24, + "acc_stderr,none": "N/A" + }, + "mmlu_anatomy": { + "name": "mmlu_anatomy", + "alias": "anatomy", + "sample_len": 135, + "acc,none": 0.2518518518518518, + "acc_stderr,none": "N/A" + }, + "mmlu_astronomy": { + "name": "mmlu_astronomy", + "alias": "astronomy", + "sample_len": 152, + "acc,none": 0.2631578947368421, + "acc_stderr,none": "N/A" + }, + "mmlu_college_biology": { + "name": "mmlu_college_biology", + "alias": "college_biology", + "sample_len": 144, + "acc,none": 0.2777777777777778, + "acc_stderr,none": "N/A" + }, + "mmlu_college_chemistry": { + "name": "mmlu_college_chemistry", + "alias": "college_chemistry", + "sample_len": 100, + "acc,none": 0.14, + "acc_stderr,none": "N/A" + }, + "mmlu_college_computer_science": { + "name": "mmlu_college_computer_science", + "alias": "college_computer_science", + "sample_len": 100, + "acc,none": 0.26, + "acc_stderr,none": "N/A" + }, + "mmlu_college_mathematics": { + "name": "mmlu_college_mathematics", + "alias": "college_mathematics", + "sample_len": 100, + "acc,none": 0.26, + "acc_stderr,none": "N/A" + }, + "mmlu_college_physics": { + "name": "mmlu_college_physics", + "alias": "college_physics", + "sample_len": 102, + "acc,none": 0.3333333333333333, + "acc_stderr,none": "N/A" + }, + "mmlu_computer_security": { + "name": "mmlu_computer_security", + "alias": "computer_security", + "sample_len": 100, + "acc,none": 0.26, + "acc_stderr,none": "N/A" + }, + "mmlu_conceptual_physics": { + "name": "mmlu_conceptual_physics", + "alias": "conceptual_physics", + "sample_len": 235, + "acc,none": 0.225531914893617, + "acc_stderr,none": "N/A" + }, + "mmlu_electrical_engineering": { + "name": "mmlu_electrical_engineering", + "alias": "electrical_engineering", + "sample_len": 145, + "acc,none": 0.2827586206896552, + "acc_stderr,none": "N/A" + }, + "mmlu_elementary_mathematics": { + "name": "mmlu_elementary_mathematics", + "alias": "elementary_mathematics", + "sample_len": 378, + "acc,none": 0.25132275132275134, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_biology": { + "name": "mmlu_high_school_biology", + "alias": "high_school_biology", + "sample_len": 310, + "acc,none": 0.3225806451612903, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_chemistry": { + "name": "mmlu_high_school_chemistry", + "alias": "high_school_chemistry", + "sample_len": 203, + "acc,none": 0.28078817733990147, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_computer_science": { + "name": "mmlu_high_school_computer_science", + "alias": "high_school_computer_science", + "sample_len": 100, + "acc,none": 0.25, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_mathematics": { + "name": "mmlu_high_school_mathematics", + "alias": "high_school_mathematics", + "sample_len": 270, + "acc,none": 0.2111111111111111, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_physics": { + "name": "mmlu_high_school_physics", + "alias": "high_school_physics", + "sample_len": 151, + "acc,none": 0.24503311258278146, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_statistics": { + "name": "mmlu_high_school_statistics", + "alias": "high_school_statistics", + "sample_len": 216, + "acc,none": 0.2361111111111111, + "acc_stderr,none": "N/A" + }, + "mmlu_machine_learning": { + "name": "mmlu_machine_learning", + "alias": "machine_learning", + "sample_len": 112, + "acc,none": 0.2857142857142857, + "acc_stderr,none": "N/A" + }, + "mmlu_business_ethics": { + "name": "mmlu_business_ethics", + "alias": "business_ethics", + "sample_len": 100, + "acc,none": 0.22, + "acc_stderr,none": "N/A" + }, + "mmlu_clinical_knowledge": { + "name": "mmlu_clinical_knowledge", + "alias": "clinical_knowledge", + "sample_len": 265, + "acc,none": 0.28679245283018867, + "acc_stderr,none": "N/A" + }, + "mmlu_college_medicine": { + "name": "mmlu_college_medicine", + "alias": "college_medicine", + "sample_len": 173, + "acc,none": 0.2658959537572254, + "acc_stderr,none": "N/A" + }, + "mmlu_global_facts": { + "name": "mmlu_global_facts", + "alias": "global_facts", + "sample_len": 100, + "acc,none": 0.28, + "acc_stderr,none": "N/A" + }, + "mmlu_human_aging": { + "name": "mmlu_human_aging", + "alias": "human_aging", + "sample_len": 223, + "acc,none": 0.23318385650224216, + "acc_stderr,none": "N/A" + }, + "mmlu_management": { + "name": "mmlu_management", + "alias": "management", + "sample_len": 103, + "acc,none": 0.2621359223300971, + "acc_stderr,none": "N/A" + }, + "mmlu_marketing": { + "name": "mmlu_marketing", + "alias": "marketing", + "sample_len": 234, + "acc,none": 0.2905982905982906, + "acc_stderr,none": "N/A" + }, + "mmlu_medical_genetics": { + "name": "mmlu_medical_genetics", + "alias": "medical_genetics", + "sample_len": 100, + "acc,none": 0.26, + "acc_stderr,none": "N/A" + }, + "mmlu_miscellaneous": { + "name": "mmlu_miscellaneous", + "alias": "miscellaneous", + "sample_len": 783, + "acc,none": 0.26053639846743293, + "acc_stderr,none": "N/A" + }, + "mmlu_nutrition": { + "name": "mmlu_nutrition", + "alias": "nutrition", + "sample_len": 306, + "acc,none": 0.2581699346405229, + "acc_stderr,none": "N/A" + }, + "mmlu_professional_accounting": { + "name": "mmlu_professional_accounting", + "alias": "professional_accounting", + "sample_len": 282, + "acc,none": 0.23049645390070922, + "acc_stderr,none": "N/A" + }, + "mmlu_professional_medicine": { + "name": "mmlu_professional_medicine", + "alias": "professional_medicine", + "sample_len": 272, + "acc,none": 0.22058823529411764, + "acc_stderr,none": "N/A" + }, + "mmlu_virology": { + "name": "mmlu_virology", + "alias": "virology", + "sample_len": 166, + "acc,none": 0.26506024096385544, + "acc_stderr,none": "N/A" + }, + "mmlu_econometrics": { + "name": "mmlu_econometrics", + "alias": "econometrics", + "sample_len": 114, + "acc,none": 0.24561403508771928, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_geography": { + "name": "mmlu_high_school_geography", + "alias": "high_school_geography", + "sample_len": 198, + "acc,none": 0.3484848484848485, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_government_and_politics": { + "name": "mmlu_high_school_government_and_politics", + "alias": "high_school_government_and_politics", + "sample_len": 193, + "acc,none": 0.30569948186528495, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_macroeconomics": { + "name": "mmlu_high_school_macroeconomics", + "alias": "high_school_macroeconomics", + "sample_len": 390, + "acc,none": 0.28717948717948716, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_microeconomics": { + "name": "mmlu_high_school_microeconomics", + "alias": "high_school_microeconomics", + "sample_len": 238, + "acc,none": 0.2857142857142857, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_psychology": { + "name": "mmlu_high_school_psychology", + "alias": "high_school_psychology", + "sample_len": 545, + "acc,none": 0.27706422018348625, + "acc_stderr,none": "N/A" + }, + "mmlu_human_sexuality": { + "name": "mmlu_human_sexuality", + "alias": "human_sexuality", + "sample_len": 131, + "acc,none": 0.2595419847328244, + "acc_stderr,none": "N/A" + }, + "mmlu_professional_psychology": { + "name": "mmlu_professional_psychology", + "alias": "professional_psychology", + "sample_len": 612, + "acc,none": 0.2434640522875817, + "acc_stderr,none": "N/A" + }, + "mmlu_public_relations": { + "name": "mmlu_public_relations", + "alias": "public_relations", + "sample_len": 110, + "acc,none": 0.2636363636363636, + "acc_stderr,none": "N/A" + }, + "mmlu_security_studies": { + "name": "mmlu_security_studies", + "alias": "security_studies", + "sample_len": 245, + "acc,none": 0.32653061224489793, + "acc_stderr,none": "N/A" + }, + "mmlu_sociology": { + "name": "mmlu_sociology", + "alias": "sociology", + "sample_len": 201, + "acc,none": 0.263681592039801, + "acc_stderr,none": "N/A" + }, + "mmlu_us_foreign_policy": { + "name": "mmlu_us_foreign_policy", + "alias": "us_foreign_policy", + "sample_len": 100, + "acc,none": 0.26, + "acc_stderr,none": "N/A" + }, + "mmlu_formal_logic": { + "name": "mmlu_formal_logic", + "alias": "formal_logic", + "sample_len": 126, + "acc,none": 0.29365079365079366, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_european_history": { + "name": "mmlu_high_school_european_history", + "alias": "high_school_european_history", + "sample_len": 165, + "acc,none": 0.2909090909090909, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_us_history": { + "name": "mmlu_high_school_us_history", + "alias": "high_school_us_history", + "sample_len": 204, + "acc,none": 0.28431372549019607, + "acc_stderr,none": "N/A" + }, + "mmlu_high_school_world_history": { + "name": "mmlu_high_school_world_history", + "alias": "high_school_world_history", + "sample_len": 237, + "acc,none": 0.2616033755274262, + "acc_stderr,none": "N/A" + }, + "mmlu_international_law": { + "name": "mmlu_international_law", + "alias": "international_law", + "sample_len": 121, + "acc,none": 0.18181818181818182, + "acc_stderr,none": "N/A" + }, + "mmlu_jurisprudence": { + "name": "mmlu_jurisprudence", + "alias": "jurisprudence", + "sample_len": 108, + "acc,none": 0.28703703703703703, + "acc_stderr,none": "N/A" + }, + "mmlu_logical_fallacies": { + "name": "mmlu_logical_fallacies", + "alias": "logical_fallacies", + "sample_len": 163, + "acc,none": 0.26993865030674846, + "acc_stderr,none": "N/A" + }, + "mmlu_moral_disputes": { + "name": "mmlu_moral_disputes", + "alias": "moral_disputes", + "sample_len": 346, + "acc,none": 0.2658959537572254, + "acc_stderr,none": "N/A" + }, + "mmlu_moral_scenarios": { + "name": "mmlu_moral_scenarios", + "alias": "moral_scenarios", + "sample_len": 895, + "acc,none": 0.23798882681564246, + "acc_stderr,none": "N/A" + }, + "mmlu_philosophy": { + "name": "mmlu_philosophy", + "alias": "philosophy", + "sample_len": 311, + "acc,none": 0.21543408360128619, + "acc_stderr,none": "N/A" + }, + "mmlu_prehistory": { + "name": "mmlu_prehistory", + "alias": "prehistory", + "sample_len": 324, + "acc,none": 0.26851851851851855, + "acc_stderr,none": "N/A" + }, + "mmlu_professional_law": { + "name": "mmlu_professional_law", + "alias": "professional_law", + "sample_len": 1534, + "acc,none": 0.2242503259452412, + "acc_stderr,none": "N/A" + }, + "mmlu_world_religions": { + "name": "mmlu_world_religions", + "alias": "world_religions", + "sample_len": 171, + "acc,none": 0.26900584795321636, + "acc_stderr,none": "N/A" + }, + "cmmlu_agronomy": { + "name": "cmmlu_agronomy", + "alias": "cmmlu_agronomy", + "sample_len": 169, + "acc,none": 0.25443786982248523, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.25443786982248523, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_anatomy": { + "name": "cmmlu_anatomy", + "alias": "cmmlu_anatomy", + "sample_len": 148, + "acc,none": 0.22972972972972974, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.22972972972972974, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_ancient_chinese": { + "name": "cmmlu_ancient_chinese", + "alias": "cmmlu_ancient_chinese", + "sample_len": 164, + "acc,none": 0.2682926829268293, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2682926829268293, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_arts": { + "name": "cmmlu_arts", + "alias": "cmmlu_arts", + "sample_len": 160, + "acc,none": 0.25, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.25, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_astronomy": { + "name": "cmmlu_astronomy", + "alias": "cmmlu_astronomy", + "sample_len": 165, + "acc,none": 0.2787878787878788, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2787878787878788, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_business_ethics": { + "name": "cmmlu_business_ethics", + "alias": "cmmlu_business_ethics", + "sample_len": 209, + "acc,none": 0.28708133971291866, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.28708133971291866, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_chinese_civil_service_exam": { + "name": "cmmlu_chinese_civil_service_exam", + "alias": "cmmlu_chinese_civil_service_exam", + "sample_len": 160, + "acc,none": 0.2125, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2125, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_chinese_driving_rule": { + "name": "cmmlu_chinese_driving_rule", + "alias": "cmmlu_chinese_driving_rule", + "sample_len": 131, + "acc,none": 0.2900763358778626, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2900763358778626, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_chinese_food_culture": { + "name": "cmmlu_chinese_food_culture", + "alias": "cmmlu_chinese_food_culture", + "sample_len": 136, + "acc,none": 0.2426470588235294, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2426470588235294, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_chinese_foreign_policy": { + "name": "cmmlu_chinese_foreign_policy", + "alias": "cmmlu_chinese_foreign_policy", + "sample_len": 107, + "acc,none": 0.27102803738317754, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.27102803738317754, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_chinese_history": { + "name": "cmmlu_chinese_history", + "alias": "cmmlu_chinese_history", + "sample_len": 323, + "acc,none": 0.26006191950464397, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.26006191950464397, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_chinese_literature": { + "name": "cmmlu_chinese_literature", + "alias": "cmmlu_chinese_literature", + "sample_len": 204, + "acc,none": 0.22549019607843138, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.22549019607843138, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_chinese_teacher_qualification": { + "name": "cmmlu_chinese_teacher_qualification", + "alias": "cmmlu_chinese_teacher_qualification", + "sample_len": 179, + "acc,none": 0.2346368715083799, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2346368715083799, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_clinical_knowledge": { + "name": "cmmlu_clinical_knowledge", + "alias": "cmmlu_clinical_knowledge", + "sample_len": 237, + "acc,none": 0.2616033755274262, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2616033755274262, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_college_actuarial_science": { + "name": "cmmlu_college_actuarial_science", + "alias": "cmmlu_college_actuarial_science", + "sample_len": 106, + "acc,none": 0.18867924528301888, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.18867924528301888, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_college_education": { + "name": "cmmlu_college_education", + "alias": "cmmlu_college_education", + "sample_len": 107, + "acc,none": 0.2616822429906542, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2616822429906542, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_college_engineering_hydrology": { + "name": "cmmlu_college_engineering_hydrology", + "alias": "cmmlu_college_engineering_hydrology", + "sample_len": 106, + "acc,none": 0.3018867924528302, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.3018867924528302, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_college_law": { + "name": "cmmlu_college_law", + "alias": "cmmlu_college_law", + "sample_len": 108, + "acc,none": 0.21296296296296297, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.21296296296296297, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_college_mathematics": { + "name": "cmmlu_college_mathematics", + "alias": "cmmlu_college_mathematics", + "sample_len": 105, + "acc,none": 0.23809523809523808, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.23809523809523808, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_college_medical_statistics": { + "name": "cmmlu_college_medical_statistics", + "alias": "cmmlu_college_medical_statistics", + "sample_len": 106, + "acc,none": 0.2641509433962264, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2641509433962264, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_college_medicine": { + "name": "cmmlu_college_medicine", + "alias": "cmmlu_college_medicine", + "sample_len": 273, + "acc,none": 0.2490842490842491, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2490842490842491, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_computer_science": { + "name": "cmmlu_computer_science", + "alias": "cmmlu_computer_science", + "sample_len": 204, + "acc,none": 0.2647058823529412, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2647058823529412, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_computer_security": { + "name": "cmmlu_computer_security", + "alias": "cmmlu_computer_security", + "sample_len": 171, + "acc,none": 0.23391812865497075, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.23391812865497075, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_conceptual_physics": { + "name": "cmmlu_conceptual_physics", + "alias": "cmmlu_conceptual_physics", + "sample_len": 147, + "acc,none": 0.2653061224489796, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2653061224489796, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_construction_project_management": { + "name": "cmmlu_construction_project_management", + "alias": "cmmlu_construction_project_management", + "sample_len": 139, + "acc,none": 0.2446043165467626, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2446043165467626, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_economics": { + "name": "cmmlu_economics", + "alias": "cmmlu_economics", + "sample_len": 159, + "acc,none": 0.27044025157232704, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.27044025157232704, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_education": { + "name": "cmmlu_education", + "alias": "cmmlu_education", + "sample_len": 163, + "acc,none": 0.22085889570552147, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.22085889570552147, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_electrical_engineering": { + "name": "cmmlu_electrical_engineering", + "alias": "cmmlu_electrical_engineering", + "sample_len": 172, + "acc,none": 0.26744186046511625, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.26744186046511625, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_elementary_chinese": { + "name": "cmmlu_elementary_chinese", + "alias": "cmmlu_elementary_chinese", + "sample_len": 252, + "acc,none": 0.28174603174603174, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.28174603174603174, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_elementary_commonsense": { + "name": "cmmlu_elementary_commonsense", + "alias": "cmmlu_elementary_commonsense", + "sample_len": 198, + "acc,none": 0.25252525252525254, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.25252525252525254, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_elementary_information_and_technology": { + "name": "cmmlu_elementary_information_and_technology", + "alias": "cmmlu_elementary_information_and_technology", + "sample_len": 238, + "acc,none": 0.23949579831932774, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.23949579831932774, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_elementary_mathematics": { + "name": "cmmlu_elementary_mathematics", + "alias": "cmmlu_elementary_mathematics", + "sample_len": 230, + "acc,none": 0.2391304347826087, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2391304347826087, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_ethnology": { + "name": "cmmlu_ethnology", + "alias": "cmmlu_ethnology", + "sample_len": 135, + "acc,none": 0.28888888888888886, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.28888888888888886, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_food_science": { + "name": "cmmlu_food_science", + "alias": "cmmlu_food_science", + "sample_len": 143, + "acc,none": 0.25874125874125875, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.25874125874125875, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_genetics": { + "name": "cmmlu_genetics", + "alias": "cmmlu_genetics", + "sample_len": 176, + "acc,none": 0.23863636363636365, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.23863636363636365, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_global_facts": { + "name": "cmmlu_global_facts", + "alias": "cmmlu_global_facts", + "sample_len": 149, + "acc,none": 0.2348993288590604, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2348993288590604, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_high_school_biology": { + "name": "cmmlu_high_school_biology", + "alias": "cmmlu_high_school_biology", + "sample_len": 169, + "acc,none": 0.24260355029585798, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.24260355029585798, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_high_school_chemistry": { + "name": "cmmlu_high_school_chemistry", + "alias": "cmmlu_high_school_chemistry", + "sample_len": 132, + "acc,none": 0.2727272727272727, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2727272727272727, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_high_school_geography": { + "name": "cmmlu_high_school_geography", + "alias": "cmmlu_high_school_geography", + "sample_len": 118, + "acc,none": 0.3050847457627119, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.3050847457627119, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_high_school_mathematics": { + "name": "cmmlu_high_school_mathematics", + "alias": "cmmlu_high_school_mathematics", + "sample_len": 164, + "acc,none": 0.23780487804878048, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.23780487804878048, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_high_school_physics": { + "name": "cmmlu_high_school_physics", + "alias": "cmmlu_high_school_physics", + "sample_len": 110, + "acc,none": 0.24545454545454545, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.24545454545454545, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_high_school_politics": { + "name": "cmmlu_high_school_politics", + "alias": "cmmlu_high_school_politics", + "sample_len": 143, + "acc,none": 0.2727272727272727, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2727272727272727, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_human_sexuality": { + "name": "cmmlu_human_sexuality", + "alias": "cmmlu_human_sexuality", + "sample_len": 126, + "acc,none": 0.23015873015873015, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.23015873015873015, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_international_law": { + "name": "cmmlu_international_law", + "alias": "cmmlu_international_law", + "sample_len": 185, + "acc,none": 0.22702702702702704, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.22702702702702704, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_journalism": { + "name": "cmmlu_journalism", + "alias": "cmmlu_journalism", + "sample_len": 172, + "acc,none": 0.2616279069767442, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2616279069767442, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_jurisprudence": { + "name": "cmmlu_jurisprudence", + "alias": "cmmlu_jurisprudence", + "sample_len": 411, + "acc,none": 0.24330900243309003, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.24330900243309003, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_legal_and_moral_basis": { + "name": "cmmlu_legal_and_moral_basis", + "alias": "cmmlu_legal_and_moral_basis", + "sample_len": 214, + "acc,none": 0.2757009345794392, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2757009345794392, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_logical": { + "name": "cmmlu_logical", + "alias": "cmmlu_logical", + "sample_len": 123, + "acc,none": 0.25203252032520324, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.25203252032520324, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_machine_learning": { + "name": "cmmlu_machine_learning", + "alias": "cmmlu_machine_learning", + "sample_len": 122, + "acc,none": 0.26229508196721313, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.26229508196721313, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_management": { + "name": "cmmlu_management", + "alias": "cmmlu_management", + "sample_len": 210, + "acc,none": 0.2523809523809524, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2523809523809524, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_marketing": { + "name": "cmmlu_marketing", + "alias": "cmmlu_marketing", + "sample_len": 180, + "acc,none": 0.24444444444444444, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.24444444444444444, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_marxist_theory": { + "name": "cmmlu_marxist_theory", + "alias": "cmmlu_marxist_theory", + "sample_len": 189, + "acc,none": 0.2751322751322751, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2751322751322751, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_modern_chinese": { + "name": "cmmlu_modern_chinese", + "alias": "cmmlu_modern_chinese", + "sample_len": 116, + "acc,none": 0.25, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.25, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_nutrition": { + "name": "cmmlu_nutrition", + "alias": "cmmlu_nutrition", + "sample_len": 145, + "acc,none": 0.22758620689655173, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.22758620689655173, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_philosophy": { + "name": "cmmlu_philosophy", + "alias": "cmmlu_philosophy", + "sample_len": 105, + "acc,none": 0.24761904761904763, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.24761904761904763, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_professional_accounting": { + "name": "cmmlu_professional_accounting", + "alias": "cmmlu_professional_accounting", + "sample_len": 175, + "acc,none": 0.2342857142857143, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2342857142857143, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_professional_law": { + "name": "cmmlu_professional_law", + "alias": "cmmlu_professional_law", + "sample_len": 211, + "acc,none": 0.26066350710900477, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.26066350710900477, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_professional_medicine": { + "name": "cmmlu_professional_medicine", + "alias": "cmmlu_professional_medicine", + "sample_len": 376, + "acc,none": 0.23404255319148937, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.23404255319148937, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_professional_psychology": { + "name": "cmmlu_professional_psychology", + "alias": "cmmlu_professional_psychology", + "sample_len": 232, + "acc,none": 0.28879310344827586, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.28879310344827586, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_public_relations": { + "name": "cmmlu_public_relations", + "alias": "cmmlu_public_relations", + "sample_len": 174, + "acc,none": 0.28160919540229884, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.28160919540229884, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_security_study": { + "name": "cmmlu_security_study", + "alias": "cmmlu_security_study", + "sample_len": 135, + "acc,none": 0.2814814814814815, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2814814814814815, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_sociology": { + "name": "cmmlu_sociology", + "alias": "cmmlu_sociology", + "sample_len": 226, + "acc,none": 0.3274336283185841, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.3274336283185841, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_sports_science": { + "name": "cmmlu_sports_science", + "alias": "cmmlu_sports_science", + "sample_len": 165, + "acc,none": 0.2606060606060606, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2606060606060606, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_traditional_chinese_medicine": { + "name": "cmmlu_traditional_chinese_medicine", + "alias": "cmmlu_traditional_chinese_medicine", + "sample_len": 185, + "acc,none": 0.2810810810810811, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2810810810810811, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_virology": { + "name": "cmmlu_virology", + "alias": "cmmlu_virology", + "sample_len": 169, + "acc,none": 0.24260355029585798, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.24260355029585798, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_world_history": { + "name": "cmmlu_world_history", + "alias": "cmmlu_world_history", + "sample_len": 161, + "acc,none": 0.2360248447204969, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.2360248447204969, + "acc_norm_stderr,none": "N/A" + }, + "cmmlu_world_religions": { + "name": "cmmlu_world_religions", + "alias": "cmmlu_world_religions", + "sample_len": 160, + "acc,none": 0.23125, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.23125, + "acc_norm_stderr,none": "N/A" + }, + "mmlu_stem": { + "alias": "stem", + "name": "mmlu_stem", + "sample_len": 3153, + "acc,none": 0.2575325087218522, + "acc_stderr,none": "N/A", + "sample_count": { + "acc,none": 3153 + } + }, + "mmlu_other": { + "alias": "other", + "name": "mmlu_other", + "sample_len": 3107, + "acc,none": 0.2565175410363695, + "acc_stderr,none": "N/A", + "sample_count": { + "acc,none": 3107 + } + }, + "mmlu_social_sciences": { + "alias": "social sciences", + "name": "mmlu_social_sciences", + "sample_len": 3077, + "acc,none": 0.27884302892427687, + "acc_stderr,none": "N/A", + "sample_count": { + "acc,none": 3077 + } + }, + "mmlu_humanities": { + "alias": "humanities", + "name": "mmlu_humanities", + "sample_len": 4705, + "acc,none": 0.24463336875664188, + "acc_stderr,none": "N/A", + "sample_count": { + "acc,none": 4705 + } + }, + "mmlu": { + "alias": "mmlu", + "name": "mmlu", + "sample_len": 14042, + "acc,none": 0.25765560461472725, + "acc_stderr,none": "N/A", + "sample_count": { + "acc,none": 14042 + } + }, + "cmmlu": { + "alias": "cmmlu", + "name": "cmmlu", + "sample_len": 11582, + "acc,none": 0.25496460024175444, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.25496460024175444, + "acc_norm_stderr,none": "N/A", + "sample_count": { + "acc,none": 11582, + "acc_norm,none": 11582 + } + } + }, + "lm_eval_groups": { + "mmlu_stem": { + "alias": "stem", + "name": "mmlu_stem", + "sample_len": 3153, + "acc,none": 0.2575325087218522, + "acc_stderr,none": "N/A", + "sample_count": { + "acc,none": 3153 + } + }, + "mmlu_other": { + "alias": "other", + "name": "mmlu_other", + "sample_len": 3107, + "acc,none": 0.2565175410363695, + "acc_stderr,none": "N/A", + "sample_count": { + "acc,none": 3107 + } + }, + "mmlu_social_sciences": { + "alias": "social sciences", + "name": "mmlu_social_sciences", + "sample_len": 3077, + "acc,none": 0.27884302892427687, + "acc_stderr,none": "N/A", + "sample_count": { + "acc,none": 3077 + } + }, + "mmlu_humanities": { + "alias": "humanities", + "name": "mmlu_humanities", + "sample_len": 4705, + "acc,none": 0.24463336875664188, + "acc_stderr,none": "N/A", + "sample_count": { + "acc,none": 4705 + } + }, + "mmlu": { + "alias": "mmlu", + "name": "mmlu", + "sample_len": 14042, + "acc,none": 0.25765560461472725, + "acc_stderr,none": "N/A", + "sample_count": { + "acc,none": 14042 + } + }, + "cmmlu": { + "alias": "cmmlu", + "name": "cmmlu", + "sample_len": 11582, + "acc,none": 0.25496460024175444, + "acc_stderr,none": "N/A", + "acc_norm,none": 0.25496460024175444, + "acc_norm_stderr,none": "N/A", + "sample_count": { + "acc,none": 11582, + "acc_norm,none": 11582 + } + } + }, + "lm_eval_versions": { + "arc_challenge": 1.0, + "arc_easy": 1.0, + "cmmlu": "1.0", + "cmmlu_agronomy": 1.0, + "cmmlu_anatomy": 1.0, + "cmmlu_ancient_chinese": 1.0, + "cmmlu_arts": 1.0, + "cmmlu_astronomy": 1.0, + "cmmlu_business_ethics": 1.0, + "cmmlu_chinese_civil_service_exam": 1.0, + "cmmlu_chinese_driving_rule": 1.0, + "cmmlu_chinese_food_culture": 1.0, + "cmmlu_chinese_foreign_policy": 1.0, + "cmmlu_chinese_history": 1.0, + "cmmlu_chinese_literature": 1.0, + "cmmlu_chinese_teacher_qualification": 1.0, + "cmmlu_clinical_knowledge": 1.0, + "cmmlu_college_actuarial_science": 1.0, + "cmmlu_college_education": 1.0, + "cmmlu_college_engineering_hydrology": 1.0, + "cmmlu_college_law": 1.0, + "cmmlu_college_mathematics": 1.0, + "cmmlu_college_medical_statistics": 1.0, + "cmmlu_college_medicine": 1.0, + "cmmlu_computer_science": 1.0, + "cmmlu_computer_security": 1.0, + "cmmlu_conceptual_physics": 1.0, + "cmmlu_construction_project_management": 1.0, + "cmmlu_economics": 1.0, + "cmmlu_education": 1.0, + "cmmlu_electrical_engineering": 1.0, + "cmmlu_elementary_chinese": 1.0, + "cmmlu_elementary_commonsense": 1.0, + "cmmlu_elementary_information_and_technology": 1.0, + "cmmlu_elementary_mathematics": 1.0, + "cmmlu_ethnology": 1.0, + "cmmlu_food_science": 1.0, + "cmmlu_genetics": 1.0, + "cmmlu_global_facts": 1.0, + "cmmlu_high_school_biology": 1.0, + "cmmlu_high_school_chemistry": 1.0, + "cmmlu_high_school_geography": 1.0, + "cmmlu_high_school_mathematics": 1.0, + "cmmlu_high_school_physics": 1.0, + "cmmlu_high_school_politics": 1.0, + "cmmlu_human_sexuality": 1.0, + "cmmlu_international_law": 1.0, + "cmmlu_journalism": 1.0, + "cmmlu_jurisprudence": 1.0, + "cmmlu_legal_and_moral_basis": 1.0, + "cmmlu_logical": 1.0, + "cmmlu_machine_learning": 1.0, + "cmmlu_management": 1.0, + "cmmlu_marketing": 1.0, + "cmmlu_marxist_theory": 1.0, + "cmmlu_modern_chinese": 1.0, + "cmmlu_nutrition": 1.0, + "cmmlu_philosophy": 1.0, + "cmmlu_professional_accounting": 1.0, + "cmmlu_professional_law": 1.0, + "cmmlu_professional_medicine": 1.0, + "cmmlu_professional_psychology": 1.0, + "cmmlu_public_relations": 1.0, + "cmmlu_security_study": 1.0, + "cmmlu_sociology": 1.0, + "cmmlu_sports_science": 1.0, + "cmmlu_traditional_chinese_medicine": 1.0, + "cmmlu_virology": 1.0, + "cmmlu_world_history": 1.0, + "cmmlu_world_religions": 1.0, + "hellaswag": 1.0, + "mmlu": "2", + "mmlu_abstract_algebra": 1.0, + "mmlu_anatomy": 1.0, + "mmlu_astronomy": 1.0, + "mmlu_business_ethics": 1.0, + "mmlu_clinical_knowledge": 1.0, + "mmlu_college_biology": 1.0, + "mmlu_college_chemistry": 1.0, + "mmlu_college_computer_science": 1.0, + "mmlu_college_mathematics": 1.0, + "mmlu_college_medicine": 1.0, + "mmlu_college_physics": 1.0, + "mmlu_computer_security": 1.0, + "mmlu_conceptual_physics": 1.0, + "mmlu_econometrics": 1.0, + "mmlu_electrical_engineering": 1.0, + "mmlu_elementary_mathematics": 1.0, + "mmlu_formal_logic": 1.0, + "mmlu_global_facts": 1.0, + "mmlu_high_school_biology": 1.0, + "mmlu_high_school_chemistry": 1.0, + "mmlu_high_school_computer_science": 1.0, + "mmlu_high_school_european_history": 1.0, + "mmlu_high_school_geography": 1.0, + "mmlu_high_school_government_and_politics": 1.0, + "mmlu_high_school_macroeconomics": 1.0, + "mmlu_high_school_mathematics": 1.0, + "mmlu_high_school_microeconomics": 1.0, + "mmlu_high_school_physics": 1.0, + "mmlu_high_school_psychology": 1.0, + "mmlu_high_school_statistics": 1.0, + "mmlu_high_school_us_history": 1.0, + "mmlu_high_school_world_history": 1.0, + "mmlu_human_aging": 1.0, + "mmlu_human_sexuality": 1.0, + "mmlu_humanities": "2", + "mmlu_international_law": 1.0, + "mmlu_jurisprudence": 1.0, + "mmlu_logical_fallacies": 1.0, + "mmlu_machine_learning": 1.0, + "mmlu_management": 1.0, + "mmlu_marketing": 1.0, + "mmlu_medical_genetics": 1.0, + "mmlu_miscellaneous": 1.0, + "mmlu_moral_disputes": 1.0, + "mmlu_moral_scenarios": 1.0, + "mmlu_nutrition": 1.0, + "mmlu_other": "2", + "mmlu_philosophy": 1.0, + "mmlu_prehistory": 1.0, + "mmlu_professional_accounting": 1.0, + "mmlu_professional_law": 1.0, + "mmlu_professional_medicine": 1.0, + "mmlu_professional_psychology": 1.0, + "mmlu_public_relations": 1.0, + "mmlu_security_studies": 1.0, + "mmlu_social_sciences": "2", + "mmlu_sociology": 1.0, + "mmlu_stem": "2", + "mmlu_us_foreign_policy": 1.0, + "mmlu_virology": 1.0, + "mmlu_world_religions": 1.0, + "openbookqa": 1.0, + "piqa": 1.0, + "sciq": 1.0, + "winogrande": 1.0 + }, + "lm_eval_config": { + "model": "/workspace/models/qwen3-8b-base-49e3418", + "model_args": null, + "model_num_parameters": 6454217472, + "model_dtype": "torch.bfloat16", + "model_revision": "main", + "model_sha": "", + "batch_size": "auto:4", + "batch_sizes": [ + 28, + 64, + 64, + 64 + ], + "device": null, + "use_cache": null, + "limit": null, + "bootstrap_iters": 0, + "gen_kwargs": null, + "random_seed": 0, + "numpy_seed": 1234, + "torch_seed": 1234, + "fewshot_seed": 1234 + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_opencompass5.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_opencompass5.json new file mode 100644 index 0000000000000000000000000000000000000000..333e09edba3c6a7057f2ab8a921bb9fc31ad9511 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_opencompass5.json @@ -0,0 +1,44 @@ +{ + "model": "/workspace/models/qwen3-8b-base-49e3418", + "revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "compact_stage": "/workspace/artifacts/qwen3-base-nofit-merge4-20261011/full/mka/compact/stage_09", + "cycle": 9, + "anchor": 12, + "tokenizer": "/workspace/models/qwen3-8b-base-49e3418", + "protocol": "OpenCompass 0.5.4 canonical PPL prompts; full-prompt mean CE; lowest PPL", + "max_batch": 32, + "token_budget": 8192, + "limit": null, + "results": { + "race-middle": { + "accuracy": 0.2827298050139276, + "correct": 406, + "samples": 1436, + "choices": 5744 + }, + "race-high": { + "accuracy": 0.27329902801600914, + "correct": 956, + "samples": 3498, + "choices": 13992 + }, + "C3": { + "accuracy": 0.503013698630137, + "correct": 918, + "samples": 1825, + "choices": 7300 + }, + "cmnli": { + "accuracy": 0.3236663671268687, + "correct": 3962, + "samples": 12241, + "choices": 36723 + }, + "chid-dev": { + "accuracy": 0.7079207920792079, + "correct": 143, + "samples": 202, + "choices": 1414 + } + } +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_ppl.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_ppl.json new file mode 100644 index 0000000000000000000000000000000000000000..0526f5806af174b21ae9f80f3d86a1fff0c7748e --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/final_ppl.json @@ -0,0 +1,40 @@ +{ + "model": "/workspace/models/qwen3-8b-base-49e3418", + "revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "compact_stage": "/workspace/artifacts/qwen3-base-nofit-merge4-20261011/full/mka/compact/stage_09", + "dataset": "Salesforce/wikitext:wikitext-2-raw-v1:test", + "offline_policy": { + "wikitext_cache": "/workspace/artifacts/qwen3-base-nofit-merge4-20261011/wikitext2_cache", + "dataset": "Salesforce/wikitext", + "config": "wikitext-2-raw-v1", + "splits": { + "test": 4358, + "train": 36718, + "validation": 3760 + }, + "fingerprints": { + "test": "a46124b21ac53738", + "train": "5d4fb603254a7a5b", + "validation": "51d84d52d095f90d" + } + }, + "protocol": "HCHC experiment.py: filter empty rows, join with double newline, then tokenize the complete stream once", + "sequence_length": 2048, + "batch_size": 1, + "dtype": "bfloat16", + "metrics": { + "nll": 3.0362906554649616, + "perplexity": 20.82784212778055, + "tokens": 296815, + "sequences": 145, + "source_tokens": 298938 + }, + "anchor": 12, + "cycles": 9, + "original_layers": 36, + "decoder_layers": 27, + "post_merge_residual_scale": null, + "post_merge_residual_scales": [], + "parameterization": "unscaled compact ABPrune", + "linear_patch": null +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/local_mse.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/local_mse.json new file mode 100644 index 0000000000000000000000000000000000000000..8dbd3c16639e1d4940585d51b9137c7c9129bc27 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/eval/local_mse.json @@ -0,0 +1,28 @@ +{ + "local_mse": 30.455502976231156, + "local_nmse": 0.5551244828244094, + "squared_error_sum": 8175336829.133967, + "target_energy_sum": 14727033452.99922, + "elements": 268435456, + "protocol": { + "model": "Qwen/Qwen3-8B-Base", + "revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "teacher": "common_original_dense", + "dense_input_layer": 12, + "dense_output_layer": 21, + "student_output_layer": 12, + "sequences": 64, + "sequence_length": 1024, + "valid_tokens": 65536, + "metric": "sum float32 squared activation differences / valid tokens / hidden width", + "dtype": "bfloat16 eager; float32 differences; float64 aggregate", + "training": false, + "input_ids_sha256": "3f1977a32c7a533356dbc14d142c64b470e67dc9942344ff2942e3b1f8b9e2a1", + "anchor_inputs_sha256": "57378a13b898fd63fc40d2c0ccb209ec5d5b636026accc93521b928669200250", + "targets_sha256": "8c246a6cca66306de3cd208e8ec8ef5df8eb9d3e3976f16ad34329cb1216ab40", + "dataset": "WikiText2 test, first64 packed1024 windows, HCHC packing" + }, + "prefix_input_exact_match": true, + "compact_stage": "/workspace/artifacts/qwen3-base-nofit-merge4-20261011/full/mka/compact/stage_09", + "fit": false +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/fisher_reference_local_mse.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/fisher_reference_local_mse.json new file mode 100644 index 0000000000000000000000000000000000000000..1832919bd8ac5aab1ef2f93677c669ebf39dba82 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/fisher_reference_local_mse.json @@ -0,0 +1,28 @@ +{ + "local_mse": 30.159363496315123, + "local_nmse": 0.5497266315473979, + "squared_error_sum": 8095842492.803104, + "target_energy_sum": 14727033452.99922, + "elements": 268435456, + "protocol": { + "model": "Qwen/Qwen3-8B-Base", + "revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "teacher": "common_original_dense", + "dense_input_layer": 12, + "dense_output_layer": 21, + "student_output_layer": 12, + "sequences": 64, + "sequence_length": 1024, + "valid_tokens": 65536, + "metric": "sum float32 squared activation differences / valid tokens / hidden width", + "dtype": "bfloat16 eager; float32 differences; float64 aggregate", + "training": false, + "input_ids_sha256": "3f1977a32c7a533356dbc14d142c64b470e67dc9942344ff2942e3b1f8b9e2a1", + "anchor_inputs_sha256": "57378a13b898fd63fc40d2c0ccb209ec5d5b636026accc93521b928669200250", + "targets_sha256": "8c246a6cca66306de3cd208e8ec8ef5df8eb9d3e3976f16ad34329cb1216ab40", + "dataset": "WikiText2 test, first64 packed1024 windows, HCHC packing" + }, + "prefix_input_exact_match": true, + "compact_stage": "/workspace/artifacts/qwen3-base-nofit-merge4-20261011/fisher_reference/compact/stage_09", + "fit": false +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/fisher_reference_restore_receipt.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/fisher_reference_restore_receipt.json new file mode 100644 index 0000000000000000000000000000000000000000..b2357d3d5ed42b07fe02c9eee721578ebde832ae --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/fisher_reference_restore_receipt.json @@ -0,0 +1,18 @@ +{ + "repo": "LJYAI/paper_revision", + "path": "runs/vast-paper_revision-qwen3-base-nofit-transport-zs6-54974094-20261009/20261009-qwen3-base-nofit-transport-zs6/on", + "revision": "b2a437466b134a6311d3ab625b0b37f9aa1a96d6", + "files": [ + { + "path": "compact/stage_09/anchor_layer.pt", + "size": 385897862, + "sha256": "c02c1a2d0a0031ff0ea1ce99c5138e4099daa415d002c49cd4bec20b31294166" + }, + { + "path": "compact/stage_09/metadata.json", + "size": 681, + "sha256": "36841f8a643f275a86d3fe9d2c1517fda0e3da6dfacc5ab12dbd6070f1699c55" + } + ], + "verified": true +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/inputs/calib.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/inputs/calib.pt new file mode 100644 index 0000000000000000000000000000000000000000..42c3d6f5d034b2acb2da3240dfbf78abb83e124a --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/inputs/calib.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbc1b1fb69a38455c4b8e0f12dade2f81bf883463f3e9fdae5718136508f0a43 +size 1050325 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/inputs/local_mse_evaluation_input_ids.pt b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/inputs/local_mse_evaluation_input_ids.pt new file mode 100644 index 0000000000000000000000000000000000000000..fda57995ed5efacef3c28ed665fd46140a6e84bf --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/inputs/local_mse_evaluation_input_ids.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0ca0b84136692de50e29c6d46197b16f16af642d6b30bb289b0c65f41db61ed +size 2917773 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/inputs/manifest.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/inputs/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..460dfdbcb9b802235868b5d0ac3803cf9a63ffc1 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/inputs/manifest.json @@ -0,0 +1,15 @@ +{ + "model": "Qwen/Qwen3-8B-Base", + "model_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "dataset": "DKYoon/SlimPajama-6B", + "revision": "b5f90f419b7489cdba26fdbc8c022fcb5562f968", + "split": "train", + "packing": "historical nonstreaming dataset.shuffle(seed42); concatenate encoded text without separators or BOS", + "samples": 64, + "seq_len": 1024, + "batch_size": 2, + "seed": 42, + "valid_tokens": 65536, + "input_ids_sha256": "85a84b9a68cf0856fd363186d3a273860886b1c17f876cae145fd092454aff55", + "attention_mask_sha256": "b1476de1907209012e63fa502715fd97db26e595352faa808d8c10433a1472a4" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/local_mse_protocol.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/local_mse_protocol.json new file mode 100644 index 0000000000000000000000000000000000000000..ee0c10ff7da7678e030c3857a796852a4dc8bf90 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/local_mse_protocol.json @@ -0,0 +1,18 @@ +{ + "model": "Qwen/Qwen3-8B-Base", + "revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "teacher": "common_original_dense", + "dense_input_layer": 12, + "dense_output_layer": 21, + "student_output_layer": 12, + "sequences": 64, + "sequence_length": 1024, + "valid_tokens": 65536, + "metric": "sum float32 squared activation differences / valid tokens / hidden width", + "dtype": "bfloat16 eager; float32 differences; float64 aggregate", + "training": false, + "input_ids_sha256": "3f1977a32c7a533356dbc14d142c64b470e67dc9942344ff2942e3b1f8b9e2a1", + "anchor_inputs_sha256": "57378a13b898fd63fc40d2c0ccb209ec5d5b636026accc93521b928669200250", + "targets_sha256": "8c246a6cca66306de3cd208e8ec8ef5df8eb9d3e3976f16ad34329cb1216ab40", + "dataset": "WikiText2 test, first64 packed1024 windows, HCHC packing" +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/logs/eval14.log b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/logs/eval14.log new file mode 100644 index 0000000000000000000000000000000000000000..2ed31603da7523936d4ecf88fbd425a96d63d9d1 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/logs/eval14.log @@ -0,0 +1,496 @@ +[transformers] `torch_dtype` is deprecated! Use `dtype` instead! + Loading weights: 0%| | 0/399 [00:00 131072). Running this sequence through the model will result in indexing errors +{ + "model": "/workspace/models/qwen3-8b-base-49e3418", + "revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "compact_stage": "/workspace/artifacts/qwen3-base-nofit-merge4-20261011/full/mka/compact/stage_09", + "dataset": "Salesforce/wikitext:wikitext-2-raw-v1:test", + "offline_policy": { + "wikitext_cache": "/workspace/artifacts/qwen3-base-nofit-merge4-20261011/wikitext2_cache", + "dataset": "Salesforce/wikitext", + "config": "wikitext-2-raw-v1", + "splits": { + "test": 4358, + "train": 36718, + "validation": 3760 + }, + "fingerprints": { + "test": "a46124b21ac53738", + "train": "5d4fb603254a7a5b", + "validation": "51d84d52d095f90d" + } + }, + "protocol": "HCHC experiment.py: filter empty rows, join with double newline, then tokenize the complete stream once", + "sequence_length": 2048, + "batch_size": 1, + "dtype": "bfloat16", + "metrics": { + "nll": 3.0362906554649616, + "perplexity": 20.82784212778055, + "tokens": 296815, + "sequences": 145, + "source_tokens": 298938 + }, + "anchor": 12, + "cycles": 9, + "original_layers": 36, + "decoder_layers": 27, + "post_merge_residual_scale": null, + "post_merge_residual_scales": [], + "parameterization": "unscaled compact ABPrune", + "linear_patch": null +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/logs/prune.log b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/logs/prune.log new file mode 100644 index 0000000000000000000000000000000000000000..08610951e39dd91a2ef489e39c9190a9b27caf08 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/logs/prune.log @@ -0,0 +1,271 @@ + Loading weights: 0%| | 0/399 [00:00= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2) +/opt/conda/lib/python3.11/site-packages/torch/nn/modules/linear.py:134: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + return F.linear(input, self.weight, self.bias) +NOFIT_FIXED_SELECTION 1 mka 0.6223093790055023 +[fuse] Head permutation disabled; merging with original head order. +/opt/conda/lib/python3.11/site-packages/transformers/models/qwen3/modeling_qwen3.py:132: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2) +/opt/conda/lib/python3.11/site-packages/torch/nn/modules/linear.py:134: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + return F.linear(input, self.weight, self.bias) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:185: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + gram_sum.addmm_(x_a.transpose(0, 1), x_a) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:186: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + cross_sum.addmm_(x_a.transpose(0, 1), x_b) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:131: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + transported = original[start:end].float() @ solution.transpose(0, 1) +[source-feature-transport] cycle=1 batches=32 tokens=65536 nmse=0.127982 cosine=0.933820 norm_ratio=0.932959 +[source-feature-transport] contextual-fisher cycle=1 anchor_nll=0.000000 source_nll=0.000000 +[timing] Cycle 1 component wall-clock: +[timing] selection: 11.407s (59.37% of cycle) +[timing] rebase: 0.000s (0.00% of cycle) +[timing] fisher: 0.000s (0.00% of cycle) +[timing] fit: 2.690s (14.00% of cycle) +[timing] materialize_save_layer: 0.625s (3.25% of cycle) +[timing] metadata_write: 0.000s (0.00% of cycle) +[timing] teacher_snapshot: 0.143s (0.74% of cycle) +[timing] cycle_cleanup: 0.234s (1.22% of cycle) +[timing] cycle_total: 19.214s +[timing] tracked_components_total: 19.213s +[progressive] Cycle 2/9 +NOFIT_FIXED_SELECTION 2 mka 0.6230683039754933 +[fuse] Head permutation disabled; merging with original head order. +/opt/conda/lib/python3.11/site-packages/transformers/models/qwen3/modeling_qwen3.py:132: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2) +/opt/conda/lib/python3.11/site-packages/torch/nn/modules/linear.py:134: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + return F.linear(input, self.weight, self.bias) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:185: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + gram_sum.addmm_(x_a.transpose(0, 1), x_a) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:186: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + cross_sum.addmm_(x_a.transpose(0, 1), x_b) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:131: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + transported = original[start:end].float() @ solution.transpose(0, 1) +[source-feature-transport] cycle=2 batches=32 tokens=65536 nmse=0.043989 cosine=0.977759 norm_ratio=0.976856 +[source-feature-transport] contextual-fisher cycle=2 anchor_nll=0.000000 source_nll=0.000000 +[timing] Cycle 2 component wall-clock: +[timing] selection: 10.610s (56.96% of cycle) +[timing] rebase: 0.000s (0.00% of cycle) +[timing] fisher: 0.000s (0.00% of cycle) +[timing] fit: 2.632s (14.13% of cycle) +[timing] materialize_save_layer: 0.614s (3.30% of cycle) +[timing] metadata_write: 0.000s (0.00% of cycle) +[timing] teacher_snapshot: 0.521s (2.80% of cycle) +[timing] cycle_cleanup: 0.163s (0.87% of cycle) +[timing] cycle_total: 18.626s +[timing] tracked_components_total: 18.625s +[progressive] Cycle 3/9 +NOFIT_FIXED_SELECTION 3 mka 0.6246677319752422 +[fuse] Head permutation disabled; merging with original head order. +/opt/conda/lib/python3.11/site-packages/transformers/models/qwen3/modeling_qwen3.py:132: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2) +/opt/conda/lib/python3.11/site-packages/torch/nn/modules/linear.py:134: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + return F.linear(input, self.weight, self.bias) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:185: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + gram_sum.addmm_(x_a.transpose(0, 1), x_a) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:186: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + cross_sum.addmm_(x_a.transpose(0, 1), x_b) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:131: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + transported = original[start:end].float() @ solution.transpose(0, 1) +[source-feature-transport] cycle=3 batches=32 tokens=65536 nmse=0.038080 cosine=0.980776 norm_ratio=0.979828 +[source-feature-transport] contextual-fisher cycle=3 anchor_nll=0.000000 source_nll=0.000000 +[timing] Cycle 3 component wall-clock: +[timing] selection: 10.140s (55.96% of cycle) +[timing] rebase: 0.000s (0.00% of cycle) +[timing] fisher: 0.000s (0.00% of cycle) +[timing] fit: 2.617s (14.44% of cycle) +[timing] materialize_save_layer: 0.632s (3.49% of cycle) +[timing] metadata_write: 0.000s (0.00% of cycle) +[timing] teacher_snapshot: 0.510s (2.81% of cycle) +[timing] cycle_cleanup: 0.161s (0.89% of cycle) +[timing] cycle_total: 18.121s +[timing] tracked_components_total: 18.120s +[progressive] Cycle 4/9 +NOFIT_FIXED_SELECTION 4 mka 0.621696986035118 +[fuse] Head permutation disabled; merging with original head order. +/opt/conda/lib/python3.11/site-packages/transformers/models/qwen3/modeling_qwen3.py:132: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2) +/opt/conda/lib/python3.11/site-packages/torch/nn/modules/linear.py:134: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + return F.linear(input, self.weight, self.bias) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:185: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + gram_sum.addmm_(x_a.transpose(0, 1), x_a) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:186: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + cross_sum.addmm_(x_a.transpose(0, 1), x_b) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:131: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + transported = original[start:end].float() @ solution.transpose(0, 1) +[source-feature-transport] cycle=4 batches=32 tokens=65536 nmse=0.026771 cosine=0.986524 norm_ratio=0.985580 +[source-feature-transport] contextual-fisher cycle=4 anchor_nll=0.000000 source_nll=0.000000 +[timing] Cycle 4 component wall-clock: +[timing] selection: 9.743s (55.58% of cycle) +[timing] rebase: 0.000s (0.00% of cycle) +[timing] fisher: 0.000s (0.00% of cycle) +[timing] fit: 2.505s (14.29% of cycle) +[timing] materialize_save_layer: 0.584s (3.33% of cycle) +[timing] metadata_write: 0.000s (0.00% of cycle) +[timing] teacher_snapshot: 0.512s (2.92% of cycle) +[timing] cycle_cleanup: 0.172s (0.98% of cycle) +[timing] cycle_total: 17.530s +[timing] tracked_components_total: 17.530s +[progressive] Cycle 5/9 +NOFIT_FIXED_SELECTION 5 mka 0.6210185221513229 +[fuse] Head permutation disabled; merging with original head order. +/opt/conda/lib/python3.11/site-packages/transformers/models/qwen3/modeling_qwen3.py:132: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2) +/opt/conda/lib/python3.11/site-packages/torch/nn/modules/linear.py:134: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + return F.linear(input, self.weight, self.bias) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:185: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + gram_sum.addmm_(x_a.transpose(0, 1), x_a) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:186: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + cross_sum.addmm_(x_a.transpose(0, 1), x_b) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:131: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + transported = original[start:end].float() @ solution.transpose(0, 1) +[source-feature-transport] cycle=5 batches=32 tokens=65536 nmse=0.024652 cosine=0.987597 norm_ratio=0.986634 +[source-feature-transport] contextual-fisher cycle=5 anchor_nll=0.000000 source_nll=0.000000 +[timing] Cycle 5 component wall-clock: +[timing] selection: 9.368s (52.89% of cycle) +[timing] rebase: 0.000s (0.00% of cycle) +[timing] fisher: 0.000s (0.00% of cycle) +[timing] fit: 2.708s (15.29% of cycle) +[timing] materialize_save_layer: 0.613s (3.46% of cycle) +[timing] metadata_write: 0.000s (0.00% of cycle) +[timing] teacher_snapshot: 0.815s (4.60% of cycle) +[timing] cycle_cleanup: 0.168s (0.95% of cycle) +[timing] cycle_total: 17.713s +[timing] tracked_components_total: 17.712s +[progressive] Cycle 6/9 +NOFIT_FIXED_SELECTION 6 mka 0.6217058706168793 +[fuse] Head permutation disabled; merging with original head order. +/opt/conda/lib/python3.11/site-packages/transformers/models/qwen3/modeling_qwen3.py:132: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2) +/opt/conda/lib/python3.11/site-packages/torch/nn/modules/linear.py:134: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + return F.linear(input, self.weight, self.bias) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:185: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + gram_sum.addmm_(x_a.transpose(0, 1), x_a) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:186: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + cross_sum.addmm_(x_a.transpose(0, 1), x_b) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:131: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + transported = original[start:end].float() @ solution.transpose(0, 1) +[source-feature-transport] cycle=6 batches=32 tokens=65536 nmse=0.023368 cosine=0.988248 norm_ratio=0.987285 +[source-feature-transport] contextual-fisher cycle=6 anchor_nll=0.000000 source_nll=0.000000 +[timing] Cycle 6 component wall-clock: +[timing] selection: 8.924s (52.18% of cycle) +[timing] rebase: 0.000s (0.00% of cycle) +[timing] fisher: 0.000s (0.00% of cycle) +[timing] fit: 2.593s (15.16% of cycle) +[timing] materialize_save_layer: 0.595s (3.48% of cycle) +[timing] metadata_write: 0.000s (0.00% of cycle) +[timing] teacher_snapshot: 0.775s (4.53% of cycle) +[timing] cycle_cleanup: 0.164s (0.96% of cycle) +[timing] cycle_total: 17.102s +[timing] tracked_components_total: 17.102s +[progressive] Cycle 7/9 +NOFIT_FIXED_SELECTION 7 mka 0.6320229056860514 +[fuse] Head permutation disabled; merging with original head order. +/opt/conda/lib/python3.11/site-packages/transformers/models/qwen3/modeling_qwen3.py:132: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2) +/opt/conda/lib/python3.11/site-packages/torch/nn/modules/linear.py:134: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + return F.linear(input, self.weight, self.bias) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:185: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + gram_sum.addmm_(x_a.transpose(0, 1), x_a) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:186: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + cross_sum.addmm_(x_a.transpose(0, 1), x_b) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:131: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + transported = original[start:end].float() @ solution.transpose(0, 1) +[source-feature-transport] cycle=7 batches=32 tokens=65536 nmse=0.044455 cosine=0.977520 norm_ratio=0.976605 +[source-feature-transport] contextual-fisher cycle=7 anchor_nll=0.000000 source_nll=0.000000 +[timing] Cycle 7 component wall-clock: +[timing] selection: 8.575s (52.00% of cycle) +[timing] rebase: 0.000s (0.00% of cycle) +[timing] fisher: 0.000s (0.00% of cycle) +[timing] fit: 2.622s (15.90% of cycle) +[timing] materialize_save_layer: 0.603s (3.66% of cycle) +[timing] metadata_write: 0.000s (0.00% of cycle) +[timing] teacher_snapshot: 0.460s (2.79% of cycle) +[timing] cycle_cleanup: 0.163s (0.99% of cycle) +[timing] cycle_total: 16.489s +[timing] tracked_components_total: 16.489s +[progressive] Cycle 8/9 +NOFIT_FIXED_SELECTION 8 mka 0.6197847717397531 +[fuse] Head permutation disabled; merging with original head order. +/opt/conda/lib/python3.11/site-packages/transformers/models/qwen3/modeling_qwen3.py:132: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2) +/opt/conda/lib/python3.11/site-packages/torch/nn/modules/linear.py:134: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + return F.linear(input, self.weight, self.bias) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:185: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + gram_sum.addmm_(x_a.transpose(0, 1), x_a) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:186: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + cross_sum.addmm_(x_a.transpose(0, 1), x_b) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:131: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + transported = original[start:end].float() @ solution.transpose(0, 1) +[source-feature-transport] cycle=8 batches=32 tokens=65536 nmse=0.026729 cosine=0.986545 norm_ratio=0.985605 +[source-feature-transport] contextual-fisher cycle=8 anchor_nll=0.000000 source_nll=0.000000 +[timing] Cycle 8 component wall-clock: +[timing] selection: 8.172s (50.86% of cycle) +[timing] rebase: 0.000s (0.00% of cycle) +[timing] fisher: 0.000s (0.00% of cycle) +[timing] fit: 2.621s (16.31% of cycle) +[timing] materialize_save_layer: 0.620s (3.86% of cycle) +[timing] metadata_write: 0.000s (0.00% of cycle) +[timing] teacher_snapshot: 0.422s (2.63% of cycle) +[timing] cycle_cleanup: 0.162s (1.01% of cycle) +[timing] cycle_total: 16.067s +[timing] tracked_components_total: 16.066s +[progressive] Cycle 9/9 +NOFIT_FIXED_SELECTION 9 mka 0.6252624360747442 +[fuse] Head permutation disabled; merging with original head order. +/opt/conda/lib/python3.11/site-packages/transformers/models/qwen3/modeling_qwen3.py:132: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2) +/opt/conda/lib/python3.11/site-packages/torch/nn/modules/linear.py:134: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + return F.linear(input, self.weight, self.bias) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:185: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + gram_sum.addmm_(x_a.transpose(0, 1), x_a) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:186: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + cross_sum.addmm_(x_a.transpose(0, 1), x_b) +/workspace/external/qwen3-base-nofit-merge4/src/source_feature_transport.py:131: UserWarning: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses CuBLAS and you have CUDA >= 10.2. To enable deterministic behavior in this case, you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. For more information, go to https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility (Triggered internally at /pytorch/aten/src/ATen/Context.cpp:304.) + transported = original[start:end].float() @ solution.transpose(0, 1) +[source-feature-transport] cycle=9 batches=32 tokens=65536 nmse=0.035785 cosine=0.981945 norm_ratio=0.981030 +[source-feature-transport] contextual-fisher cycle=9 anchor_nll=0.000000 source_nll=0.000000 +[timing] Cycle 9 component wall-clock: +[timing] selection: 7.849s (48.98% of cycle) +[timing] rebase: 0.000s (0.00% of cycle) +[timing] fisher: 0.000s (0.00% of cycle) +[timing] fit: 2.707s (16.89% of cycle) +[timing] materialize_save_layer: 0.621s (3.88% of cycle) +[timing] metadata_write: 0.000s (0.00% of cycle) +[timing] teacher_snapshot: 0.449s (2.80% of cycle) +[timing] cycle_cleanup: 0.163s (1.02% of cycle) +[timing] cycle_total: 16.026s +[timing] tracked_components_total: 16.025s +[save] Skipping final pre-LoRA weight save (compact_only). +[save] Skipping final model weight save (compact_only). +[progressive] Completed 9 cycles. Compact weights written to /workspace/artifacts/qwen3-base-nofit-merge4-20261011/full/mka/run; final dense model save skipped. +NOFIT_ALL_CYCLES_COMPLETE 9 diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/manifest.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..2e784e9d69b745b773238f61b76084aefe24424c --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/manifest.json @@ -0,0 +1,517 @@ +{ + "schema": "sha256-tree-v1", + "files": [ + { + "path": "audit/cycle_01_merge.json", + "size": 41925, + "sha256": "040ea3ed2ff346a17ca1b993f778349bcaf8419f05318fd66e0cfd2529a5fc33" + }, + { + "path": "audit/cycle_01_transport.pt", + "size": 67110518, + "sha256": "ce29905e20c096a8d0a555134ba437d93e2e81d3e91cbfdff0b3e62513583bbb" + }, + { + "path": "audit/cycle_02_merge.json", + "size": 40100, + "sha256": "47852f85bca23c0a28498aee1c5bc6966e4eec99acc7e9894ed460b12dc990cf" + }, + { + "path": "audit/cycle_02_transport.pt", + "size": 67110518, + "sha256": "d9142b9e3366a4df59a373bb6c7022736e872020800072640af161fa7eddcef9" + }, + { + "path": "audit/cycle_03_merge.json", + "size": 38265, + "sha256": "2d03b63799ba455fecc2430e81ed8c88a2aebbd9b494bed90153c9c279283011" + }, + { + "path": "audit/cycle_03_transport.pt", + "size": 67110518, + "sha256": "19a93a865ac591cb00929dcc8d986f6f7fb55b7342a57a2ae29a89885a2a8192" + }, + { + "path": "audit/cycle_04_merge.json", + "size": 36533, + "sha256": "fd58353b5f185dc7c3c48084b5c45a610fe285c093f47532e81ad6b62e1a290d" + }, + { + "path": "audit/cycle_04_transport.pt", + "size": 67110518, + "sha256": "a3a3edf52772a8e750b33361066e0d4152d55ad82e88091ed708a0f4b6ae9444" + }, + { + "path": "audit/cycle_05_merge.json", + "size": 34827, + "sha256": "169230623f653c2ac889bb1c5f64116d7f7ebed4f50b42b8f4abefc11f1b64c5" + }, + { + "path": "audit/cycle_05_transport.pt", + "size": 67110518, + "sha256": "f18282e903e297b5372d648c4eb73e7fc720dd7d4edc75f5b8dd859263361b37" + }, + { + "path": "audit/cycle_06_merge.json", + "size": 33197, + "sha256": "ec5b4b97fa53780168e4313d0a1f79bd30ac9ab13df08715daabfff99fcd79d2" + }, + { + "path": "audit/cycle_06_transport.pt", + "size": 67110518, + "sha256": "f86d82a9678183a7225033c4d8e620ac3c32a073d6bfb228223615b60181eab3" + }, + { + "path": "audit/cycle_07_merge.json", + "size": 31589, + "sha256": "58e302609926e5dc9c193394b2e8008daad8f0816e474b9f2ff561c0fb1bfe4b" + }, + { + "path": "audit/cycle_07_transport.pt", + "size": 67110518, + "sha256": "4b73d4e0ebc48c6a60fc78f30a2865b80b947b618bcf49d3fa43639efed0469c" + }, + { + "path": "audit/cycle_08_merge.json", + "size": 30134, + "sha256": "9765015d8770e5f2e4ed43395106437380a0568d9cfb3cca74b44cf54ebb4045" + }, + { + "path": "audit/cycle_08_transport.pt", + "size": 67110518, + "sha256": "ff442f44dacc19afd5faec278f2c2cd0a879baa08d29b042fe1bdde2e68cebaf" + }, + { + "path": "audit/cycle_09_merge.json", + "size": 28637, + "sha256": "afa681a0cb89a67d3c1ba923cf7d14ba92fd780945aabe020a2e308bbfdbeb00" + }, + { + "path": "audit/cycle_09_transport.pt", + "size": 67110518, + "sha256": "128bd2e629879e3e4e07cd11f057d3291bf41d922857fff8be632c7ffee9d8ae" + }, + { + "path": "audit/data_manifest.json", + "size": 610, + "sha256": "351ffe83205ea1f03e9f6c3fb619df647d24e0b319e788df8e82f807cac830b9" + }, + { + "path": "audit/selection.json", + "size": 337911, + "sha256": "7ab35b606efe9e8d1c97e6fa1f13d543b6351b5eea2661e2631548dcc933612a" + }, + { + "path": "code/2026-10-11_qwen3-base-nofit-merge4.md", + "size": 8800, + "sha256": "aee63dae5b4ccdbd00d3df36aaea77831148baaea7b524d37a93e05bacac6ce4" + }, + { + "path": "code/abprune_compact.py", + "size": 12360, + "sha256": "34f00dc3b96ea3c3dd6dafada682352e2b332e6b1c79fb2033e13f9585254ff3" + }, + { + "path": "code/abprune_stagewise_geometry.py", + "size": 11292, + "sha256": "b616899132d69bff0056a8573f49f62cbe0f0ad99a6e75aa0ec7f2b8a47c9fe0" + }, + { + "path": "code/aggregate_transport_rho_fit_14bench.py", + "size": 1892, + "sha256": "551c83e8e313bfaecd6d052c3a0e8e45142c21b8124acf86bc983cfb7ed7f457" + }, + { + "path": "code/bootstrap_qwen3_nofit_bench8.sh", + "size": 3393, + "sha256": "14fef8b8339f11a79fd0626d796ebab929500a42c5bb960effaa5f14e74a1145" + }, + { + "path": "code/bootstrap_qwen3_nofit_merge4.sh", + "size": 3592, + "sha256": "9f62603ccf9ef05d47b484d20f39c011b61144bac97157c1a4cdf1e71d243ce4" + }, + { + "path": "code/common_lm_data.py", + "size": 20467, + "sha256": "bca8aae6c3a32a39f8461fd100a3b004e87603b1d1f454a0a8557bed08696e3b" + }, + { + "path": "code/dm500_rows.py", + "size": 4712, + "sha256": "2aac800856d3602aab0887550562e30eed706fc39574fa771ada81152a9cc034" + }, + { + "path": "code/eval_llama31_8b_12bench.py", + "size": 6694, + "sha256": "94f6ca3e633f10b5cdef756c1e88e32cdf1615a8f17d078918c0b412a445fb37" + }, + { + "path": "code/eval_llama31_fit_ablation_one.sh", + "size": 3118, + "sha256": "ae03668f8f4aae078813858b17aada4d0cc828a848d4321036736bf12ca665dd" + }, + { + "path": "code/eval_opencompass_ppl_fast.py", + "size": 9619, + "sha256": "e1bf9a9c3e658d3205ec6210c87eb2d07d55f428e6dec055d8160251d4e0ba59" + }, + { + "path": "code/evaluate_abprune_compact_ppl.py", + "size": 7038, + "sha256": "916db0545ee18ba39dbbb0af9ce4f379a1ddef0b54d0477caf402ee24421a050" + }, + { + "path": "code/evaluate_hchc_wikitext2_ppl.py", + "size": 5422, + "sha256": "a1c1c0bf8422ddc70cc5e9c0049830b9aa594742fdeffa110de7b3dcf30c1dd3" + }, + { + "path": "code/fit_ablation_mka.py", + "size": 19854, + "sha256": "05679b074c4e8dda5f902598c0115e538128da42dfe75c5402f4adf84262da03" + }, + { + "path": "code/fixed_span_merge_init.py", + "size": 2940, + "sha256": "c12a7d203b20231066525c076a789b9f91aabf569d981202c018597360c261ed" + }, + { + "path": "code/fuse_layers.py", + "size": 131351, + "sha256": "d2bca0ca9b5bc42da7a29cd5a14f860821486625cebd9da60d01521f07a3f6dc" + }, + { + "path": "code/fuse_layers_distill.py", + "size": 148110, + "sha256": "d0f2ffcb021e486b9462b45fd7507d492a47ffa5f803768a9bc856721e4be16c" + }, + { + "path": "code/launch_qwen3_nofit_bench8.sh", + "size": 4599, + "sha256": "7e39f742327bb6e6b8ec167fec02dc53b8d195ff3f0f2a3a7f76b25a29832eda" + }, + { + "path": "code/launch_qwen3_nofit_merge4.sh", + "size": 4432, + "sha256": "45a8eed6aba7b6dee6e562c72a0af19de2240a5513cd000fa609794b02e1df27" + }, + { + "path": "code/launch_qwen3_nofit_transport_zs6.sh", + "size": 6783, + "sha256": "8e24c31cb23b2a768f0f109d17ce10673354f3584f3785654ea1acf1aedd78a2" + }, + { + "path": "code/monitor_qwen3_nofit_bench8.ps1", + "size": 3431, + "sha256": "c3cb4022cd1d1be1352f9725ca2f831cfe1419f33f61aac060e9ef9101955423" + }, + { + "path": "code/monitor_qwen3_nofit_merge4.ps1", + "size": 3198, + "sha256": "8a712ab748d3ae4d8823581e7554cede61b2109af5f75e5f9e6c44c2e1b40106" + }, + { + "path": "code/monitor_qwen3_nofit_transport_zs6.ps1", + "size": 4417, + "sha256": "c3c23490b9773b0904ace353bf6d83d9037c38b5402274b3ab0a5d881fb6db71" + }, + { + "path": "code/nofit_merge_control.py", + "size": 2237, + "sha256": "8ab597afa87424fb699934aa64eb9a740d5172003501776f399f0026261eafd7" + }, + { + "path": "code/offline_eval_policy.py", + "size": 1001, + "sha256": "6d4b2b315573cc308ada19e24b81166d10a1dd4e2bcf0a1f3799229a6d58135a" + }, + { + "path": "code/package_qwen3_nofit_merge_backup.py", + "size": 3039, + "sha256": "5be38cb201181c0856cc96e05b52cd0ed1bfa5193ee699834fbeb65cb8389e77" + }, + { + "path": "code/prepare_lmeval9_local_cache.py", + "size": 4706, + "sha256": "b9d7cfa46fa42cc017f53c5fffa34832756246377c3586484c0c54a53a00de8b" + }, + { + "path": "code/prepare_qwen3_nofit_merge_inputs.py", + "size": 1899, + "sha256": "f3938f4c2381449e23aa3ce9ff85b7703618bd5d53d96bbc4c5f6caa535ec197" + }, + { + "path": "code/project_commit.txt", + "size": 41, + "sha256": "8906e06db63748514b9aa3c9d752ac3de3827edeaa522e7da814e57fe7f83042" + }, + { + "path": "code/qwen3_nofit_local_mse.py", + "size": 5164, + "sha256": "db4bae16b8a924cfc8e11c240024678bb8a38f632f6a03b301c77461acc709eb" + }, + { + "path": "code/qwen3_nofit_transport_config.sh", + "size": 1692, + "sha256": "e7e011c251f1b77b66d123a14b91631b00a2bb7d0e09ac99de4c41cd1c1bd17b" + }, + { + "path": "code/run_qwen3_nofit_merge_control.py", + "size": 6831, + "sha256": "16f2c0ed207b261ecca8116795543fa7e2f65e3880f84fc7986ef9a450711030" + }, + { + "path": "code/run_qwen3_nofit_transport_arm.sh", + "size": 2519, + "sha256": "5d47c86936ec57c442a57184158ee7082668fc3c091eba80599c6b60d44d4903" + }, + { + "path": "code/run_qwen3_nofit_transport_control.py", + "size": 4714, + "sha256": "78d96f3ccdc1226506fdf93e9c4da0ec0dd9b1aff6336a99921b60d5d1a36fa6" + }, + { + "path": "code/run_qwen3_nofit_transport_ppl.sh", + "size": 4514, + "sha256": "cc050f998634b415ceeafca4949391852960f78fde2efe49157cbf776f63c871" + }, + { + "path": "code/source_feature_transport.py", + "size": 13200, + "sha256": "75809bdbbc9bf73f07adaf1f0c816fc9abd1d9b7c0b8a0d561c96cb0313e243f" + }, + { + "path": "code/summarize_qwen3_nofit_merge.py", + "size": 2603, + "sha256": "a43ec0886823c1dc616718f33760b116f3b8e96f0434a518a31c54bf5de35479" + }, + { + "path": "code/verify_qwen3_nofit_merge.py", + "size": 1416, + "sha256": "1bf3cce4ea287c78168d578a8763c0d12779ea591cd338e9266e893d3f4f51ca" + }, + { + "path": "compact/manifest.json", + "size": 7440, + "sha256": "69effee6c8d26aaadf691a04b27107eb619c2741b848e983ead6a70d12579a73" + }, + { + "path": "compact/stage_01/anchor_layer.pt", + "size": 385897862, + "sha256": "8bc6ba9872c2e670903cebfa10b96649f3bc3034510a2100d08e6fd2091a49ed" + }, + { + "path": "compact/stage_01/metadata.json", + "size": 616, + "sha256": "529c1f042cfcf9f164e530498e548da2bd6b38d077e376424c9aabf87b6a8b83" + }, + { + "path": "compact/stage_02/anchor_layer.pt", + "size": 385897862, + "sha256": "6368d32eaa367b72a6f3471767b54c702b3d7f23329cf36363c898a8b8765e2f" + }, + { + "path": "compact/stage_02/metadata.json", + "size": 624, + "sha256": "65c1f6237831e0f51c26a14023b8db8bfbd6a6d59cf4a016ae9d822b6f1b13e3" + }, + { + "path": "compact/stage_03/anchor_layer.pt", + "size": 385897862, + "sha256": "c40a50bf68fdebecd8f777dd21888268c4130462548b8e571f14194f413a77ab" + }, + { + "path": "compact/stage_03/metadata.json", + "size": 632, + "sha256": "4a2d28bcb07f404301c2c2cf63fdfac2ad8f4c1e351c40130d07f25cd87803ca" + }, + { + "path": "compact/stage_04/anchor_layer.pt", + "size": 385897862, + "sha256": "6631294e3ef72a6e189322815bb5c3df53a7fe936d9800205e2526ab3fd1ac1f" + }, + { + "path": "compact/stage_04/metadata.json", + "size": 640, + "sha256": "91ce1bd30143d346ed5684809aa0b75ebd43e73a2454962e82c8540b6863ad06" + }, + { + "path": "compact/stage_05/anchor_layer.pt", + "size": 385897862, + "sha256": "aaa1cad4d0adb64e73ae174dcb16a9a7d4db877f8e832eb90ca75623141a55a7" + }, + { + "path": "compact/stage_05/metadata.json", + "size": 648, + "sha256": "0f2538c99eb1a1271c0a47e4ddb4f0d907e8c4755d4f066a245970bedca521eb" + }, + { + "path": "compact/stage_06/anchor_layer.pt", + "size": 385897862, + "sha256": "ef90aa4e1d532885199872e96747e924103c70c77303a41340d68ab0ff77add6" + }, + { + "path": "compact/stage_06/metadata.json", + "size": 656, + "sha256": "aa152cb418ddbdbc8f47a5c27f30fab1bde9500c8b98e8877a60b251c3c7a3b3" + }, + { + "path": "compact/stage_07/anchor_layer.pt", + "size": 385897862, + "sha256": "f4e8aade1057d69959ea7d561dade1b3c284e99e06f74cc97fe90bc27bab622f" + }, + { + "path": "compact/stage_07/metadata.json", + "size": 664, + "sha256": "b11f32be2eccb5cb1f9f3e2cc18c9b30ddabe7f886846aa485a8a579f05cd883" + }, + { + "path": "compact/stage_08/anchor_layer.pt", + "size": 385897862, + "sha256": "6446334aa73c457d0637fe60dbbc17b06317cacdb73a486595dc8eebd8299e57" + }, + { + "path": "compact/stage_08/metadata.json", + "size": 672, + "sha256": "6c46e43d926e02f0475a7d1727b29520732c763d4fc9e9d216fa50546a13ae58" + }, + { + "path": "compact/stage_09/anchor_layer.pt", + "size": 385897862, + "sha256": "ebef6e4f425ad4671d601a274e150ab72c837dc8ad070a431072ee0672b0b4b8" + }, + { + "path": "compact/stage_09/metadata.json", + "size": 680, + "sha256": "17bc139e0b891c9a23214d06b48ff83557357dcde71a8392fd288d926b32bc79" + }, + { + "path": "cycle_metadata/cycle_1/cycle_metadata.json", + "size": 49561, + "sha256": "42546c3840f177638f33cbe753c395e0cba135d91b652baba1cf7992716bfc7a" + }, + { + "path": "cycle_metadata/cycle_2/cycle_metadata.json", + "size": 47589, + "sha256": "1b88484c484722ed58497b243005ad38764d1ddef76bd4dfcff5eae3d449f7cb" + }, + { + "path": "cycle_metadata/cycle_3/cycle_metadata.json", + "size": 45607, + "sha256": "a726065f8e35687f6769ce1f058c7bdf4a2aafb71d98827ea09e75357bf0109c" + }, + { + "path": "cycle_metadata/cycle_4/cycle_metadata.json", + "size": 43741, + "sha256": "36e755fe6ac9a7d155a50861b6934f9e4d138c387a2d54ea2c6f9fb14194f2a8" + }, + { + "path": "cycle_metadata/cycle_5/cycle_metadata.json", + "size": 41898, + "sha256": "0deddd995f3ae8353c07573b0bfe23537d05c88166a928bdf7c0602188afeb12" + }, + { + "path": "cycle_metadata/cycle_6/cycle_metadata.json", + "size": 40137, + "sha256": "b15c120881a28f1af1d3a4abb22389d0f5123b4feb87b53f2b7e0db9c3e12dde" + }, + { + "path": "cycle_metadata/cycle_7/cycle_metadata.json", + "size": 38402, + "sha256": "3c4eadb0ac699ba7011ec18a0022e86f87144898db08c4eb720153d3030c3e49" + }, + { + "path": "cycle_metadata/cycle_8/cycle_metadata.json", + "size": 36824, + "sha256": "4f8298b97301b741ea3259fca0b33a4bf149a476e722f075c18dcb807c15308e" + }, + { + "path": "cycle_metadata/cycle_9/cycle_metadata.json", + "size": 35192, + "sha256": "75be068fe62b554af3eca0599a82241aab4f2ead02ea57f79c3fab254854bc98" + }, + { + "path": "eval/final_14bench.json", + "size": 888, + "sha256": "d467e1132adda4931e1e4ae7326b4aa94d932446f875d7bfa49d84942a68d7cd" + }, + { + "path": "eval/final_lmeval9.json", + "size": 42885, + "sha256": "b975e9fd3467194a51762c2b610c0e9f6591d9b1ead51f2163e9e6cf47fb9aa0" + }, + { + "path": "eval/final_opencompass5.json", + "size": 1122, + "sha256": "58494725df4e3ac9e7ebfa31f61e6bfcbde5afa42431a8ff4577f9330e4efd10" + }, + { + "path": "eval/final_ppl.json", + "size": 1274, + "sha256": "546535f9a0412fb2d322c5ba0d6ec67223b4980b5aca16dc35183565481c8fdd" + }, + { + "path": "eval/local_mse.json", + "size": 1197, + "sha256": "de9c8759a5acaca4c29e673d38ca64700545864f1b1551cb237a46bed62b804d" + }, + { + "path": "fisher_reference_local_mse.json", + "size": 1205, + "sha256": "77f5a28e3f1c9859c748a8c279f9eca514902b4410aa990875c6abace2bde652" + }, + { + "path": "fisher_reference_restore_receipt.json", + "size": 596, + "sha256": "64cc521715a1ab9ffbbfa89b9a826b6af9af4d8d483345499528acdd258b61e9" + }, + { + "path": "inputs/calib.pt", + "size": 1050325, + "sha256": "cbc1b1fb69a38455c4b8e0f12dade2f81bf883463f3e9fdae5718136508f0a43" + }, + { + "path": "inputs/local_mse_evaluation_input_ids.pt", + "size": 2917773, + "sha256": "f0ca0b84136692de50e29c6d46197b16f16af642d6b30bb289b0c65f41db61ed" + }, + { + "path": "inputs/manifest.json", + "size": 610, + "sha256": "351ffe83205ea1f03e9f6c3fb619df647d24e0b319e788df8e82f807cac830b9" + }, + { + "path": "local_mse_protocol.json", + "size": 811, + "sha256": "d53120bd3b3b7c77247c9e35fc43e0ff829bdf4327ace808b4155811aab3a183" + }, + { + "path": "logs/eval14.log", + "size": 294577, + "sha256": "afaa6c0631d7ce14a80030d9f165c0af69586d7e13aab4f0199af70464283dab" + }, + { + "path": "logs/local_mse.log", + "size": 1340, + "sha256": "29be774ce941a0d35802538abdba212143d2b93044bc8fa80071b512c50d1503" + }, + { + "path": "logs/ppl.log", + "size": 1723, + "sha256": "45a2b6c42733b18378f4ee1021855c6c2c6f398fa9ad70172dcada08aa7f10f7" + }, + { + "path": "logs/prune.log", + "size": 44103, + "sha256": "84cee129206f157a687b2d62c1216f5f5dea30ba4211be7fc4d0b7f8568e892f" + }, + { + "path": "stage_retention.json", + "size": 432, + "sha256": "3280a5aabc0915ce6965715203e1a961c7eb0c704fe652b3c97bc5228fe8acb6" + } + ], + "total_files": 102, + "total_bytes": 4082965322 +} diff --git a/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/stage_retention.json b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/stage_retention.json new file mode 100644 index 0000000000000000000000000000000000000000..6c43d4ede12d53f47b49b2079845f2a4def38df2 --- /dev/null +++ b/runs/vast-paper_revision-qwen3-base-nofit-merge4-55359231-20261011/20261011-qwen3-base-nofit-merge4/mka/stage_retention.json @@ -0,0 +1,20 @@ +{ + "stages": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9 + ], + "stage0_original_model": "Qwen/Qwen3-8B-Base", + "stage0_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4", + "previous_teacher_reconstruction": "stage(k-1) compact anchor + immutable original unremoved layers", + "original_input_ids_saved": true, + "all_transport_matrices_saved": true, + "intermediate_weights_saved": true, + "fit": false +}