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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<mxfile host="app.diagrams.net" agent="razorbill docs" version="24.7.0">
<diagram id="packages" name="razorbill modules">
<mxGraphModel dx="1200" dy="800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1240" pageHeight="760" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="title" value="<b>razorbill v0.2 — Swift modules and their dependencies</b><br>Arrows point from a module to what it imports. Dashed: linked on macOS only." style="text;html=1;align=left;verticalAlign=top;fontSize=14;" vertex="1" parent="1">
<mxGeometry x="40" y="20" width="760" height="50" as="geometry" />
</mxCell>
<mxCell id="grp-repo" value="This package (Package.swift)" style="rounded=1;whiteSpace=wrap;html=1;dashed=1;fillColor=none;strokeColor=#6c8ebf;verticalAlign=top;align=left;spacingLeft=10;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="40" y="90" width="700" height="620" as="geometry" />
</mxCell>
<mxCell id="grp-ext" value="Third-party packages" style="rounded=1;whiteSpace=wrap;html=1;dashed=1;fillColor=none;strokeColor=#999999;verticalAlign=top;align=left;spacingLeft=10;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="780" y="90" width="420" height="620" as="geometry" />
</mxCell>
<mxCell id="rzb" value="<b>rzb</b> (executable)<br><font style="font-size:11px">registers the engines (mlx, fake) and starts the CLI</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;shadow=1;" vertex="1" parent="1">
<mxGeometry x="250" y="130" width="260" height="60" as="geometry" />
</mxCell>
<mxCell id="cli" value="<b>RazorbillCLI</b><br><font style="font-size:11px">commands: serve, config validate, models, version; console I/O, request log</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=1;" vertex="1" parent="1">
<mxGeometry x="80" y="260" width="280" height="70" as="geometry" />
</mxCell>
<mxCell id="server" value="<b>RazorbillServer</b><br><font style="font-size:11px">OpenAI-compatible HTTP API: routes, streaming (SSE), errors, API key, model manager. No MLX.</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=1;" vertex="1" parent="1">
<mxGeometry x="80" y="400" width="280" height="70" as="geometry" />
</mxCell>
<mxCell id="mlx" value="<b>RazorbillMLX</b><br><font style="font-size:11px">MLX engines: chat, raw completion, thinking budget, constrained decoding, embeddings (empty on Linux)</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=1;" vertex="1" parent="1">
<mxGeometry x="430" y="260" width="280" height="70" as="geometry" />
</mxCell>
<mxCell id="core" value="<b>RazorbillCore</b><br><font style="font-size:11px">engine protocol, settings, output constraints, server configuration, model catalog and cache, fake engine. No MLX.</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;shadow=1;" vertex="1" parent="1">
<mxGeometry x="230" y="560" width="300" height="80" as="geometry" />
</mxCell>
<mxCell id="argparser" value="<b>swift-argument-parser</b><br><font style="font-size:11px">command-line parsing</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="820" y="130" width="340" height="50" as="geometry" />
</mxCell>
<mxCell id="mlxlm" value="<b>mlx-swift-lm</b> (MLXLLM, MLXLMCommon, MLXHuggingFace, MLXGuidedGeneration, MLXEmbedders)<br><font style="font-size:11px">LLM and embedding models, ChatSession, tool calls, thinking budget, XGrammar; on mlx-swift / Metal</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="820" y="230" width="340" height="60" as="geometry" />
</mxCell>
<mxCell id="hf" value="<b>swift-huggingface</b><br><font style="font-size:11px">Hugging Face Hub client: model downloads</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="820" y="320" width="340" height="50" as="geometry" />
</mxCell>
<mxCell id="tokenizers" value="<b>swift-transformers</b> (Tokenizers)<br><font style="font-size:11px">tokenizers and chat templates</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="820" y="400" width="340" height="50" as="geometry" />
</mxCell>
<mxCell id="hummingbird" value="<b>Hummingbird 2</b>, swift-service-lifecycle, swift-log<br><font style="font-size:11px">HTTP server, graceful shutdown, logging</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="820" y="485" width="340" height="60" as="geometry" />
</mxCell>
<mxCell id="yams" value="<b>Yams</b><br><font style="font-size:11px">YAML parsing (with line numbers for errors)</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="820" y="575" width="340" height="50" as="geometry" />
</mxCell>
<mxCell id="e1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="rzb" target="cli">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e2" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="rzb" target="mlx">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e3" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="cli" target="server">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e4" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="cli" target="core">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="60" y="295" />
<mxPoint x="60" y="600" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="e5" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="server" target="core">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e6" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#333333;" edge="1" parent="1" source="mlx" target="core">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e7" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#666666;" edge="1" parent="1" source="cli" target="argparser">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="220" y="220" />
<mxPoint x="760" y="220" />
<mxPoint x="760" y="155" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="e8" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;dashed=1;strokeColor=#b85450;" edge="1" parent="1" source="mlx" target="mlxlm">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e9" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;dashed=1;strokeColor=#b85450;" edge="1" parent="1" source="mlx" target="hf">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e10" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;dashed=1;strokeColor=#b85450;" edge="1" parent="1" source="mlx" target="tokenizers">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e11" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#666666;" edge="1" parent="1" source="core" target="yams">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e12" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;strokeColor=#666666;" edge="1" parent="1" source="server" target="hummingbird">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="760" y="435" />
<mxPoint x="760" y="515" />
</Array>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
|