<?xml version='1.0' encoding='utf-8'?>
<mxfile host="app.diagrams.net" agent="SGLang public-code explainer" version="24.7.17"><diagram name="01-layer-tail-flow" id="01-layer-tail-flow"><mxGraphModel dx="1400" dy="850" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1400" pageHeight="850" math="0" shadow="0"><root><mxCell id="0" /><mxCell id="1" parent="0" /><mxCell id="2" value="从完整 source 计算到晚层尾部计算" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=32;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="45" y="20" width="480.0" height="44" as="geometry" /></mxCell><mxCell id="3" value="单请求 · 一次 8192-token extend · 0-based 层号 · decoder bounded replay 开启" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=19;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="45" y="71" width="954.75" height="31" as="geometry" /></mxCell><mxCell id="4" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="48" y="145" width="780" height="108" as="geometry" /></mxCell><mxCell id="5" value="L0–L20  ·  21 层完整执行" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=27;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="67" y="150" width="384.75" height="39" as="geometry" /></mxCell><mxCell id="6" value="位置 0 … 8191，全体 8192 行" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="67" y="194" width="362.25" height="35" as="geometry" /></mxCell><mxCell id="7" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E4F5EF;strokeColor=#127A65;arcSize=8;" vertex="1" parent="1"><mxGeometry x="895" y="145" width="455" height="155" as="geometry" /></mxCell><mxCell id="8" value="共享全局历史" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=27;fontColor=#127A65;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="917" y="153" width="200" height="39" as="geometry" /></mxCell><mxCell id="9" value="L20 是最后一个 KV source" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=21;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="917" y="200" width="299.25" height="33" as="geometry" /></mxCell><mxCell id="10" value="main KV + indexer keys" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=21;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="917" y="229" width="346.5" height="33" as="geometry" /></mxCell><mxCell id="11" value="历史覆盖不随 hidden 裁成 128 行" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=21;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="917" y="258" width="346.5" height="33" as="geometry" /></mxCell><mxCell id="12" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#127A65;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="828" y="195" as="sourcePoint" /><mxPoint x="890" y="195" as="targetPoint" /></mxGeometry></mxCell><mxCell id="13" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#53677A;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="435" y="255" as="sourcePoint" /><mxPoint x="435" y="316" as="targetPoint" /></mxGeometry></mxCell><mxCell id="14" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#FFF1D9;strokeColor=#AE6500;arcSize=8;" vertex="1" parent="1"><mxGeometry x="210" y="323" width="450" height="102" as="geometry" /></mxCell><mxCell id="15" value="进入 L21 前按请求裁剪" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=26;fontColor=#AE6500;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="231" y="330" width="253.5" height="38" as="geometry" /></mxCell><mxCell id="16" value="hidden / mHC / IDs / positions" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=21;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="231" y="373" width="472.5" height="33" as="geometry" /></mxCell><mxCell id="17" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#53677A;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="435" y="428" as="sourcePoint" /><mxPoint x="435" y="481" as="targetPoint" /></mxGeometry></mxCell><mxCell id="18" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E9EDF1;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="48" y="489" width="530" height="140" as="geometry" /></mxCell><mxCell id="19" value="位置 0 … 8063" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=25;fontColor=#53677A;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="71" y="502" width="206.25" height="37" as="geometry" /></mxCell><mxCell id="20" value="不计算这些行的 L21–L39" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=21;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="71" y="544" width="236.25" height="33" as="geometry" /></mxCell><mxCell id="21" value="不能读它们的完整 prompt logits" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=21;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="71" y="574" width="346.5" height="33" as="geometry" /></mxCell><mxCell id="22" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="620" y="489" width="208" height="140" as="geometry" /></mxCell><mxCell id="23" value="8064 … 8191" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="640" y="503" width="200" height="35" as="geometry" /></mxCell><mxCell id="24" value="最后 128 行" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="641" y="542" width="200" height="35" as="geometry" /></mxCell><mxCell id="25" value="绝对位置保留" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=21;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="641" y="579" width="200" height="33" as="geometry" /></mxCell><mxCell id="26" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#53677A;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="660" y="394" as="sourcePoint" /><mxPoint x="725" y="483" as="targetPoint" /></mxGeometry></mxCell><mxCell id="27" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#FFFFFF;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="895" y="390" width="455" height="239" as="geometry" /></mxCell><mxCell id="28" value="L21–L39  ·  19 层" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=27;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="917" y="401" width="324.0" height="39" as="geometry" /></mxCell><mxCell id="29" value="每层只对保留行做前向" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="917" y="448" width="200" height="34" as="geometry" /></mxCell><mxCell id="30" value="读取共享全局历史 KV" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="917" y="484" width="200" height="34" as="geometry" /></mxCell><mxCell id="31" value="生成该层局部 SWA KV" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="917" y="520" width="214.5" height="34" as="geometry" /></mxCell><mxCell id="32" value="局部读取下界固定为 8064" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="917" y="556" width="231.0" height="34" as="geometry" /></mxCell><mxCell id="33" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#156CBB;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="831" y="557" as="sourcePoint" /><mxPoint x="889" y="557" as="targetPoint" /></mxGeometry></mxCell><mxCell id="34" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#127A65;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="1115" y="303" as="sourcePoint" /><mxPoint x="1115" y="384" as="targetPoint" /></mxGeometry></mxCell><mxCell id="35" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#FFFFFF;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="48" y="685" width="1302" height="110" as="geometry" /></mxCell><mxCell id="36" value="少算的是晚层输入行；新生成 token 仍走完整 40 层" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=25;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="69" y="698" width="543.75" height="37" as="geometry" /></mxCell><mxCell id="37" value="327680 → 174464 token×layer，减少 46.7578% · 这是工作量计数，不是实测加速" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="69" y="741" width="924.0" height="34" as="geometry" /></mxCell></root></mxGraphModel></diagram><diagram name="02-swa-boundary" id="02-swa-boundary"><mxGraphModel dx="1400" dy="890" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1400" pageHeight="890" math="0" shadow="0"><root><mxCell id="0" /><mxCell id="1" parent="0" /><mxCell id="2" value="同样的 128 个位置不保证同样的逐层表示" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=32;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="45" y="20" width="504.0" height="44" as="geometry" /></mxCell><mxCell id="3" value="只画 SWA 局部分支；全局稀疏分支仍可读取共享历史 KV" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=19;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="45" y="71" width="413.25" height="31" as="geometry" /></mxCell><mxCell id="4" value="query 位置" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#53677A;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="57" y="135" width="200" height="34" as="geometry" /></mxCell><mxCell id="5" value="完整 SWA 范围" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#53677A;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="277" y="135" width="200" height="34" as="geometry" /></mxCell><mxCell id="6" value="尾部路径可见范围" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="812" y="135" width="200" height="34" as="geometry" /></mxCell><mxCell id="7" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#FFFFFF;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="48" y="183" width="1302" height="88" as="geometry" /></mxCell><mxCell id="8" value="8064" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=26;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="70" y="206" width="200" height="38" as="geometry" /></mxCell><mxCell id="9" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E9EDF1;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="268" y="198" width="440" height="58" as="geometry" /></mxCell><mxCell id="10" value="7937–8064" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=25;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="289" y="208" width="200" height="37" as="geometry" /></mxCell><mxCell id="11" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#53677A;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="734" y="227" as="sourcePoint" /><mxPoint x="785" y="227" as="targetPoint" /></mxGeometry></mxCell><mxCell id="12" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="803" y="198" width="520" height="58" as="geometry" /></mxCell><mxCell id="13" value="8064（仅自身）" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=25;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="823" y="208" width="200" height="37" as="geometry" /></mxCell><mxCell id="14" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#FFFFFF;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="48" y="288" width="1302" height="88" as="geometry" /></mxCell><mxCell id="15" value="8065" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=26;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="70" y="311" width="200" height="38" as="geometry" /></mxCell><mxCell id="16" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E9EDF1;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="268" y="303" width="440" height="58" as="geometry" /></mxCell><mxCell id="17" value="7938–8065" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=25;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="289" y="313" width="200" height="37" as="geometry" /></mxCell><mxCell id="18" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#53677A;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="734" y="332" as="sourcePoint" /><mxPoint x="785" y="332" as="targetPoint" /></mxGeometry></mxCell><mxCell id="19" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="803" y="303" width="520" height="58" as="geometry" /></mxCell><mxCell id="20" value="8064–8065" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=25;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="823" y="313" width="200" height="37" as="geometry" /></mxCell><mxCell id="21" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#FFFFFF;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="48" y="393" width="1302" height="88" as="geometry" /></mxCell><mxCell id="22" value="8191" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=26;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="70" y="416" width="200" height="38" as="geometry" /></mxCell><mxCell id="23" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E9EDF1;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="268" y="408" width="440" height="58" as="geometry" /></mxCell><mxCell id="24" value="8064–8191" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=25;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="289" y="418" width="200" height="37" as="geometry" /></mxCell><mxCell id="25" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#53677A;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="734" y="437" as="sourcePoint" /><mxPoint x="785" y="437" as="targetPoint" /></mxGeometry></mxCell><mxCell id="26" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="803" y="408" width="520" height="58" as="geometry" /></mxCell><mxCell id="27" value="8064–8191（128 个）" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=25;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="823" y="418" width="300.0" height="37" as="geometry" /></mxCell><mxCell id="28" value="为什么最后一个 token 仍可能变化" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=28;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="57" y="517" width="399.0" height="40" as="geometry" /></mxCell><mxCell id="29" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#FFF1D9;strokeColor=#AE6500;arcSize=8;" vertex="1" parent="1"><mxGeometry x="48" y="582" width="370" height="160" as="geometry" /></mxCell><mxCell id="30" value="L21 · 位置 8064" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="69" y="595" width="224.25" height="35" as="geometry" /></mxCell><mxCell id="31" value="少读左边 127 个局部位置" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="69" y="635" width="241.5" height="35" as="geometry" /></mxCell><mxCell id="32" value="层后 hidden 可能改变" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="69" y="675" width="241.5" height="35" as="geometry" /></mxCell><mxCell id="33" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="506" y="582" width="370" height="160" as="geometry" /></mxCell><mxCell id="34" value="L22 · 位置 8191" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="527" y="595" width="224.25" height="35" as="geometry" /></mxCell><mxCell id="35" value="读取 8064 等位置的" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="527" y="635" width="207.0" height="35" as="geometry" /></mxCell><mxCell id="36" value="新一层局部 KV" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="527" y="675" width="200" height="35" as="geometry" /></mxCell><mxCell id="37" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E4F5EF;strokeColor=#127A65;arcSize=8;" vertex="1" parent="1"><mxGeometry x="964" y="582" width="386" height="160" as="geometry" /></mxCell><mxCell id="38" value="L23 … L39" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="985" y="595" width="200" height="35" as="geometry" /></mxCell><mxCell id="39" value="差异继续沿局部依赖" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="985" y="635" width="200" height="35" as="geometry" /></mxCell><mxCell id="40" value="及残差 / mHC 传播" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="985" y="675" width="207.0" height="35" as="geometry" /></mxCell><mxCell id="41" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#53677A;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="423" y="664" as="sourcePoint" /><mxPoint x="500" y="664" as="targetPoint" /></mxGeometry></mxCell><mxCell id="42" value="" style="endArrow=block;html=0;rounded=0;strokeWidth=2;strokeColor=#53677A;dashed=0;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="883" y="664" as="sourcePoint" /><mxPoint x="958" y="664" as="targetPoint" /></mxGeometry></mxCell><mxCell id="43" value="位置集合完整 ≠ 输入表示相同；实际输出是否变化仍要测量" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=25;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="57" y="780" width="525.0" height="37" as="geometry" /></mxCell><mxCell id="44" value="窗口公式：i 的局部可见范围 = [max(8064, i − 127), i]" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="57" y="824" width="660.0" height="34" as="geometry" /></mxCell></root></mxGraphModel></diagram><diagram name="03-chunk-short-extend" id="03-chunk-short-extend"><mxGraphModel dx="1400" dy="910" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1400" pageHeight="910" math="0" shadow="0"><root><mxCell id="0" /><mxCell id="1" parent="0" /><mxCell id="2" value="裁剪单位是每次 extend，短 extend 也有边界" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=32;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="45" y="20" width="672.0" height="44" as="geometry" /></mxCell><mxCell id="3" value="固定主线行为 · 32K 示例假设实际调度为四次等长 8K extend" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=19;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="45" y="71" width="513.0" height="31" as="geometry" /></mxCell><mxCell id="4" value="32K 输入分四次 extend" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=26;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="45" y="131" width="312.0" height="38" as="geometry" /></mxCell><mxCell id="5" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E9EDF1;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="48" y="188" width="310" height="167" as="geometry" /></mxCell><mxCell id="6" value="" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="313" y="188" width="45" height="167" as="geometry" /></mxCell><mxCell id="7" value="Chunk 1" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="63" y="200" width="200" height="35" as="geometry" /></mxCell><mxCell id="8" value="L0–L20：全部 8192" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=20;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="63" y="244" width="210.0" height="32" as="geometry" /></mxCell><mxCell id="9" value="L21–L39：最后 128" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=20;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="63" y="279" width="210.0" height="32" as="geometry" /></mxCell><mxCell id="10" value="8064–8191" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=19;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="63" y="311" width="200" height="31" as="geometry" /></mxCell><mxCell id="11" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E9EDF1;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="379" y="188" width="310" height="167" as="geometry" /></mxCell><mxCell id="12" value="" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="644" y="188" width="45" height="167" as="geometry" /></mxCell><mxCell id="13" value="Chunk 2" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="394" y="200" width="200" height="35" as="geometry" /></mxCell><mxCell id="14" value="L0–L20：全部 8192" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=20;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="394" y="244" width="210.0" height="32" as="geometry" /></mxCell><mxCell id="15" value="L21–L39：最后 128" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=20;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="394" y="279" width="210.0" height="32" as="geometry" /></mxCell><mxCell id="16" value="16256–16383" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=19;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="394" y="311" width="200" height="31" as="geometry" /></mxCell><mxCell id="17" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E9EDF1;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="710" y="188" width="310" height="167" as="geometry" /></mxCell><mxCell id="18" value="" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="975" y="188" width="45" height="167" as="geometry" /></mxCell><mxCell id="19" value="Chunk 3" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="725" y="200" width="200" height="35" as="geometry" /></mxCell><mxCell id="20" value="L0–L20：全部 8192" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=20;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="725" y="244" width="210.0" height="32" as="geometry" /></mxCell><mxCell id="21" value="L21–L39：最后 128" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=20;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="725" y="279" width="210.0" height="32" as="geometry" /></mxCell><mxCell id="22" value="24448–24575" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=19;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="725" y="311" width="200" height="31" as="geometry" /></mxCell><mxCell id="23" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E9EDF1;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="1041" y="188" width="310" height="167" as="geometry" /></mxCell><mxCell id="24" value="" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="1306" y="188" width="45" height="167" as="geometry" /></mxCell><mxCell id="25" value="Chunk 4" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=23;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="1056" y="200" width="200" height="35" as="geometry" /></mxCell><mxCell id="26" value="L0–L20：全部 8192" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=20;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="1056" y="244" width="210.0" height="32" as="geometry" /></mxCell><mxCell id="27" value="L21–L39：最后 128" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=20;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="1056" y="279" width="210.0" height="32" as="geometry" /></mxCell><mxCell id="28" value="32640–32767" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=19;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="1056" y="311" width="200" height="31" as="geometry" /></mxCell><mxCell id="29" value="晚层合计 4 × 128 = 512 行；各 chunk 分别设置自己的 SWA 下界" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=24;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="45" y="376" width="774.0" height="36" as="geometry" /></mxCell><mxCell id="30" value="缓存前缀 8192 + 新增 64：不会自动补齐成 128" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=27;fontColor=#142B43;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="45" y="461" width="587.25" height="39" as="geometry" /></mxCell><mxCell id="31" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E9EDF1;strokeColor=#CFD9E2;arcSize=8;" vertex="1" parent="1"><mxGeometry x="48" y="523" width="760" height="111" as="geometry" /></mxCell><mxCell id="32" value="已有前缀 0 … 8191" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=26;fontColor=#53677A;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="71" y="535" width="253.5" height="38" as="geometry" /></mxCell><mxCell id="33" value="晚层本次局部读取不会回退到此前 8128–8191" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#53677A;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="71" y="581" width="412.5" height="34" as="geometry" /></mxCell><mxCell id="34" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#E7F1FD;strokeColor=#156CBB;arcSize=8;" vertex="1" parent="1"><mxGeometry x="838" y="523" width="512" height="111" as="geometry" /></mxCell><mxCell id="35" value="本次 extend 8192 … 8255" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=25;fontColor=#156CBB;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="861" y="536" width="393.75" height="37" as="geometry" /></mxCell><mxCell id="36" value="T = min(128, 64) = 64，floor = 8192" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=21;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="861" y="582" width="466" height="33" as="geometry" /></mxCell><mxCell id="37" value="" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#FFF1D9;strokeColor=#AE6500;arcSize=8;" vertex="1" parent="1"><mxGeometry x="48" y="681" width="1302" height="165" as="geometry" /></mxCell><mxCell id="38" value="短 extend 没少算行，也可能改变注意力依赖" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=27;fontColor=#AE6500;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="70" y="693" width="486.0" height="39" as="geometry" /></mxCell><mxCell id="39" value="8192 的 SWA 只读自身；8255 的 SWA 只读 8192–8255" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="70" y="740" width="643.5" height="34" as="geometry" /></mxCell><mxCell id="40" value="短 extend 修复 PR #41303 截至 2026-10-09 未合并，不能提前当成主线行为" style="text;html=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;overflow=visible;fontFamily=Noto Sans CJK SC;fontSize=22;fontColor=#142B43;fontStyle=0;" vertex="1" parent="1"><mxGeometry x="70" y="779" width="825.0" height="34" as="geometry" /></mxCell></root></mxGraphModel></diagram></mxfile>