@simplexai/localmodels-linux-arm64 0.1.0-dev.103 → 0.1.0-dev.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/LICENSE +201 -0
  2. package/{modules/simplex_localmodels-0.1.0.dev103.dist-info/licenses/NOTICE → NOTICE} +42 -13
  3. package/README.md +10 -0
  4. package/bootstrap.identity +1 -1
  5. package/bootstrap.sha256 +126 -127
  6. package/modules/localmodels/__init__.py +1 -1
  7. package/modules/localmodels/catalog.json +130 -127
  8. package/modules/localmodels/catalog.py +7 -3
  9. package/modules/localmodels/catalog_recipes.py +3 -3
  10. package/modules/localmodels/cli_parser.py +3 -3
  11. package/modules/localmodels/component.py +1 -1
  12. package/modules/localmodels/console.py +1 -1
  13. package/modules/localmodels/context_policy.py +6 -5
  14. package/modules/localmodels/debug_cli.py +0 -12
  15. package/modules/localmodels/debug_mode.py +0 -6
  16. package/modules/localmodels/decode_calibration.json +3 -4
  17. package/modules/localmodels/decode_calibration.py +5 -2
  18. package/modules/localmodels/deployment_lifecycle.py +1 -1
  19. package/modules/localmodels/download-mirrors.json +1 -1
  20. package/modules/localmodels/engine_adapters/base.py +11 -1
  21. package/modules/localmodels/engine_adapters/strata_poly.py +65 -3
  22. package/modules/localmodels/engine_adapters/suite_plan.py +57 -20
  23. package/modules/localmodels/engines-b11583.json +6 -26
  24. package/modules/localmodels/engines-b12588-mix-c0c3de8.json +3 -15
  25. package/modules/localmodels/engines-b12757-mix-ef2df21.json +3 -15
  26. package/modules/localmodels/engines-prism-b12178-03ec600.json +3 -15
  27. package/modules/localmodels/engines-speechcpp-v0.11.3.json +4 -20
  28. package/modules/localmodels/engines-strata-0.1.47.json +1 -5
  29. package/modules/localmodels/engines-strata-0.1.49.2.json +1 -5
  30. package/modules/localmodels/engines-strata-0.1.59.1.json +1 -5
  31. package/modules/localmodels/engines-strata-poly-0.2.20-poly.1.json +6 -30
  32. package/modules/localmodels/engines-strata-poly-0.2.20-poly.9.json +129 -0
  33. package/modules/localmodels/engines-whisper-b5454.json +6 -30
  34. package/modules/localmodels/engines.json +13 -61
  35. package/modules/localmodels/estimator.py +10 -5
  36. package/modules/localmodels/gpu_specs.py +1 -1
  37. package/modules/localmodels/hosts.py +12 -16
  38. package/modules/localmodels/kokoro-tts-0.6.1.txt +1 -1
  39. package/modules/localmodels/library_elastic.py +135 -6
  40. package/modules/localmodels/library_kept.py +9 -1
  41. package/modules/localmodels/library_model.py +28 -1
  42. package/modules/localmodels/library_poly.py +109 -11
  43. package/modules/localmodels/library_pricing.py +12 -3
  44. package/modules/localmodels/library_serve.py +134 -67
  45. package/modules/localmodels/library_smoke.py +63 -5
  46. package/modules/localmodels/library_state.py +3 -2
  47. package/modules/localmodels/library_status.py +8 -1
  48. package/modules/localmodels/llm_rank.py +13 -8
  49. package/modules/localmodels/metal.py +1 -2
  50. package/modules/localmodels/plan_envelope.py +29 -11
  51. package/modules/localmodels/planning/budget.py +14 -12
  52. package/modules/localmodels/planning/memory_pools.py +7 -1
  53. package/modules/localmodels/privacy_acceptance.py +6 -5
  54. package/modules/localmodels/py.typed +0 -0
  55. package/modules/localmodels/quant_formats.py +1 -1
  56. package/modules/localmodels/recommend_cli.py +1 -1
  57. package/modules/localmodels/remote_ops_launchd.py +8 -1
  58. package/modules/localmodels/runtime_process.py +1 -1
  59. package/modules/localmodels/service_deployment.py +2 -4
  60. package/modules/localmodels/service_probe.py +59 -13
  61. package/modules/localmodels/setup_inspection.py +72 -70
  62. package/modules/localmodels/setup_text.py +7 -56
  63. package/modules/localmodels/sidecar_downloads.py +34 -0
  64. package/modules/localmodels/sidecar_http.py +61 -5
  65. package/modules/localmodels/sidecar_state.py +52 -2
  66. package/modules/localmodels/speech_admission.py +20 -4
  67. package/modules/localmodels/speech_catalog.py +23 -0
  68. package/modules/localmodels/speech_cli.py +10 -2
  69. package/modules/localmodels/speech_jobs.py +42 -17
  70. package/modules/localmodels/speech_server.py +182 -81
  71. package/modules/localmodels/speech_state.py +4 -1
  72. package/modules/localmodels/speech_workers.py +11 -0
  73. package/modules/localmodels/stack.py +1 -1
  74. package/modules/localmodels/stack_args.py +6 -6
  75. package/modules/localmodels/stack_auto.py +1 -1
  76. package/modules/localmodels/stack_aux_gpu.py +1 -1
  77. package/modules/localmodels/stack_cleanup.py +21 -18
  78. package/modules/localmodels/stack_cli.py +6 -2
  79. package/modules/localmodels/stack_compose.py +11 -4
  80. package/modules/localmodels/stack_debug.py +1 -2
  81. package/modules/localmodels/stack_decision.py +4 -4
  82. package/modules/localmodels/stack_doctor.py +2 -2
  83. package/modules/localmodels/stack_events.py +1 -1
  84. package/modules/localmodels/stack_gpu_memory.py +1 -1
  85. package/modules/localmodels/stack_hardware.py +3 -3
  86. package/modules/localmodels/stack_mcp.py +1 -2
  87. package/modules/localmodels/stack_picks.py +1 -1
  88. package/modules/localmodels/stack_plan.py +9 -9
  89. package/modules/localmodels/stack_ports.py +31 -4
  90. package/modules/localmodels/stack_rollback.py +1 -1
  91. package/modules/localmodels/stack_run.py +1 -1
  92. package/modules/localmodels/stack_suite.py +61 -12
  93. package/modules/localmodels/stack_view_agent.py +1 -1
  94. package/modules/localmodels/stack_view_serve.py +0 -2
  95. package/modules/localmodels/stack_view_words.py +2 -2
  96. package/modules/localmodels/stack_warm.py +2 -2
  97. package/modules/localmodels/stack_whatif.py +524 -41
  98. package/modules/localmodels/stack_whatif_html.py +903 -0
  99. package/modules/localmodels/startlux-decide-83fe6c7d.txt +2 -2
  100. package/modules/localmodels/{strata-poly-serve-0.2.20-poly.7.txt → strata-poly-serve-0.2.20-poly.9.txt} +1 -1
  101. package/modules/localmodels/strata_poly_server.py +114 -3
  102. package/modules/localmodels/suite.py +137 -5
  103. package/modules/localmodels/tts_admission.py +2 -17
  104. package/modules/localmodels/tts_catalog.py +29 -1
  105. package/modules/localmodels/tts_cli.py +23 -4
  106. package/modules/localmodels/tts_http.py +10 -4
  107. package/modules/localmodels/tts_jobs.py +49 -19
  108. package/modules/localmodels/tts_server.py +1 -1
  109. package/modules/localmodels/tts_sidecar.py +66 -28
  110. package/modules/localmodels/tts_state.py +7 -2
  111. package/modules/localmodels/vision.py +5 -3
  112. package/modules/localmodels/web/view/ASSET-SOURCES.md +4 -7
  113. package/modules/localmodels/web/view/view.css +0 -1
  114. package/modules/localmodels/web/view/view.js +2 -5
  115. package/modules/localmodels/web/whatif/app.js +730 -0
  116. package/modules/localmodels/web/whatif/page.html +1172 -0
  117. package/modules/localmodels/web/whatif/sim.js +303 -0
  118. package/modules/localmodels/windows_job.py +179 -11
  119. package/modules/simplex_localmodels-0.1.0.dev104.dist-info/METADATA +14 -0
  120. package/modules/{simplex_localmodels-0.1.0.dev103.dist-info → simplex_localmodels-0.1.0.dev104.dist-info}/RECORD +118 -114
  121. package/modules/simplex_localmodels-0.1.0.dev104.dist-info/licenses/LICENSE +201 -0
  122. package/modules/simplex_localmodels-0.1.0.dev104.dist-info/licenses/NOTICE +126 -0
  123. package/package.json +11 -2
  124. package/tool.json +1 -1
  125. package/modules/localmodels/engines-strata-poly-0.2.20-poly.7.json +0 -94
  126. package/modules/localmodels/fixtures/stack-research-demo-plan.json +0 -1059
  127. package/modules/localmodels/stack_research.py +0 -716
  128. package/modules/localmodels/stack_research_demo.py +0 -125
  129. package/modules/localmodels/stack_research_plan.py +0 -146
  130. package/modules/localmodels/web/index.html +0 -2605
  131. package/modules/localmodels/web/sizecalc/app.js +0 -1306
  132. package/modules/localmodels/web/sizecalc/calc.js +0 -269
  133. package/modules/localmodels/web/sizecalc/page.html +0 -520
  134. package/modules/localmodels/web/view/logo-claude.svg +0 -3
  135. package/modules/localmodels/web/view/logo-codex.png +0 -0
  136. package/modules/simplex_localmodels-0.1.0.dev103.dist-info/METADATA +0 -9
  137. /package/modules/{simplex_localmodels-0.1.0.dev103.dist-info → simplex_localmodels-0.1.0.dev104.dist-info}/WHEEL +0 -0
  138. /package/modules/{simplex_localmodels-0.1.0.dev103.dist-info → simplex_localmodels-0.1.0.dev104.dist-info}/entry_points.txt +0 -0
  139. /package/modules/{simplex_localmodels-0.1.0.dev103.dist-info → simplex_localmodels-0.1.0.dev104.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -0,0 +1,1172 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="color-scheme" content="light dark">
7
+ <title>localmodels 智能推荐推演模拟器 · stack what-if</title>
8
+ <script>try{var t=localStorage.getItem("localmodels.theme")||localStorage.getItem("lm-theme");if(t==="light"||t==="dark")document.documentElement.dataset.theme=t;}catch(e){}</script>
9
+ <style>
10
+ :root {
11
+ --bg: #fbfbfa;
12
+ --surface: #ffffff;
13
+ --surface-2: #f4f4f2;
14
+ --surface-3: #ecece9;
15
+ --ink: #171717;
16
+ --ink-2: #4b4b48;
17
+ --muted: #6e6e6a;
18
+ --line: #eaeae6;
19
+ --line-2: #d4d4ce;
20
+ --accent: #18181b;
21
+ --accent-ink: #ffffff;
22
+ --spot-blue-bg: #eef4ff;
23
+ --spot-blue-ink: #1d4ed8;
24
+ --spot-blue-bd: #c7dcff;
25
+ --spot-green-bg: #eefaf2;
26
+ --spot-green-ink: #166534;
27
+ --spot-green-bd: #bbf0cd;
28
+ --spot-amber-bg: #fff8eb;
29
+ --spot-amber-ink: #9a5200;
30
+ --spot-amber-bd: #fde1a9;
31
+ --spot-rose-bg: #fff1f2;
32
+ --spot-rose-ink: #b91c1c;
33
+ --spot-rose-bd: #fecdd3;
34
+ --spot-slate-bg: #f3f4f6;
35
+ --spot-slate-ink: #374151;
36
+ --bar-llm: #2563eb;
37
+ --bar-dec: #7c3aed;
38
+ --bar-used: #d97706;
39
+ --bar-floor: #94a3b8;
40
+ --bar-warn: #f59e0b;
41
+ --f-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "STSong", serif;
42
+ --f-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
43
+ --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
44
+ --r: 12px;
45
+ --r-sm: 8px;
46
+ --r-pill: 999px;
47
+ }
48
+
49
+ @media (prefers-color-scheme: dark) {
50
+ :root:not([data-theme="light"]) {
51
+ --bg: #111113;
52
+ --surface: #19191d;
53
+ --surface-2: #212126;
54
+ --surface-3: #2a2a31;
55
+ --ink: #f1f1f4;
56
+ --ink-2: #c5c5ce;
57
+ --muted: #93939f;
58
+ --line: #2b2b33;
59
+ --line-2: #3d3d47;
60
+ --accent: #f4f4f5;
61
+ --accent-ink: #111113;
62
+ --spot-blue-bg: #17243d;
63
+ --spot-blue-ink: #93c5fd;
64
+ --spot-blue-bd: #1e3a6d;
65
+ --spot-green-bg: #122a1d;
66
+ --spot-green-ink: #86efac;
67
+ --spot-green-bd: #1d4d34;
68
+ --spot-amber-bg: #2e210e;
69
+ --spot-amber-ink: #fcd34d;
70
+ --spot-amber-bd: #593b14;
71
+ --spot-rose-bg: #31151b;
72
+ --spot-rose-ink: #fda4af;
73
+ --spot-rose-bd: #60222d;
74
+ --spot-slate-bg: #24242b;
75
+ --spot-slate-ink: #d4d4dc;
76
+ --bar-llm: #60a5fa;
77
+ --bar-dec: #a78bfa;
78
+ --bar-used: #fbbf24;
79
+ --bar-floor: #64748b;
80
+ --bar-warn: #f59e0b;
81
+ color-scheme: dark;
82
+ }
83
+ }
84
+ :root[data-theme="light"] { color-scheme: light; }
85
+ :root[data-theme="dark"] {
86
+ --bg: #111113;
87
+ --surface: #19191d;
88
+ --surface-2: #212126;
89
+ --surface-3: #2a2a31;
90
+ --ink: #f1f1f4;
91
+ --ink-2: #c5c5ce;
92
+ --muted: #93939f;
93
+ --line: #2b2b33;
94
+ --line-2: #3d3d47;
95
+ --accent: #f4f4f5;
96
+ --accent-ink: #111113;
97
+ --spot-blue-bg: #17243d;
98
+ --spot-blue-ink: #93c5fd;
99
+ --spot-blue-bd: #1e3a6d;
100
+ --spot-green-bg: #122a1d;
101
+ --spot-green-ink: #86efac;
102
+ --spot-green-bd: #1d4d34;
103
+ --spot-amber-bg: #2e210e;
104
+ --spot-amber-ink: #fcd34d;
105
+ --spot-amber-bd: #593b14;
106
+ --spot-rose-bg: #31151b;
107
+ --spot-rose-ink: #fda4af;
108
+ --spot-rose-bd: #60222d;
109
+ --spot-slate-bg: #24242b;
110
+ --spot-slate-ink: #d4d4dc;
111
+ --bar-llm: #60a5fa;
112
+ --bar-dec: #a78bfa;
113
+ --bar-used: #fbbf24;
114
+ --bar-floor: #64748b;
115
+ --bar-warn: #f59e0b;
116
+ color-scheme: dark;
117
+ }
118
+
119
+ @media (prefers-reduced-motion: reduce) {
120
+ *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
121
+ }
122
+
123
+ * { box-sizing: border-box; }
124
+ [hidden] { display: none !important; }
125
+ html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
126
+ body {
127
+ margin: 0;
128
+ background: var(--bg);
129
+ color: var(--ink);
130
+ font-family: var(--f-sans);
131
+ font-size: 14px;
132
+ line-height: 1.6;
133
+ -webkit-font-smoothing: antialiased;
134
+ }
135
+ code, .mono { font-family: var(--f-mono); font-size: 0.88em; }
136
+ .tnum { font-variant-numeric: tabular-nums; }
137
+
138
+ /* Sticky topbar */
139
+ .topbar {
140
+ position: sticky;
141
+ top: 0;
142
+ z-index: 30;
143
+ background: color-mix(in srgb, var(--bg) 90%, transparent);
144
+ backdrop-filter: blur(10px);
145
+ -webkit-backdrop-filter: blur(10px);
146
+ border-bottom: 1px solid var(--line);
147
+ }
148
+ .topbar-in {
149
+ max-width: 1280px;
150
+ margin: 0 auto;
151
+ padding: 10px max(16px, env(safe-area-inset-left, 0px));
152
+ display: flex;
153
+ align-items: center;
154
+ justify-content: space-between;
155
+ gap: 12px;
156
+ }
157
+ .brand {
158
+ display: flex;
159
+ align-items: center;
160
+ gap: 10px;
161
+ min-width: 0;
162
+ }
163
+ .brand-dot {
164
+ width: 8px;
165
+ height: 8px;
166
+ border-radius: 50%;
167
+ background: var(--ink);
168
+ flex: 0 0 auto;
169
+ }
170
+ .brand-name {
171
+ font-weight: 650;
172
+ font-size: 13.5px;
173
+ letter-spacing: -0.01em;
174
+ white-space: nowrap;
175
+ }
176
+ .ver-pill {
177
+ font-family: var(--f-mono);
178
+ font-size: 11px;
179
+ color: var(--muted);
180
+ background: var(--surface-2);
181
+ border: 1px solid var(--line);
182
+ border-radius: var(--r-pill);
183
+ padding: 2px 8px;
184
+ white-space: nowrap;
185
+ }
186
+ .nav-links {
187
+ display: flex;
188
+ align-items: center;
189
+ gap: 16px;
190
+ }
191
+ .nav-links a {
192
+ color: var(--muted);
193
+ text-decoration: none;
194
+ font-size: 13px;
195
+ transition: color 0.15s;
196
+ }
197
+ .nav-links a:hover { color: var(--ink); }
198
+ .topbar-actions {
199
+ display: flex;
200
+ align-items: center;
201
+ gap: 8px;
202
+ flex: 0 0 auto;
203
+ }
204
+ .btn-ghost {
205
+ font: inherit;
206
+ font-size: 12px;
207
+ padding: 5px 11px;
208
+ border-radius: var(--r-sm);
209
+ border: 1px solid var(--line-2);
210
+ background: var(--surface);
211
+ color: var(--ink-2);
212
+ cursor: pointer;
213
+ white-space: nowrap;
214
+ transition: border-color 0.15s, color 0.15s, background 0.15s;
215
+ }
216
+ .btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
217
+ .btn-ghost[aria-pressed="true"] {
218
+ background: var(--accent);
219
+ color: var(--accent-ink);
220
+ border-color: var(--accent);
221
+ }
222
+ .btn-ghost:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
223
+ outline: 2px solid var(--bar-llm);
224
+ outline-offset: 2px;
225
+ }
226
+
227
+ @media (max-width: 720px) {
228
+ .nav-links { display: none; }
229
+ }
230
+ @media (max-width: 440px) {
231
+ .ver-pill { display: none; }
232
+ }
233
+
234
+ /* Main container */
235
+ .wrap {
236
+ max-width: 1280px;
237
+ margin: 0 auto;
238
+ padding: 36px max(16px, env(safe-area-inset-left, 0px)) 72px;
239
+ }
240
+
241
+ /* Hero */
242
+ .hero {
243
+ display: grid;
244
+ gap: 14px;
245
+ padding-bottom: 28px;
246
+ border-bottom: 1px solid var(--line);
247
+ margin-bottom: 28px;
248
+ }
249
+ .eyebrow {
250
+ font-size: 11.5px;
251
+ letter-spacing: 0.1em;
252
+ text-transform: uppercase;
253
+ color: var(--muted);
254
+ font-weight: 600;
255
+ }
256
+ .hero h1 {
257
+ margin: 0;
258
+ font-family: var(--f-serif);
259
+ font-size: clamp(26px, 3.6vw, 40px);
260
+ font-weight: 600;
261
+ line-height: 1.2;
262
+ letter-spacing: -0.02em;
263
+ text-wrap: balance;
264
+ }
265
+ .hero-lede {
266
+ margin: 0;
267
+ color: var(--ink-2);
268
+ font-size: 15px;
269
+ max-width: 74ch;
270
+ }
271
+ .kpi-strip {
272
+ display: grid;
273
+ grid-template-columns: repeat(4, minmax(0, 1fr));
274
+ gap: 10px;
275
+ margin-top: 6px;
276
+ }
277
+ @media (max-width: 780px) {
278
+ .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
279
+ }
280
+ .kpi-card {
281
+ background: var(--surface);
282
+ border: 1px solid var(--line);
283
+ border-radius: var(--r-sm);
284
+ padding: 10px 14px;
285
+ }
286
+ .kpi-label { font-size: 11.5px; color: var(--muted); }
287
+ .kpi-val { font-family: var(--f-mono); font-size: 14px; font-weight: 650; margin-top: 2px; }
288
+
289
+ /* Sections */
290
+ .section {
291
+ margin-bottom: 48px;
292
+ scroll-margin-top: 64px;
293
+ }
294
+ .sec-head {
295
+ display: flex;
296
+ flex-wrap: wrap;
297
+ align-items: baseline;
298
+ justify-content: space-between;
299
+ gap: 8px 16px;
300
+ margin-bottom: 16px;
301
+ }
302
+ .sec-head h2 {
303
+ margin: 0;
304
+ font-family: var(--f-serif);
305
+ font-size: clamp(20px, 2.4vw, 26px);
306
+ font-weight: 600;
307
+ letter-spacing: -0.015em;
308
+ }
309
+ .sec-sub { color: var(--muted); font-size: 13px; margin: 0; }
310
+
311
+ /* Presets */
312
+ .presets-row {
313
+ display: flex;
314
+ flex-wrap: wrap;
315
+ gap: 6px;
316
+ margin-bottom: 16px;
317
+ }
318
+ .preset-chip {
319
+ font: inherit;
320
+ font-size: 12px;
321
+ padding: 4px 11px;
322
+ border-radius: var(--r-pill);
323
+ border: 1px solid var(--line-2);
324
+ background: var(--surface);
325
+ color: var(--ink-2);
326
+ cursor: pointer;
327
+ white-space: nowrap;
328
+ transition: background 0.14s, color 0.14s, border-color 0.14s;
329
+ }
330
+ .preset-chip:hover { border-color: var(--ink); color: var(--ink); }
331
+ .preset-chip.active {
332
+ background: var(--accent);
333
+ color: var(--accent-ink);
334
+ border-color: var(--accent);
335
+ font-weight: 550;
336
+ }
337
+
338
+ /* Pin & Compare bar */
339
+ .compare-bar {
340
+ background: var(--surface);
341
+ border: 1px solid var(--line-2);
342
+ border-radius: var(--r);
343
+ padding: 12px 16px;
344
+ margin-bottom: 16px;
345
+ display: grid;
346
+ gap: 10px;
347
+ }
348
+ .compare-top {
349
+ display: flex;
350
+ flex-wrap: wrap;
351
+ align-items: center;
352
+ justify-content: space-between;
353
+ gap: 8px 14px;
354
+ }
355
+ .compare-title { font-size: 12.5px; color: var(--ink-2); }
356
+ .compare-title strong { color: var(--ink); }
357
+ .compare-grid {
358
+ display: grid;
359
+ grid-template-columns: repeat(2, minmax(0, 1fr));
360
+ gap: 10px;
361
+ }
362
+ @media (max-width: 720px) {
363
+ .compare-grid { grid-template-columns: minmax(0, 1fr); }
364
+ }
365
+ .compare-col {
366
+ background: var(--surface-2);
367
+ border: 1px solid var(--line);
368
+ border-radius: var(--r-sm);
369
+ padding: 10px 12px;
370
+ font-size: 12.5px;
371
+ }
372
+ .compare-col-tag {
373
+ font-size: 11px;
374
+ text-transform: uppercase;
375
+ letter-spacing: 0.06em;
376
+ color: var(--muted);
377
+ margin-bottom: 4px;
378
+ }
379
+ .compare-deltas {
380
+ display: flex;
381
+ flex-wrap: wrap;
382
+ gap: 6px;
383
+ }
384
+
385
+ /* Workbench */
386
+ .workbench {
387
+ display: grid;
388
+ grid-template-columns: 360px minmax(0, 1fr);
389
+ gap: 20px;
390
+ align-items: start;
391
+ }
392
+ @media (max-width: 960px) {
393
+ .workbench { grid-template-columns: minmax(0, 1fr); }
394
+ }
395
+
396
+ /* Control Rail */
397
+ .rail {
398
+ background: var(--surface);
399
+ border: 1px solid var(--line);
400
+ border-radius: var(--r);
401
+ padding: 16px;
402
+ display: grid;
403
+ gap: 16px;
404
+ min-width: 0;
405
+ }
406
+ @media (min-width: 961px) {
407
+ .rail { position: sticky; top: 60px; }
408
+ }
409
+ .ctrl-block {
410
+ display: grid;
411
+ gap: 8px;
412
+ min-width: 0;
413
+ }
414
+ .ctrl-block + .ctrl-block {
415
+ padding-top: 14px;
416
+ border-top: 1px solid var(--line);
417
+ }
418
+ .ctrl-label {
419
+ display: flex;
420
+ flex-wrap: wrap;
421
+ justify-content: space-between;
422
+ align-items: baseline;
423
+ gap: 4px 10px;
424
+ font-size: 12.5px;
425
+ color: var(--ink-2);
426
+ font-weight: 550;
427
+ }
428
+ .ctrl-val {
429
+ font-family: var(--f-mono);
430
+ font-size: 12.5px;
431
+ color: var(--ink);
432
+ font-weight: 600;
433
+ }
434
+ .seg {
435
+ display: flex;
436
+ border: 1px solid var(--line-2);
437
+ border-radius: var(--r-sm);
438
+ overflow: hidden;
439
+ background: var(--surface-2);
440
+ }
441
+ .seg button {
442
+ flex: 1 1 0;
443
+ font: inherit;
444
+ font-size: 12px;
445
+ padding: 6px 6px;
446
+ border: 0;
447
+ border-right: 1px solid var(--line-2);
448
+ background: transparent;
449
+ color: var(--ink-2);
450
+ cursor: pointer;
451
+ white-space: nowrap;
452
+ transition: background 0.14s, color 0.14s;
453
+ }
454
+ .seg button:last-child { border-right: 0; }
455
+ .seg button[aria-pressed="true"] {
456
+ background: var(--accent);
457
+ color: var(--accent-ink);
458
+ font-weight: 600;
459
+ }
460
+ .chips {
461
+ display: flex;
462
+ flex-wrap: wrap;
463
+ gap: 5px;
464
+ }
465
+ .chip {
466
+ font: inherit;
467
+ font-family: var(--f-mono);
468
+ font-size: 12px;
469
+ padding: 4px 9px;
470
+ border-radius: var(--r-sm);
471
+ border: 1px solid var(--line-2);
472
+ background: var(--surface-2);
473
+ color: var(--ink-2);
474
+ cursor: pointer;
475
+ white-space: nowrap;
476
+ transition: background 0.12s, color 0.12s, border-color 0.12s;
477
+ }
478
+ .chip:hover { border-color: var(--ink); color: var(--ink); }
479
+ .chip[aria-pressed="true"] {
480
+ background: var(--accent);
481
+ color: var(--accent-ink);
482
+ border-color: var(--accent);
483
+ font-weight: 600;
484
+ }
485
+ input[type="range"] {
486
+ width: 100%;
487
+ accent-color: var(--ink);
488
+ margin: 2px 0;
489
+ cursor: pointer;
490
+ }
491
+ .range-ticks {
492
+ display: flex;
493
+ justify-content: space-between;
494
+ font-family: var(--f-mono);
495
+ font-size: 11px;
496
+ color: var(--muted);
497
+ gap: 4px;
498
+ }
499
+ .ctrl-hint {
500
+ font-size: 11.5px;
501
+ color: var(--muted);
502
+ line-height: 1.45;
503
+ }
504
+
505
+ /* Faux-OS Output Window */
506
+ .stage {
507
+ background: var(--surface);
508
+ border: 1px solid var(--line);
509
+ border-radius: var(--r);
510
+ overflow: hidden;
511
+ min-width: 0;
512
+ }
513
+ .stage-chrome {
514
+ display: flex;
515
+ flex-wrap: wrap;
516
+ align-items: center;
517
+ justify-content: space-between;
518
+ gap: 8px 12px;
519
+ padding: 10px 16px;
520
+ background: var(--surface-2);
521
+ border-bottom: 1px solid var(--line);
522
+ }
523
+ .chrome-dots {
524
+ display: inline-flex;
525
+ align-items: center;
526
+ gap: 6px;
527
+ }
528
+ .chrome-dots span {
529
+ width: 9px;
530
+ height: 9px;
531
+ border-radius: 50%;
532
+ border: 1px solid var(--line-2);
533
+ background: var(--surface);
534
+ }
535
+ .chrome-title {
536
+ font-family: var(--f-mono);
537
+ font-size: 12px;
538
+ color: var(--ink-2);
539
+ min-width: 0;
540
+ flex: 1 1 180px;
541
+ overflow: hidden;
542
+ text-overflow: ellipsis;
543
+ white-space: nowrap;
544
+ }
545
+ .chrome-actions {
546
+ display: inline-flex;
547
+ align-items: center;
548
+ gap: 6px;
549
+ flex: 0 0 auto;
550
+ }
551
+ .stage-body {
552
+ padding: 20px;
553
+ display: grid;
554
+ gap: 18px;
555
+ }
556
+ @media (max-width: 560px) {
557
+ .stage-body { padding: 14px; }
558
+ }
559
+
560
+ /* Badges */
561
+ .pill {
562
+ display: inline-flex;
563
+ align-items: center;
564
+ gap: 5px;
565
+ font-size: 11.5px;
566
+ font-weight: 600;
567
+ padding: 2px 9px;
568
+ border-radius: var(--r-pill);
569
+ border: 1px solid transparent;
570
+ white-space: nowrap;
571
+ }
572
+ .pill-green { background: var(--spot-green-bg); color: var(--spot-green-ink); border-color: var(--spot-green-bd); }
573
+ .pill-blue { background: var(--spot-blue-bg); color: var(--spot-blue-ink); border-color: var(--spot-blue-bd); }
574
+ .pill-amber { background: var(--spot-amber-bg); color: var(--spot-amber-ink); border-color: var(--spot-amber-bd); }
575
+ .pill-rose { background: var(--spot-rose-bg); color: var(--spot-rose-ink); border-color: var(--spot-rose-bd); }
576
+ .pill-slate { background: var(--spot-slate-bg); color: var(--spot-slate-ink); border-color: var(--line-2); }
577
+
578
+ /* Verdict Hero */
579
+ .verdict {
580
+ display: grid;
581
+ gap: 10px;
582
+ padding-bottom: 16px;
583
+ border-bottom: 1px solid var(--line);
584
+ }
585
+ .verdict-badges {
586
+ display: flex;
587
+ flex-wrap: wrap;
588
+ gap: 6px;
589
+ align-items: center;
590
+ }
591
+ .verdict-name {
592
+ margin: 0;
593
+ font-family: var(--f-serif);
594
+ font-size: clamp(22px, 2.6vw, 30px);
595
+ font-weight: 600;
596
+ line-height: 1.2;
597
+ letter-spacing: -0.015em;
598
+ overflow-wrap: anywhere;
599
+ }
600
+ .verdict-sub {
601
+ font-family: var(--f-mono);
602
+ font-size: 12.5px;
603
+ color: var(--muted);
604
+ display: flex;
605
+ flex-wrap: wrap;
606
+ gap: 6px 14px;
607
+ }
608
+
609
+ /* Metrics 4-up */
610
+ .metrics-grid {
611
+ display: grid;
612
+ grid-template-columns: repeat(4, minmax(0, 1fr));
613
+ gap: 10px;
614
+ }
615
+ @media (max-width: 720px) {
616
+ .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
617
+ }
618
+ .metric-cell {
619
+ background: var(--surface-2);
620
+ border: 1px solid var(--line);
621
+ border-radius: var(--r-sm);
622
+ padding: 10px 12px;
623
+ min-width: 0;
624
+ }
625
+ .metric-k { font-size: 11px; color: var(--muted); }
626
+ .metric-v {
627
+ font-family: var(--f-mono);
628
+ font-size: 14px;
629
+ font-weight: 650;
630
+ margin-top: 3px;
631
+ overflow-wrap: anywhere;
632
+ }
633
+ .metric-note { font-size: 11px; color: var(--muted); margin-top: 2px; }
634
+
635
+ /* Segmented Memory Bars */
636
+ .mem-section { display: grid; gap: 12px; }
637
+ .mem-bar-wrap { display: grid; gap: 5px; }
638
+ .mem-bar-head {
639
+ display: flex;
640
+ flex-wrap: wrap;
641
+ justify-content: space-between;
642
+ gap: 4px 10px;
643
+ font-size: 12px;
644
+ color: var(--ink-2);
645
+ }
646
+ .mem-track {
647
+ position: relative;
648
+ height: 14px;
649
+ background: var(--surface-3);
650
+ border-radius: 7px;
651
+ overflow: hidden;
652
+ display: flex;
653
+ }
654
+ .mem-seg { height: 100%; transition: width 0.2s ease; }
655
+ .mem-marker {
656
+ position: absolute;
657
+ top: -2px;
658
+ bottom: -2px;
659
+ width: 2px;
660
+ background: var(--ink);
661
+ z-index: 2;
662
+ }
663
+ .mem-legend {
664
+ display: flex;
665
+ flex-wrap: wrap;
666
+ gap: 6px 14px;
667
+ font-size: 11.5px;
668
+ color: var(--muted);
669
+ }
670
+ .leg-item { display: inline-flex; align-items: center; gap: 5px; }
671
+ .leg-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
672
+
673
+ /* Command Box */
674
+ .cmd-box {
675
+ background: var(--surface-2);
676
+ border: 1px solid var(--line);
677
+ border-radius: var(--r-sm);
678
+ padding: 10px 12px;
679
+ display: grid;
680
+ gap: 8px;
681
+ }
682
+ .cmd-row {
683
+ display: flex;
684
+ align-items: center;
685
+ justify-content: space-between;
686
+ gap: 8px;
687
+ }
688
+ .cmd-tabs { display: inline-flex; gap: 6px; }
689
+ .cmd-tab {
690
+ font: inherit;
691
+ font-size: 11.5px;
692
+ padding: 2px 8px;
693
+ border-radius: 5px;
694
+ border: 1px solid transparent;
695
+ background: transparent;
696
+ color: var(--muted);
697
+ cursor: pointer;
698
+ }
699
+ .cmd-tab[aria-pressed="true"] {
700
+ background: var(--surface);
701
+ border-color: var(--line-2);
702
+ color: var(--ink);
703
+ font-weight: 600;
704
+ }
705
+ .cmd-code {
706
+ font-family: var(--f-mono);
707
+ font-size: 12px;
708
+ color: var(--ink);
709
+ overflow-x: auto;
710
+ white-space: nowrap;
711
+ padding: 2px 0;
712
+ }
713
+
714
+ /* Dual-source library strip */
715
+ .dual-strip {
716
+ display: flex;
717
+ flex-wrap: wrap;
718
+ align-items: center;
719
+ justify-content: space-between;
720
+ gap: 8px 14px;
721
+ padding: 10px 14px;
722
+ border-radius: var(--r-sm);
723
+ border: 1px solid var(--line);
724
+ background: var(--surface-2);
725
+ font-size: 12.5px;
726
+ }
727
+
728
+ /* Trace */
729
+ .trace-box {
730
+ display: grid;
731
+ gap: 8px;
732
+ padding-top: 14px;
733
+ border-top: 1px solid var(--line);
734
+ }
735
+ .trace-title {
736
+ font-size: 11.5px;
737
+ font-weight: 650;
738
+ letter-spacing: 0.06em;
739
+ text-transform: uppercase;
740
+ color: var(--muted);
741
+ }
742
+ .trace-list {
743
+ margin: 0;
744
+ padding: 0;
745
+ list-style: none;
746
+ display: grid;
747
+ gap: 6px;
748
+ }
749
+ .trace-list li {
750
+ font-size: 12.5px;
751
+ color: var(--ink-2);
752
+ background: var(--surface-2);
753
+ border-left: 2px solid var(--line-2);
754
+ padding: 6px 10px;
755
+ border-radius: 0 6px 6px 0;
756
+ overflow-wrap: anywhere;
757
+ }
758
+ .trace-list li.is-refusal {
759
+ border-left-color: var(--spot-rose-ink);
760
+ background: var(--spot-rose-bg);
761
+ color: var(--spot-rose-ink);
762
+ }
763
+ .trace-list li.is-warn {
764
+ border-left-color: var(--spot-amber-ink);
765
+ background: var(--spot-amber-bg);
766
+ color: var(--spot-amber-ink);
767
+ }
768
+
769
+ /* Step-down Ruler */
770
+ .ruler-list {
771
+ display: grid;
772
+ gap: 8px;
773
+ }
774
+ .ruler-band {
775
+ display: grid;
776
+ grid-template-columns: 165px minmax(0, 1fr) auto;
777
+ align-items: center;
778
+ gap: 12px;
779
+ width: 100%;
780
+ text-align: left;
781
+ font: inherit;
782
+ padding: 11px 14px;
783
+ border-radius: var(--r-sm);
784
+ border: 1px solid var(--line);
785
+ background: var(--surface);
786
+ color: var(--ink);
787
+ cursor: pointer;
788
+ transition: border-color 0.14s, background 0.14s;
789
+ }
790
+ .ruler-band:hover { border-color: var(--ink-2); }
791
+ .ruler-band.is-current {
792
+ border-color: var(--ink);
793
+ background: var(--surface-2);
794
+ }
795
+ @media (max-width: 640px) {
796
+ .ruler-band { grid-template-columns: minmax(0, 1fr); gap: 4px; }
797
+ }
798
+ .ruler-range { font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
799
+ .ruler-model { font-size: 13.5px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
800
+ .ruler-meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
801
+
802
+ /* Matrix Table */
803
+ .filter-row {
804
+ display: flex;
805
+ flex-wrap: wrap;
806
+ gap: 6px;
807
+ margin-bottom: 12px;
808
+ }
809
+ .table-wrap {
810
+ background: var(--surface);
811
+ border: 1px solid var(--line);
812
+ border-radius: var(--r);
813
+ overflow-x: auto;
814
+ }
815
+ table.matrix {
816
+ width: 100%;
817
+ border-collapse: collapse;
818
+ font-size: 13px;
819
+ }
820
+ table.matrix th {
821
+ text-align: left;
822
+ font-size: 11.5px;
823
+ font-weight: 600;
824
+ color: var(--muted);
825
+ padding: 10px 14px;
826
+ border-bottom: 1px solid var(--line);
827
+ background: var(--surface-2);
828
+ white-space: nowrap;
829
+ }
830
+ table.matrix td {
831
+ padding: 10px 14px;
832
+ border-bottom: 1px solid var(--line);
833
+ vertical-align: top;
834
+ }
835
+ table.matrix tbody tr { cursor: pointer; transition: background 0.12s; }
836
+ table.matrix tbody tr:hover { background: var(--surface-2); }
837
+ table.matrix tbody tr:last-child td { border-bottom: 0; }
838
+
839
+ /* Pipeline */
840
+ .pipeline-card {
841
+ background: var(--surface);
842
+ border: 1px solid var(--line);
843
+ border-radius: var(--r);
844
+ padding: 18px;
845
+ display: grid;
846
+ gap: 16px;
847
+ }
848
+ .pipeline-svg { width: 100%; height: auto; display: block; }
849
+ .pipe-steps {
850
+ display: grid;
851
+ grid-template-columns: repeat(5, minmax(0, 1fr));
852
+ gap: 10px;
853
+ }
854
+ @media (max-width: 900px) {
855
+ .pipe-steps { grid-template-columns: minmax(0, 1fr); }
856
+ }
857
+ .pipe-step {
858
+ background: var(--surface-2);
859
+ border: 1px solid var(--line);
860
+ border-radius: var(--r-sm);
861
+ padding: 12px;
862
+ display: grid;
863
+ gap: 6px;
864
+ align-content: start;
865
+ }
866
+ .pipe-num {
867
+ font-family: var(--f-mono);
868
+ font-size: 11px;
869
+ color: var(--muted);
870
+ font-weight: 600;
871
+ }
872
+ .pipe-step h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
873
+ .pipe-step p { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
874
+
875
+ /* Footer */
876
+ .footer {
877
+ padding-top: 24px;
878
+ border-top: 1px solid var(--line);
879
+ color: var(--muted);
880
+ font-size: 12px;
881
+ display: flex;
882
+ flex-wrap: wrap;
883
+ justify-content: space-between;
884
+ gap: 10px 24px;
885
+ }
886
+ </style>
887
+ </head>
888
+ <body>
889
+ <header class="topbar">
890
+ <div class="topbar-in">
891
+ <div class="brand">
892
+ <span class="brand-dot" aria-hidden="true"></span>
893
+ <span class="brand-name">localmodels · stack what-if</span>
894
+ <span class="ver-pill" id="meta-version">v—</span>
895
+ </div>
896
+ <nav class="nav-links" aria-label="页面导航">
897
+ <a href="#simulator">推演模拟器</a>
898
+ <a href="#ruler">退档标尺</a>
899
+ <a href="#matrix">全档位矩阵</a>
900
+ <a href="#pipeline">推荐流水线</a>
901
+ </nav>
902
+ <div class="topbar-actions">
903
+ <button type="button" class="btn-ghost" id="btn-theme" aria-label="切换明暗主题">深色 / 浅色</button>
904
+ </div>
905
+ </div>
906
+ </header>
907
+
908
+ <main class="wrap">
909
+ <section class="hero">
910
+ <div class="eyebrow">ZERO-DRIFT OFFLINE PLANNER SIMULATOR</div>
911
+ <h1>本地模型智能推荐推演模拟器</h1>
912
+ <p class="hero-lede">
913
+ 本页面所有推荐结果、上下文窗口、KV 精度、显存/内存拆解、拒绝原因与模型库对照均由本仓库真实的
914
+ <code>stack plan --llm auto</code> 与 <code>library status</code> 规划器离线实时计算生成;浏览器端零硬编码阈值,拖动参数即得真实规划器结论。
915
+ </p>
916
+ <div class="kpi-strip" id="policy-strip"></div>
917
+ </section>
918
+
919
+ <section class="section" id="simulator">
920
+ <div class="sec-head">
921
+ <h2>实时硬件推演模拟器</h2>
922
+ <p class="sec-sub">覆盖 NVIDIA 独显(Windows / Linux)、Apple Silicon 统一内存与核显 / CUDA UMA</p>
923
+ </div>
924
+
925
+ <div class="presets-row" id="presets-row" role="group" aria-label="快捷硬件预设"></div>
926
+
927
+ <div class="compare-bar" id="compare-bar" hidden>
928
+ <div class="compare-top">
929
+ <div class="compare-title">A/B 对比中 · 已钉住基线:<strong id="cmp-base-label">—</strong></div>
930
+ <button type="button" class="btn-ghost" id="btn-unpin">取消对比</button>
931
+ </div>
932
+ <div class="compare-grid">
933
+ <div class="compare-col">
934
+ <div class="compare-col-tag">基线 (Pinned)</div>
935
+ <div id="cmp-base-summary"></div>
936
+ </div>
937
+ <div class="compare-col">
938
+ <div class="compare-col-tag">当前配置 (Live)</div>
939
+ <div id="cmp-live-summary"></div>
940
+ </div>
941
+ </div>
942
+ <div class="compare-deltas" id="cmp-deltas"></div>
943
+ </div>
944
+
945
+ <div class="workbench">
946
+ <aside class="rail" aria-label="硬件参数控制栏">
947
+ <div class="ctrl-block">
948
+ <div class="ctrl-label"><span>硬件架构</span></div>
949
+ <div class="seg" id="ctrl-mode">
950
+ <button type="button" data-val="nvidia" aria-pressed="true">NVIDIA 独显</button>
951
+ <button type="button" data-val="mac" aria-pressed="false">Apple Silicon</button>
952
+ <button type="button" data-val="other_unified" aria-pressed="false">核显 / UMA</button>
953
+ </div>
954
+ </div>
955
+
956
+ <!-- NVIDIA Controls -->
957
+ <div id="panel-nvidia" class="ctrl-block">
958
+ <div class="ctrl-label"><span>操作系统</span></div>
959
+ <div class="seg" id="ctrl-platform">
960
+ <button type="button" data-val="win32" aria-pressed="true">Windows</button>
961
+ <button type="button" data-val="linux" aria-pressed="false">Linux</button>
962
+ </div>
963
+
964
+ <div class="ctrl-label" style="margin-top:8px;"><span>显存档位 (VRAM)</span><span class="ctrl-val tnum" id="val-vram">8 GiB</span></div>
965
+ <div class="chips" id="ctrl-vram"></div>
966
+
967
+ <div class="ctrl-label" style="margin-top:8px;"><span>系统内存总量 (RAM)</span><span class="ctrl-val tnum" id="val-ram">32 GiB</span></div>
968
+ <div class="chips" id="ctrl-ram"></div>
969
+
970
+ <div class="ctrl-label" style="margin-top:8px;"><span>当前可用系统内存</span><span class="ctrl-val tnum" id="val-ram-avail">28 GiB</span></div>
971
+ <input type="range" id="ctrl-ram-avail" min="0" max="32" step="0.25" value="28" aria-label="当前可用系统内存">
972
+ <div class="range-ticks tnum" id="ticks-ram-avail"></div>
973
+
974
+ <div class="ctrl-label" style="margin-top:8px;"><span>驱动 CUDA 能力</span></div>
975
+ <div class="seg" id="ctrl-cuda">
976
+ <button type="button" data-val="13.0" aria-pressed="true">CUDA 13.0</button>
977
+ <button type="button" data-val="12.8" aria-pressed="false">CUDA 12.8</button>
978
+ <button type="button" data-val="12.4" aria-pressed="false">CUDA 12.4</button>
979
+ </div>
980
+ <div class="ctrl-hint" id="hint-cuda"></div>
981
+
982
+ <div class="ctrl-label" style="margin-top:8px;"><span>桌面 / WDDM 显存占用</span><span class="ctrl-val tnum" id="val-vram-used">0 GiB</span></div>
983
+ <div class="seg" id="ctrl-vram-used"></div>
984
+ <div class="ctrl-hint" id="hint-vram-used"></div>
985
+ </div>
986
+
987
+ <!-- Mac Controls -->
988
+ <div id="panel-mac" class="ctrl-block" hidden>
989
+ <div class="ctrl-label"><span>Mac 统一内存档位</span><span class="ctrl-val tnum" id="val-mac-total">24 GiB</span></div>
990
+ <div class="chips" id="ctrl-mac-total"></div>
991
+ <div class="ctrl-hint tnum" id="hint-mac-tier"></div>
992
+
993
+ <div class="ctrl-label" style="margin-top:8px;"><span>当前可用统一内存</span><span class="ctrl-val tnum" id="val-mac-avail">21 GiB</span></div>
994
+ <input type="range" id="ctrl-mac-avail" min="0" max="24" step="0.25" value="21" aria-label="当前可用统一内存">
995
+ <div class="range-ticks tnum" id="ticks-mac-avail"></div>
996
+
997
+ <div class="ctrl-label" style="margin-top:8px;"><span>macOS VM 内存压力</span></div>
998
+ <div class="seg" id="ctrl-pressure">
999
+ <button type="button" data-val="1" aria-pressed="true">1 Normal</button>
1000
+ <button type="button" data-val="2" aria-pressed="false">2 Warning</button>
1001
+ <button type="button" data-val="4" aria-pressed="false">4 Critical</button>
1002
+ </div>
1003
+ <div class="ctrl-hint" id="hint-pressure"></div>
1004
+ </div>
1005
+
1006
+ <!-- Other Unified Controls -->
1007
+ <div id="panel-other" class="ctrl-block" hidden>
1008
+ <div class="ctrl-label"><span>统一内存 / 核显类型</span></div>
1009
+ <div class="seg" id="ctrl-other-vendor">
1010
+ <button type="button" data-val="cuda-uma" aria-pressed="true">CUDA UMA</button>
1011
+ <button type="button" data-val="amd" aria-pressed="false">AMD 核显</button>
1012
+ <button type="button" data-val="intel" aria-pressed="false">Intel 核显</button>
1013
+ </div>
1014
+
1015
+ <div class="ctrl-label" style="margin-top:8px;"><span>系统内存总量</span><span class="ctrl-val tnum" id="val-other-total">64 GiB</span></div>
1016
+ <div class="chips" id="ctrl-other-total"></div>
1017
+ <div class="ctrl-hint">对比自动规划器 <code>stack plan --llm auto</code> 与模型库 <code>library status</code> 在非 Apple 统一内存上的差异。</div>
1018
+ </div>
1019
+
1020
+ <!-- Shared Planner Options -->
1021
+ <div class="ctrl-block">
1022
+ <div class="ctrl-label"><span>推荐偏好 (<code>--prefer</code>)</span></div>
1023
+ <div class="seg" id="ctrl-prefer">
1024
+ <button type="button" data-val="smartest" aria-pressed="true">smartest</button>
1025
+ <button type="button" data-val="fastest" aria-pressed="false">fastest</button>
1026
+ <button type="button" data-val="concurrent" aria-pressed="false">concurrent</button>
1027
+ </div>
1028
+
1029
+ <div class="ctrl-label" style="margin-top:8px;"><span>同卡决策模型 (<code>--decision</code>)</span></div>
1030
+ <div class="seg" id="ctrl-decision">
1031
+ <button type="button" data-val="none" aria-pressed="true">none (仅主模型)</button>
1032
+ <button type="button" data-val="auto" aria-pressed="false">auto (含决策)</button>
1033
+ </div>
1034
+ </div>
1035
+ </aside>
1036
+
1037
+ <section class="stage" aria-live="polite">
1038
+ <div class="stage-chrome">
1039
+ <div class="chrome-dots" aria-hidden="true"><span></span><span></span><span></span></div>
1040
+ <div class="chrome-title tnum" id="stage-summary">—</div>
1041
+ <div class="chrome-actions">
1042
+ <button type="button" class="btn-ghost" id="btn-pin">钉住对比</button>
1043
+ <button type="button" class="btn-ghost" id="btn-reset">重置</button>
1044
+ </div>
1045
+ </div>
1046
+ <div class="stage-body">
1047
+ <div class="verdict">
1048
+ <div class="verdict-badges" id="out-badges"></div>
1049
+ <h3 class="verdict-name" id="out-title">—</h3>
1050
+ <div class="verdict-sub tnum" id="out-sub"></div>
1051
+ </div>
1052
+
1053
+ <div class="metrics-grid" id="out-metrics"></div>
1054
+
1055
+ <div class="mem-section" id="out-mem"></div>
1056
+
1057
+ <div class="dual-strip" id="out-library"></div>
1058
+
1059
+ <div class="cmd-box">
1060
+ <div class="cmd-row">
1061
+ <div class="cmd-tabs" role="group" aria-label="CLI 命令类型">
1062
+ <button type="button" class="cmd-tab" id="tab-cmd-whatif" aria-pressed="true">stack what-if 复现命令</button>
1063
+ <button type="button" class="cmd-tab" id="tab-cmd-plan" aria-pressed="false">stack plan 安装命令</button>
1064
+ </div>
1065
+ <button type="button" class="btn-ghost" id="btn-copy">复制命令</button>
1066
+ </div>
1067
+ <div class="cmd-code" id="out-cmd">—</div>
1068
+ </div>
1069
+
1070
+ <div class="trace-box">
1071
+ <div class="trace-title">规划器决策追踪 (Real Planner Trace)</div>
1072
+ <ul class="trace-list" id="out-trace"></ul>
1073
+ </div>
1074
+ </div>
1075
+ </section>
1076
+ </div>
1077
+ </section>
1078
+
1079
+ <section class="section" id="ruler">
1080
+ <div class="sec-head">
1081
+ <h2>当前配置可用内存退档标尺</h2>
1082
+ <p class="sec-sub" id="ruler-caption">点击任意档位,立即将上方滑块定位到该区间</p>
1083
+ </div>
1084
+ <div class="ruler-list" id="ruler-list"></div>
1085
+ </section>
1086
+
1087
+ <section class="section" id="matrix">
1088
+ <div class="sec-head">
1089
+ <h2>全平台空闲档位总览</h2>
1090
+ <p class="sec-sub">NVIDIA 默认假设 4 GiB 系统内存已占用、驱动 CUDA 13.0;Mac 采用 Apple 默认工作集与系统预留。点击任一行载入模拟器。</p>
1091
+ </div>
1092
+ <div class="filter-row" id="matrix-filters">
1093
+ <button type="button" class="preset-chip active" data-group="all">全部平台</button>
1094
+ <button type="button" class="preset-chip" data-group="win32">Windows NVIDIA</button>
1095
+ <button type="button" class="preset-chip" data-group="linux">Linux NVIDIA</button>
1096
+ <button type="button" class="preset-chip" data-group="darwin">Apple Silicon Mac</button>
1097
+ </div>
1098
+ <div class="table-wrap">
1099
+ <table class="matrix">
1100
+ <thead>
1101
+ <tr>
1102
+ <th>目标机器</th>
1103
+ <th>Smartest(默认推荐)</th>
1104
+ <th>Fastest(--prefer fastest)</th>
1105
+ <th>整栈内存估算</th>
1106
+ </tr>
1107
+ </thead>
1108
+ <tbody id="matrix-body"></tbody>
1109
+ </table>
1110
+ </div>
1111
+ </section>
1112
+
1113
+ <section class="section" id="pipeline">
1114
+ <div class="sec-head">
1115
+ <h2>5 步推荐决策流水线</h2>
1116
+ <p class="sec-sub">所有数字均直接读取自当前版本的源码策略常量</p>
1117
+ </div>
1118
+ <div class="pipeline-card">
1119
+ <svg class="pipeline-svg" viewBox="0 0 1000 110" role="img" aria-label="5步推荐流水线:硬件探测 -> Agent门禁 -> 引擎择优 -> 平台梯队兜底 -> 整栈内存复核">
1120
+ <defs>
1121
+ <marker id="arr" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
1122
+ <path d="M 0 1 L 10 5 L 0 9 z" fill="currentColor" opacity="0.45"/>
1123
+ </marker>
1124
+ </defs>
1125
+ <g font-family="inherit" fill="currentColor">
1126
+ <rect x="8" y="18" width="172" height="74" rx="8" fill="none" stroke="currentColor" stroke-opacity="0.22"/>
1127
+ <text x="22" y="42" font-size="11" opacity="0.55">STAGE 01</text>
1128
+ <text x="22" y="62" font-size="14" font-weight="600">硬件与压力探测</text>
1129
+ <text x="22" y="80" font-size="11" opacity="0.65">VRAM / RAM / Metal / WDDM</text>
1130
+ <line x1="184" y1="55" x2="210" y2="55" stroke="currentColor" stroke-opacity="0.35" stroke-width="1.5" marker-end="url(#arr)"/>
1131
+
1132
+ <rect x="214" y="18" width="172" height="74" rx="8" fill="none" stroke="currentColor" stroke-opacity="0.22"/>
1133
+ <text x="228" y="42" font-size="11" opacity="0.55">STAGE 02</text>
1134
+ <text x="228" y="62" font-size="14" font-weight="600">Agent 物理门禁</text>
1135
+ <text x="228" y="80" font-size="11" opacity="0.65" id="svg-s2">64K × 2 · 不溢出 · 读图</text>
1136
+ <line x1="390" y1="55" x2="416" y2="55" stroke="currentColor" stroke-opacity="0.35" stroke-width="1.5" marker-end="url(#arr)"/>
1137
+
1138
+ <rect x="420" y="18" width="172" height="74" rx="8" fill="none" stroke="currentColor" stroke-opacity="0.22"/>
1139
+ <text x="434" y="42" font-size="11" opacity="0.55">STAGE 03</text>
1140
+ <text x="434" y="62" font-size="14" font-weight="600">llama.cpp 排序</text>
1141
+ <text x="434" y="80" font-size="11" opacity="0.65" id="svg-s3">装机分 · 1分平局看速度</text>
1142
+ <line x1="596" y1="55" x2="622" y2="55" stroke="currentColor" stroke-opacity="0.35" stroke-width="1.5" marker-end="url(#arr)"/>
1143
+
1144
+ <rect x="626" y="18" width="172" height="74" rx="8" fill="none" stroke="currentColor" stroke-opacity="0.22"/>
1145
+ <text x="640" y="42" font-size="11" opacity="0.55">STAGE 04</text>
1146
+ <text x="640" y="62" font-size="14" font-weight="600">PolyStrata / 兜底</text>
1147
+ <text x="640" y="80" font-size="11" opacity="0.65" id="svg-s4">CUDA13 · Mac梯队 · Win兜底</text>
1148
+ <line x1="802" y1="55" x2="828" y2="55" stroke="currentColor" stroke-opacity="0.35" stroke-width="1.5" marker-end="url(#arr)"/>
1149
+
1150
+ <rect x="832" y="18" width="160" height="74" rx="8" fill="none" stroke="currentColor" stroke-opacity="0.22"/>
1151
+ <text x="846" y="42" font-size="11" opacity="0.55">STAGE 05</text>
1152
+ <text x="846" y="62" font-size="14" font-weight="600">整栈内存复核</text>
1153
+ <text x="846" y="80" font-size="11" opacity="0.65" id="svg-s5">RAM 底线与拒绝检查</text>
1154
+ </g>
1155
+ </svg>
1156
+ <div class="pipe-steps" id="pipe-steps"></div>
1157
+ </div>
1158
+ </section>
1159
+
1160
+ <footer class="footer">
1161
+ <div>离线规划器估算基于合成硬件事实(无下载、无服务变更)。容量匹配不等于真机速度实测或五层完整验收;安装后请使用 <code>stack warm</code> 测速。</div>
1162
+ <div class="mono" id="footer-meta">localmodels stack what-if --html</div>
1163
+ </footer>
1164
+ </main>
1165
+
1166
+ <script>
1167
+ /*@DATA@*/
1168
+ /*@SIM@*/
1169
+ /*@APP@*/
1170
+ </script>
1171
+ </body>
1172
+ </html>