1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<mxfile host="app.diagrams.net">
<diagram id="dev-team-memory" name="dev.team — one model in memory at a time">
<mxGraphModel dx="1200" dy="600" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1200" pageHeight="600" background="#F5F7FC" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="<b style="font-size:25px;color:#1A237E">dev.team — one model in memory at a time</b><br><i style="font-size:14px;color:#546E7A">two hooks of the coordinator unload a model at each hand-off; llmman reloads on the next request</i>" style="text;html=1;align=center;verticalAlign=middle;strokeColor=none;fillColor=none;" vertex="1" parent="1"><mxGeometry x="150.0" y="12" width="900" height="56" as="geometry"/></mxCell>
<mxCell id="c7" value="" style="edgeStyle=none;rounded=0;html=1;strokeColor=#37474F;strokeWidth=2;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="270" y="205" as="sourcePoint"/><mxPoint x="400" y="205" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c9" value="" style="edgeStyle=none;rounded=0;html=1;strokeColor=#37474F;strokeWidth=2;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="660" y="205" as="sourcePoint"/><mxPoint x="790" y="205" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c11" value="" style="edgeStyle=none;rounded=0;html=1;strokeColor=#37474F;strokeWidth=2;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="975" y="270" as="sourcePoint"/><mxPoint x="975" y="380" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c13" value="" style="edgeStyle=none;rounded=0;html=1;strokeColor=#37474F;strokeWidth=2;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="790" y="445" as="sourcePoint"/><mxPoint x="270" y="445" as="targetPoint"/></mxGeometry></mxCell>
<mxCell id="c1" value="🔀<br><b style="font-size:16px">Coordinator</b><br><span style="font-size:11.5px;font-weight:normal">Qwen3.5-4B · 3.4 GB<br>decides: ask_agent coder</span>" style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;fillColor=#F3E5F5;gradientColor=#E1BEE7;strokeColor=#6A1B9A;strokeWidth=3;shadow=1;fontSize=20;fontColor=#4A148C;" vertex="1" parent="1"><mxGeometry x="40" y="140" width="230" height="130" as="geometry"/></mxCell>
<mxCell id="c2" value="<b>★ asks</b>" style="rounded=1;arcSize=50;html=1;fillColor=#6A1B9A;strokeColor=none;fontColor=#FFFFFF;fontSize=11;" vertex="1" parent="1"><mxGeometry x="222.8" y="128" width="57.2" height="24" as="geometry"/></mxCell>
<mxCell id="c3" value="⚙️<br><b style="font-size:16px">preAsk hook</b><br><span style="font-size:11.5px;font-weight:normal">node hooks/unload.js self<br>unloads the 4B<br>before the agent starts</span>" style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;fillColor=#FFFDE7;gradientColor=#FFF9C4;strokeColor=#F9A825;strokeWidth=2;shadow=1;fontSize=20;fontColor=#E65100;" vertex="1" parent="1"><mxGeometry x="400" y="140" width="260" height="130" as="geometry"/></mxCell>
<mxCell id="c4" value="🛠️<br><b style="font-size:16px">Team member</b><br><span style="font-size:11.5px;font-weight:normal">Mellum2 12B · 8.1 GB or Gemma 4 12B · 7.3 GB<br>loaded alone · does the work</span>" style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;fillColor=#E1F5FE;gradientColor=#B3E5FC;strokeColor=#0277BD;strokeWidth=2;shadow=1;fontSize=20;fontColor=#01579B;" vertex="1" parent="1"><mxGeometry x="790" y="140" width="370" height="130" as="geometry"/></mxCell>
<mxCell id="c5" value="⚙️<br><b style="font-size:16px">postAsk hook</b><br><span style="font-size:11.5px;font-weight:normal">node hooks/unload.js asked<br>unloads the 12B<br>before the coordinator reads</span>" style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;fillColor=#FFFDE7;gradientColor=#FFF9C4;strokeColor=#F9A825;strokeWidth=2;shadow=1;fontSize=20;fontColor=#E65100;" vertex="1" parent="1"><mxGeometry x="790" y="380" width="370" height="130" as="geometry"/></mxCell>
<mxCell id="c6" value="🔀<br><b style="font-size:16px">Coordinator</b><br><span style="font-size:11.5px;font-weight:normal">the 4B reloads alone<br>reads the answer · next step</span>" style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;fillColor=#F3E5F5;gradientColor=#E1BEE7;strokeColor=#6A1B9A;strokeWidth=3;shadow=1;fontSize=20;fontColor=#4A148C;" vertex="1" parent="1"><mxGeometry x="40" y="380" width="230" height="130" as="geometry"/></mxCell>
<mxCell id="c8" value="<b style="font-size:12.5px;color:#263238">ask_agent</b>" style="text;html=1;align=center;verticalAlign=middle;fillColor=#FFFFFF;strokeColor=none;rounded=1;" vertex="1" parent="1"><mxGeometry x="295.0" y="221.0" width="80" height="24" as="geometry"/></mxCell>
<mxCell id="c10" value="<b style="font-size:12.5px;color:#263238">keep_alive: 0</b><br><span style="font-size:10.5px;color:#78909C">POST /api/generate</span>" style="text;html=1;align=center;verticalAlign=middle;fillColor=#FFFFFF;strokeColor=none;rounded=1;" vertex="1" parent="1"><mxGeometry x="670.0" y="185.0" width="110" height="40" as="geometry"/></mxCell>
<mxCell id="c12" value="<b style="font-size:12.5px;color:#263238">answer</b>" style="text;html=1;align=center;verticalAlign=middle;fillColor=#FFFFFF;strokeColor=none;rounded=1;" vertex="1" parent="1"><mxGeometry x="975.0" y="313.0" width="70" height="24" as="geometry"/></mxCell>
<mxCell id="c14" value="<b style="font-size:12.5px;color:#263238">answer, then</b><br><span style="font-size:10.5px;color:#78909C">the 4B reloads</span>" style="text;html=1;align=center;verticalAlign=middle;fillColor=#FFFFFF;strokeColor=none;rounded=1;" vertex="1" parent="1"><mxGeometry x="470.0" y="425.0" width="120" height="40" as="geometry"/></mxCell>
<mxCell id="c15" value="Peak: one 12B model (~8 GB + KV cache at 32k) — reformulator &amp; reviewer share Gemma, coder &amp; tutor share Mellum2." style="text;html=1;align=center;verticalAlign=middle;strokeColor=none;fillColor=none;fontSize=12;fontColor=#455A64;fontStyle=2;" vertex="1" parent="1"><mxGeometry x="179.64" y="548" width="840.72" height="18" as="geometry"/></mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
|