Models-Phi-8B/docs/diagrams/02-containers.drawio

53 lines
6.3 KiB
Plaintext

<mxfile host="app.diagrams.net" modified="2026-10-15T15:00:00.000Z" agent="Copilot" version="24.7.17">
<diagram id="containers" name="C4 Level 2 - Containers">
<mxGraphModel dx="1422" dy="794" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1800" pageHeight="1000" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="Medical PHI Model - C4 Level 2: Containers" style="text;html=1;align=center;fontSize=24;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="450" y="20" width="900" height="40" as="geometry"/>
</mxCell>
<mxCell id="boundary" value="Medical PHI Model Repository" style="swimlane;html=1;startSize=35;rounded=1;fillColor=none;strokeColor=#1168bd;fontSize=16;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="240" y="80" width="1320" height="780" as="geometry"/>
</mxCell>
<mxCell id="operator" value="&lt;b&gt;Operator&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=14" vertex="1" parent="1">
<mxGeometry x="30" y="380" width="150" height="70" as="geometry"/>
</mxCell>
<mxCell id="catalogs" value="&lt;b&gt;Catalogs and Patterns&lt;/b&gt;&lt;br&gt;Text files&lt;br&gt;12 categories, variants, subjects, positive/negative templates" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#438dd5;strokeColor=#0b4884;fontColor=#ffffff;fontSize=13" vertex="1" parent="boundary">
<mxGeometry x="50" y="80" width="250" height="130" as="geometry"/>
</mxCell>
<mxCell id="api" value="&lt;b&gt;Generator API&lt;/b&gt;&lt;br&gt;ASP.NET Core / .NET 10&lt;br&gt;Validates inputs, plans examples, calls LM Studio, persists ordered batches" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#438dd5;strokeColor=#0b4884;fontColor=#ffffff;fontSize=13" vertex="1" parent="boundary">
<mxGeometry x="380" y="80" width="280" height="140" as="geometry"/>
</mxCell>
<mxCell id="sql" value="&lt;b&gt;Training Database&lt;/b&gt;&lt;br&gt;SQL Server&lt;br&gt;Categories, keywords, generation runs, training items" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;fillColor=#438dd5;strokeColor=#0b4884;fontColor=#ffffff;fontSize=13" vertex="1" parent="boundary">
<mxGeometry x="760" y="80" width="250" height="140" as="geometry"/>
</mxCell>
<mxCell id="jsonl" value="&lt;b&gt;Training Data&lt;/b&gt;&lt;br&gt;JSONL files&lt;br&gt;Source, train, validation, development" style="shape=folder;tabWidth=60;tabHeight=20;tabPosition=left;html=1;whiteSpace=wrap;fillColor=#438dd5;strokeColor=#0b4884;fontColor=#ffffff;fontSize=13" vertex="1" parent="boundary">
<mxGeometry x="760" y="330" width="250" height="130" as="geometry"/>
</mxCell>
<mxCell id="pipeline" value="&lt;b&gt;Training Pipeline&lt;/b&gt;&lt;br&gt;Python 3.12 / PyTorch / TRL / PEFT&lt;br&gt;Validate, split, SFT, train, evaluate, merge" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#438dd5;strokeColor=#0b4884;fontColor=#ffffff;fontSize=13" vertex="1" parent="boundary">
<mxGeometry x="380" y="540" width="280" height="140" as="geometry"/>
</mxCell>
<mxCell id="artifacts" value="&lt;b&gt;Model Artifacts&lt;/b&gt;&lt;br&gt;Filesystem&lt;br&gt;LoRA adapters, metrics, merged BF16 model, untracked-process GGUF" style="shape=folder;tabWidth=60;tabHeight=20;tabPosition=left;html=1;whiteSpace=wrap;fillColor=#438dd5;strokeColor=#0b4884;fontColor=#ffffff;fontSize=13" vertex="1" parent="boundary">
<mxGeometry x="50" y="540" width="250" height="140" as="geometry"/>
</mxCell>
<mxCell id="lm" value="&lt;b&gt;LM Studio&lt;/b&gt;&lt;br&gt;OpenAI-compatible API&lt;br&gt;qwen/qwen3.5-9b normalization" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#999999;strokeColor=#666666;fontColor=#ffffff;fontSize=13" vertex="1" parent="1">
<mxGeometry x="1600" y="190" width="170" height="110" as="geometry"/>
</mxCell>
<mxCell id="base" value="&lt;b&gt;Base Model&lt;/b&gt;&lt;br&gt;Local Llama3-OpenBioLLM-8B" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#999999;strokeColor=#666666;fontColor=#ffffff;fontSize=13" vertex="1" parent="1">
<mxGeometry x="1600" y="600" width="170" height="100" as="geometry"/>
</mxCell>
<mxCell id="e1" value="Runs" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="operator" target="api"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="e2" value="Reads" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="catalogs" target="api"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="e3" value="Normalizes text" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="api" target="lm"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="e4" value="Persists and checkpoints" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="api" target="sql"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="e5" value="PowerShell export" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="sql" target="jsonl"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="e6" value="Reads and rewrites" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="jsonl" target="pipeline"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="e7" value="Loads weights/tokenizer" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="base" target="pipeline"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="e8" value="Writes" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="pipeline" target="artifacts"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="e9" value="Operates/reviews" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="operator" target="pipeline"><mxGeometry relative="1" as="geometry"/></mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>