Files
simple-llm/doc/bpe_algorithm.drawio
2025-07-11 12:21:33 +03:00

52 lines
3.1 KiB
Plaintext

<mxfile>
<diagram name="Page-1">
<mxGraphModel dx="1200" dy="580">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="2" value="Начало" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="100" y="60" width="120" height="60"/>
</mxCell>
<mxCell id="3" value="Разбить текст на символы" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="100" y="160" width="120" height="80"/>
</mxCell>
<mxCell id="4" value="" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2" target="3" edge="1">
<mxGeometry relative="1"/>
</mxCell>
<mxCell id="5" value="Подсчитать частоты пар" style="whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="100" y="280" width="120" height="60"/>
</mxCell>
<mxCell id="6" value="" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="3" target="5" edge="1">
<mxGeometry relative="1"/>
</mxCell>
<mxCell id="7" value="Выбрать наиболее частую пару" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="100" y="380" width="120" height="80"/>
</mxCell>
<mxCell id="8" value="" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="5" target="7" edge="1">
<mxGeometry relative="1"/>
</mxCell>
<mxCell id="9" value="Заменить пару новым токеном" style="whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="100" y="500" width="120" height="60"/>
</mxCell>
<mxCell id="10" value="" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="7" target="9" edge="1">
<mxGeometry relative="1"/>
</mxCell>
<mxCell id="11" value="Достигнут лимит словаря?" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="100" y="600" width="120" height="80"/>
</mxCell>
<mxCell id="12" value="" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="9" target="11" edge="1">
<mxGeometry relative="1"/>
</mxCell>
<mxCell id="13" value="Конец" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="100" y="720" width="120" height="60"/>
</mxCell>
<mxCell id="14" value="Да" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="11" target="13" edge="1">
<mxGeometry relative="1"/>
</mxCell>
<mxCell id="15" value="Нет" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="11" target="5" edge="1">
<mxGeometry relative="1"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>