@simplexai/localmodels-linux-x64 0.1.0-dev.44 → 0.1.0-dev.47

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 (86) hide show
  1. package/bootstrap.identity +1 -1
  2. package/bootstrap.sha256 +81 -83
  3. package/modules/localmodels/__init__.py +1 -1
  4. package/modules/localmodels/__main__.py +0 -1
  5. package/modules/localmodels/bifrost_checks.py +3 -127
  6. package/modules/localmodels/bifrost_clients.py +1 -1
  7. package/modules/localmodels/bifrost_config.py +2 -2
  8. package/modules/localmodels/bifrost_pi.py +1 -1
  9. package/modules/localmodels/budget.py +16 -1
  10. package/modules/localmodels/catalog.json +165 -50
  11. package/modules/localmodels/catalog.py +20 -5
  12. package/modules/localmodels/catalog_recipes.py +9 -1
  13. package/modules/localmodels/context_policy.py +32 -9
  14. package/modules/localmodels/deploy.py +20 -14
  15. package/modules/localmodels/engines-b12588-mix-c0c3de8.json +98 -0
  16. package/modules/localmodels/engines-strata-poly-0.1.45-poly.9.json +41 -1
  17. package/modules/localmodels/engines.py +28 -2
  18. package/modules/localmodels/estimator.py +12 -3
  19. package/modules/localmodels/gateway.py +50 -15
  20. package/modules/localmodels/gateway_accept.py +8 -5
  21. package/modules/localmodels/gateway_bifrost.py +108 -34
  22. package/modules/localmodels/gateway_cli.py +5 -2
  23. package/modules/localmodels/gateway_requests.py +9 -2
  24. package/modules/localmodels/gguf.py +6 -2
  25. package/modules/localmodels/harness.py +38 -11
  26. package/modules/localmodels/harness_gateway.py +1 -1
  27. package/modules/localmodels/harness_probe.py +60 -13
  28. package/modules/localmodels/hosts.py +7 -20
  29. package/modules/localmodels/library_gateway.py +12 -9
  30. package/modules/localmodels/library_pricing.py +7 -9
  31. package/modules/localmodels/library_state.py +6 -4
  32. package/modules/localmodels/npm_transport.py +62 -54
  33. package/modules/localmodels/probe.py +38 -11
  34. package/modules/localmodels/process_identity.py +47 -33
  35. package/modules/localmodels/process_identity_linux.py +135 -0
  36. package/modules/localmodels/process_windows.py +150 -1
  37. package/modules/localmodels/recommend.py +1 -1
  38. package/modules/localmodels/recommend_cli.py +2 -2
  39. package/modules/localmodels/remote_ops.py +14 -6
  40. package/modules/localmodels/remote_ops_download.py +1 -1
  41. package/modules/localmodels/remote_ops_verify.py +0 -33
  42. package/modules/localmodels/runtime_install.py +2 -1
  43. package/modules/localmodels/runtime_io.py +149 -34
  44. package/modules/localmodels/runtime_windows_acl.py +100 -0
  45. package/modules/localmodels/service_probe.py +26 -20
  46. package/modules/localmodels/setup_inspection.py +132 -36
  47. package/modules/localmodels/setup_text.py +14 -0
  48. package/modules/localmodels/source_byok.py +6 -3
  49. package/modules/localmodels/source_cli.py +8 -1
  50. package/modules/localmodels/stack.py +1 -5
  51. package/modules/localmodels/stack_args.py +6 -8
  52. package/modules/localmodels/stack_binding.py +61 -3
  53. package/modules/localmodels/stack_compose.py +3 -8
  54. package/modules/localmodels/stack_events.py +2 -1
  55. package/modules/localmodels/stack_lifecycle.py +7 -4
  56. package/modules/localmodels/stack_plan.py +1 -4
  57. package/modules/localmodels/stack_ports.py +0 -1
  58. package/modules/localmodels/stack_run.py +15 -30
  59. package/modules/localmodels/stack_suite.py +23 -46
  60. package/modules/localmodels/stack_summary.py +0 -1
  61. package/modules/localmodels/stack_try.py +3 -92
  62. package/modules/localmodels/stack_up.py +7 -3
  63. package/modules/localmodels/stack_update.py +5 -5
  64. package/modules/localmodels/stack_view_apply.py +1 -1
  65. package/modules/localmodels/stack_view_llm.py +1 -1
  66. package/modules/localmodels/stack_view_sandbox.py +3 -3
  67. package/modules/localmodels/stack_view_text.py +0 -1
  68. package/modules/localmodels/stack_view_words.py +0 -1
  69. package/modules/localmodels/stack_warm.py +18 -7
  70. package/modules/localmodels/strata_poly_server.py +4 -2
  71. package/modules/localmodels/suite.py +4 -7
  72. package/modules/localmodels/transport.py +7 -1
  73. package/modules/localmodels/tui_dialogs.py +0 -1
  74. package/modules/localmodels/web/view/view.css +0 -3
  75. package/modules/{simplex_localmodels-0.1.0.dev44.dist-info → simplex_localmodels-0.1.0.dev47.dist-info}/METADATA +1 -1
  76. package/modules/{simplex_localmodels-0.1.0.dev44.dist-info → simplex_localmodels-0.1.0.dev47.dist-info}/RECORD +78 -80
  77. package/package.json +1 -1
  78. package/tool.json +1 -1
  79. package/modules/localmodels/bifrost_search.py +0 -66
  80. package/modules/localmodels/gateway_search.py +0 -223
  81. package/modules/localmodels/search-ddgs-9.16.1.txt +0 -222
  82. package/modules/localmodels/search_server.py +0 -474
  83. /package/modules/{simplex_localmodels-0.1.0.dev44.dist-info → simplex_localmodels-0.1.0.dev47.dist-info}/WHEEL +0 -0
  84. /package/modules/{simplex_localmodels-0.1.0.dev44.dist-info → simplex_localmodels-0.1.0.dev47.dist-info}/entry_points.txt +0 -0
  85. /package/modules/{simplex_localmodels-0.1.0.dev44.dist-info → simplex_localmodels-0.1.0.dev47.dist-info}/licenses/NOTICE +0 -0
  86. /package/modules/{simplex_localmodels-0.1.0.dev44.dist-info → simplex_localmodels-0.1.0.dev47.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -40,6 +40,11 @@ _POOL_RAM_FRACTION = 0.75
40
40
  # A card whose free memory is below this share of its total holds someone else's work.
41
41
  BUSY_GPU_FRACTION = 0.10 # another program holding more of a card than this needs consent
42
42
  IDLE_USED_BYTES = 1 << 30 # what an idle card's driver context may hold
43
+ # Cap on observed non-model GPU VRAM kept back as a desktop/WDDM baseline on Windows and
44
+ # display-active GPUs: keeps real desktop overhead (Windows 11 WDDM + DWM + Linger, ~2.2-2.5 GiB)
45
+ # from pretending the card is empty, without letting a transient game or foreign server hide
46
+ # models that fit once that program closes.
47
+ DESKTOP_VRAM_BASELINE_CAP_BYTES = 3 << 30
43
48
  # A GPU container whose image or name says it serves models. Others with GPU access (monitoring
44
49
  # agents, CI builders run with --gpus all) block nothing; their work shows as compute processes.
45
50
  _SERVING_IMAGE_RE = re.compile(
@@ -235,7 +240,17 @@ def idle_cards(facts: HostFacts, need_bytes: int) -> list[GPU]:
235
240
  ours = [p for p in here if p.get("owned") is True]
236
241
  if conflicts.get(g["uuid"]) or any(not p.get("in_suite") for p in ours):
237
242
  return False
238
- return g["used_bytes"] < IDLE_USED_BYTES or any(p.get("in_suite") for p in ours)
243
+ # A Windows desktop always holds part of its card through WDDM contexts that are not
244
+ # foreign work (foreign_work); up to the desktop baseline, with no inference server
245
+ # there, the card is still idle (decision 60), and a Strata engine sizes itself from
246
+ # what is free when it starts.
247
+ taken = max(g["used_bytes"], g["total_bytes"] - g["free_bytes"])
248
+ desktop = (
249
+ facts.get("platform") == "win32"
250
+ and services is not None
251
+ and taken <= DESKTOP_VRAM_BASELINE_CAP_BYTES
252
+ )
253
+ return g["used_bytes"] < IDLE_USED_BYTES or any(p.get("in_suite") for p in ours) or desktop
239
254
 
240
255
  cards = [
241
256
  g
@@ -1381,6 +1381,156 @@
1381
1381
  },
1382
1382
  "ssm_d_conv": 4
1383
1383
  },
1384
+ {
1385
+ "id": "inkling-2-mini",
1386
+ "display_name": "Inkling 2 Mini",
1387
+ "description": "Compact 26.4B reasoning model from Thinking Machines with native vision and fast replies for 24 GB graphics cards and 32 GB Macs.",
1388
+ "note": "Thinking Machines Inkling 2 Mini (26.4B total / 3.4B active unique / 5.4B effective Looped MoE, 1M context, native vision) at UD-Q4_K_M using llama.cpp b12588-mix-c0c3de8 and -ub 128. Never pass --reasoning-budget 0 (triggers an infinite special-token loop on 8K+ prompts); use reasoning_effort instead. At 128K x 2 --kv-unified with GPU mmproj-BF16.gguf (no DSpark), -ub 256 peaked at 24,024 MiB CUDA (exceeding the 23,552 MiB 24 GB gate) and 22.93 GiB Metal wired delta; -ub 128 cuts compute by 1,437.5 MiB to 21,730.2 MiB MTL0 / 21.52 GiB wired delta (~22.5 GiB CUDA), fitting both 24 GB GPUs and 32 GB Macs cleanly. Candidate listed in localmodels library status pending five-layer acceptance and SimplexAI scoring.",
1389
+ "repo": "unsloth/Inkling-2-Mini-GGUF",
1390
+ "base_model": "thinkingmachines/Inkling-2-Mini",
1391
+ "license": "Apache-2.0",
1392
+ "license_url": "https://huggingface.co/thinkingmachines/Inkling-2-Mini/blob/ed40e7da625f594fc9c4990f5f66be24873c22d7/README.md",
1393
+ "family": "other",
1394
+ "publisher": "Thinking Machines",
1395
+ "parameters": "26.4B",
1396
+ "active_parameters": "3.4B",
1397
+ "status": "candidate",
1398
+ "library": true,
1399
+ "engine": "b12588-mix-c0c3de8",
1400
+ "min_engine": "b12588-mix-c0c3de8",
1401
+ "ubatch": 128,
1402
+ "tasks": [
1403
+ "llm",
1404
+ "vision"
1405
+ ],
1406
+ "evidence": [],
1407
+ "variants": [
1408
+ {
1409
+ "quant": "UD-Q4_K_M",
1410
+ "files": [
1411
+ {
1412
+ "path": "Inkling-2-Mini-UD-Q4_K_M.gguf",
1413
+ "size_bytes": 16610543328,
1414
+ "revision": "ae9327c5fbc7333116ba32eee78bb5d2bbefae4f",
1415
+ "sha256": "f90c5a4df44d335ac9f9eea2a15c31d6c5a377b1b3cd9ff7fc2cf123f3cdf7e1"
1416
+ }
1417
+ ],
1418
+ "lazy_bytes": 0,
1419
+ "embd_table_bytes": 492106752,
1420
+ "mtp_layer_bytes": 0
1421
+ }
1422
+ ],
1423
+ "mmproj": {
1424
+ "path": "mmproj-BF16.gguf",
1425
+ "size_bytes": 641805760,
1426
+ "local": "mmproj-Inkling-2-Mini-BF16.gguf",
1427
+ "revision": "ae9327c5fbc7333116ba32eee78bb5d2bbefae4f",
1428
+ "sha256": "2c165c78790e78a3f45a2d1e9e931083e52ee69d45ff2a0dc9c281fdf1a666e7"
1429
+ },
1430
+ "n_ctx_train": 1048576,
1431
+ "full_layers": 8,
1432
+ "recurrent_layers": 0,
1433
+ "per_layer_f16": 4096,
1434
+ "swa_layers": 40,
1435
+ "swa_window": 1024,
1436
+ "moe": true,
1437
+ "n_vocab": 201024,
1438
+ "architecture": "inkling2",
1439
+ "n_embd": 2304,
1440
+ "tied_embeddings": false,
1441
+ "decode_fraction": 0.2,
1442
+ "sampling": {
1443
+ "temp": "1.0",
1444
+ "top-p": "1.0",
1445
+ "top-k": "0",
1446
+ "min-p": "0.0"
1447
+ },
1448
+ "quality": {
1449
+ "score": 0,
1450
+ "sources": [
1451
+ {
1452
+ "type": "editorial",
1453
+ "ref": "unranked candidate pending five-layer evaluation and SimplexAI scoring (Thinking Machines Inkling-2-Mini release 2026-11-20)",
1454
+ "date": "2026-11-21"
1455
+ }
1456
+ ]
1457
+ }
1458
+ },
1459
+ {
1460
+ "id": "inkling-2-mini-iq3xxs",
1461
+ "display_name": "Inkling 2 Mini",
1462
+ "description": "A smaller build of Inkling 2 Mini for 16 GB graphics cards and 24 GB Macs, keeping native vision and fast reasoning.",
1463
+ "note": "Thinking Machines Inkling 2 Mini at UD-IQ3_XXS using llama.cpp b12588-mix-c0c3de8 and -ub 128 for 16 GB NVIDIA cards (Linux and Windows WDDM) and 24 GB Macs. Phase 0 measured 13,758 MiB at 64K x 2 -ub 128 with CPU mmproj offload. Never pass --reasoning-budget 0; use reasoning_effort instead. Candidate listed in localmodels library status pending five-layer acceptance and SimplexAI scoring.",
1464
+ "repo": "unsloth/Inkling-2-Mini-GGUF",
1465
+ "base_model": "thinkingmachines/Inkling-2-Mini",
1466
+ "license": "Apache-2.0",
1467
+ "license_url": "https://huggingface.co/thinkingmachines/Inkling-2-Mini/blob/ed40e7da625f594fc9c4990f5f66be24873c22d7/README.md",
1468
+ "family": "other",
1469
+ "publisher": "Thinking Machines",
1470
+ "parameters": "26.4B",
1471
+ "active_parameters": "3.4B",
1472
+ "status": "candidate",
1473
+ "library": true,
1474
+ "engine": "b12588-mix-c0c3de8",
1475
+ "min_engine": "b12588-mix-c0c3de8",
1476
+ "ubatch": 128,
1477
+ "tasks": [
1478
+ "llm",
1479
+ "vision"
1480
+ ],
1481
+ "evidence": [],
1482
+ "variants": [
1483
+ {
1484
+ "quant": "UD-IQ3_XXS",
1485
+ "files": [
1486
+ {
1487
+ "path": "Inkling-2-Mini-UD-IQ3_XXS.gguf",
1488
+ "size_bytes": 11663309504,
1489
+ "revision": "ae9327c5fbc7333116ba32eee78bb5d2bbefae4f",
1490
+ "sha256": "bd7ef0865adf119b5183e45e741c629bafa649769b33b5ebf689bb4bcc4690d6"
1491
+ }
1492
+ ],
1493
+ "lazy_bytes": 0,
1494
+ "embd_table_bytes": 260527104,
1495
+ "mtp_layer_bytes": 0
1496
+ }
1497
+ ],
1498
+ "mmproj": {
1499
+ "path": "mmproj-BF16.gguf",
1500
+ "size_bytes": 641805760,
1501
+ "local": "mmproj-Inkling-2-Mini-BF16.gguf",
1502
+ "revision": "ae9327c5fbc7333116ba32eee78bb5d2bbefae4f",
1503
+ "sha256": "2c165c78790e78a3f45a2d1e9e931083e52ee69d45ff2a0dc9c281fdf1a666e7"
1504
+ },
1505
+ "n_ctx_train": 1048576,
1506
+ "full_layers": 8,
1507
+ "recurrent_layers": 0,
1508
+ "per_layer_f16": 4096,
1509
+ "swa_layers": 40,
1510
+ "swa_window": 1024,
1511
+ "moe": true,
1512
+ "n_vocab": 201024,
1513
+ "architecture": "inkling2",
1514
+ "n_embd": 2304,
1515
+ "tied_embeddings": false,
1516
+ "decode_fraction": 0.2,
1517
+ "sampling": {
1518
+ "temp": "1.0",
1519
+ "top-p": "1.0",
1520
+ "top-k": "0",
1521
+ "min-p": "0.0"
1522
+ },
1523
+ "quality": {
1524
+ "score": 0,
1525
+ "sources": [
1526
+ {
1527
+ "type": "editorial",
1528
+ "ref": "unranked candidate pending five-layer evaluation and SimplexAI scoring (Thinking Machines Inkling-2-Mini release 2026-11-20)",
1529
+ "date": "2026-11-21"
1530
+ }
1531
+ ]
1532
+ }
1533
+ },
1384
1534
  {
1385
1535
  "id": "ornith-1.5-9b",
1386
1536
  "display_name": "Ornith 1.5 9B",
@@ -3224,7 +3374,7 @@
3224
3374
  "2026-11-05-ornith-8gb-ab-local118",
3225
3375
  "2026-11-11-strata-poly-install-local118"
3226
3376
  ],
3227
- "memory_estimate_bytes": 21474836480,
3377
+ "memory_estimate_bytes": 9663676416,
3228
3378
  "files": [
3229
3379
  {
3230
3380
  "path": "Qwen3.6-35B-A3B-UD-Q3_K_M.gguf",
@@ -3259,7 +3409,7 @@
3259
3409
  "STRATA_ENGINE_READY_S": "1800"
3260
3410
  },
3261
3411
  "profile": {
3262
- "exe": "{engine_dir}/strata-poly",
3412
+ "exe": "{engine}",
3263
3413
  "args": [
3264
3414
  "--model",
3265
3415
  "{model}",
@@ -3272,7 +3422,9 @@
3272
3422
  "--vram-reserve-mib",
3273
3423
  "{vram_reserve_mib}",
3274
3424
  "--tail-skip",
3275
- "0"
3425
+ "0",
3426
+ "--ram-experts-mib",
3427
+ "6144"
3276
3428
  ],
3277
3429
  "cwd": "{deploy_dir}",
3278
3430
  "tokenizer": "{deploy_dir}/tokenizer",
@@ -3280,7 +3432,8 @@
3280
3432
  "display_name": "Qwen3.6-35B-A3B UD-Q3_K_M",
3281
3433
  "log": "{deploy_dir}/engine.log",
3282
3434
  "lib_dirs": [
3283
- "{engine_dir}"
3435
+ "{engine_dir}",
3436
+ "{engine_dir}/nvidia/cu13/bin/x86_64"
3284
3437
  ],
3285
3438
  "host": "127.0.0.1",
3286
3439
  "parallel": 1,
@@ -3300,7 +3453,7 @@
3300
3453
  ],
3301
3454
  "health_path": "/health",
3302
3455
  "verify_timeout_s": 1800,
3303
- "note": "Qwen3.6-35B-A3B UD-Q3_K_M on PolyStrata's strata-poly engine (0.1.45-poly.9) 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, one request at a time, --tail-skip 0 (upstream's default of 6 skips expert rows).\nSP9I (2026-11-11, this engine build, 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).\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: the picture reader (strata-vision) is not in the engine build, so image input is off for this recipe.",
3456
+ "note": "Qwen3.6-35B-A3B UD-Q3_K_M on PolyStrata's strata-poly engine (0.1.45-poly.9) 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, one request at a time, --tail-skip 0 (upstream's default of 6 skips expert rows).\nSP9I (2026-11-11, this engine build, 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, this engine build 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.\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: the picture reader (strata-vision) is not in the engine build, so image input is off for this recipe.",
3304
3457
  "quality": {
3305
3458
  "score": 35,
3306
3459
  "sources": [
@@ -3367,7 +3520,7 @@
3367
3520
  "STRATA_ENGINE_READY_S": "1800"
3368
3521
  },
3369
3522
  "profile": {
3370
- "exe": "{engine_dir}/strata-poly",
3523
+ "exe": "{engine}",
3371
3524
  "args": [
3372
3525
  "--model",
3373
3526
  "{model}",
@@ -3380,7 +3533,9 @@
3380
3533
  "--vram-reserve-mib",
3381
3534
  "{vram_reserve_mib}",
3382
3535
  "--tail-skip",
3383
- "0"
3536
+ "0",
3537
+ "--ram-experts-mib",
3538
+ "6144"
3384
3539
  ],
3385
3540
  "cwd": "{deploy_dir}",
3386
3541
  "tokenizer": "{deploy_dir}/tokenizer",
@@ -3388,7 +3543,8 @@
3388
3543
  "display_name": "Qwen3.6-35B-A3B UD-Q4_K_M",
3389
3544
  "log": "{deploy_dir}/engine.log",
3390
3545
  "lib_dirs": [
3391
- "{engine_dir}"
3546
+ "{engine_dir}",
3547
+ "{engine_dir}/nvidia/cu13/bin/x86_64"
3392
3548
  ],
3393
3549
  "host": "127.0.0.1",
3394
3550
  "parallel": 1,
@@ -3408,7 +3564,7 @@
3408
3564
  ],
3409
3565
  "health_path": "/health",
3410
3566
  "verify_timeout_s": 1800,
3411
- "note": "Qwen3.6-35B-A3B UD-Q4_K_M on PolyStrata's strata-poly engine (0.1.45-poly.9) for 12 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, one request at a time, --tail-skip 0 (upstream's default of 6 skips expert rows).\nSP9I (2026-11-11, this engine build, installed by stack apply into a 12 GB share of a 96 GB card): acceptance 9/9 with this recipe's 1280 MiB reserve, whole-card peak 11682 MiB during a 59.5K-token prompt (11788 MiB with 1152, 12 MiB above the card less 512 MiB); cgroup peak up to 26.9 GB under a 28 GB ceiling, nearly all page cache, anonymous memory at most 2.7 GiB; 94-104 tok/s after the 59K prompt on server-class CPU and memory. No real 12 GB card or desktop CPU was measured.\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: the picture reader (strata-vision) is not in the engine build, so image input is off for this recipe.",
3567
+ "note": "Qwen3.6-35B-A3B UD-Q4_K_M on PolyStrata's strata-poly engine (0.1.45-poly.9) for 12 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, one request at a time, --tail-skip 0 (upstream's default of 6 skips expert rows).\nSP9I (2026-11-11, this engine build, installed by stack apply into a 12 GB share of a 96 GB card): acceptance 9/9 with this recipe's 1280 MiB reserve, whole-card peak 11682 MiB during a 59.5K-token prompt (11788 MiB with 1152, 12 MiB above the card less 512 MiB); cgroup peak up to 26.9 GB under a 28 GB ceiling, nearly all page cache, anonymous memory at most 2.7 GiB; 94-104 tok/s after the 59K prompt on server-class CPU and memory. No real 12 GB card or desktop CPU was measured.\n--ram-experts-mib 6144 as in the Q3 recipe. Measured 2026-11-20 on an RTX 4090 D held to a 12 GB card's budget, Linux, this engine build started with this recipe's planned command in a 9 GiB cgroup: 7.1 GiB of experts in VRAM, 11.6 GiB outside; engine resident memory at most 7.9 GiB, anonymous memory at most 2.3 GiB; 33 tok/s in a short chat, 22 tok/s after a 64K-token prompt, 50 tok/s over a 1,024-token answer. The memory estimate and the service ceilings are unchanged.\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: the picture reader (strata-vision) is not in the engine build, so image input is off for this recipe.",
3412
3568
  "quality": {
3413
3569
  "score": 36,
3414
3570
  "sources": [
@@ -3854,47 +4010,6 @@
3854
4010
  },
3855
4011
  "note": "Kokoro-82M v1.0 FP32 ONNX (thewh1teagle/kokoro-onnx release model-files-v1.0, an export of hexgrad/Kokoro-82M) for debugging and tests: stack plan installs it only on --tts, never under --aux auto; not a product capability. tts_server.py serves OpenAI-style POST /v1/audio/speech (WAV only, 24 kHz mono, at most 2000 characters, one synthesis at a time) in the kokoro-tts-0.6.1.txt venv behind auth_proxy.py; 54 voices, z* through misaki's Chinese G2P, others through espeak-ng. FP32 is faster than INT8 on CPU (lab-12021 2026-10-16: RTF 0.55-0.57 at 2 threads vs 1.63). local-118 2026-10-27, 2 threads: 2.5 s English in 1.4 s, 2000 Chinese characters (408 s audio) in 177 s, peak RSS 1.77 GiB. Magpie has no /v1/audio/speech route, so clients call the service directly. Real stack apply --tts acceptance on lab-12021 2026-10-27 (evidence/2026-10-27-tts-stack-apply-lab12021); thread/load tuning on local-118 the same day: 2 threads holds for all lengths, 4 threads ~1.5x on long text but needs CPUQuota=400%, peak RSS 2037 MiB sits ~10 MiB under MemoryHigh=2G (evidence/2026-10-27-tts-kokoro-tuning-local118)."
3856
4012
  },
3857
- {
3858
- "id": "ddgs-search",
3859
- "task": "search",
3860
- "runtime": "ddgs-cpu",
3861
- "version": "9.16.1",
3862
- "repo": "deedy5/ddgs",
3863
- "revision": "v9.16.1",
3864
- "license": "MIT",
3865
- "license_url": "https://pypi.org/project/ddgs/9.16.1/",
3866
- "status": "candidate",
3867
- "tasks": [
3868
- "search"
3869
- ],
3870
- "evidence": [
3871
- "evidence/2026-10-31-search-ddgs-lab12021/REPORT.md"
3872
- ],
3873
- "memory_estimate_bytes": 104857600,
3874
- "venv": "search-ddgs-9.16.1.txt",
3875
- "venv_bytes": 52428800,
3876
- "alias": "ddgs",
3877
- "contract": "search",
3878
- "port": 18390,
3879
- "threads": 1,
3880
- "limits": {
3881
- "MemoryHigh": "100M",
3882
- "MemoryMax": "150M",
3883
- "CPUQuota": "100%"
3884
- },
3885
- "argv": [
3886
- "{engine}",
3887
- "-I",
3888
- "{search_server}",
3889
- "--host",
3890
- "127.0.0.1",
3891
- "--port",
3892
- "{port}"
3893
- ],
3894
- "health_path": "/health",
3895
- "files": [],
3896
- "note": "Free web search for Magpie, on by default in stack plan (--no-search leaves it out). search_server.py answers Magpie's searxng search API (GET /search?q=&format=json, SearXNG results) on loopback in the search-ddgs-9.16.1.txt venv, through ddgs with primp's browser TLS fingerprint: DuckDuckGo first, then yahoo, brave and mojeek, one engine at a time; an engine that failed rests 120 s. stack apply adds Magpie's own You.com search API (no key, 100 searches a day) after it: when the service answers 502 (no engine answered) Magpie asks You.com, and asks searxng first again next time (checked with Magpie 0.1.1296, 2026-10-31). No engine needs a key, so the service holds no secret, takes no API key and listens on 127.0.0.1 only; queries leave the computer for those engines. Plain HTTP clients get DuckDuckGo's anti-bot page from lab-12021, and ddgs itself is throttled after a burst (202 anti-bot page, brave 429), so results vary with the engines' rate limits. lab-12021 2026-10-31 (evidence/2026-10-31-search-ddgs-lab12021): stack apply installed and verified it (7 results via yahoo, 13 s; ~30 MB resident) and Magpie 3425 took it as its searxng API, but after a day of probing that IP every engine was throttled (2 of 5 searches answered), so it stays a candidate until results hold over time."
3897
- },
3898
4013
  {
3899
4014
  "id": "d3-edge-q8",
3900
4015
  "task": "decision",
@@ -131,6 +131,9 @@ class CatalogEntry:
131
131
  # The agent posture's window never grows past this (0: no cap beyond the posture's target);
132
132
  # the Mac small-memory ladder runs Spark-X2.6 at 64K shared by two slots (decision 57).
133
133
  max_agent_window: int = 0
134
+ ubatch: int = 0 # micro-batch ceiling (-ub); 0 keeps the posture default
135
+ engine: str = "" # optional per-model engine lock tag (engines-<tag>.json)
136
+ library: bool = False # list candidate in library status without admitting to --llm auto
134
137
  swa_layers: int = 0
135
138
  swa_window: int = 0
136
139
  moe: bool = False
@@ -210,6 +213,18 @@ class CatalogEntry:
210
213
  mtp_layer_bytes=variant.mtp_layer_bytes,
211
214
  )
212
215
 
216
+ def agent_posture(self, posture: AgentPosture) -> AgentPosture:
217
+ """``posture`` capped by this entry's window and micro-batch ceilings."""
218
+ updated = posture
219
+ if self.max_agent_window:
220
+ cap = self.max_agent_window
221
+ updated = replace(
222
+ updated, target=min(updated.target, cap), preferred=min(updated.preferred, cap)
223
+ )
224
+ if self.ubatch:
225
+ updated = replace(updated, ubatch=min(updated.ubatch, self.ubatch))
226
+ return updated
227
+
213
228
  def launch_plan(
214
229
  self,
215
230
  variant: QuantVariant,
@@ -218,11 +233,7 @@ class CatalogEntry:
218
233
  agent: AgentPosture | None = None,
219
234
  ) -> LaunchPlan:
220
235
  if agent is not None:
221
- if self.max_agent_window:
222
- cap = self.max_agent_window
223
- agent = replace(
224
- agent, target=min(agent.target, cap), preferred=min(agent.preferred, cap)
225
- )
236
+ agent = self.agent_posture(agent)
226
237
  profile = eager(self.profile(variant)) # the agent argv has no --lazy-mode
227
238
  depth = self.mtp_draft_depth if self.agent_mtp and self.mtp_capable else 0
228
239
  return vision.priced(self.mmproj, profile, budget, agent, mtp_depth=depth)
@@ -232,6 +243,7 @@ class CatalogEntry:
232
243
  budget,
233
244
  mtp_capable=self.mtp_capable,
234
245
  fixed_overhead=RUNTIME_OVERHEAD_BYTES + self.companion_bytes,
246
+ ubatch=self.ubatch,
235
247
  )
236
248
 
237
249
  def download_files(self, variant: QuantVariant) -> tuple[AssetFile, ...]:
@@ -437,6 +449,9 @@ def load_catalog(value: object) -> tuple[CatalogEntry, ...]:
437
449
  recurrent_layers=m["recurrent_layers"],
438
450
  per_layer_f16=m["per_layer_f16"],
439
451
  max_agent_window=m.get("max_agent_window", 0),
452
+ ubatch=m.get("ubatch", 0),
453
+ engine=m.get("engine", ""),
454
+ library=bool(m.get("library", False)),
440
455
  swa_layers=m.get("swa_layers", 0),
441
456
  swa_window=m.get("swa_window", 0),
442
457
  moe=m.get("moe", False),
@@ -17,7 +17,7 @@ SCHEMA_VERSION = 3
17
17
  STATUSES = ("candidate", "validated", "deprecated")
18
18
  PLATFORMS = ("linux", "darwin", "win32") # validated_on: Linux, Apple Silicon Macs, Windows
19
19
  EFFORT_LEVELS = ("low", "medium", "high") # reasoning_effort values a gateway may send, in order
20
- TASKS = tuple("llm vision decision embedding reranker stt tts search privacy-span".split())
20
+ TASKS = tuple("llm vision decision embedding reranker stt tts privacy-span".split())
21
21
  # Model-card families Linger's LocalModelFamily knows (its contract); "other" for the rest.
22
22
  FAMILIES = tuple("qwen gemma llama openai deepseek mistral phi glm kimi claude grok other".split())
23
23
  SCALE = r"[1-9][0-9]*(\.[0-9]+)?[BM]" # a parameter scale as a model's name states it: 27B, 1.7B
@@ -105,6 +105,9 @@ class CardData(TypedDict, total=False):
105
105
  class OptionalModelData(ModelData, ProvenanceData, CardData, total=False):
106
106
  runtime: str
107
107
  max_agent_window: int # since 2026-11-16: the agent posture's window cap, tokens
108
+ ubatch: int # since 2026-11-21: micro-batch ceiling (-ub) for large compute-buffer archs
109
+ engine: str # since 2026-11-21: per-model engine lock tag (engines-<tag>.json)
110
+ library: bool # since 2026-11-21: list candidate in library status without entering --llm auto
108
111
  swa_layers: int
109
112
  swa_window: int
110
113
  moe: bool
@@ -329,6 +332,11 @@ def problems(value: object) -> list[str]:
329
332
  issues = _entry_problems(m, "llm", "llama.cpp")
330
333
  if m.get("runtime", "llama.cpp") not in ("llama.cpp", "mlx-lm"):
331
334
  issues.append("runtime is unknown")
335
+ if (tag := m.get("engine")) is not None:
336
+ if not tag or not CATALOG_PATH.with_name(f"engines-{tag}.json").is_file():
337
+ issues.append(f"engine lock engines-{tag}.json does not exist")
338
+ if (ub := m.get("ubatch")) is not None and ub <= 0:
339
+ issues.append("ubatch must be positive")
332
340
  quality = m.get("quality")
333
341
  if not isinstance(quality, dict) or not quality["sources"]:
334
342
  issues.append("quality has no sources")
@@ -280,13 +280,17 @@ class LaunchPlan:
280
280
  profile: ModelProfile | None = None # as priced at the chosen posture (posture_profile)
281
281
 
282
282
 
283
- def posture_profile(profile: ModelProfile, *, mtp_capable: bool, mtp_prefill: bool) -> ModelProfile:
283
+ def posture_profile(
284
+ profile: ModelProfile, *, mtp_capable: bool, mtp_prefill: bool, ubatch: int = 0
285
+ ) -> ModelProfile:
284
286
  """``profile`` at one launch posture: window-scaled compute buffers grow with the microbatch
285
287
  launch_args passes, and MTP runs a second context beside the target."""
286
- ubatch = PREFILL_UBATCH if mtp_prefill or not mtp_capable else DEFAULT_UBATCH
288
+ effective = PREFILL_UBATCH if mtp_prefill or not mtp_capable else DEFAULT_UBATCH
289
+ if ubatch > 0:
290
+ effective = min(effective, ubatch)
287
291
  contexts = 2 if mtp_capable else 1
288
292
  return replace(
289
- profile, window_compute_per_token=profile.window_compute_bytes * ubatch * contexts
293
+ profile, window_compute_per_token=profile.window_compute_bytes * effective * contexts
290
294
  )
291
295
 
292
296
 
@@ -297,6 +301,7 @@ def plan_launch(
297
301
  mtp_capable: bool = False,
298
302
  fixed_overhead: int = RUNTIME_OVERHEAD_BYTES,
299
303
  requested_window: int | None = None,
304
+ ubatch: int = 0,
300
305
  ) -> LaunchPlan:
301
306
  """Window first, then prefill; price both postures at the effective window.
302
307
 
@@ -309,7 +314,9 @@ def plan_launch(
309
314
  initial: dict[bool, WindowDecision | PhysicsRefusal] = {}
310
315
 
311
316
  def candidate(stacked: bool) -> LaunchPlan:
312
- posture = posture_profile(profile, mtp_capable=mtp_capable, mtp_prefill=stacked)
317
+ posture = posture_profile(
318
+ profile, mtp_capable=mtp_capable, mtp_prefill=stacked, ubatch=ubatch
319
+ )
313
320
  overhead = fixed_overhead + ub_logits_bytes(
314
321
  profile.n_vocab, mtp_capable=mtp_capable, mtp_prefill=stacked
315
322
  )
@@ -364,6 +371,7 @@ def fit_to_free_memory(
364
371
  *,
365
372
  mtp_capable: bool = False,
366
373
  fixed_overhead: int = RUNTIME_OVERHEAD_BYTES,
374
+ ubatch: int = 0,
367
375
  ) -> LaunchPlan:
368
376
  """Narrow a resident capacity plan to the window the card's free memory holds now.
369
377
 
@@ -375,7 +383,9 @@ def fit_to_free_memory(
375
383
  decision = plan.decision
376
384
  if not isinstance(decision, WindowDecision) or decision.spilled:
377
385
  return plan
378
- now = plan_launch(profile, live, mtp_capable=mtp_capable, fixed_overhead=fixed_overhead)
386
+ now = plan_launch(
387
+ profile, live, mtp_capable=mtp_capable, fixed_overhead=fixed_overhead, ubatch=ubatch
388
+ )
379
389
  if isinstance(now.decision, WindowDecision) and not now.decision.spilled:
380
390
  if now.decision.window >= decision.window:
381
391
  return plan
@@ -451,6 +461,7 @@ def launch_args(
451
461
  mtp_draft_depth: int = 3,
452
462
  uma: bool = False,
453
463
  mtp_prefill: bool = False,
464
+ ubatch: int = 0,
454
465
  ) -> list[str]:
455
466
  """Per-model launch flags from a window decision. Explicit -c puts fit into
456
467
  spill-weights-and-hold-ctx; q8 KV cache wherever flash attention exists; -ot placement on
@@ -466,7 +477,19 @@ def launch_args(
466
477
  "--spec-draft-backend-sampling",
467
478
  ]
468
479
  if mtp_prefill:
469
- args += ["-b", "4096", "-ub", str(PREFILL_UBATCH)]
480
+ effective = min(PREFILL_UBATCH, ubatch) if ubatch > 0 else PREFILL_UBATCH
481
+ args += [
482
+ "-b",
483
+ str(max(4096, effective) if ubatch <= 0 else max(DEFAULT_UBATCH, effective)),
484
+ "-ub",
485
+ str(effective),
486
+ ]
487
+ elif ubatch > 0:
488
+ effective = min(DEFAULT_UBATCH, ubatch)
489
+ args += ["-b", str(DEFAULT_UBATCH), "-ub", str(effective)]
490
+ elif ubatch > 0:
491
+ effective = min(PREFILL_UBATCH, ubatch)
492
+ args += ["-b", str(max(DEFAULT_UBATCH, effective)), "-ub", str(effective)]
470
493
  else:
471
494
  args += ["-b", str(PREFILL_UBATCH), "-ub", str(PREFILL_UBATCH)]
472
495
  if flash_attention:
@@ -651,7 +674,7 @@ def agent_launch_args(decision: WindowDecision, posture: AgentPosture = AGENT) -
651
674
  "-fa",
652
675
  "on",
653
676
  "-b",
654
- str(posture.ubatch),
677
+ str(max(AGENT.ubatch, posture.ubatch)),
655
678
  "-ub",
656
679
  str(posture.ubatch),
657
680
  "--fit",
@@ -675,10 +698,10 @@ def agent_launch_args(decision: WindowDecision, posture: AgentPosture = AGENT) -
675
698
  if posture.ctx_checkpoints is not None
676
699
  else []
677
700
  ),
678
- # llama.cpp reads 0 as thinking off and -1 as no cap: no cap leaves the flag out.
701
+ # llama.cpp reads 0 as thinking off and -1 as no cap: only a positive cap emits the flag.
679
702
  *(
680
703
  ["--reasoning-budget", str(posture.reasoning_budget)]
681
- if posture.reasoning_budget
704
+ if posture.reasoning_budget > 0
682
705
  else []
683
706
  ),
684
707
  ]
@@ -299,7 +299,7 @@ def _choose_agent_placement(
299
299
  live = agent_budget(placement, facts, host_bytes=host_side)
300
300
  if live is None:
301
301
  continue
302
- agent = posture_for(options.agent, placement.backend)
302
+ agent = entry.agent_posture(posture_for(options.agent, placement.backend))
303
303
  planned = entry.launch_plan(variant, live, agent=agent)
304
304
  if isinstance(planned.decision, PhysicsRefusal) or planned.decision.spilled:
305
305
  if isinstance(planned.decision, PhysicsRefusal) and (
@@ -371,6 +371,7 @@ def _choose_placement(
371
371
  live,
372
372
  mtp_capable=entry.mtp_capable,
373
373
  fixed_overhead=RUNTIME_OVERHEAD_BYTES + entry.companion_bytes,
374
+ ubatch=entry.ubatch,
374
375
  )
375
376
  fallbacks.append((now.decision.spill_bytes, placement, now))
376
377
  if not fallbacks:
@@ -437,8 +438,10 @@ def build_plan(
437
438
  where = deployment(entry.id, options.port, base, options.bind, hosts.deployment_dirs(host_id))
438
439
  model_path = f"{models_dir}/{files[0]['local_name']}"
439
440
  if options.agent is not None:
440
- args = agent_launch_args(decision, posture_for(options.agent, placement.backend))
441
+ agent_eff = entry.agent_posture(posture_for(options.agent, placement.backend))
442
+ args = agent_launch_args(decision, agent_eff)
441
443
  else:
444
+ agent_eff = None
442
445
  args = launch_args(
443
446
  as_loaded(entry.profile(variant), placement.budget),
444
447
  decision,
@@ -446,6 +449,7 @@ def build_plan(
446
449
  mtp_draft_depth=entry.mtp_draft_depth,
447
450
  uma=placement.budget.uma,
448
451
  mtp_prefill=launch.mtp_prefill,
452
+ ubatch=entry.ubatch,
449
453
  )
450
454
  argv = [
451
455
  options.engine_path or "",
@@ -564,15 +568,13 @@ def build_plan(
564
568
  **(
565
569
  {
566
570
  "unified_bytes": agent_unified_bytes(
567
- eager(entry.profile(variant)),
568
- decision,
569
- posture_for(options.agent, placement.backend),
571
+ eager(entry.profile(variant)), decision, agent_eff
570
572
  ),
571
573
  "cache_floor_bytes": cache_floor_bytes(
572
- options.agent, eager(entry.profile(variant))
574
+ agent_eff, eager(entry.profile(variant))
573
575
  ),
574
576
  }
575
- if options.agent is not None and placement.backend == "metal"
577
+ if agent_eff is not None and placement.backend == "metal"
576
578
  else {}
577
579
  ),
578
580
  },
@@ -634,11 +636,12 @@ def _engine_plan(
634
636
  warnings: list[str],
635
637
  argv: list[str],
636
638
  ) -> ReleaseEngine:
639
+ required = entry.min_engine or entry.engine
637
640
  if options.engine_path:
638
641
  known = next((e for e in facts["engines"] if e["path"] == options.engine_path), None)
639
642
  tag = known["build"] if known else None
640
643
  if cat.engine_too_old(entry, tag):
641
- raise PlanError(f"{entry.display_name} needs llama.cpp {entry.min_engine} or newer")
644
+ raise PlanError(f"{entry.display_name} needs llama.cpp {required} or newer")
642
645
  if not tag:
643
646
  warnings.append("reused engine has no comparable release; model support unconfirmed")
644
647
  engine: ReleaseEngine = {"source": "existing", "binary": options.engine_path, "build": tag}
@@ -646,7 +649,7 @@ def _engine_plan(
646
649
  host_engine(
647
650
  {**facts, "engines": [known] if known else []},
648
651
  argv,
649
- entry.min_engine or None,
652
+ required or None,
650
653
  False,
651
654
  EngineUnavailableError(
652
655
  "CPU deployment must confirm every reused-engine launch option; "
@@ -656,18 +659,21 @@ def _engine_plan(
656
659
  )
657
660
  else:
658
661
  try:
659
- build = select_engine_build(facts, backend)
660
- if cat.engine_too_old(entry, build["tag"]):
661
- lock = engine_lock_path(entry.min_engine)
662
+ lock_tag = entry.engine or None
663
+ if lock_tag is None:
664
+ build = select_engine_build(facts, backend)
665
+ lock_tag = entry.min_engine if cat.engine_too_old(entry, build["tag"]) else None
666
+ if lock_tag is not None:
667
+ lock = engine_lock_path(lock_tag)
662
668
  if not lock.is_file():
663
669
  raise PlanError(
664
- f"{entry.display_name} needs llama.cpp {entry.min_engine}; "
670
+ f"{entry.display_name} needs llama.cpp {lock_tag}; "
665
671
  "no pinned engine lock is available"
666
672
  )
667
673
  build = select_engine_build(facts, backend, lock)
668
674
  engine = release_engine(build, options.base_dir)
669
675
  except EngineUnavailableError as exc:
670
- engine = host_engine(facts, argv, entry.min_engine or None, False, exc, warnings)
676
+ engine = host_engine(facts, argv, required or None, False, exc, warnings)
671
677
  if backend == "cpu" and engine["source"] == "existing":
672
678
  if entry.mmproj is not None or entry.mtp_capable:
673
679
  raise PlanError("CPU: reused engine vision/draft placement unknown; use pinned engine")