@simplexai/localmodels-linux-x64 0.1.0-dev.32.build.git9f03dd7a81cec1338df8eaf613ec9e3013365c9c → 0.1.0-dev.36
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 +141 -99
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/__main__.py +4 -0
- package/modules/localmodels/app.py +7 -2
- package/modules/localmodels/approval.py +4 -4
- package/modules/localmodels/bifrost_checks.py +121 -3
- package/modules/localmodels/bifrost_provider.py +53 -0
- package/modules/localmodels/bifrost_unit.py +32 -1
- package/modules/localmodels/budget.py +7 -1
- package/modules/localmodels/catalog.json +286 -12
- package/modules/localmodels/catalog.py +30 -29
- package/modules/localmodels/catalog_add.py +1 -0
- package/modules/localmodels/cli_parser.py +10 -2
- package/modules/localmodels/component.py +7 -1
- package/modules/localmodels/decode_calibration.json +6 -0
- package/modules/localmodels/decode_calibration.py +104 -0
- package/modules/localmodels/deploy.py +44 -7
- package/modules/localmodels/deploy_steps.py +10 -1
- package/modules/localmodels/engines-strata-0.1.49.2.json +31 -0
- package/modules/localmodels/engines-strata-0.1.59.1.json +31 -0
- package/modules/localmodels/engines.json +57 -1
- package/modules/localmodels/engines.py +6 -2
- package/modules/localmodels/estimator.py +21 -7
- package/modules/localmodels/frontend.py +4 -4
- package/modules/localmodels/gateway.py +14 -4
- package/modules/localmodels/gateway_app_bifrost.py +4 -3
- package/modules/localmodels/gateway_bifrost.py +70 -57
- package/modules/localmodels/gateway_probe.py +3 -4
- package/modules/localmodels/gguf.py +7 -0
- package/modules/localmodels/harness.py +24 -25
- package/modules/localmodels/harness_gateway.py +19 -10
- package/modules/localmodels/harness_probe.py +33 -6
- package/modules/localmodels/hosts.py +73 -9
- package/modules/localmodels/install.py +36 -6
- package/modules/localmodels/library_cli.py +179 -0
- package/modules/localmodels/library_convert.py +132 -0
- package/modules/localmodels/library_gateway.py +471 -0
- package/modules/localmodels/library_jobs.py +314 -0
- package/modules/localmodels/library_model.py +246 -0
- package/modules/localmodels/library_pricing.py +347 -0
- package/modules/localmodels/library_serve.py +348 -0
- package/modules/localmodels/library_state.py +373 -0
- package/modules/localmodels/library_status.py +349 -0
- package/modules/localmodels/llm_rank.py +77 -8
- package/modules/localmodels/memcalc.py +7 -30
- package/modules/localmodels/metal.py +26 -0
- package/modules/localmodels/metal_probe.py +11 -7
- package/modules/localmodels/plan_envelope.py +4 -1
- package/modules/localmodels/preparation.py +49 -0
- package/modules/localmodels/probe.py +8 -8
- package/modules/localmodels/process_identity.py +536 -9
- package/modules/localmodels/quant_formats.py +123 -0
- package/modules/localmodels/recommend.py +32 -3
- package/modules/localmodels/recommend_cli.py +8 -4
- package/modules/localmodels/records.py +1 -0
- package/modules/localmodels/remote_ops.py +104 -6
- package/modules/localmodels/remote_ops_download.py +17 -2
- package/modules/localmodels/remote_ops_prepare.py +425 -0
- package/modules/localmodels/remote_ops_remove.py +40 -7
- package/modules/localmodels/remote_ops_service.py +110 -8
- package/modules/localmodels/remote_ops_verify.py +15 -2
- package/modules/localmodels/runtime_auth.py +31 -1
- package/modules/localmodels/runtime_cli.py +3 -4
- package/modules/localmodels/runtime_io.py +50 -6
- package/modules/localmodels/service_autostart.py +45 -1
- package/modules/localmodels/service_control.py +13 -0
- package/modules/localmodels/service_deployment.py +12 -3
- package/modules/localmodels/service_jobs.py +33 -4
- package/modules/localmodels/service_probe.py +67 -13
- package/modules/localmodels/service_stop.py +152 -0
- package/modules/localmodels/service_worker.py +9 -1
- package/modules/localmodels/services_cli.py +50 -6
- package/modules/localmodels/setup_inspection.py +34 -25
- package/modules/localmodels/setup_text.py +118 -0
- package/modules/localmodels/sizecalc.py +625 -0
- package/modules/localmodels/sizecalc_cli.py +249 -0
- package/modules/localmodels/stack.py +69 -17
- package/modules/localmodels/stack_args.py +91 -19
- package/modules/localmodels/stack_auto.py +78 -0
- package/modules/localmodels/stack_binding.py +23 -35
- package/modules/localmodels/stack_card.py +195 -0
- package/modules/localmodels/stack_cleanup.py +379 -0
- package/modules/localmodels/stack_clients.py +4 -1
- package/modules/localmodels/stack_compose.py +173 -206
- package/modules/localmodels/stack_console.py +2 -0
- package/modules/localmodels/stack_decision.py +3 -2
- package/modules/localmodels/stack_down.py +189 -0
- package/modules/localmodels/stack_events.py +54 -0
- package/modules/localmodels/stack_hardware.py +30 -34
- package/modules/localmodels/stack_journal.py +29 -8
- package/modules/localmodels/stack_ledger.py +411 -0
- package/modules/localmodels/stack_lifecycle.py +162 -167
- package/modules/localmodels/stack_llm_ram.py +57 -5
- package/modules/localmodels/stack_memory.py +721 -0
- package/modules/localmodels/stack_picks.py +147 -0
- package/modules/localmodels/stack_plan.py +143 -25
- package/modules/localmodels/stack_ports.py +22 -0
- package/modules/localmodels/stack_preflight.py +699 -0
- package/modules/localmodels/stack_review.py +123 -5
- package/modules/localmodels/stack_rollback.py +2 -0
- package/modules/localmodels/stack_route.py +256 -0
- package/modules/localmodels/stack_run.py +11 -0
- package/modules/localmodels/stack_suite.py +107 -20
- package/modules/localmodels/stack_summary.py +65 -4
- package/modules/localmodels/stack_try.py +354 -0
- package/modules/localmodels/stack_try_client.py +194 -0
- package/modules/localmodels/stack_try_docs.py +139 -0
- package/modules/localmodels/stack_up.py +8 -1
- package/modules/localmodels/stack_update.py +29 -4
- package/modules/localmodels/stack_verify.py +3 -1
- package/modules/localmodels/stack_view.py +10 -11
- package/modules/localmodels/stack_view_apply.py +4 -2
- package/modules/localmodels/stack_view_events.py +2 -1
- package/modules/localmodels/stack_view_serve.py +3 -0
- package/modules/localmodels/stack_view_text.py +1 -1
- package/modules/localmodels/stack_view_words.py +4 -1
- package/modules/localmodels/stack_warm.py +574 -0
- package/modules/localmodels/stack_whatif.py +558 -0
- package/modules/localmodels/suite.py +48 -39
- package/modules/localmodels/tool_archive.py +40 -0
- package/modules/localmodels/tools.json +8 -0
- package/modules/localmodels/transport.py +1 -0
- package/modules/localmodels/vision.py +8 -1
- package/modules/localmodels/web/sizecalc/app.js +431 -0
- package/modules/localmodels/web/sizecalc/calc.js +269 -0
- package/modules/localmodels/web/sizecalc/page.html +362 -0
- package/modules/localmodels/web/view/ASSET-SOURCES.md +11 -0
- package/modules/localmodels/web/view/i18n.js +1 -1
- package/modules/localmodels/web/view/logo-claude.svg +3 -0
- package/modules/localmodels/web/view/logo-codex.png +0 -0
- package/modules/localmodels/web/view/logo-pi.svg +6 -0
- package/modules/localmodels/web/view/view.css +4 -0
- package/modules/localmodels/web/view/view.js +15 -6
- package/modules/{simplex_localmodels-0.1.0.dev32.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/METADATA +1 -1
- package/modules/simplex_localmodels-0.1.0.dev36.dist-info/RECORD +242 -0
- package/package.json +1 -1
- package/tool.json +1 -1
- package/modules/simplex_localmodels-0.1.0.dev32.dist-info/RECORD +0 -200
- /package/modules/{simplex_localmodels-0.1.0.dev32.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev32.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev32.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/licenses/NOTICE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev32.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"id": "qwen3.8-27b",
|
|
6
6
|
"display_name": "Qwen3.8 27B",
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "The best all-round model for agent work: strong with tools and code, reads images, and stays fast in long conversations.",
|
|
8
8
|
"repo": "unsloth/Qwen3.8-27B-GGUF",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"license_url": "https://huggingface.co/Qwen/Qwen3.8-27B/blob/main/LICENSE",
|
|
@@ -161,7 +161,8 @@
|
|
|
161
161
|
{
|
|
162
162
|
"id": "qwen3.8-27b-iq3s",
|
|
163
163
|
"display_name": "Qwen3.8 27B",
|
|
164
|
-
"description": "Qwen3.8 27B
|
|
164
|
+
"description": "A smaller build of Qwen3.8 27B for 16 GB graphics cards and 32 GB Macs; reads images and answers nearly as well.",
|
|
165
|
+
"note": "Qwen3.8 27B at UD-IQ3_S for 32 GB unified-memory Macs and 16 GB NVIDIA cards, LLM only at 64K. On CUDA the stack CLI install passed on a 16 GB share of a 96 GB card (I16); a real 16 GB card and the five-layer product acceptance remain unverified",
|
|
165
166
|
"repo": "unsloth/Qwen3.8-27B-GGUF",
|
|
166
167
|
"license": "Apache-2.0",
|
|
167
168
|
"license_url": "https://huggingface.co/Qwen/Qwen3.8-27B/blob/main/LICENSE",
|
|
@@ -399,7 +400,8 @@
|
|
|
399
400
|
{
|
|
400
401
|
"id": "qwen3.8-flash-next-iq2xs",
|
|
401
402
|
"display_name": "Qwen3.8 Flash Next",
|
|
402
|
-
"description": "
|
|
403
|
+
"description": "A large, fast model for Macs with 96 GB of memory or more, for demanding agent and coding work.",
|
|
404
|
+
"note": "Qwen3.8 Flash Next GSQ-RCO IQ2_XS on plain llama.cpp for unified-memory Macs of 96 GB and more: a 125B MoE with about 6B active, every expert resident",
|
|
403
405
|
"repo": "ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF",
|
|
404
406
|
"license": "qwen-community-1.0",
|
|
405
407
|
"license_url": "https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE",
|
|
@@ -484,7 +486,8 @@
|
|
|
484
486
|
{
|
|
485
487
|
"id": "qwen3.8-flash-next-iq3s",
|
|
486
488
|
"display_name": "Qwen3.8 Flash Next",
|
|
487
|
-
"description": "Qwen3.8 Flash Next
|
|
489
|
+
"description": "A more accurate build of Qwen3.8 Flash Next for Macs with 128 GB of memory or more.",
|
|
490
|
+
"note": "Qwen3.8 Flash Next GSQ-RCO IQ3_S on plain llama.cpp for unified-memory Macs of 128 GB and more: a 125B MoE with about 6B active, every expert resident; smaller than UD-IQ4_XS and scored higher (publisher retention)",
|
|
488
491
|
"repo": "ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF",
|
|
489
492
|
"license": "qwen-community-1.0",
|
|
490
493
|
"license_url": "https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE",
|
|
@@ -569,7 +572,8 @@
|
|
|
569
572
|
{
|
|
570
573
|
"id": "qwen3.6-35b-a3b",
|
|
571
574
|
"display_name": "Qwen3.6 35B-A3B",
|
|
572
|
-
"description": "
|
|
575
|
+
"description": "A fast model for everyday agent tasks that reads images and handles long conversations.",
|
|
576
|
+
"note": "Mixture-of-experts with multi-token prediction; sees images. On a 24GB card the IQ4_XS build holds a 128K window for three concurrent requests beside a GPU decision model",
|
|
573
577
|
"repo": "unsloth/Qwen3.6-35B-A3B-MTP-GGUF",
|
|
574
578
|
"license": "Apache-2.0",
|
|
575
579
|
"license_url": "https://huggingface.co/Qwen/Qwen3.6-35B-A3B/blob/main/LICENSE",
|
|
@@ -1174,7 +1178,7 @@
|
|
|
1174
1178
|
{
|
|
1175
1179
|
"id": "spark-x2.6-4b",
|
|
1176
1180
|
"display_name": "Spark-X2.6 4B",
|
|
1177
|
-
"description": "Spark-X2.6 4B
|
|
1181
|
+
"description": "Spark-X2.6 4B Q8_0 candidate: native Windows NVIDIA product fallback only when no validated LLM fits; WINSTK1 install and CYC3 reinstall evidence on a 16 GB card, physical 8/12 GB full product acceptance pending. Vendor editorial anchor 72 is not a SimplexAI score",
|
|
1178
1182
|
"repo": "XHToken/Spark-X2.6-4B-GGUF",
|
|
1179
1183
|
"license": "Apache-2.0",
|
|
1180
1184
|
"license_url": "https://huggingface.co/XHToken/Spark-X2.6-4B-GGUF/blob/0e8aa39a34063946ce07bbaaff392093b11b6829/README.md",
|
|
@@ -1186,7 +1190,11 @@
|
|
|
1186
1190
|
"tasks": [
|
|
1187
1191
|
"llm"
|
|
1188
1192
|
],
|
|
1189
|
-
"evidence": [
|
|
1193
|
+
"evidence": [
|
|
1194
|
+
"2026-11-04-v3-llamacpp-tiers",
|
|
1195
|
+
"2026-11-11-windows-native-stack",
|
|
1196
|
+
"2026-11-12-windows-reinstall-pin"
|
|
1197
|
+
],
|
|
1190
1198
|
"variants": [
|
|
1191
1199
|
{
|
|
1192
1200
|
"quant": "Q8_0",
|
|
@@ -1291,7 +1299,8 @@
|
|
|
1291
1299
|
{
|
|
1292
1300
|
"id": "ling-3.0-tiny",
|
|
1293
1301
|
"display_name": "Ling 3.0 tiny",
|
|
1294
|
-
"description": "
|
|
1302
|
+
"description": "A small, quick model for Macs with little memory, for simple everyday tasks.",
|
|
1303
|
+
"note": "Ling 3.0 tiny (2026-08, 7.9B MoE, 1.3B active, MLA + linear attention) at Q4_K_M as an explicit alternative on small unified-memory Macs, and for 32 GB ones whose user picked embedding and reranker",
|
|
1295
1304
|
"repo": "inclusionAI/Ling-3.0-tiny-GGUF",
|
|
1296
1305
|
"license": "MIT",
|
|
1297
1306
|
"license_url": "https://huggingface.co/inclusionAI/Ling-3.0-tiny-GGUF/blob/01b850e29ed5b44e2b810160ff980a9bb353296f/README.md",
|
|
@@ -2749,7 +2758,7 @@
|
|
|
2749
2758
|
"vision": true
|
|
2750
2759
|
}
|
|
2751
2760
|
],
|
|
2752
|
-
"engine": "strata-0.1.49.
|
|
2761
|
+
"engine": "strata-0.1.49.2",
|
|
2753
2762
|
"alias": "swift-1.5-iq3_s",
|
|
2754
2763
|
"contract": "chat",
|
|
2755
2764
|
"context": 131072,
|
|
@@ -2845,7 +2854,25 @@
|
|
|
2845
2854
|
"30"
|
|
2846
2855
|
],
|
|
2847
2856
|
"verify_timeout_s": 4800,
|
|
2848
|
-
"note": "Swift 1.5 IQ3_S on Strata 0.2.2 (engine 0.1.47), 128K window: ST2 measured 19.9 GiB VRAM beside d3-nano, 44 GiB RAM ceiling, 64-84 tok/s decode.\nThe pack and MTP draft files are
|
|
2857
|
+
"note": "Swift 1.5 IQ3_S on Strata 0.2.2 (engine 0.1.47), 128K window: ST2 measured 19.9 GiB VRAM beside d3-nano, 44 GiB RAM ceiling, 64-84 tok/s decode.\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.\nA cold first start under the 46G ceiling fills the VRAM expert cache from disk at 30-70 MB/s and page-locks ~36 GiB; it took ~15 min on lab-12020, past Strata's default 900 s engine-ready limit, so STRATA_ENGINE_READY_S is raised.\nOn lab-12021 (62 GiB, 2026-10-22) the 256K window with 8 GiB resident headroom pushed the engine's page-locked memory past the 44G MemoryHigh after a 244K-token conversation (shmem 42.3 GiB + anon 3.5 GiB); every later request was throttled (follow-up turns 269-1229 s). The window is 128K and the headroom 10 GiB so the locked set leaves room to grow.\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.\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. Not measured on Swift, which caches fewer experts on the card and so misses more.",
|
|
2858
|
+
"preparation": {
|
|
2859
|
+
"kind": "strata-qwen4exp-v1",
|
|
2860
|
+
"engine_dir": "{engine_dir}",
|
|
2861
|
+
"model_dir": "{model_dir}",
|
|
2862
|
+
"gguf": "{model}",
|
|
2863
|
+
"pack": "packs/iq3_s",
|
|
2864
|
+
"experts_bin": false,
|
|
2865
|
+
"gguf_py": {
|
|
2866
|
+
"name": "llama.cpp-3cf03257f219afbe7334045ff7c6a06ac68c627d.tar.gz",
|
|
2867
|
+
"url": "https://codeload.github.com/ggml-org/llama.cpp/tar.gz/3cf03257f219afbe7334045ff7c6a06ac68c627d",
|
|
2868
|
+
"size_bytes": 37513049,
|
|
2869
|
+
"sha256": "c076d7534afa0e5d0ec2a0d425b11e791c16f3de0d727221aea071cef156a280"
|
|
2870
|
+
},
|
|
2871
|
+
"mtp_revision": "de4b8e4d43b917e7706784d8bb445c9af86a3540",
|
|
2872
|
+
"download_bytes": 5260203353,
|
|
2873
|
+
"scratch_bytes": 9663676416,
|
|
2874
|
+
"hf_endpoint": "{hf_endpoint}"
|
|
2875
|
+
}
|
|
2849
2876
|
},
|
|
2850
2877
|
{
|
|
2851
2878
|
"id": "flash-next-iq2xs",
|
|
@@ -3016,7 +3043,7 @@
|
|
|
3016
3043
|
"vision": true
|
|
3017
3044
|
}
|
|
3018
3045
|
],
|
|
3019
|
-
"engine": "strata-0.1.49.
|
|
3046
|
+
"engine": "strata-0.1.49.2",
|
|
3020
3047
|
"alias": "qwen3.8-flash-next-iq2_xs",
|
|
3021
3048
|
"contract": "chat",
|
|
3022
3049
|
"context": 262144,
|
|
@@ -3120,7 +3147,7 @@
|
|
|
3120
3147
|
"30"
|
|
3121
3148
|
],
|
|
3122
3149
|
"verify_timeout_s": 4800,
|
|
3123
|
-
"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
|
|
3150
|
+
"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.",
|
|
3124
3151
|
"quality": {
|
|
3125
3152
|
"score": 57,
|
|
3126
3153
|
"sources": [
|
|
@@ -3130,6 +3157,24 @@
|
|
|
3130
3157
|
"date": "2026-11-04"
|
|
3131
3158
|
}
|
|
3132
3159
|
]
|
|
3160
|
+
},
|
|
3161
|
+
"preparation": {
|
|
3162
|
+
"kind": "strata-qwen4exp-v1",
|
|
3163
|
+
"engine_dir": "{engine_dir}",
|
|
3164
|
+
"model_dir": "{model_dir}",
|
|
3165
|
+
"gguf": "{model}",
|
|
3166
|
+
"pack": "packs/iq2_xs",
|
|
3167
|
+
"experts_bin": true,
|
|
3168
|
+
"gguf_py": {
|
|
3169
|
+
"name": "llama.cpp-3cf03257f219afbe7334045ff7c6a06ac68c627d.tar.gz",
|
|
3170
|
+
"url": "https://codeload.github.com/ggml-org/llama.cpp/tar.gz/3cf03257f219afbe7334045ff7c6a06ac68c627d",
|
|
3171
|
+
"size_bytes": 37513049,
|
|
3172
|
+
"sha256": "c076d7534afa0e5d0ec2a0d425b11e791c16f3de0d727221aea071cef156a280"
|
|
3173
|
+
},
|
|
3174
|
+
"mtp_revision": "de4b8e4d43b917e7706784d8bb445c9af86a3540",
|
|
3175
|
+
"download_bytes": 5260203353,
|
|
3176
|
+
"scratch_bytes": 9663676416,
|
|
3177
|
+
"hf_endpoint": "{hf_endpoint}"
|
|
3133
3178
|
}
|
|
3134
3179
|
},
|
|
3135
3180
|
{
|
|
@@ -4984,6 +5029,235 @@
|
|
|
4984
5029
|
"Self-quantized by this repository, not an upstream file; downloaded from the internal GitLab artifact registry",
|
|
4985
5030
|
"Saves little: most of a 0.85B model is the vocabulary matrix; only the 8192 prompt cap, CUDA VRAM not measured"
|
|
4986
5031
|
]
|
|
5032
|
+
},
|
|
5033
|
+
{
|
|
5034
|
+
"id": "flash-next-v31-ud-iq3-xxs",
|
|
5035
|
+
"task": "llm",
|
|
5036
|
+
"runtime": "strata",
|
|
5037
|
+
"version": "UD-IQ3_XXS",
|
|
5038
|
+
"repo": "unsloth/Qwen3.8-Flash-Next-GGUF",
|
|
5039
|
+
"revision": "d96201194f103c906994f283f504209dc8d2a10c",
|
|
5040
|
+
"license": "qwen-community-1.0",
|
|
5041
|
+
"license_url": "https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE",
|
|
5042
|
+
"artifact_license": "qwen-community-1.0",
|
|
5043
|
+
"artifact_license_url": "https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF/blob/d96201194f103c906994f283f504209dc8d2a10c/README.md",
|
|
5044
|
+
"base_model": "Qwen/Qwen3.8-Flash-Next",
|
|
5045
|
+
"base_license": "qwen-community-1.0",
|
|
5046
|
+
"base_license_url": "https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE",
|
|
5047
|
+
"status": "candidate",
|
|
5048
|
+
"tasks": [
|
|
5049
|
+
"llm",
|
|
5050
|
+
"vision"
|
|
5051
|
+
],
|
|
5052
|
+
"evidence": [],
|
|
5053
|
+
"memory_estimate_bytes": 63350767616,
|
|
5054
|
+
"engine": "strata-0.1.59.1",
|
|
5055
|
+
"alias": "qwen3.8-flash-next-v31-ud-iq3-xxs",
|
|
5056
|
+
"contract": "chat",
|
|
5057
|
+
"context": 65536,
|
|
5058
|
+
"port": 18100,
|
|
5059
|
+
"vram_bytes": 22888316928,
|
|
5060
|
+
"min_ram_total_bytes": 68719476736,
|
|
5061
|
+
"limits": {
|
|
5062
|
+
"MemoryHigh": "59G",
|
|
5063
|
+
"MemoryMax": "61G",
|
|
5064
|
+
"TimeoutStopSec": "120"
|
|
5065
|
+
},
|
|
5066
|
+
"vision": {
|
|
5067
|
+
"mmproj": "mmproj-BF16.gguf",
|
|
5068
|
+
"source": "BF16 projector from the same pinned Unsloth revision. CPU reader below the existing 23.5 GiB rule; reader RAM remains the vision.py 1100 MiB estimate, unmeasured for this candidate."
|
|
5069
|
+
},
|
|
5070
|
+
"env": {
|
|
5071
|
+
"STRATA_API_KEY": "@file:{key_file}",
|
|
5072
|
+
"STRATA_NO_PRESET": "1",
|
|
5073
|
+
"PYTHONUNBUFFERED": "1",
|
|
5074
|
+
"HOME": "{deploy_dir}/state/home",
|
|
5075
|
+
"XDG_STATE_HOME": "{deploy_dir}/state/state",
|
|
5076
|
+
"XDG_DATA_HOME": "{deploy_dir}/state/data",
|
|
5077
|
+
"XDG_CONFIG_HOME": "{deploy_dir}/state/config",
|
|
5078
|
+
"XDG_CACHE_HOME": "{deploy_dir}/state/cache",
|
|
5079
|
+
"LD_LIBRARY_PATH": "{engine_dir}",
|
|
5080
|
+
"STRATA_ENGINE_READY_S": "3600",
|
|
5081
|
+
"STRATA_NO_ARENA_THP": "1"
|
|
5082
|
+
},
|
|
5083
|
+
"profile": {
|
|
5084
|
+
"exe": "{engine_dir}/strata",
|
|
5085
|
+
"args": [
|
|
5086
|
+
"--pack",
|
|
5087
|
+
"{model_dir}/packs/iq3_xxs",
|
|
5088
|
+
"--native",
|
|
5089
|
+
"{model}",
|
|
5090
|
+
"--ple-gguf",
|
|
5091
|
+
"{model_dir}/Qwen3.8-Flash-Next-UD-IQ3_XXS-00004-of-00004.gguf",
|
|
5092
|
+
"--expert-profile",
|
|
5093
|
+
"{engine_dir}/data/expert-profile.bin",
|
|
5094
|
+
"--prefill",
|
|
5095
|
+
"2048",
|
|
5096
|
+
"--spec",
|
|
5097
|
+
"2",
|
|
5098
|
+
"--max-context",
|
|
5099
|
+
"65536",
|
|
5100
|
+
"--kv",
|
|
5101
|
+
"int8",
|
|
5102
|
+
"--kv-resident",
|
|
5103
|
+
"32768",
|
|
5104
|
+
"--conversation-cache-mib",
|
|
5105
|
+
"{conversation_cache_mib}",
|
|
5106
|
+
"--conversation-cache-slots",
|
|
5107
|
+
"{conversation_cache_slots}",
|
|
5108
|
+
"--conversation-cache-min-free-mib",
|
|
5109
|
+
"{conversation_cache_min_free_mib}",
|
|
5110
|
+
"--conversation-cache-min-tokens",
|
|
5111
|
+
"{conversation_cache_min_tokens}",
|
|
5112
|
+
"--vram-reserve-mib",
|
|
5113
|
+
"{vram_reserve_mib}",
|
|
5114
|
+
"--expert-cache",
|
|
5115
|
+
"{expert_cache}",
|
|
5116
|
+
"--resident-experts"
|
|
5117
|
+
],
|
|
5118
|
+
"cwd": "{deploy_dir}",
|
|
5119
|
+
"tokenizer": "{model_dir}/packs/iq3_xxs/tokenizer",
|
|
5120
|
+
"model_name": "{alias}",
|
|
5121
|
+
"log": "{deploy_dir}/engine.log",
|
|
5122
|
+
"host": "127.0.0.1",
|
|
5123
|
+
"parallel": 1,
|
|
5124
|
+
"open_browser": false,
|
|
5125
|
+
"env": {
|
|
5126
|
+
"STRATA_RESIDENT_HEADROOM_GIB": "10",
|
|
5127
|
+
"STRATA_ROUTE_TAIL_SKIP": "0",
|
|
5128
|
+
"STRATA_NO_ARENA_THP": "1"
|
|
5129
|
+
}
|
|
5130
|
+
},
|
|
5131
|
+
"argv": [
|
|
5132
|
+
"{engine}",
|
|
5133
|
+
"serve",
|
|
5134
|
+
"--profile",
|
|
5135
|
+
"{deploy_dir}/strata-profile.json",
|
|
5136
|
+
"--host",
|
|
5137
|
+
"127.0.0.1",
|
|
5138
|
+
"--port",
|
|
5139
|
+
"{port}",
|
|
5140
|
+
"--shutdown-timeout",
|
|
5141
|
+
"30"
|
|
5142
|
+
],
|
|
5143
|
+
"verify_timeout_s": 4800,
|
|
5144
|
+
"note": "Unsloth Flash-Next v3.1 UD-IQ3_XXS candidate, pinned to Strata v0.2.13 control build 0.1.59.1 and CUDA engine 0.1.59. Explicit selection only; not an automatic recommendation. Requires --reuse-from with a complete, verified pack produced by the pinned tools/iq_pack.py --compat-bf16; no fresh preparation recipe is claimed. Uses native GGUF experts and the explicit fourth-shard PLE table; prompt-lookup window 2 without an MTP draft, no conversation parking. The 22 GiB VRAM target is a snapshot-based auto-cache budget, not hardware isolation. RAM and VRAM values are estimates pending real deployment; the whole stack must be memory-bounded. Verified local-disk copies are required for acceptance; capacity fit does not establish model throughput or five-layer product acceptance.",
|
|
5145
|
+
"files": [
|
|
5146
|
+
{
|
|
5147
|
+
"path": "UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00001-of-00004.gguf",
|
|
5148
|
+
"local_name": "Qwen3.8-Flash-Next-UD-IQ3_XXS-00001-of-00004.gguf",
|
|
5149
|
+
"size_bytes": 10946618,
|
|
5150
|
+
"sha256": "9d5644b371ffac921427c8021cc7242dab8e3ba37d7b48d1e79fe3770fbf9915",
|
|
5151
|
+
"url": "{hf}/{repo}/resolve/{revision}/UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00001-of-00004.gguf"
|
|
5152
|
+
},
|
|
5153
|
+
{
|
|
5154
|
+
"path": "UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00002-of-00004.gguf",
|
|
5155
|
+
"local_name": "Qwen3.8-Flash-Next-UD-IQ3_XXS-00002-of-00004.gguf",
|
|
5156
|
+
"size_bytes": 49946027488,
|
|
5157
|
+
"sha256": "aacaff3bdb9032c2c3be428167930809735f65d3cfb204eba07d85e421e7ddf4",
|
|
5158
|
+
"url": "{hf}/{repo}/resolve/{revision}/UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00002-of-00004.gguf"
|
|
5159
|
+
},
|
|
5160
|
+
{
|
|
5161
|
+
"path": "UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00003-of-00004.gguf",
|
|
5162
|
+
"local_name": "Qwen3.8-Flash-Next-UD-IQ3_XXS-00003-of-00004.gguf",
|
|
5163
|
+
"size_bytes": 4869325888,
|
|
5164
|
+
"sha256": "ef8f14e790ab471b363f146d5e8664eefbaf03e5776f317a1fb96a2bc7707b07",
|
|
5165
|
+
"url": "{hf}/{repo}/resolve/{revision}/UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00003-of-00004.gguf"
|
|
5166
|
+
},
|
|
5167
|
+
{
|
|
5168
|
+
"path": "UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00004-of-00004.gguf",
|
|
5169
|
+
"local_name": "Qwen3.8-Flash-Next-UD-IQ3_XXS-00004-of-00004.gguf",
|
|
5170
|
+
"size_bytes": 28800138432,
|
|
5171
|
+
"sha256": "5de8b5dbf89409acc39468decafd4a4a95b13c29d88a14b0356107897829ec36",
|
|
5172
|
+
"url": "{hf}/{repo}/resolve/{revision}/UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00004-of-00004.gguf"
|
|
5173
|
+
},
|
|
5174
|
+
{
|
|
5175
|
+
"path": "packs/iq3_xxs/dense.bin",
|
|
5176
|
+
"local_name": "packs/iq3_xxs/dense.bin",
|
|
5177
|
+
"size_bytes": 1485688320,
|
|
5178
|
+
"sha256": "8bcbffe773c24afff933254c35432d1524e3a056e67f2aa4392068af9646e7aa",
|
|
5179
|
+
"url": "",
|
|
5180
|
+
"derived": true
|
|
5181
|
+
},
|
|
5182
|
+
{
|
|
5183
|
+
"path": "packs/iq3_xxs/index.txt",
|
|
5184
|
+
"local_name": "packs/iq3_xxs/index.txt",
|
|
5185
|
+
"size_bytes": 93560,
|
|
5186
|
+
"sha256": "f5df19dd6d7d8fbb7c0c8ccbb159e1bd4cf6b6ce8b754b3715c566e7af6da33a",
|
|
5187
|
+
"url": "",
|
|
5188
|
+
"derived": true
|
|
5189
|
+
},
|
|
5190
|
+
{
|
|
5191
|
+
"path": "packs/iq3_xxs/native_experts.txt",
|
|
5192
|
+
"local_name": "packs/iq3_xxs/native_experts.txt",
|
|
5193
|
+
"size_bytes": 5850,
|
|
5194
|
+
"sha256": "313b7a0e4adfdc49d5a3272a9a2c7bf3ac7aa7fa0fa7d055f3bd9b7fb2c5ee97",
|
|
5195
|
+
"url": "",
|
|
5196
|
+
"derived": true
|
|
5197
|
+
},
|
|
5198
|
+
{
|
|
5199
|
+
"path": "packs/iq3_xxs/conversions.json",
|
|
5200
|
+
"local_name": "packs/iq3_xxs/conversions.json",
|
|
5201
|
+
"size_bytes": 167836,
|
|
5202
|
+
"sha256": "127c2c76a1e7330d31170f1376432d587a65a3d319918c43af7304bc54de106f",
|
|
5203
|
+
"url": "",
|
|
5204
|
+
"derived": true
|
|
5205
|
+
},
|
|
5206
|
+
{
|
|
5207
|
+
"path": "packs/iq3_xxs/tokenizer/chat_template.jinja",
|
|
5208
|
+
"local_name": "packs/iq3_xxs/tokenizer/chat_template.jinja",
|
|
5209
|
+
"size_bytes": 9993,
|
|
5210
|
+
"sha256": "12827f24b742ea4e80cdc12dbcf9622227056b9f797252a3149263d4f9aaadce",
|
|
5211
|
+
"url": "",
|
|
5212
|
+
"derived": true
|
|
5213
|
+
},
|
|
5214
|
+
{
|
|
5215
|
+
"path": "packs/iq3_xxs/tokenizer/merges.txt",
|
|
5216
|
+
"local_name": "packs/iq3_xxs/tokenizer/merges.txt",
|
|
5217
|
+
"size_bytes": 3353258,
|
|
5218
|
+
"sha256": "4ba698529766c7a2f5052083ea10cdf2485577f5237a332ee291054eb11e3332",
|
|
5219
|
+
"url": "",
|
|
5220
|
+
"derived": true
|
|
5221
|
+
},
|
|
5222
|
+
{
|
|
5223
|
+
"path": "packs/iq3_xxs/tokenizer/tokenizer.json",
|
|
5224
|
+
"local_name": "packs/iq3_xxs/tokenizer/tokenizer.json",
|
|
5225
|
+
"size_bytes": 541,
|
|
5226
|
+
"sha256": "c0bd435efbc6c3b28964b47999afe16c4ad268c7c7c4e8cb3af410796a6f30bf",
|
|
5227
|
+
"url": "",
|
|
5228
|
+
"derived": true
|
|
5229
|
+
},
|
|
5230
|
+
{
|
|
5231
|
+
"path": "packs/iq3_xxs/tokenizer/token_type.json",
|
|
5232
|
+
"local_name": "packs/iq3_xxs/tokenizer/token_type.json",
|
|
5233
|
+
"size_bytes": 744960,
|
|
5234
|
+
"sha256": "5088c8c298fc06af8382ddb3b76c888703ac2634e82263b97eedcc2ad202738b",
|
|
5235
|
+
"url": "",
|
|
5236
|
+
"derived": true
|
|
5237
|
+
},
|
|
5238
|
+
{
|
|
5239
|
+
"path": "packs/iq3_xxs/tokenizer/vocab.json",
|
|
5240
|
+
"local_name": "packs/iq3_xxs/tokenizer/vocab.json",
|
|
5241
|
+
"size_bytes": 5737005,
|
|
5242
|
+
"sha256": "4ba64f0332abcfb0b600b7df1537d1e836e68009d5fb7cdb77339738dc6365c4",
|
|
5243
|
+
"url": "",
|
|
5244
|
+
"derived": true
|
|
5245
|
+
},
|
|
5246
|
+
{
|
|
5247
|
+
"path": "mmproj-BF16.gguf",
|
|
5248
|
+
"local_name": "mmproj-BF16.gguf",
|
|
5249
|
+
"size_bytes": 907542944,
|
|
5250
|
+
"sha256": "2e788f8c511d8093c7b43cb87b2fd7e14228340318057f8fb20c86df2efe2355",
|
|
5251
|
+
"url": "{hf}/{repo}/resolve/{revision}/mmproj-BF16.gguf",
|
|
5252
|
+
"vision": true
|
|
5253
|
+
}
|
|
5254
|
+
],
|
|
5255
|
+
"conversation_cache": {
|
|
5256
|
+
"mib": 4096,
|
|
5257
|
+
"slots": 4,
|
|
5258
|
+
"min_free_mib": 512,
|
|
5259
|
+
"min_tokens": 2048
|
|
5260
|
+
}
|
|
4987
5261
|
}
|
|
4988
5262
|
]
|
|
4989
5263
|
}
|
|
@@ -20,7 +20,7 @@ from dataclasses import dataclass, field
|
|
|
20
20
|
from pathlib import Path, PurePosixPath
|
|
21
21
|
from typing import TypedDict, cast
|
|
22
22
|
|
|
23
|
-
from localmodels import vision
|
|
23
|
+
from localmodels import decode_calibration, vision
|
|
24
24
|
from localmodels.context_policy import (
|
|
25
25
|
FLOOR,
|
|
26
26
|
RUNTIME_OVERHEAD_BYTES,
|
|
@@ -30,6 +30,7 @@ from localmodels.context_policy import (
|
|
|
30
30
|
plan_launch,
|
|
31
31
|
)
|
|
32
32
|
from localmodels.contracts import decode
|
|
33
|
+
from localmodels.decode_calibration import DecodeEstimate as DecodeEstimate
|
|
33
34
|
from localmodels.estimator import (
|
|
34
35
|
HardwareBudget,
|
|
35
36
|
LayerKind,
|
|
@@ -76,9 +77,8 @@ class QuantVariant:
|
|
|
76
77
|
files: tuple[AssetFile, ...]
|
|
77
78
|
validated: bool = False
|
|
78
79
|
lazy_bytes: int = 0
|
|
79
|
-
# From the
|
|
80
|
-
#
|
|
81
|
-
# footprint then prices them on the card, never below the truth.
|
|
80
|
+
# From the header (catalog add): token_embd.weight, host-mapped only when untied, and the MTP
|
|
81
|
+
# blocks llama.cpp skips without MTP; 0 = unknown, priced on the card (never below the truth).
|
|
82
82
|
embd_table_bytes: int = 0
|
|
83
83
|
mtp_layer_bytes: int = 0
|
|
84
84
|
|
|
@@ -125,6 +125,7 @@ class CatalogEntry:
|
|
|
125
125
|
ssm_dt_rank: int = 0
|
|
126
126
|
n_embd: int = 0 # hidden width; scales the agent compute buffer
|
|
127
127
|
tied_embeddings: bool = False # no output.weight: token_embd stays on the GPU too
|
|
128
|
+
kv_k_only: bool = False # MLA: per_layer_f16 is the K latent alone; -ctv does not apply
|
|
128
129
|
mmproj: AssetFile | None = None
|
|
129
130
|
draft: AssetFile | None = None
|
|
130
131
|
mtp_head: AssetFile | None = None
|
|
@@ -155,11 +156,9 @@ class CatalogEntry:
|
|
|
155
156
|
return sum(a.size_bytes for a in (self.mmproj, self.mtp_head) if a is not None)
|
|
156
157
|
|
|
157
158
|
def profile(self, variant: QuantVariant) -> ModelProfile:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
+ [(LayerKind.RECURRENT, 0)] * self.recurrent_layers
|
|
162
|
-
)
|
|
159
|
+
full, window = (LayerKind.FULL, self.per_layer_f16), (LayerKind.SWA, self.per_layer_f16)
|
|
160
|
+
layers = [full] * self.full_layers + [window] * self.swa_layers
|
|
161
|
+
layers += [(LayerKind.RECURRENT, 0)] * self.recurrent_layers
|
|
163
162
|
return ModelProfile(
|
|
164
163
|
name=variant.model_id,
|
|
165
164
|
weights_bytes=variant.weights_bytes,
|
|
@@ -177,6 +176,7 @@ class CatalogEntry:
|
|
|
177
176
|
ssm_dt_rank=self.ssm_dt_rank,
|
|
178
177
|
n_embd=self.n_embd,
|
|
179
178
|
tied_embeddings=self.tied_embeddings,
|
|
179
|
+
kv_k_only=self.kv_k_only,
|
|
180
180
|
kv_scale=1.2 if self.mtp_capable else 1.0,
|
|
181
181
|
lazy_bytes=variant.lazy_bytes,
|
|
182
182
|
mtp_layer_bytes=variant.mtp_layer_bytes,
|
|
@@ -233,13 +233,8 @@ def select_variant(entry: CatalogEntry, budget: HardwareBudget) -> VariantChoice
|
|
|
233
233
|
return VariantChoice(variant, zero_spill=True, reason_key=reason)
|
|
234
234
|
|
|
235
235
|
|
|
236
|
-
#
|
|
237
|
-
#
|
|
238
|
-
# SPEED is physics per machine: decode is memory-bound, so predicted tok/s ≈ bandwidth /
|
|
239
|
-
# bytes-read-per-token. Class constants, not measurements of this machine, except spilled weights
|
|
240
|
-
# on a host whose facts carry a measured host-memory bandwidth, and resident weights on a card
|
|
241
|
-
# whose model has a published bandwidth (gpu_specs), which is a spec figure, not a measurement.
|
|
242
|
-
|
|
236
|
+
# Decode uses bandwidth / active bytes with retained-run efficiency factors.
|
|
237
|
+
# Same-device decode measurements precede the formula; spec bandwidth is not measured speed.
|
|
243
238
|
_DISCRETE_BANDWIDTH_GB_S = 1000.0
|
|
244
239
|
_UMA_BANDWIDTH_GB_S = 210.0
|
|
245
240
|
_HOST_BANDWIDTH_GB_S = 80.0
|
|
@@ -272,14 +267,6 @@ def hardware_key(budget: HardwareBudget, backend: str) -> tuple[str, str, str]:
|
|
|
272
267
|
return (budget.platform, effective_backend, gpu_name)
|
|
273
268
|
|
|
274
269
|
|
|
275
|
-
@dataclass(frozen=True)
|
|
276
|
-
class DecodeEstimate:
|
|
277
|
-
tok_s: float
|
|
278
|
-
basis: str # a DECODE_BASES key
|
|
279
|
-
bandwidth_gb_s: float | None # None: a measured decode speed, not a bandwidth
|
|
280
|
-
bytes_per_token: float
|
|
281
|
-
|
|
282
|
-
|
|
283
270
|
def decode_estimate(
|
|
284
271
|
entry: CatalogEntry,
|
|
285
272
|
variant: QuantVariant,
|
|
@@ -287,6 +274,7 @@ def decode_estimate(
|
|
|
287
274
|
*,
|
|
288
275
|
spilled: bool = False,
|
|
289
276
|
backend: str = "auto",
|
|
277
|
+
calibrated: bool = True,
|
|
290
278
|
) -> DecodeEstimate:
|
|
291
279
|
bytes_per_token = max(1.0, variant.size_bytes * entry.decode_fraction)
|
|
292
280
|
key = (*hardware_key(budget, backend), entry.id, variant.quant, entry.mtp_draft_depth)
|
|
@@ -307,7 +295,17 @@ def decode_estimate(
|
|
|
307
295
|
basis, bandwidth = "gpu-spec", budget.gpu_bandwidth_gb_s
|
|
308
296
|
else:
|
|
309
297
|
basis, bandwidth = "discrete-class", _DISCRETE_BANDWIDTH_GB_S
|
|
310
|
-
|
|
298
|
+
effective_backend = hardware_key(budget, backend)[1]
|
|
299
|
+
if backend == "auto" and budget.uma and budget.platform == "darwin":
|
|
300
|
+
effective_backend = "metal"
|
|
301
|
+
factor = (
|
|
302
|
+
decode_calibration.efficiency(decode_calibration.category(entry, effective_backend))
|
|
303
|
+
if calibrated and not spilled
|
|
304
|
+
else 1.0
|
|
305
|
+
)
|
|
306
|
+
return DecodeEstimate(
|
|
307
|
+
factor * bandwidth * 1e9 / bytes_per_token, basis, bandwidth, bytes_per_token
|
|
308
|
+
)
|
|
311
309
|
|
|
312
310
|
|
|
313
311
|
def predicted_decode_tok_s(
|
|
@@ -323,11 +321,12 @@ def predicted_decode_tok_s(
|
|
|
323
321
|
|
|
324
322
|
def validated_here(entry: CatalogEntry, platform: str) -> bool:
|
|
325
323
|
"""``stack plan --llm auto`` may pick the entry on ``platform`` (a probe's sys.platform):
|
|
326
|
-
it is validated, by evidence from this platform when ``validated_on`` narrows it
|
|
324
|
+
it is validated, by evidence from this platform when ``validated_on`` narrows it; Windows
|
|
325
|
+
runs Linux's llama.cpp CUDA kernels, so Linux evidence counts there too (decision 48)."""
|
|
327
326
|
if entry.status != "validated":
|
|
328
327
|
return False
|
|
329
|
-
key = "linux" if platform.startswith("linux") else platform
|
|
330
|
-
return not
|
|
328
|
+
key, scope = ("linux" if platform.startswith("linux") else platform), entry.validated_on
|
|
329
|
+
return not scope or key in scope or (key == "win32" and "linux" in scope)
|
|
331
330
|
|
|
332
331
|
|
|
333
332
|
# ── catalog data ──
|
|
@@ -335,7 +334,7 @@ def validated_here(entry: CatalogEntry, platform: str) -> bool:
|
|
|
335
334
|
_SCHEMA_VERSION = 3
|
|
336
335
|
_READABLE_SCHEMAS = (2, 3) # schema 2: bare quality integers and no provenance fields
|
|
337
336
|
STATUSES = ("candidate", "validated", "deprecated")
|
|
338
|
-
PLATFORMS = ("linux", "darwin") # validated_on
|
|
337
|
+
PLATFORMS = ("linux", "darwin", "win32") # validated_on: Linux, Apple Silicon Macs, Windows
|
|
339
338
|
EFFORT_LEVELS = ("low", "medium", "high") # reasoning_effort values a gateway may send, in order
|
|
340
339
|
TASKS = tuple("llm vision decision embedding reranker stt tts search privacy-span".split())
|
|
341
340
|
# intelligence_score: the installed SimplexAI score (decisions 26, 33); make check keeps it equal
|
|
@@ -427,6 +426,7 @@ class OptionalModelData(ModelData, ProvenanceData, total=False):
|
|
|
427
426
|
ssm_dt_rank: int
|
|
428
427
|
n_embd: int
|
|
429
428
|
tied_embeddings: bool
|
|
429
|
+
kv_k_only: bool
|
|
430
430
|
mmproj: OptionalAssetData | None
|
|
431
431
|
draft: OptionalAssetData | None
|
|
432
432
|
mtp_head: OptionalAssetData | None
|
|
@@ -704,6 +704,7 @@ def load_catalog(value: object) -> tuple[CatalogEntry, ...]:
|
|
|
704
704
|
ssm_dt_rank=m.get("ssm_dt_rank", 0),
|
|
705
705
|
n_embd=m.get("n_embd", 0),
|
|
706
706
|
tied_embeddings=bool(m.get("tied_embeddings", False)),
|
|
707
|
+
kv_k_only=bool(m.get("kv_k_only", False)),
|
|
707
708
|
license=m.get("license", ""),
|
|
708
709
|
license_url=m.get("license_url", ""),
|
|
709
710
|
status=m.get("status", ""),
|
|
@@ -111,6 +111,7 @@ def entry_from_header(
|
|
|
111
111
|
"architecture": profile.architecture,
|
|
112
112
|
"n_embd": profile.n_embd,
|
|
113
113
|
"tied_embeddings": profile.tied_embeddings,
|
|
114
|
+
**({"kv_k_only": True} if profile.kv_k_only else {}),
|
|
114
115
|
"sampling": header.sampling_defaults,
|
|
115
116
|
"quality": {
|
|
116
117
|
"score": quality,
|
|
@@ -14,11 +14,13 @@ from localmodels import (
|
|
|
14
14
|
guard,
|
|
15
15
|
hosts,
|
|
16
16
|
install,
|
|
17
|
+
library_cli,
|
|
17
18
|
magpie_setup,
|
|
18
19
|
memcalc_cli,
|
|
19
20
|
runtime_args,
|
|
20
21
|
services_cli,
|
|
21
22
|
setup_inspection,
|
|
23
|
+
sizecalc_cli,
|
|
22
24
|
stack,
|
|
23
25
|
stack_lifecycle,
|
|
24
26
|
)
|
|
@@ -31,10 +33,13 @@ Detect this computer's hardware and existing installs, recommend one proven loca
|
|
|
31
33
|
stack, and install and verify it after you approve the plan.
|
|
32
34
|
HOST is "local", a registered device id, or an SSH target."""
|
|
33
35
|
GROUPS = (
|
|
34
|
-
("get started", ("install", "stack", "recommend", "memcalc", "probe", "models")),
|
|
36
|
+
("get started", ("install", "stack", "recommend", "memcalc", "sizecalc", "probe", "models")),
|
|
35
37
|
("one model on any host", ("plan", "deploy", "service", "services")),
|
|
36
38
|
("devices", ("discover", "devices", "desktop-snapshot")),
|
|
37
|
-
(
|
|
39
|
+
(
|
|
40
|
+
"installer integration",
|
|
41
|
+
("setup", "library", "foundations", "harness", "gateway", "magpie", "guard"),
|
|
42
|
+
),
|
|
38
43
|
("interfaces and catalog", ("tui", "serve", "catalog", "commands", "completion")),
|
|
39
44
|
)
|
|
40
45
|
SUMMARIES = {
|
|
@@ -42,6 +47,7 @@ SUMMARIES = {
|
|
|
42
47
|
"gateway": "manage an isolated Magpie gateway without installing models",
|
|
43
48
|
"setup": "read-only setup inspection for installers (JSON)",
|
|
44
49
|
"foundations": "background decision, embedding and reranker services",
|
|
50
|
+
"library": "download, load, unload and remove single models (JSON)",
|
|
45
51
|
"guard": "optional CPU privacy profile; never rewires services",
|
|
46
52
|
"magpie": "Magpie alone for Claude Code/Codex subscriptions (no local model)",
|
|
47
53
|
"catalog": "maintain the model catalog (`add` drafts an entry from a GGUF)",
|
|
@@ -313,10 +319,12 @@ def argument_parser() -> argparse.ArgumentParser:
|
|
|
313
319
|
stack.add_parser(sub)
|
|
314
320
|
magpie_setup.add_parser(sub)
|
|
315
321
|
memcalc_cli.add_parser(sub)
|
|
322
|
+
sizecalc_cli.add_parser(sub)
|
|
316
323
|
runtime_args.add_parser(sub)
|
|
317
324
|
gateway_cli.add_parser(sub)
|
|
318
325
|
setup_inspection.add_parser(sub)
|
|
319
326
|
services_cli.add_parser(sub)
|
|
327
|
+
library_cli.add_parser(sub)
|
|
320
328
|
for name, summary in SUMMARIES.items():
|
|
321
329
|
cli_help.summarize(sub, name, summary)
|
|
322
330
|
cli_help.document(parser, DESCRIPTION, sections=SECTIONS)
|
|
@@ -11,6 +11,7 @@ pinned in the catalog, so planning needs no Hub request.
|
|
|
11
11
|
|
|
12
12
|
from __future__ import annotations
|
|
13
13
|
|
|
14
|
+
import sys
|
|
14
15
|
from dataclasses import dataclass
|
|
15
16
|
from pathlib import Path
|
|
16
17
|
|
|
@@ -122,7 +123,7 @@ def build_plan(host_id: str, facts: HostFacts, options: ComponentOptions) -> Pla
|
|
|
122
123
|
f"the decision model runs on CPU ({threads} threads, prompt cap {ctx} tokens); "
|
|
123
124
|
"past CPU measurements took about 3 s per request, GPU about 0.04 s",
|
|
124
125
|
]
|
|
125
|
-
if facts["service_manager"]["kind"] == "nohup":
|
|
126
|
+
if facts["service_manager"]["kind"] == "nohup" and facts["platform"] != "win32":
|
|
126
127
|
warnings.append(
|
|
127
128
|
"host has no usable systemd --user; services start with nohup and do not come back after a reboot"
|
|
128
129
|
)
|
|
@@ -384,6 +385,11 @@ def gpu_plan(
|
|
|
384
385
|
)
|
|
385
386
|
|
|
386
387
|
|
|
388
|
+
def venv_python(venv: str) -> str:
|
|
389
|
+
"""The interpreter inside a venv: Scripts/python.exe on Windows, bin/python elsewhere."""
|
|
390
|
+
return f"{venv}/Scripts/python.exe" if sys.platform == "win32" else f"{venv}/bin/python"
|
|
391
|
+
|
|
392
|
+
|
|
387
393
|
def front_venv(base_dir: str, requirements: str) -> str:
|
|
388
394
|
return f"{base_dir.rstrip('/')}/{FRONT_VENV}/{Path(requirements).stem}"
|
|
389
395
|
|