@simplexai/localmodels-linux-arm64 0.1.0-dev.62 → 0.1.0-dev.64
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.
- package/bootstrap.identity +1 -1
- package/bootstrap.sha256 +112 -103
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/app.py +15 -2
- package/modules/localmodels/bifrost_checks.py +19 -13
- package/modules/localmodels/bifrost_clients.py +38 -36
- package/modules/localmodels/bifrost_config.py +19 -6
- package/modules/localmodels/bifrost_log.py +3 -3
- package/modules/localmodels/bifrost_models.py +9 -8
- package/modules/localmodels/bifrost_pi.py +27 -72
- package/modules/localmodels/catalog.json +85 -58
- package/modules/localmodels/catalog.py +26 -4
- package/modules/localmodels/catalog_recipes.py +37 -1
- package/modules/localmodels/context_policy.py +6 -1
- package/modules/localmodels/custom_hub.py +10 -1
- package/modules/localmodels/custom_hub_http.py +14 -3
- package/modules/localmodels/debug_mode.py +85 -103
- package/modules/localmodels/deploy.py +41 -6
- package/modules/localmodels/download-mirrors.json +126 -6
- package/modules/localmodels/draft_spec.py +122 -0
- package/modules/localmodels/engine_adapters/__init__.py +4 -0
- package/modules/localmodels/engine_adapters/auxiliary.py +27 -0
- package/modules/localmodels/engine_adapters/base.py +40 -0
- package/modules/localmodels/engine_adapters/strata_poly.py +57 -0
- package/modules/localmodels/engine_adapters/suite_plan.py +394 -0
- package/modules/localmodels/engines-prism-b12178-03ec600.json +7 -7
- package/modules/localmodels/gateway.py +56 -55
- package/modules/localmodels/gateway_bifrost.py +70 -83
- package/modules/localmodels/gateway_clients.py +33 -116
- package/modules/localmodels/gateway_home.py +5 -5
- package/modules/localmodels/gateway_keys.py +8 -6
- package/modules/localmodels/gateway_probe.py +4 -4
- package/modules/localmodels/gateway_server.py +4 -4
- package/modules/localmodels/gateway_speed.py +2 -2
- package/modules/localmodels/harness.py +185 -401
- package/modules/localmodels/harness_core.py +409 -0
- package/modules/localmodels/harness_gateway.py +75 -73
- package/modules/localmodels/harness_probe.py +19 -216
- package/modules/localmodels/install.py +15 -0
- package/modules/localmodels/library_convert.py +2 -8
- package/modules/localmodels/library_custom.py +51 -16
- package/modules/localmodels/library_elastic.py +3 -119
- package/modules/localmodels/library_gateway.py +59 -176
- package/modules/localmodels/library_jobs.py +1 -2
- package/modules/localmodels/library_model.py +23 -0
- package/modules/localmodels/library_poly.py +3 -2
- package/modules/localmodels/library_pricing.py +124 -15
- package/modules/localmodels/library_serve.py +9 -9
- package/modules/localmodels/library_smoke.py +33 -21
- package/modules/localmodels/library_status.py +330 -2
- package/modules/localmodels/llm_rank.py +14 -5
- package/modules/localmodels/magpie_setup.py +5 -4
- package/modules/localmodels/magpie_windows.py +1 -1
- package/modules/localmodels/memcalc_cli.py +2 -2
- package/modules/localmodels/pi_profile.py +384 -0
- package/modules/localmodels/planning/__init__.py +3 -0
- package/modules/localmodels/{memcalc_load.py → planning/memcalc_load.py} +1 -1
- package/modules/localmodels/{sizecalc.py → planning/sizecalc.py} +1 -1
- package/modules/localmodels/process_identity.py +3 -3
- package/modules/localmodels/runtime_cli.py +32 -46
- package/modules/localmodels/runtime_pi.py +1 -1
- package/modules/localmodels/service_deployment.py +2 -1
- package/modules/localmodels/sizecalc_cli.py +10 -2
- package/modules/localmodels/source_byok.py +9 -16
- package/modules/localmodels/speech_worker_sensevoice.py +30 -0
- package/modules/localmodels/stack.py +2 -4
- package/modules/localmodels/stack_arena.py +2 -2
- package/modules/localmodels/stack_auto.py +1 -1
- package/modules/localmodels/stack_aux_gpu.py +4 -2
- package/modules/localmodels/stack_binding.py +9 -7
- package/modules/localmodels/stack_card.py +2 -2
- package/modules/localmodels/stack_cleanup.py +3 -2
- package/modules/localmodels/stack_clients.py +137 -21
- package/modules/localmodels/stack_compose.py +9 -1
- package/modules/localmodels/stack_doctor.py +6 -3
- package/modules/localmodels/stack_hardware.py +18 -0
- package/modules/localmodels/stack_ledger.py +2 -1
- package/modules/localmodels/stack_lifecycle.py +3 -2
- package/modules/localmodels/stack_mcp.py +1 -1
- package/modules/localmodels/stack_memory.py +3 -3
- package/modules/localmodels/stack_remove.py +2 -1
- package/modules/localmodels/stack_run.py +16 -0
- package/modules/localmodels/stack_suite.py +4 -3
- package/modules/localmodels/stack_try.py +2 -1
- package/modules/localmodels/stack_up.py +15 -30
- package/modules/localmodels/stack_verify.py +2 -2
- package/modules/localmodels/stack_view_events.py +2 -2
- package/modules/localmodels/stack_view_llm.py +12 -7
- package/modules/localmodels/stack_warm.py +6 -3
- package/modules/localmodels/stack_whatif.py +1 -1
- package/modules/localmodels/suite.py +6 -334
- package/modules/localmodels/tui_views.py +17 -2
- package/modules/localmodels/web/index.html +595 -226
- package/modules/localmodels/web/sizecalc/app.js +34 -40
- package/modules/localmodels/web/sizecalc/calc.js +3 -3
- package/modules/localmodels/web/sizecalc/page.html +4 -3
- package/modules/localmodels/web/view/fleet.html +18 -3
- package/modules/localmodels/web/view/fleet.js +135 -14
- package/modules/localmodels/web/view/i18n.js +4 -0
- package/modules/localmodels/web/view/index.html +16 -0
- package/modules/localmodels/web/view/nav.js +49 -0
- package/modules/localmodels/web/view/theme.js +1 -1
- package/modules/localmodels/web/view/view.css +51 -15
- package/modules/localmodels/web/view/view.js +22 -4
- package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/RECORD +109 -100
- package/package.json +1 -1
- package/tool.json +1 -1
- /package/modules/localmodels/{memcalc.py → planning/memcalc.py} +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/licenses/NOTICE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev62.dist-info → simplex_localmodels-0.1.0.dev64.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"sources": [
|
|
62
62
|
{
|
|
63
63
|
"type": "intelligence_score",
|
|
64
|
-
"ref": "catalog/model-matrix/scores.json
|
|
65
|
-
"date": "2026-11-
|
|
64
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of qwen3.8-27b/ud-q4_k_m = 53.9 (AIHOT third-party capability scale minus v3 IRT penalty 1.19 [R1, measured]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
65
|
+
"date": "2026-11-27"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"type": "own_eval",
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
"sources": [
|
|
138
138
|
{
|
|
139
139
|
"type": "intelligence_score",
|
|
140
|
-
"ref": "catalog/model-matrix/scores.json
|
|
141
|
-
"date": "2026-11-
|
|
140
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of qwen3.8-27b/q8_0 = 54.6 (AIHOT third-party capability scale minus v3 IRT penalty 0.49 [R0, prior]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
141
|
+
"date": "2026-11-27"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"type": "editorial",
|
|
@@ -168,18 +168,14 @@
|
|
|
168
168
|
"id": "qwen3.8-27b-iq3s",
|
|
169
169
|
"display_name": "Qwen3.8 27B",
|
|
170
170
|
"description": "A smaller build of Qwen3.8 27B for 16 GB graphics cards and 32 GB Macs; reads images and answers nearly as well.",
|
|
171
|
-
"note": "
|
|
171
|
+
"note": "Demoted from validated to candidate under SimplexAI v3 reliability gate G1 (roadmap decision 71, 2026-11-27): paired BFCL v4 MT-Hard (n=200) dropped by -19.5 pp vs UD-Q4_K_M (0.305 vs 0.500, Q51 p=4e-6) and -19.0 pp vs Q8_0 (0.310 vs 0.500, Q8H p=8e-6), exceeding the 12 pp non-inferiority gate. Kept as candidate for explicit --llm and on-disk library management.",
|
|
172
172
|
"repo": "unsloth/Qwen3.8-27B-GGUF",
|
|
173
173
|
"license": "Apache-2.0",
|
|
174
174
|
"license_url": "https://huggingface.co/Qwen/Qwen3.8-27B/blob/main/LICENSE",
|
|
175
175
|
"family": "qwen",
|
|
176
176
|
"publisher": "Qwen",
|
|
177
177
|
"parameters": "27B",
|
|
178
|
-
"status": "
|
|
179
|
-
"validated_on": [
|
|
180
|
-
"linux",
|
|
181
|
-
"darwin"
|
|
182
|
-
],
|
|
178
|
+
"status": "candidate",
|
|
183
179
|
"tasks": [
|
|
184
180
|
"llm",
|
|
185
181
|
"vision"
|
|
@@ -220,12 +216,12 @@
|
|
|
220
216
|
"min-p": "0.0"
|
|
221
217
|
},
|
|
222
218
|
"quality": {
|
|
223
|
-
"score":
|
|
219
|
+
"score": 48,
|
|
224
220
|
"sources": [
|
|
225
221
|
{
|
|
226
222
|
"type": "intelligence_score",
|
|
227
|
-
"ref": "catalog/model-matrix/scores.json
|
|
228
|
-
"date": "2026-11-
|
|
223
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of qwen3.8-27b/ud-iq3_s = 48.5 (AIHOT third-party capability scale minus v3 IRT penalty 6.60 [R2, measured]; gated (MT-Hard -19.5 pp vs ud-q4_k_m (p=4e-06)); docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
224
|
+
"date": "2026-11-27"
|
|
229
225
|
},
|
|
230
226
|
{
|
|
231
227
|
"type": "editorial",
|
|
@@ -305,8 +301,8 @@
|
|
|
305
301
|
"sources": [
|
|
306
302
|
{
|
|
307
303
|
"type": "intelligence_score",
|
|
308
|
-
"ref": "catalog/model-matrix/scores.json
|
|
309
|
-
"date": "2026-11-
|
|
304
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of underdog-saluki-27b/iq2-mix = 50.0 (AIHOT third-party capability scale minus v3 IRT penalty 5.12 [R3, measured]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
305
|
+
"date": "2026-11-27"
|
|
310
306
|
},
|
|
311
307
|
{
|
|
312
308
|
"type": "editorial",
|
|
@@ -397,12 +393,12 @@
|
|
|
397
393
|
},
|
|
398
394
|
"min_engine": "b11370",
|
|
399
395
|
"quality": {
|
|
400
|
-
"score":
|
|
396
|
+
"score": 56,
|
|
401
397
|
"sources": [
|
|
402
398
|
{
|
|
403
399
|
"type": "intelligence_score",
|
|
404
|
-
"ref": "catalog/model-matrix/scores.json
|
|
405
|
-
"date": "2026-11-
|
|
400
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of qwen3.8-flash-next/ud-iq4_xs = 56.3 (AIHOT third-party capability scale minus v3 IRT penalty 3.73 [R2, measured]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
401
|
+
"date": "2026-11-27"
|
|
406
402
|
},
|
|
407
403
|
{
|
|
408
404
|
"type": "editorial",
|
|
@@ -475,12 +471,12 @@
|
|
|
475
471
|
},
|
|
476
472
|
"min_engine": "b11370",
|
|
477
473
|
"quality": {
|
|
478
|
-
"score":
|
|
474
|
+
"score": 52,
|
|
479
475
|
"sources": [
|
|
480
476
|
{
|
|
481
477
|
"type": "intelligence_score",
|
|
482
|
-
"ref": "catalog/model-matrix/scores.json
|
|
483
|
-
"date": "2026-11-
|
|
478
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of qwen3.8-flash-next/gsq-rco-iq2_xs = 52.1 (AIHOT third-party capability scale minus v3 IRT penalty 7.85 [R3, measured]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
479
|
+
"date": "2026-11-27"
|
|
484
480
|
},
|
|
485
481
|
{
|
|
486
482
|
"type": "editorial",
|
|
@@ -566,12 +562,12 @@
|
|
|
566
562
|
},
|
|
567
563
|
"min_engine": "b11370",
|
|
568
564
|
"quality": {
|
|
569
|
-
"score":
|
|
565
|
+
"score": 56,
|
|
570
566
|
"sources": [
|
|
571
567
|
{
|
|
572
568
|
"type": "intelligence_score",
|
|
573
|
-
"ref": "catalog/model-matrix/scores.json
|
|
574
|
-
"date": "2026-11-
|
|
569
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of qwen3.8-flash-next/gsq-rco-iq3_s = 56.3 (AIHOT third-party capability scale minus v3 IRT penalty 3.73 [R2, vendor]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
570
|
+
"date": "2026-11-27"
|
|
575
571
|
},
|
|
576
572
|
{
|
|
577
573
|
"type": "editorial",
|
|
@@ -667,12 +663,12 @@
|
|
|
667
663
|
"min-p": "0.0"
|
|
668
664
|
},
|
|
669
665
|
"quality": {
|
|
670
|
-
"score":
|
|
666
|
+
"score": 35,
|
|
671
667
|
"sources": [
|
|
672
668
|
{
|
|
673
669
|
"type": "intelligence_score",
|
|
674
|
-
"ref": "catalog/model-matrix/scores.json
|
|
675
|
-
"date": "2026-11-
|
|
670
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of qwen3.6-35b-a3b/ud-iq4_xs = 34.8 (AIHOT third-party capability scale minus v3 IRT penalty 2.64 [R2, measured]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
671
|
+
"date": "2026-11-27"
|
|
676
672
|
},
|
|
677
673
|
{
|
|
678
674
|
"type": "own_eval",
|
|
@@ -1373,8 +1369,8 @@
|
|
|
1373
1369
|
"sources": [
|
|
1374
1370
|
{
|
|
1375
1371
|
"type": "intelligence_score",
|
|
1376
|
-
"ref": "catalog/model-matrix/scores.json
|
|
1377
|
-
"date": "2026-11-
|
|
1372
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of ling-3.0-tiny/q4_k_m = 24.8 (AIHOT third-party capability scale minus v3 IRT penalty 1.48 [R1, prior]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
1373
|
+
"date": "2026-11-27"
|
|
1378
1374
|
},
|
|
1379
1375
|
{
|
|
1380
1376
|
"type": "editorial",
|
|
@@ -1435,6 +1431,23 @@
|
|
|
1435
1431
|
"revision": "ae9327c5fbc7333116ba32eee78bb5d2bbefae4f",
|
|
1436
1432
|
"sha256": "2c165c78790e78a3f45a2d1e9e931083e52ee69d45ff2a0dc9c281fdf1a666e7"
|
|
1437
1433
|
},
|
|
1434
|
+
"draft": {
|
|
1435
|
+
"path": "dspark-Inkling-2-Mini-Q8_0.gguf",
|
|
1436
|
+
"size_bytes": 402278560,
|
|
1437
|
+
"local": "dspark-Inkling-2-Mini-Q8_0.gguf",
|
|
1438
|
+
"revision": "ae9327c5fbc7333116ba32eee78bb5d2bbefae4f",
|
|
1439
|
+
"sha256": "2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773"
|
|
1440
|
+
},
|
|
1441
|
+
"draft_spec": {
|
|
1442
|
+
"spec_type": "draft-dspark",
|
|
1443
|
+
"n_max": 4,
|
|
1444
|
+
"overhead_bytes": 3057647616,
|
|
1445
|
+
"kv_bytes_per_token": 4096,
|
|
1446
|
+
"kv_swa_bytes": 18874368,
|
|
1447
|
+
"backends": [
|
|
1448
|
+
"metal"
|
|
1449
|
+
]
|
|
1450
|
+
},
|
|
1438
1451
|
"n_ctx_train": 1048576,
|
|
1439
1452
|
"full_layers": 8,
|
|
1440
1453
|
"recurrent_layers": 0,
|
|
@@ -1454,12 +1467,12 @@
|
|
|
1454
1467
|
"min-p": "0.0"
|
|
1455
1468
|
},
|
|
1456
1469
|
"quality": {
|
|
1457
|
-
"score":
|
|
1470
|
+
"score": 53,
|
|
1458
1471
|
"sources": [
|
|
1459
1472
|
{
|
|
1460
1473
|
"type": "intelligence_score",
|
|
1461
|
-
"ref": "catalog/model-matrix/scores.json
|
|
1462
|
-
"date": "2026-11-
|
|
1474
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of inkling-2-mini/ud-q4_k_m = 53.1 (AIHOT third-party capability scale minus v3 IRT penalty 1.48 [R1, prior]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
1475
|
+
"date": "2026-11-27"
|
|
1463
1476
|
},
|
|
1464
1477
|
{
|
|
1465
1478
|
"type": "own_eval",
|
|
@@ -1524,6 +1537,23 @@
|
|
|
1524
1537
|
"revision": "ae9327c5fbc7333116ba32eee78bb5d2bbefae4f",
|
|
1525
1538
|
"sha256": "2c165c78790e78a3f45a2d1e9e931083e52ee69d45ff2a0dc9c281fdf1a666e7"
|
|
1526
1539
|
},
|
|
1540
|
+
"draft": {
|
|
1541
|
+
"path": "dspark-Inkling-2-Mini-Q8_0.gguf",
|
|
1542
|
+
"size_bytes": 402278560,
|
|
1543
|
+
"local": "dspark-Inkling-2-Mini-Q8_0.gguf",
|
|
1544
|
+
"revision": "ae9327c5fbc7333116ba32eee78bb5d2bbefae4f",
|
|
1545
|
+
"sha256": "2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773"
|
|
1546
|
+
},
|
|
1547
|
+
"draft_spec": {
|
|
1548
|
+
"spec_type": "draft-dspark",
|
|
1549
|
+
"n_max": 4,
|
|
1550
|
+
"overhead_bytes": 3057647616,
|
|
1551
|
+
"kv_bytes_per_token": 4096,
|
|
1552
|
+
"kv_swa_bytes": 18874368,
|
|
1553
|
+
"backends": [
|
|
1554
|
+
"metal"
|
|
1555
|
+
]
|
|
1556
|
+
},
|
|
1527
1557
|
"n_ctx_train": 1048576,
|
|
1528
1558
|
"full_layers": 8,
|
|
1529
1559
|
"recurrent_layers": 0,
|
|
@@ -1543,12 +1573,12 @@
|
|
|
1543
1573
|
"min-p": "0.0"
|
|
1544
1574
|
},
|
|
1545
1575
|
"quality": {
|
|
1546
|
-
"score":
|
|
1576
|
+
"score": 51,
|
|
1547
1577
|
"sources": [
|
|
1548
1578
|
{
|
|
1549
1579
|
"type": "intelligence_score",
|
|
1550
|
-
"ref": "catalog/model-matrix/scores.json
|
|
1551
|
-
"date": "2026-11-
|
|
1580
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of inkling-2-mini/ud-iq3_xxs = 51.1 (AIHOT third-party capability scale minus v3 IRT penalty 3.55 [R2, measured]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
1581
|
+
"date": "2026-11-27"
|
|
1552
1582
|
},
|
|
1553
1583
|
{
|
|
1554
1584
|
"type": "editorial",
|
|
@@ -3720,12 +3750,12 @@
|
|
|
3720
3750
|
"verify_timeout_s": 4800,
|
|
3721
3751
|
"note": "Flash-Next IQ2_XS 256K on Strata 0.2.2 (engine 0.1.47), the fallback when the computer's memory cannot hold Swift 1.5 IQ3_S: ST2/ST3 measured 20.0 GiB VRAM beside d3-nano, 32 GiB RAM ceiling, 128-168 tok/s decode (engine 0.1.43).\nThe pack and MTP draft files are generated from pinned inputs by the bundled Strata tools during installation, with exact size and SHA256 checks before publication; existing matching files are reused. Preparation reserves 9 GiB for raw MTP tensors, their intermediate GGUF and gguf-py sources, in addition to the staged output group. GPU acceptance evidence below predates this fresh-install path.\nConversation parking (--conversation-cache-*) is planned by stack plan --conversation-cache: auto turns it on only when the whole suite still fits, and adds the budget to this service's cgroup ceilings. ST5 (lab-12020, 2026-10-23) measured a parked conversation at ~340 MB plus ~14 KB per token (415-560 MB at 5.3K-6.7K tokens), a park in 2.6-5.1 s and a restore in 1.0-1.3 s, so the 4 GiB / 4-slot budget holds four such conversations; more alternating conversations than slots evict each other oldest-first; the 512 MiB floor follows Strata's advice for an engine near its cap, and 2048 minimum tokens keeps short side requests (classification, quick replies) from evicting a long agent conversation. Without parking, a request whose prompt does not continue the live conversation drops it, so clients that alternate re-read their whole prompt.\nA fixed --expert-cache slot count is sized from the card (expert_cache_sizing) instead of auto: lab241-rsi (2026-10-23, lab-12021 GPU3 x16) cut the fixed agent workload by 13.4% (decode 118 -> 156 tok/s). --prefill auto:16384 gained another 8.6% under the 36 GiB parking ceiling but was killed by systemd-oomd at start under 34 GiB without parking: its prompt buffers take the RAM parking is priced for, so it is not in this recipe.\nSTRATA_ROUTE_TAIL_SKIP=0 turns off Strata's lossy CUDA default that skips missed low-rank experts. X2 (evidence/2026-10-26-strata-tailskip-x2-lab12021, lab-12021 GPU3, IQ2_XS at the production 10132 slots) measured teacher-forced KL 0.045 and top-1 agreement 93.5% for the default against it off (agent transcripts: KL 0.12, 91.0%), for +6.6% decode and -3.4% on the fixed agent workload.",
|
|
3722
3752
|
"quality": {
|
|
3723
|
-
"score":
|
|
3753
|
+
"score": 52,
|
|
3724
3754
|
"sources": [
|
|
3725
3755
|
{
|
|
3726
3756
|
"type": "intelligence_score",
|
|
3727
|
-
"ref": "catalog/model-matrix/scores.json
|
|
3728
|
-
"date": "2026-11-
|
|
3757
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of qwen3.8-flash-next/gsq-rco-iq2_xs = 52.1 (AIHOT third-party capability scale minus v3 IRT penalty 7.85 [R3, measured]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
3758
|
+
"date": "2026-11-27"
|
|
3729
3759
|
}
|
|
3730
3760
|
]
|
|
3731
3761
|
},
|
|
@@ -3850,12 +3880,12 @@
|
|
|
3850
3880
|
"verify_timeout_s": 1800,
|
|
3851
3881
|
"note": "Qwen3.6-35B-A3B UD-Q3_K_M on PolyStrata's strata-poly engine (0.2.20-poly.1) for 8 GB cards with 32 GB of memory: the engine fills the card with the experts it uses most and keeps the rest in host RAM, so a 35B model with 3B active runs where the weights do not fit. 64K window, 2 parallel requests (parallel: 2), --tail-skip 0 (upstream's default of 6 skips expert rows).\nSP9I (2026-11-11, engine 0.1.45-poly.9, installed by stack apply into an 8 GB share of a 96 GB card): acceptance 9/9, whole-card peak 7626 MiB during a 59.5K-token prompt with this recipe's 1152 MiB reserve (8138 MiB with 640, too close to an 8 GB card's 8192), anonymous memory at most 2.7 GiB, 100 tok/s after the 59.5K prompt on server-class CPU and memory. No real 8 GB card or desktop CPU was measured; speed there will be lower (upstream: 42-46 tok/s after 64K on an RTX 4070 Laptop).\n--ram-experts-mib 6144 holds 6 GiB of the experts outside VRAM in RAM and leaves the rest in the file cache. Measured 2026-11-20 on an RTX 4070 Laptop (8 GB) with 32 GB, Windows 11, engine 0.1.45-poly.9 started with this recipe's planned command: 2.9 GiB of experts in VRAM, 10.8 GiB outside; engine working set at most 7.6 GiB and private memory at most 10.0 GiB during a 64K-token prompt; the 9 GiB memory estimate Windows plans are priced by is that working set and the server's with a margin, since Windows prices against available physical memory; 52 tok/s in a short chat, 46 tok/s after the 64K prompt, 69 tok/s over a 1,024-token answer.\nPS219 (2026-11-23, engine 0.2.19-poly.1, installed by stack apply, three rounds, medians). RTX 5090 32 GB, Linux: 10,496/10,496 experts in VRAM, 456 tok/s in a short chat, 13,618 tok/s reading a prompt of 26K tokens and 495 tok/s after it, server memory at most 3.8 GiB.\nPS220 (2026-11-23, engine 0.2.20-poly.1, installed by stack apply, three rounds, medians). RTX 4070 Laptop 8 GB, Windows 11: 2,282/10,496 experts in VRAM, 59 tok/s in a short chat, 2,462 tok/s reading a prompt of 26K tokens and 49 tok/s after it, server memory at most 7.9 GiB. M5 Ultra 256 GB, macOS 27.2: 10,496/10,496 experts in VRAM, 151 tok/s in a short chat, 3,924 tok/s reading a prompt of 26K tokens and 62 tok/s after it, 18 GB held.\nIts memory is mostly page cache of the GGUF; the service ceiling bounds it, and --conversation-cache-mib auto parks idle conversations inside that ceiling.\nGreedy output is not bit-reproducible between requests: the split of experts between card and CPU follows use (SPOLY).\nText only: image input is off for this recipe.",
|
|
3852
3882
|
"quality": {
|
|
3853
|
-
"score":
|
|
3883
|
+
"score": 34,
|
|
3854
3884
|
"sources": [
|
|
3855
3885
|
{
|
|
3856
3886
|
"type": "intelligence_score",
|
|
3857
|
-
"ref": "catalog/model-matrix/
|
|
3858
|
-
"date": "2026-11-
|
|
3887
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of qwen3.6-35b-a3b/ud-q3_k_m = 33.9 (AIHOT third-party capability scale minus v3 IRT penalty 3.54 [R2, measured]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
3888
|
+
"date": "2026-11-27"
|
|
3859
3889
|
}
|
|
3860
3890
|
]
|
|
3861
3891
|
},
|
|
@@ -3966,8 +3996,8 @@
|
|
|
3966
3996
|
"sources": [
|
|
3967
3997
|
{
|
|
3968
3998
|
"type": "intelligence_score",
|
|
3969
|
-
"ref": "catalog/model-matrix/
|
|
3970
|
-
"date": "2026-11-
|
|
3999
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of qwen3.6-35b-a3b/ud-q4_k_m = 35.9 (AIHOT third-party capability scale minus v3 IRT penalty 1.48 [R1, prior]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
4000
|
+
"date": "2026-11-27"
|
|
3971
4001
|
}
|
|
3972
4002
|
]
|
|
3973
4003
|
},
|
|
@@ -4100,12 +4130,12 @@
|
|
|
4100
4130
|
"verify_timeout_s": 1800,
|
|
4101
4131
|
"note": "Thinking Machines Inkling 2 Mini UD-Q4_K_XL (Mainline_Support inkling2_loop, 5.41 BPW) on PolyStrata v0.2.20-poly.6 for 24 GB+ NVIDIA CUDA 13 cards (driver >= 580) with 128K FP8 KV cache and native vision (strata-vision GPU on >= 23.5 GiB cards, CPU below). Default concurrency is 2 parallel requests (parallel: 2 -> --batch 2); --prefer concurrent still falls back to llama.cpp Inkling 2 Mini pending live concurrent benchmarks.\nMeasured on local-118 GPU0 24 GB share (2026-11-23-polystrata-inkling2-mini-local118): all 3072/3072 routed experts fit in VRAM (14.7 GiB, 0.0 GiB offloaded), strata-vision GPU 791 MiB, whole-card peak 21,601 MiB across 58.4K and 105.6K prompts (2,463 MiB below the 24 GB gate), anonymous host RAM peak 1.7 GiB, 176.4 tok/s short decode, 6,869 tok/s prefill and 138.8 tok/s decode after 58.4K prompt (needle hit, vision and tool calling passed). Promoted above same-score llama.cpp Inkling on supported CUDA 13 NVIDIA hosts by roadmap decision 66.",
|
|
4102
4132
|
"quality": {
|
|
4103
|
-
"score":
|
|
4133
|
+
"score": 53,
|
|
4104
4134
|
"sources": [
|
|
4105
4135
|
{
|
|
4106
4136
|
"type": "intelligence_score",
|
|
4107
|
-
"ref": "catalog/model-matrix/scores.json
|
|
4108
|
-
"date": "2026-11-
|
|
4137
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of inkling-2-mini/ud-q4_k_xl = 53.1 (AIHOT third-party capability scale minus v3 IRT penalty 1.48 [R1, prior]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
4138
|
+
"date": "2026-11-27"
|
|
4109
4139
|
}
|
|
4110
4140
|
]
|
|
4111
4141
|
},
|
|
@@ -4241,12 +4271,12 @@
|
|
|
4241
4271
|
"verify_timeout_s": 1800,
|
|
4242
4272
|
"note": "Thinking Machines Inkling 2 Mini UD-Q3_K_XL (Mainline_Support inkling2_loop, 4.18 BPW) on PolyStrata v0.2.20-poly.6 for 8, 12 and 16 GB NVIDIA CUDA 13 cards (driver >= 580) with >= 24 GB RAM. Uses 64K FP8 KV cache, --vram-pool (caps prefill staging and KV growth strictly inside the card budget), --ram-experts-mib 6144, --tail-skip 0, and CPU strata-vision on < 23.5 GiB cards. Default concurrency is 2 parallel requests (parallel: 2 -> --batch 2) and LoopCD-Hidden (--loopcd-hidden 0.2) is enabled by default.\nMeasured on local-118 GPU0 stand-in shares (2026-11-23-polystrata-inkling2-mini-local118, 58.4K prompt needle + vision + tool calls all passed): 16 GB share 3058/3072 experts in VRAM, peak 14,498 MiB (1,374 MiB below gate), 178.3 tok/s short / 61.1 tok/s at 58.4K; 12 GB share 1977/3072 experts, peak 10,388 MiB, 138.7 / 47.0 tok/s; 8 GB share 896/3072 experts, peak 6,292 MiB (1,388 MiB below gate), cgroup peak 8.7 GiB / anon 8.4 GiB, 65.6 / 30.3 tok/s (server-class CPU stand-in upper bound; upstream RTX 4070 Laptop 8 GB measured 56 / 42 tok/s). Promoted by roadmap decision 66.\nWindows runs without --vram-pool (card_args keeps it on Linux). PSIW (2026-11-23, RTX 4070 Laptop 8 GB, Windows 11): with it the engine claims a 13,204 MiB pool from the process budget Windows reports, larger than the card, and every request longer than about 30 tokens gets \"no VRAM for a prompt's buffers\"; stack apply failed 3 times out of 3 on the 0.2.19-poly.1 and 0.2.20-poly.1 engines. Without it, on 0.2.19-poly.1: plain text of 54 to 31,022 tokens, Chinese, the CPU picture reader, a tool call and a needle in a 54K-token prompt all pass, card peak 6,966-7,001 MiB of 8,188. PolyStrata's main fixes the engine side (5b080f37b) for its next release.",
|
|
4243
4273
|
"quality": {
|
|
4244
|
-
"score":
|
|
4274
|
+
"score": 53,
|
|
4245
4275
|
"sources": [
|
|
4246
4276
|
{
|
|
4247
4277
|
"type": "intelligence_score",
|
|
4248
|
-
"ref": "catalog/model-matrix/scores.json
|
|
4249
|
-
"date": "2026-11-
|
|
4278
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of inkling-2-mini/ud-q3_k_xl = 53.1 (AIHOT third-party capability scale minus v3 IRT penalty 1.48 [R2, measured]; docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
4279
|
+
"date": "2026-11-27"
|
|
4250
4280
|
}
|
|
4251
4281
|
]
|
|
4252
4282
|
},
|
|
@@ -4271,7 +4301,7 @@
|
|
|
4271
4301
|
"runtime": "strata-poly",
|
|
4272
4302
|
"version": "UD-Q2_K_XL",
|
|
4273
4303
|
"display_name": "Inkling 2 Mini",
|
|
4274
|
-
"description": "
|
|
4304
|
+
"description": "Deprecated 2.8-bit PolyStrata build of Inkling 2 Mini; retired from automatic recommendations due to multi-turn agent degradation (explicit --llm and existing local installs only).",
|
|
4275
4305
|
"family": "other",
|
|
4276
4306
|
"publisher": "Thinking Machines",
|
|
4277
4307
|
"parameters": "26.4B",
|
|
@@ -4282,7 +4312,7 @@
|
|
|
4282
4312
|
"revision": "ea0c79b2ecd73669e774c8519b79bfabfddbc027",
|
|
4283
4313
|
"license": "Apache-2.0",
|
|
4284
4314
|
"license_url": "https://huggingface.co/thinkingmachines/Inkling-2-Mini/blob/ed40e7da625f594fc9c4990f5f66be24873c22d7/README.md",
|
|
4285
|
-
"status": "
|
|
4315
|
+
"status": "deprecated",
|
|
4286
4316
|
"tasks": [
|
|
4287
4317
|
"llm",
|
|
4288
4318
|
"vision"
|
|
@@ -4390,20 +4420,17 @@
|
|
|
4390
4420
|
],
|
|
4391
4421
|
"health_path": "/health",
|
|
4392
4422
|
"verify_timeout_s": 1800,
|
|
4393
|
-
"note": "
|
|
4423
|
+
"note": "DEPRECATED from --llm auto and Model Library recommendations (roadmap decision 70, 2026-11-27): at 2.80 BPW (IQ1_S in blk.0-6 including loop-entry blk.6, IQ2_XXS/T42 in loop layers, Unsloth KLD 0.0595 = 5.56x Q4), paired PolyStrata v0.2.20-poly.5 evaluation (2026-11-26, local-118 GPU0 stand-in) showed BFCL v4 MT-Hard collapsing from 36.0% (72/200) to 19.0% (38/200, -17.0 pp, 95% CI [-24.0, -10.0], McNemar p=5e-6) with 30 consecutive identical tool-call loop steps (Q4: 0), 1 force-terminated infinite loop, +40% empty turns (35 vs 25), C-Eval 520 -3.08 pp (73.85% vs 76.92%, p=0.0195), Chinese-to-English flips under card sampling, and further 8 GB CPU-offload regressions (30/36 diag, extra code truncation and wrong tool call). Kept as deprecated on PolyStrata v0.2.20-poly.6 (parallel: 2, --loopcd-hidden 0.2) for explicit --llm, approved-plan resume, and on-disk library management.\nHistorical calibration (SP219, 2026-11-23-polystrata-inkling2-mini-local118, local-118 GPU0 8 GB share inside a 14 GiB cgroup): 1428/3072 experts in VRAM, whole-card peak 6,294 MiB (1,386 MiB below gate), cgroup peak 6.8 GiB / anon 6.5 GiB, 112.8 tok/s short / 3,836 tok/s prefill / 45.5 tok/s decode after 58.4K prompt (needle hit, vision and tool calls passed). Originally added by roadmap decision 66.\nWindows runs without --vram-pool (card_args keeps it on Linux). PSIW (2026-11-23, RTX 4070 Laptop 8 GB, Windows 11, engine 0.2.19-poly.1): with it the engine claims a 9,092 MiB pool from the process budget Windows reports, larger than the card, stack apply fails and every request longer than about 30 tokens gets \"no VRAM for a prompt's buffers\". Without it, plain text of 54 to 31,022 tokens, Chinese, the CPU picture reader, a tool call and a needle in a 54K-token prompt all pass, card peak 6,992-7,033 MiB of 8,188. PolyStrata's main fixes the engine side (5b080f37b) for its next release.",
|
|
4394
4424
|
"quality": {
|
|
4395
|
-
"score":
|
|
4425
|
+
"score": 47,
|
|
4396
4426
|
"sources": [
|
|
4397
4427
|
{
|
|
4398
4428
|
"type": "intelligence_score",
|
|
4399
|
-
"ref": "catalog/model-matrix/scores.json
|
|
4400
|
-
"date": "2026-11-
|
|
4429
|
+
"ref": "catalog/model-matrix/scores.json v3: installed SimplexAI score of inkling-2-mini/ud-q2_k_xl = 46.6 (AIHOT third-party capability scale minus v3 IRT penalty 8.04 [R3, measured]; gated (MT-Hard -17.0 pp vs ud-q4_k_xl (p=5e-06); tool-loop rate 1.5% > 0.5%); docs/local-models/model-scoring.md, roadmap decisions 33 and 71)",
|
|
4430
|
+
"date": "2026-11-27"
|
|
4401
4431
|
}
|
|
4402
4432
|
]
|
|
4403
4433
|
},
|
|
4404
|
-
"validated_on": [
|
|
4405
|
-
"linux"
|
|
4406
|
-
],
|
|
4407
4434
|
"card_args": [
|
|
4408
4435
|
{
|
|
4409
4436
|
"at_least_bytes": 0,
|
|
@@ -18,7 +18,7 @@ from collections.abc import Sequence
|
|
|
18
18
|
from dataclasses import dataclass, field, replace
|
|
19
19
|
from pathlib import Path, PurePosixPath
|
|
20
20
|
|
|
21
|
-
from localmodels import decode_calibration, vision
|
|
21
|
+
from localmodels import decode_calibration, draft_spec, vision
|
|
22
22
|
from localmodels.catalog_recipes import CATALOG_PATH as CATALOG_PATH
|
|
23
23
|
from localmodels.catalog_recipes import EFFORT_LEVELS as EFFORT_LEVELS
|
|
24
24
|
from localmodels.catalog_recipes import FIXTURE_DIR as FIXTURE_DIR
|
|
@@ -33,6 +33,7 @@ from localmodels.catalog_recipes import ComponentRecipe as ComponentRecipe
|
|
|
33
33
|
from localmodels.catalog_recipes import DecisionFrontend as DecisionFrontend
|
|
34
34
|
from localmodels.catalog_recipes import DecisionRecipe as DecisionRecipe
|
|
35
35
|
from localmodels.catalog_recipes import DecisionTier as DecisionTier
|
|
36
|
+
from localmodels.catalog_recipes import DraftSpecData as DraftSpecData
|
|
36
37
|
from localmodels.catalog_recipes import LlamaComponentRecipe as LlamaComponentRecipe
|
|
37
38
|
from localmodels.catalog_recipes import ModelData as ModelData
|
|
38
39
|
from localmodels.catalog_recipes import OptionalAssetData as OptionalAssetData
|
|
@@ -154,6 +155,7 @@ class CatalogEntry:
|
|
|
154
155
|
kv_k_only: bool = False # MLA: per_layer_f16 is the K latent alone; -ctv does not apply
|
|
155
156
|
mmproj: AssetFile | None = None
|
|
156
157
|
draft: AssetFile | None = None
|
|
158
|
+
draft_spec: draft_spec.DraftSpec | None = None
|
|
157
159
|
mtp_head: AssetFile | None = None
|
|
158
160
|
sampling: dict[str, str] = field(default_factory=dict)
|
|
159
161
|
min_engine: str = ""
|
|
@@ -236,7 +238,8 @@ class CatalogEntry:
|
|
|
236
238
|
agent = self.agent_posture(agent)
|
|
237
239
|
profile = eager(self.profile(variant)) # the agent argv has no --lazy-mode
|
|
238
240
|
depth = self.mtp_draft_depth if self.agent_mtp and self.mtp_capable else 0
|
|
239
|
-
|
|
241
|
+
planned = vision.priced(self.mmproj, profile, budget, agent, mtp_depth=depth)
|
|
242
|
+
return draft_spec.priced(self.draft_spec, planned, budget, agent)
|
|
240
243
|
profile = as_loaded(self.profile(variant), budget)
|
|
241
244
|
return plan_launch(
|
|
242
245
|
profile,
|
|
@@ -247,7 +250,8 @@ class CatalogEntry:
|
|
|
247
250
|
)
|
|
248
251
|
|
|
249
252
|
def download_files(self, variant: QuantVariant) -> tuple[AssetFile, ...]:
|
|
250
|
-
|
|
253
|
+
optional_draft = None if self.draft_spec is not None else self.draft
|
|
254
|
+
extras = tuple(a for a in (self.mmproj, optional_draft, self.mtp_head) if a is not None)
|
|
251
255
|
return tuple(variant.files) + extras
|
|
252
256
|
|
|
253
257
|
def download_bytes(self, variant: QuantVariant) -> int:
|
|
@@ -407,6 +411,22 @@ def _asset_from(d: OptionalAssetData | None) -> AssetFile | None:
|
|
|
407
411
|
)
|
|
408
412
|
|
|
409
413
|
|
|
414
|
+
def _draft_spec_from(
|
|
415
|
+
d: DraftSpecData | None, draft: AssetFile | None
|
|
416
|
+
) -> draft_spec.DraftSpec | None:
|
|
417
|
+
if not d or draft is None:
|
|
418
|
+
return None
|
|
419
|
+
return draft_spec.DraftSpec(
|
|
420
|
+
spec_type=d["spec_type"],
|
|
421
|
+
n_max=int(d["n_max"]),
|
|
422
|
+
weights_bytes=draft.size_bytes,
|
|
423
|
+
overhead_bytes=int(d.get("overhead_bytes", 0)),
|
|
424
|
+
kv_bytes_per_token=int(d.get("kv_bytes_per_token", 0)),
|
|
425
|
+
kv_swa_bytes=int(d.get("kv_swa_bytes", 0)),
|
|
426
|
+
backends=tuple(d.get("backends", ("metal",))),
|
|
427
|
+
)
|
|
428
|
+
|
|
429
|
+
|
|
410
430
|
def _quality(value: int | QualityData) -> tuple[int, tuple[QualitySource, ...]]:
|
|
411
431
|
"""Schema 2 wrote a bare editorial integer; schema 3 cites where the score came from."""
|
|
412
432
|
if isinstance(value, int):
|
|
@@ -437,6 +457,7 @@ def load_catalog(value: object) -> tuple[CatalogEntry, ...]:
|
|
|
437
457
|
if not variants or any(not v.files for v in variants):
|
|
438
458
|
raise ValueError("catalog model requires nonempty variants and files")
|
|
439
459
|
quality, quality_sources = _quality(m.get("quality", 0))
|
|
460
|
+
draft_asset = _asset_from(m.get("draft"))
|
|
440
461
|
entries.append(
|
|
441
462
|
CatalogEntry(
|
|
442
463
|
id=m["id"],
|
|
@@ -445,7 +466,8 @@ def load_catalog(value: object) -> tuple[CatalogEntry, ...]:
|
|
|
445
466
|
repo=m["repo"],
|
|
446
467
|
variants=variants,
|
|
447
468
|
mmproj=_asset_from(m.get("mmproj")),
|
|
448
|
-
draft=
|
|
469
|
+
draft=draft_asset,
|
|
470
|
+
draft_spec=_draft_spec_from(m.get("draft_spec"), draft_asset),
|
|
449
471
|
mtp_head=_asset_from(m.get("mtp_head")),
|
|
450
472
|
n_ctx_train=m["n_ctx_train"],
|
|
451
473
|
full_layers=m["full_layers"],
|
|
@@ -105,6 +105,15 @@ class CardData(TypedDict, total=False):
|
|
|
105
105
|
active_parameters: str
|
|
106
106
|
|
|
107
107
|
|
|
108
|
+
class DraftSpecData(TypedDict, total=False):
|
|
109
|
+
spec_type: str
|
|
110
|
+
n_max: int
|
|
111
|
+
overhead_bytes: int
|
|
112
|
+
kv_bytes_per_token: int
|
|
113
|
+
kv_swa_bytes: int
|
|
114
|
+
backends: list[str]
|
|
115
|
+
|
|
116
|
+
|
|
108
117
|
class OptionalModelData(ModelData, ProvenanceData, CardData, total=False):
|
|
109
118
|
runtime: str
|
|
110
119
|
max_agent_window: int # since 2026-11-16: the agent posture's window cap, tokens
|
|
@@ -134,6 +143,7 @@ class OptionalModelData(ModelData, ProvenanceData, CardData, total=False):
|
|
|
134
143
|
kv_k_only: bool
|
|
135
144
|
mmproj: OptionalAssetData | None
|
|
136
145
|
draft: OptionalAssetData | None
|
|
146
|
+
draft_spec: DraftSpecData | None
|
|
137
147
|
mtp_head: OptionalAssetData | None
|
|
138
148
|
|
|
139
149
|
|
|
@@ -360,6 +370,32 @@ def _pin_problems(model: OptionalModelData) -> list[str]:
|
|
|
360
370
|
return found
|
|
361
371
|
|
|
362
372
|
|
|
373
|
+
def _draft_spec_problems(model: OptionalModelData) -> list[str]:
|
|
374
|
+
spec = model.get("draft_spec")
|
|
375
|
+
if spec is None:
|
|
376
|
+
return []
|
|
377
|
+
found = []
|
|
378
|
+
if not model.get("draft"):
|
|
379
|
+
found.append("draft_spec requires draft")
|
|
380
|
+
if not spec.get("spec_type"):
|
|
381
|
+
found.append("draft_spec.spec_type is missing")
|
|
382
|
+
if int(spec.get("n_max", 0)) <= 0:
|
|
383
|
+
found.append("draft_spec.n_max must be positive")
|
|
384
|
+
for key, val in (
|
|
385
|
+
("overhead_bytes", spec.get("overhead_bytes", 0)),
|
|
386
|
+
("kv_bytes_per_token", spec.get("kv_bytes_per_token", 0)),
|
|
387
|
+
("kv_swa_bytes", spec.get("kv_swa_bytes", 0)),
|
|
388
|
+
):
|
|
389
|
+
if int(val) < 0:
|
|
390
|
+
found.append(f"draft_spec.{key} must be non-negative")
|
|
391
|
+
backends = spec.get("backends")
|
|
392
|
+
if backends is not None and (
|
|
393
|
+
not backends or any(b not in ("metal", "cuda", "cpu") for b in backends)
|
|
394
|
+
):
|
|
395
|
+
found.append("draft_spec.backends must name some of metal, cuda, cpu")
|
|
396
|
+
return found
|
|
397
|
+
|
|
398
|
+
|
|
363
399
|
def problems(value: object) -> list[str]:
|
|
364
400
|
"""Why this catalog is not complete as schema 3, one line per entry and field (never values):
|
|
365
401
|
every model and component names its license with an https link, status, tasks and evidence;
|
|
@@ -383,7 +419,7 @@ def problems(value: object) -> list[str]:
|
|
|
383
419
|
issues.append("quality has no sources")
|
|
384
420
|
elif any(s["type"] not in QUALITY_SOURCE_TYPES for s in quality["sources"]):
|
|
385
421
|
issues.append("quality.sources[].type is unknown")
|
|
386
|
-
issues += _pin_problems(m) + _card_problems(m)
|
|
422
|
+
issues += _pin_problems(m) + _card_problems(m) + _draft_spec_problems(m)
|
|
387
423
|
found += [f"models.{m['id']}: {issue}" for issue in issues]
|
|
388
424
|
for c in doc.get("components", []):
|
|
389
425
|
issues = _entry_problems(c, c["task"], c["runtime"])
|
|
@@ -102,6 +102,7 @@ class AgentPosture:
|
|
|
102
102
|
ubatch_pinned: bool = False
|
|
103
103
|
# llama-server --ctx-checkpoints; None keeps b11370's 32. Metal sets METAL_CTX_CHECKPOINTS.
|
|
104
104
|
ctx_checkpoints: int | None = None
|
|
105
|
+
draft: str = "auto" # optional external drafter (e.g. Metal DSpark): "auto" or "off"
|
|
105
106
|
|
|
106
107
|
|
|
107
108
|
MTP_AUTO = -1
|
|
@@ -172,6 +173,9 @@ class WindowDecision:
|
|
|
172
173
|
vision_reader: str = "off" # agent posture: where the picture reader runs (vision.READERS)
|
|
173
174
|
vision_bytes: int = 0 # the reader's device memory, included in vram_bytes
|
|
174
175
|
ubatch: int = DEFAULT_UBATCH # -ub priced and launched in agent posture
|
|
176
|
+
draft_type: str = "" # optional external drafter --spec-type (e.g. "draft-dspark")
|
|
177
|
+
draft_n_max: int = 0 # optional external drafter --spec-draft-n-max; 0 = off
|
|
178
|
+
draft_bytes: int = 0 # drafter device memory, included in vram_bytes
|
|
175
179
|
|
|
176
180
|
@property
|
|
177
181
|
def spilled(self) -> bool:
|
|
@@ -193,7 +197,8 @@ def agent_unified_bytes(
|
|
|
193
197
|
)
|
|
194
198
|
host = 0 if profile.tied_embeddings else profile.embd_table_bytes
|
|
195
199
|
checkpoints = metal_checkpoint_bytes(profile, posture, decision.slots, decision.kv_types)
|
|
196
|
-
|
|
200
|
+
extras = decision.vision_bytes + decision.draft_bytes + host + checkpoints
|
|
201
|
+
return device + extras + cache_floor_bytes(posture, profile)
|
|
197
202
|
|
|
198
203
|
|
|
199
204
|
def metal_host_bytes(profile: ModelProfile, posture: AgentPosture) -> int:
|
|
@@ -652,17 +652,21 @@ def fetch_hf_repo(
|
|
|
652
652
|
resolved_token = resolve_token("huggingface", token, hub_explicit=hub_explicit)
|
|
653
653
|
web_url = repo_web_url("huggingface", repo_id)
|
|
654
654
|
last_err = ""
|
|
655
|
-
|
|
655
|
+
endpoints = hf_endpoints(explicit_endpoint)
|
|
656
|
+
for idx, endpoint in enumerate(endpoints):
|
|
656
657
|
base = endpoint.rstrip("/")
|
|
657
658
|
meta_url = f"{base}/api/models/{repo_id}" + (
|
|
658
659
|
f"/revision/{urllib.parse.quote(revision, safe='')}" if revision else ""
|
|
659
660
|
)
|
|
660
661
|
ep_token = token_for_endpoint("huggingface", meta_url, resolved_token)
|
|
662
|
+
has_fallback = idx + 1 < len(endpoints)
|
|
661
663
|
try:
|
|
662
664
|
meta = http_json(meta_url, token=ep_token, timeout=timeout)
|
|
663
665
|
if not isinstance(meta, Mapping):
|
|
664
666
|
last_err = "invalid Hugging Face model metadata response"
|
|
665
667
|
continue
|
|
668
|
+
if bool(meta.get("gated")) and resolved_token and ep_token is None and has_fallback:
|
|
669
|
+
continue
|
|
666
670
|
commit = str(meta.get("sha") or revision or "main").strip()
|
|
667
671
|
tree_url = f"{base}/api/models/{repo_id}/tree/{urllib.parse.quote(commit, safe='')}?recursive=true"
|
|
668
672
|
files = _hf_tree_files(
|
|
@@ -670,6 +674,11 @@ def fetch_hf_repo(
|
|
|
670
674
|
)
|
|
671
675
|
except urllib.error.HTTPError as exc:
|
|
672
676
|
if outcome := _http_err_outcome("huggingface", repo_id, web_url, exc, bool(ep_token)):
|
|
677
|
+
if resolved_token and ep_token is None and has_fallback:
|
|
678
|
+
last_err = redact_secrets(
|
|
679
|
+
f"HTTP {exc.code}: {exc.reason}", extra_token=resolved_token
|
|
680
|
+
)
|
|
681
|
+
continue
|
|
673
682
|
return outcome
|
|
674
683
|
last_err = redact_secrets(f"HTTP {exc.code}: {exc.reason}", extra_token=resolved_token)
|
|
675
684
|
continue
|
|
@@ -39,6 +39,7 @@ _MS_TOKEN_RE = re.compile(r"\bms[-_][A-Za-z0-9_-]+\b")
|
|
|
39
39
|
|
|
40
40
|
# Internal unit-test hook ONLY; strictly False in production.
|
|
41
41
|
_ALLOW_INSECURE_LOOPBACK_FOR_TESTS = False
|
|
42
|
+
is_hf_mirror_host = remote_ops_redirect.is_hf_mirror_host
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
def redact_secrets(text: str, *, extra_token: str | None = None) -> str:
|
|
@@ -329,8 +330,8 @@ def _parse_hf_url(url: urllib.parse.SplitResult) -> ParsedRepoSpec:
|
|
|
329
330
|
repo_id = _validate_owner_repo(parts[0], parts[1])
|
|
330
331
|
rev = parts[3] if len(parts) >= 4 and parts[2] in ("blob", "resolve", "tree") else None
|
|
331
332
|
file_name = "/".join(parts[4:]) if len(parts) > 4 and parts[2] in ("blob", "resolve") else None
|
|
332
|
-
host = (url.hostname
|
|
333
|
-
explicit = f"https://{host}" if host
|
|
333
|
+
host = remote_ops_redirect.normalize_host(url.hostname)
|
|
334
|
+
explicit = f"https://{host}" if is_hf_mirror_host(host) else None
|
|
334
335
|
return ParsedRepoSpec(
|
|
335
336
|
"huggingface", repo_id, _validate_revision(rev), None, file_name, explicit
|
|
336
337
|
)
|
|
@@ -415,7 +416,17 @@ def parse_repo_spec(
|
|
|
415
416
|
)
|
|
416
417
|
if lower_raw.startswith("https://"):
|
|
417
418
|
url = urllib.parse.urlsplit(raw)
|
|
418
|
-
|
|
419
|
+
if url.username is not None or url.password is not None:
|
|
420
|
+
raise LibraryError("INVALID_REPO_SPEC", "repository URL must not contain credentials")
|
|
421
|
+
try:
|
|
422
|
+
port = url.port
|
|
423
|
+
except ValueError:
|
|
424
|
+
raise LibraryError("INVALID_REPO_SPEC", "invalid port in repository URL") from None
|
|
425
|
+
if port is not None and port != 443:
|
|
426
|
+
raise LibraryError(
|
|
427
|
+
"INVALID_REPO_SPEC", f"non-standard port {port} is not allowed in repository URL"
|
|
428
|
+
)
|
|
429
|
+
host = remote_ops_redirect.normalize_host(url.hostname)
|
|
419
430
|
if host in HF_HOSTS:
|
|
420
431
|
parsed = _parse_hf_url(url)
|
|
421
432
|
elif host in MS_HOSTS:
|