@simplexai/localmodels-darwin-arm64 0.1.0-dev.35 → 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 +23 -22
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/budget.py +2 -0
- package/modules/localmodels/catalog.json +235 -2
- package/modules/localmodels/engines-strata-0.1.59.1.json +31 -0
- package/modules/localmodels/llm_rank.py +61 -6
- package/modules/localmodels/metal_probe.py +11 -7
- package/modules/localmodels/recommend.py +32 -3
- package/modules/localmodels/remote_ops_download.py +2 -2
- package/modules/localmodels/remote_ops_prepare.py +19 -0
- package/modules/localmodels/stack_compose.py +23 -12
- package/modules/localmodels/stack_hardware.py +11 -14
- package/modules/localmodels/stack_picks.py +16 -8
- package/modules/localmodels/stack_plan.py +4 -4
- package/modules/localmodels/stack_suite.py +5 -3
- package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/RECORD +20 -19
- package/package.json +1 -1
- package/tool.json +1 -1
- /package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/licenses/NOTICE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev35.dist-info → simplex_localmodels-0.1.0.dev36.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
package/bootstrap.identity
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
darwin-arm64
|
|
1
|
+
darwin-arm64 17a7496241ce88b1071981f22b9bb67f1de41128 0.1.0.dev36 python/bin/python3.12 modules
|
package/bootstrap.sha256
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
29caff3be08ec421619bdab665c75826ec78a7dacff71e29288c2a6594adca80 bootstrap.identity
|
|
2
2
|
545b6d1dd695b78b041c3fd81dea7f10fb52fb187f8b3cafe7a9ccd8a973352b kit.py
|
|
3
3
|
821556e6336796450ab852d375117b48a4887e71d255794fd6318d99982a5ab6 modules/localmodels/HERMES-LICENSE
|
|
4
|
-
|
|
4
|
+
1b33de543a880b2db72b48746141703e045f0bd574e835ff988a025bbbe00eb3 modules/localmodels/__init__.py
|
|
5
5
|
f89f0f426bdf6180bc8685072fca1e5a920053c063a2363e8533bb2ed610505e modules/localmodels/__main__.py
|
|
6
6
|
d58431790b752ed9c5819872e8a237c49d3c0e15d8b5b4d4be24a61e504d4a56 modules/localmodels/app.py
|
|
7
7
|
411de68b0ef44694442bacbe20cb4be1e3e4f29f6d533fdc8192174f15e57243 modules/localmodels/approval.py
|
|
@@ -18,8 +18,8 @@ f708724ca27ea26abd4bb953b4c7254c9dafe8ccc36192e82314427bdca9080f modules/localm
|
|
|
18
18
|
e2eebfa5db6514589b5b3c95c2fc4ce8d6e4cebd5762abb8f08e0781f148e134 modules/localmodels/bifrost_provider.py
|
|
19
19
|
9f272057f6f4a3bc7a31dc5987ea47b54450fdc8cfda2befd0dbee61e53bc180 modules/localmodels/bifrost_search.py
|
|
20
20
|
e1666d11575ac2590e7c92cdc1751de78633cb3c410698db7d5a06c46b1bfcbc modules/localmodels/bifrost_unit.py
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
825ec6967d02817cbd2a42a55a3a5060ba0bf8d65965719e533f1519fe25d978 modules/localmodels/budget.py
|
|
22
|
+
4b7302dc8d666d57f93db23dd0320e6d49752aef6052bbb2cbbd767101e72caf modules/localmodels/catalog.json
|
|
23
23
|
9236292337c6185ef01fde04895dcd436cd7fe11712bd128621e141f8c444019 modules/localmodels/catalog.py
|
|
24
24
|
8d7e1d166a16543f0d724a92acf79c58f0f8f9f4208e6cebbe105987f0bf24ab modules/localmodels/catalog_add.py
|
|
25
25
|
eef0cd1dc8df8b9606b434585ca26d027a4d52927c005d8d822ccd08d9bc9406 modules/localmodels/catalog_license.py
|
|
@@ -44,6 +44,7 @@ d9f30e4c352113a6a62579f2bc4e2150d7e398f68d95c0089cda97d3e1e575c4 modules/localm
|
|
|
44
44
|
7ae614e817886e9085e030c62e59ea9d267e2233561a322528a9743171abd8a1 modules/localmodels/engines-strata-0.1.47.json
|
|
45
45
|
fb12028526e20eedc3535fd6008e0340fb5535b29e41f65bf7bf9739bfc4e71b modules/localmodels/engines-strata-0.1.49.1.json
|
|
46
46
|
a19d9b662b2ce41e7ddf266b3734c603543ec208dfd26e93e5859c69298d134c modules/localmodels/engines-strata-0.1.49.2.json
|
|
47
|
+
33af21c5418e718eaed99ee52f09a03ef208c3c3fd5a3c9457c6c38aaa2bd01c modules/localmodels/engines-strata-0.1.59.1.json
|
|
47
48
|
11dcb9a2e04d11ea8b893112870ee7e99a77023f8435b3d390bcb598ac5170b4 modules/localmodels/engines-strata-poly-0.1.45-poly.9.json
|
|
48
49
|
7506ef619d0c1b4553661e745069442a4bb39f9d47b535b0d94018d03987b9d7 modules/localmodels/engines-whisper-b5454.json
|
|
49
50
|
f2432e73ef403b22295f7b91ee52a21c8ee36fde4a665d36ab3c6134a9143387 modules/localmodels/engines.json
|
|
@@ -87,13 +88,13 @@ d0aeac8e869337d1278919a3c3ce7ec27fa5f470a7d5bb16894384c58a5c6af6 modules/localm
|
|
|
87
88
|
73438942ec53ccd2dd1043a8e973bad57666c2f531897325172d7ab93608f4c6 modules/localmodels/library_serve.py
|
|
88
89
|
dc618d7cc22f238c2bc529084946e5b6cf71a34cf7d1e70420d7273a264ccfd6 modules/localmodels/library_state.py
|
|
89
90
|
5ab293aa7f4904498cffb7bcd68ddffaa7fb67e4d25d2cb25709c6bb8c1f66f0 modules/localmodels/library_status.py
|
|
90
|
-
|
|
91
|
+
7bb2559e1f258cfa0407fe71cc6571cc2eb11e7eb87d93ca026503d8d560104a modules/localmodels/llm_rank.py
|
|
91
92
|
0286664dffd19f21c732bc4a9f5abb5c7d7bb74ce6de18affaad0b2202c4e5c4 modules/localmodels/magpie_setup.py
|
|
92
93
|
9539b3a078cf633e7ee7a8338785501254f5891eaeebb076f2c755aebe5daffc modules/localmodels/memcalc.py
|
|
93
94
|
c831b870d8abb63653c1b96863c49bd081b2d7f769508f76678a8c9e0e3f5b07 modules/localmodels/memcalc_cli.py
|
|
94
95
|
90db9d1f19c5948b0eb5b6486dc909c77b9c4c4db73de4431258575947a0c150 modules/localmodels/memcalc_load.py
|
|
95
96
|
1ca25fd467b96c8f898943a83af05d3843027d6369fe60a3aea35495b13db71b modules/localmodels/metal.py
|
|
96
|
-
|
|
97
|
+
f99a4b0d9908bf73ee02681847c4f17b384b5f81baa1326c0ea46d15ab402039 modules/localmodels/metal_probe.py
|
|
97
98
|
b054849c733e1f9aca64a2890a5de0080130e1aaa5181336d6837d9a56784b11 modules/localmodels/mlx-lm-0.32.2-requirements.txt
|
|
98
99
|
6b2bdc7f11ef739e5d27c9f2ac65df72621f0051a52b0d0f7b26a0bbf006b09b modules/localmodels/mlx_server.py
|
|
99
100
|
66cb427c4110aeefea53963e5820b3f6fbd7d422d86dfce021eae724f1410d5d modules/localmodels/npm_transport.py
|
|
@@ -106,13 +107,13 @@ a3308bd747cd61cc58e52f3bac3a95f7a7bcb5dca4dd954c5054148e56bd8d38 modules/localm
|
|
|
106
107
|
719542d8b1a6da3002061a1c74fc904d284a36968d31e8136c5c4c77a344e149 modules/localmodels/process_identity.py
|
|
107
108
|
70249629ab362d3f3c852f576e6640b1091bf5e227bda354a564fa361ad00f78 modules/localmodels/python-bootstrap-lock.json
|
|
108
109
|
a9bad854b6797dc7e91ce87e003bf8c0a22e9f1a699a4281bc9a7c6d754c3cb1 modules/localmodels/quant_formats.py
|
|
109
|
-
|
|
110
|
+
4abe467003d40d5d9edf8eb69537eb9a1a2f56fbbe2122169da3bbacfad1d672 modules/localmodels/recommend.py
|
|
110
111
|
1f675a43e3319663964ad67bd025397998e9c92df9372c60385dba245ae3f6b2 modules/localmodels/recommend_cli.py
|
|
111
112
|
becc293ee409704c70386935e2a27bc6889d87d760a89c2fcc3381b1fd254fcb modules/localmodels/records.py
|
|
112
113
|
90835c9b4776cf7c925460ad6386b69ba832af4284209761117446a4f4ef5f8d modules/localmodels/remote_ops.py
|
|
113
|
-
|
|
114
|
+
6bfe10c454de91599a89b27a6090625e26f3228fae6c2de80906e6b6dfdcfa04 modules/localmodels/remote_ops_download.py
|
|
114
115
|
f60c50c329a3de58ae20931da52e735aa32242ca71851f3de972b6f9b033ed9f modules/localmodels/remote_ops_launchd.py
|
|
115
|
-
|
|
116
|
+
dd45896a64c8c7b17b8b5a230023f9836bd501e32644bd82a79f18b53851ce30 modules/localmodels/remote_ops_prepare.py
|
|
116
117
|
463e936d83a9f4a945d9fae0937c7b8dd6a35737168ba2c0055f3901e3bbb5ca modules/localmodels/remote_ops_remove.py
|
|
117
118
|
7cbbe6e1df507d48ffc3f3b0d22384df82b974c24d9fc73b8cddf10845a326e1 modules/localmodels/remote_ops_service.py
|
|
118
119
|
cf7e3e4377e231ac1c6e82613b1a95c464f3ce916596f4f5bdfa8471c2470b53 modules/localmodels/remote_ops_verify.py
|
|
@@ -151,7 +152,7 @@ ae907b9ea8b6cd729266750ca0bdf5d1deefc9fce9c685521fe9a5576ed524eb modules/localm
|
|
|
151
152
|
a9633beba866200565f05cc881db2131edf4bdca0a27f4f93e5e3e8f6aca8e69 modules/localmodels/stack_cleanup.py
|
|
152
153
|
29a023e3811eb777d6d672903c2afac1a00cc154a85bef43943b9b666e9d6443 modules/localmodels/stack_client_settings.py
|
|
153
154
|
66150a275ed6e601c910fe2c8cbe1aa448dc9bc0e29c3a97da091a816c278d6d modules/localmodels/stack_clients.py
|
|
154
|
-
|
|
155
|
+
99b7b8218bac021e5ac538a41658eb6d67b9ee587a02876c95d6339e63cdb410 modules/localmodels/stack_compose.py
|
|
155
156
|
0381516f151e4a73e05aeeed3a9df823f8229b01fe062b06135ddf0d81631c82 modules/localmodels/stack_console.py
|
|
156
157
|
28265fc389f40e3afa898c4428263f2eb28a34e1fa3835f018a3780640efccc8 modules/localmodels/stack_debug.py
|
|
157
158
|
7310656ab89c04a4b1713a1dafb4159ee9b8e23a901cb0ea8d84aece5b2de2f9 modules/localmodels/stack_decision.py
|
|
@@ -159,15 +160,15 @@ a9633beba866200565f05cc881db2131edf4bdca0a27f4f93e5e3e8f6aca8e69 modules/localm
|
|
|
159
160
|
79573bc37ce74f0e0fb4fb401f7357740e85179dfe30bcb3b6b211a520c6299c modules/localmodels/stack_down.py
|
|
160
161
|
51e162502074da70f60bd9815164a5d6d0a8f6f15e0b641383ddac43439e3e7b modules/localmodels/stack_events.py
|
|
161
162
|
3799f6e4d957bc7595ea71d2a45d16f6e6ad85cc0ffba46c529889e56b8d1b3c modules/localmodels/stack_gpu_memory.py
|
|
162
|
-
|
|
163
|
+
389fef97c3409b8c1e9bec7323f5ba39595a311292a44ccb10a6d014682effd3 modules/localmodels/stack_hardware.py
|
|
163
164
|
01ae3f9ecf99cb1de0bd1d02a86053998cef098c995187e6ac099d6762582a81 modules/localmodels/stack_journal.py
|
|
164
165
|
5882dab79df0ab8aa0946f8c1c01e293e2ffe2caef3beb8f1eda8161e4adeccc modules/localmodels/stack_ledger.py
|
|
165
166
|
54c995ccc00ef2ae756515b2f46067039b4afbad7cf32391b8bddfe1345601d1 modules/localmodels/stack_lifecycle.py
|
|
166
167
|
bae5006f9340187bf740ddcf9cfda1a8ee317f479d7ebd5ca987fb0c8e1ea162 modules/localmodels/stack_llm_ram.py
|
|
167
168
|
ebf3e3a9a3e8d37c4494bc0834576d91a9718db3661e724cf2f32a22ed9d5b2c modules/localmodels/stack_memory.py
|
|
168
169
|
e5de848f81641a10f7aec2433edf26540cb4053086ccf68e6edc1c3646753cbc modules/localmodels/stack_mlx.py
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
e3c53338233601d1328768fb18a8957f3372d8708ad7d8879372d160fce75c1d modules/localmodels/stack_picks.py
|
|
171
|
+
8bd72d6f58a3d81f1beac5b02fb2b25e638f046db2608c5135a37e97e55e1374 modules/localmodels/stack_plan.py
|
|
171
172
|
9c3ecec9c41467a23a5f6a7030fb66bffb68f146cebba430b596b348ebe4a5a1 modules/localmodels/stack_ports.py
|
|
172
173
|
d2c22b15f861b8851881e6ede03142f8bb2024287e304d2138e26767c37f81b9 modules/localmodels/stack_preflight.py
|
|
173
174
|
14728323e40bca9bb5ed9339d36a0740b512ec8a354d02fd507480539a419dc8 modules/localmodels/stack_progress.py
|
|
@@ -178,7 +179,7 @@ c19cdd0ab345fcd79e1712df85ff5949c798543f5be7e7966a5b58e85d3677a9 modules/localm
|
|
|
178
179
|
5359ace6f2c78e6153730e766b8e9c071337c0da197b44079a02deeb3109c64c modules/localmodels/stack_rollback.py
|
|
179
180
|
5b652180b6d1a0753013d13e4fbfee4c54dd28b84b7f03a41fb8aeb3f077b160 modules/localmodels/stack_route.py
|
|
180
181
|
5e9e3ed9b4ceb6673fd97a1df3cf887d29804cfec4fd9f80a9ab5df55fa3f0f6 modules/localmodels/stack_run.py
|
|
181
|
-
|
|
182
|
+
5f33c4335d0d4f121a9a1f7f278c6567e0aa319e89968da2cb01fcf3bef9a850 modules/localmodels/stack_suite.py
|
|
182
183
|
5b1f4d3cc75b5bf30ee12fc97c9926e0dba8d77445bdca0913b3a724fbae3e3d modules/localmodels/stack_summary.py
|
|
183
184
|
804cb5f58aaaf7d383a27668c7c87973175dbe4b914fa1c417d2df3339aad793 modules/localmodels/stack_try.py
|
|
184
185
|
74d6abc933a68cec8d6983b86f760543bb7fddcc261ae15d603cba899bef1973 modules/localmodels/stack_try_client.py
|
|
@@ -235,13 +236,13 @@ abd66e7868b2d24f0f0895f9237ee8a6dcb22337583b0dc54aeb595acecb4d6b modules/localm
|
|
|
235
236
|
c6edbad2bfe9c9e834651a93405e60aa69f2dc5ddd0ce1e9ed0cc61e47ae6b83 modules/localmodels/web/view/theme.js
|
|
236
237
|
f003f4e22eac49b113581ed82024f859e33ab4ae4622b70a7790152ea0721e9d modules/localmodels/web/view/view.css
|
|
237
238
|
32d6d5c3ce0a4333a1636622988e3e5fa309e051dea6100890fec142c9412c77 modules/localmodels/web/view/view.js
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
d5d0ff1a812a108c50ed59eb504c60763fde1316386f85207d1d2206518a55a7 modules/simplex_localmodels-0.1.0.
|
|
241
|
-
3a3059212ac60178113110eaaeafa6dbafe72c598d64d3616cbb498ae9c881f7 modules/simplex_localmodels-0.1.0.
|
|
242
|
-
b57710affc4ca11c13057cf73ff661bcd50fba0455d2ebe0e23b40cb11c5a6eb modules/simplex_localmodels-0.1.0.
|
|
243
|
-
821556e6336796450ab852d375117b48a4887e71d255794fd6318d99982a5ab6 modules/simplex_localmodels-0.1.0.
|
|
244
|
-
|
|
239
|
+
76c4ef1afeabd20886c6edb5d7439b2b264b980bc2c11b3b63b166057aed422e modules/simplex_localmodels-0.1.0.dev36.dist-info/METADATA
|
|
240
|
+
38c21e4457e32d4fa8a472337b9020043516483b2963a1a1a7c01ebdf8a80acc modules/simplex_localmodels-0.1.0.dev36.dist-info/RECORD
|
|
241
|
+
d5d0ff1a812a108c50ed59eb504c60763fde1316386f85207d1d2206518a55a7 modules/simplex_localmodels-0.1.0.dev36.dist-info/WHEEL
|
|
242
|
+
3a3059212ac60178113110eaaeafa6dbafe72c598d64d3616cbb498ae9c881f7 modules/simplex_localmodels-0.1.0.dev36.dist-info/entry_points.txt
|
|
243
|
+
b57710affc4ca11c13057cf73ff661bcd50fba0455d2ebe0e23b40cb11c5a6eb modules/simplex_localmodels-0.1.0.dev36.dist-info/licenses/NOTICE
|
|
244
|
+
821556e6336796450ab852d375117b48a4887e71d255794fd6318d99982a5ab6 modules/simplex_localmodels-0.1.0.dev36.dist-info/licenses/localmodels/HERMES-LICENSE
|
|
245
|
+
d362d532f292dd11c9a5514056927d3f2568fffbc8427aa6714fc927d1a9089f package.json
|
|
245
246
|
7a427de7a538c033f821bae69d18dba1fcf01e1947f8fdfece0d9654f680a787 python/bin/python3.12
|
|
246
247
|
3b2f81fe21d181c499c59a256c8e1968455d6689d269aa85373bfb6af41da3bf python/lib/python3.12/LICENSE.txt
|
|
247
248
|
981d4c398849f9ebcab72300d9c1fe288fd6d7f28957b3b3fa3a493a5836d95c python/lib/python3.12/__future__.py
|
|
@@ -1335,4 +1336,4 @@ ac7fb403e4371d07482ef2fda81dbcf6879484e9fc41d4be42c156d7e54c68a8 python/lib/pyt
|
|
|
1335
1336
|
67deaf0ba41aa4865e007297677207485a89b75629eea0ee5c472be8a3e83bf6 python/lib/python3.12/zoneinfo/_common.py
|
|
1336
1337
|
5dc473af6f6ae35e5531cc9705a1e4923aa07e7d35f6b4c275b90c6a3c2591c4 python/lib/python3.12/zoneinfo/_tzpath.py
|
|
1337
1338
|
ebb9b679519a23252eb90541003a2fdbb3f2d7bc36713fd70672baa575dcdcb6 python/lib/python3.12/zoneinfo/_zoneinfo.py
|
|
1338
|
-
|
|
1339
|
+
a89ad8a4528ea28f53869d8e4ebd8777608faecd021840213346b9f4bad91df9 tool.json
|
|
@@ -29,6 +29,8 @@ from localmodels.estimator import AGENT_VRAM_RESERVE_BYTES, METAL_VRAM_RESERVE_B
|
|
|
29
29
|
from localmodels.probe import GPU, HostFacts
|
|
30
30
|
|
|
31
31
|
_GIB = 1 << 30
|
|
32
|
+
RAM_FLOOR = 4 * _GIB
|
|
33
|
+
HARNESS_RAM = 1 * _GIB
|
|
32
34
|
_MARGIN_FLOOR = 2 << 30
|
|
33
35
|
_MARGIN_FRACTION = 0.09
|
|
34
36
|
_LAUNCH_HEADROOM = 1 << 30
|
|
@@ -1178,7 +1178,7 @@
|
|
|
1178
1178
|
{
|
|
1179
1179
|
"id": "spark-x2.6-4b",
|
|
1180
1180
|
"display_name": "Spark-X2.6 4B",
|
|
1181
|
-
"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",
|
|
1182
1182
|
"repo": "XHToken/Spark-X2.6-4B-GGUF",
|
|
1183
1183
|
"license": "Apache-2.0",
|
|
1184
1184
|
"license_url": "https://huggingface.co/XHToken/Spark-X2.6-4B-GGUF/blob/0e8aa39a34063946ce07bbaaff392093b11b6829/README.md",
|
|
@@ -1190,7 +1190,11 @@
|
|
|
1190
1190
|
"tasks": [
|
|
1191
1191
|
"llm"
|
|
1192
1192
|
],
|
|
1193
|
-
"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
|
+
],
|
|
1194
1198
|
"variants": [
|
|
1195
1199
|
{
|
|
1196
1200
|
"quant": "Q8_0",
|
|
@@ -5025,6 +5029,235 @@
|
|
|
5025
5029
|
"Self-quantized by this repository, not an upstream file; downloaded from the internal GitLab artifact registry",
|
|
5026
5030
|
"Saves little: most of a 0.85B model is the vocabulary matrix; only the 8192 prompt cap, CUDA VRAM not measured"
|
|
5027
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
|
+
}
|
|
5028
5261
|
}
|
|
5029
5262
|
]
|
|
5030
5263
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "localmodels.engine-lock/v1",
|
|
3
|
+
"tag": "strata-0.1.59.1",
|
|
4
|
+
"commit": "v0.2.13",
|
|
5
|
+
"source": "https://github.com/Niko1221/Strata/releases/tag/v0.2.13",
|
|
6
|
+
"note": "Strata 0.2.13 with control 0.1.59.1 and CUDA 13 engine 0.1.59, checked 2026-11-13 against release asset metadata. Both archives unpack into one directory. The local engine archive name includes the control version to keep the flat mirror unambiguous alongside historical locks. This lock pins the runtime artifacts for Unsloth Flash-Next UD-IQ3_XXS preparation and deployment; it does not claim GPU model acceptance.",
|
|
7
|
+
"builds": [
|
|
8
|
+
{
|
|
9
|
+
"platform": "linux",
|
|
10
|
+
"arch": "x64",
|
|
11
|
+
"backend": "cuda",
|
|
12
|
+
"min_cuda": "13.0",
|
|
13
|
+
"min_glibc": "2.34",
|
|
14
|
+
"binary": "bin/strata",
|
|
15
|
+
"assets": [
|
|
16
|
+
{
|
|
17
|
+
"name": "strata-control-0.1.59.1-linux-x86_64.tar.gz",
|
|
18
|
+
"url": "https://github.com/Niko1221/Strata/releases/download/v0.2.13/strata-control-0.1.59.1-linux-x86_64.tar.gz",
|
|
19
|
+
"sha256": "73fb612848cf00fa1072623029b35405bbbb63e3f4c688fe6f38c78e3fc022ac",
|
|
20
|
+
"size_bytes": 100087576
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "strata-engine-0.1.59-control-0.1.59.1-linux-x86_64-cuda-cuda13.tar.gz",
|
|
24
|
+
"url": "https://github.com/Niko1221/Strata/releases/download/v0.2.13/strata-engine-0.1.59-linux-x86_64-cuda-cuda13.tar.gz",
|
|
25
|
+
"sha256": "42ab04fa3201e41bef5fac28c05f5c35c909419ec937d879b505bf1516742610",
|
|
26
|
+
"size_bytes": 723498702
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -13,18 +13,20 @@ from __future__ import annotations
|
|
|
13
13
|
from collections.abc import Iterable, Mapping
|
|
14
14
|
|
|
15
15
|
from localmodels import metal
|
|
16
|
+
from localmodels.budget import HARNESS_RAM, RAM_FLOOR, host_ram
|
|
16
17
|
from localmodels.catalog import (
|
|
17
18
|
PLEASANT_FLOOR_TOK_S,
|
|
18
19
|
CatalogEntry,
|
|
19
20
|
QuantVariant,
|
|
20
21
|
VariantChoice,
|
|
22
|
+
components,
|
|
21
23
|
hardware_key,
|
|
22
24
|
predicted_decode_tok_s,
|
|
23
25
|
select_variant,
|
|
24
26
|
validated_here,
|
|
25
27
|
)
|
|
26
28
|
from localmodels.context_policy import AGENT, AgentPosture
|
|
27
|
-
from localmodels.estimator import HardwareBudget, PhysicsRefusal
|
|
29
|
+
from localmodels.estimator import HardwareBudget, PhysicsRefusal, llama_host_bytes
|
|
28
30
|
from localmodels.probe import HostFacts
|
|
29
31
|
|
|
30
32
|
# Installed SimplexAI scores closer than this are a tie (model-scoring.md; AIHOT: 3 points or more
|
|
@@ -32,6 +34,25 @@ from localmodels.probe import HostFacts
|
|
|
32
34
|
TIE_BAND = 3
|
|
33
35
|
# --prefer fast: the fastest fitting model whose score is within this many points of the best.
|
|
34
36
|
FAST_QUALITY_BAND = 5
|
|
37
|
+
WINDOWS_FALLBACK_ID = "spark-x2.6-4b"
|
|
38
|
+
WINDOWS_FALLBACK_WARNING = (
|
|
39
|
+
"Spark-X2.6-4B Q8_0 is the Windows NVIDIA candidate product fallback when no "
|
|
40
|
+
"validated LLM fits; no SimplexAI score. Catalog 72 is a vendor-reported editorial "
|
|
41
|
+
"anchor, not an installed score; physical 8/12 GB full product acceptance pending"
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def windows_fallback(entry: CatalogEntry, facts: HostFacts) -> bool:
|
|
46
|
+
"""The one candidate admitted by the native Windows NVIDIA fallback policy."""
|
|
47
|
+
return (
|
|
48
|
+
facts["platform"] == "win32"
|
|
49
|
+
and facts.get("arch") in (None, "", "x64")
|
|
50
|
+
and any(g["vendor"] == "nvidia" for g in facts.get("gpus") or [])
|
|
51
|
+
and entry.id == WINDOWS_FALLBACK_ID
|
|
52
|
+
and entry.status == "candidate"
|
|
53
|
+
and entry.runtime == "llama.cpp"
|
|
54
|
+
and entry.variants[-1].quant == "Q8_0"
|
|
55
|
+
)
|
|
35
56
|
|
|
36
57
|
|
|
37
58
|
def strata_bar(llama_score: int, options: Mapping[str, object]) -> int:
|
|
@@ -76,9 +97,11 @@ def listed_default(facts: HostFacts, fits: list[tuple[str, int]]) -> str | None:
|
|
|
76
97
|
|
|
77
98
|
|
|
78
99
|
def automatic_here(entry: CatalogEntry, facts: HostFacts) -> bool:
|
|
79
|
-
"""Validated entries
|
|
80
|
-
return (
|
|
81
|
-
entry
|
|
100
|
+
"""Validated entries and the scoped Mac default / Windows fallback candidates."""
|
|
101
|
+
return (
|
|
102
|
+
(entry.status != "deprecated" and entry.id == mac_default(facts))
|
|
103
|
+
or windows_fallback(entry, facts)
|
|
104
|
+
or validated_here(entry, facts["platform"])
|
|
82
105
|
)
|
|
83
106
|
|
|
84
107
|
|
|
@@ -107,6 +130,31 @@ def agent_ready(
|
|
|
107
130
|
)
|
|
108
131
|
|
|
109
132
|
|
|
133
|
+
def automatic_fit(
|
|
134
|
+
entry: CatalogEntry,
|
|
135
|
+
facts: HostFacts,
|
|
136
|
+
budget: HardwareBudget,
|
|
137
|
+
posture: AgentPosture,
|
|
138
|
+
options: Mapping[str, object],
|
|
139
|
+
) -> bool:
|
|
140
|
+
"""The agent gate, plus the Windows candidate's base-stack RAM and requested search."""
|
|
141
|
+
variant = entry.variants[-1]
|
|
142
|
+
if not windows_fallback(entry, facts):
|
|
143
|
+
return agent_ready(entry, variant, budget, posture)
|
|
144
|
+
decision = entry.launch_plan(variant, budget, agent=posture).decision
|
|
145
|
+
if isinstance(decision, PhysicsRefusal):
|
|
146
|
+
return False
|
|
147
|
+
needed = (
|
|
148
|
+
llama_host_bytes(entry.profile(variant), slots=posture.slots, kv_types=decision.kv_types)
|
|
149
|
+
+ (min(posture.prompt_cache_mib, posture.prompt_cache_min_mib) << 20)
|
|
150
|
+
+ HARNESS_RAM
|
|
151
|
+
+ RAM_FLOOR
|
|
152
|
+
)
|
|
153
|
+
if options.get("search", True):
|
|
154
|
+
needed += sum(r["memory_estimate_bytes"] for r in components() if r["task"] == "search")
|
|
155
|
+
return needed <= host_ram(facts)[1]
|
|
156
|
+
|
|
157
|
+
|
|
110
158
|
def rank_key(
|
|
111
159
|
entry: CatalogEntry, variant: QuantVariant, budget: HardwareBudget, *, backend: str = "auto"
|
|
112
160
|
) -> tuple[int, float]:
|
|
@@ -118,13 +166,20 @@ def rank_key(
|
|
|
118
166
|
|
|
119
167
|
|
|
120
168
|
def choose(
|
|
121
|
-
ranked: list[tuple[tuple[int, float], str, int]],
|
|
169
|
+
ranked: list[tuple[tuple[int, float], str, int]],
|
|
170
|
+
prefer: str,
|
|
171
|
+
default: str | None = None,
|
|
172
|
+
*,
|
|
173
|
+
fallback_ids: Iterable[str] = (),
|
|
122
174
|
) -> tuple[str, int]:
|
|
123
175
|
"""(entry id, card index) out of ``(rank_key, id, card)`` triples for one scenario: fastest
|
|
124
176
|
takes the highest decode speed whatever the score (the score breaks ties); otherwise the
|
|
125
177
|
small-Mac ``default`` when it fits and keeps_default holds for the others; else smartest and
|
|
126
178
|
concurrent take the best score (speed breaks ties); fast takes the fastest whose score is
|
|
127
|
-
within FAST_QUALITY_BAND of the best.
|
|
179
|
+
within FAST_QUALITY_BAND of the best. Scoped ``fallback_ids`` are considered only when
|
|
180
|
+
no primary fits on any eligible card."""
|
|
181
|
+
fallback = set(fallback_ids)
|
|
182
|
+
ranked = [row for row in ranked if row[1] not in fallback] or ranked
|
|
128
183
|
if prefer == "fastest":
|
|
129
184
|
_, entry_id, index = max(ranked, key=lambda t: (t[0][1], t[0][0]))
|
|
130
185
|
return entry_id, index
|
|
@@ -25,14 +25,18 @@ METAL = "/System/Library/Frameworks/Metal.framework/Metal"
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
def available_memory(total_text: str, vm_stat: str) -> tuple[int, int]:
|
|
28
|
-
"""
|
|
29
|
-
page = re.search(r"page size of (\d+)", vm_stat)
|
|
30
|
-
free = re.search(r"Pages free
|
|
31
|
-
inactive = re.search(r"Pages inactive
|
|
32
|
-
|
|
28
|
+
"""Available RAM from vm_stat's disjoint free, inactive and speculative page counts."""
|
|
29
|
+
page = re.search(r"page size of (\d+) bytes\)", vm_stat)
|
|
30
|
+
free = re.search(r"^Pages free:[ \t]+(\d+)\.[ \t]*$", vm_stat, re.MULTILINE)
|
|
31
|
+
inactive = re.search(r"^Pages inactive:[ \t]+(\d+)\.[ \t]*$", vm_stat, re.MULTILINE)
|
|
32
|
+
speculative = re.search(r"^Pages speculative:[ \t]+(\d+)\.[ \t]*$", vm_stat, re.MULTILINE)
|
|
33
|
+
if not page or not free or not inactive or not speculative:
|
|
33
34
|
raise OSError("RAM measurement unavailable")
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
try:
|
|
36
|
+
total = int(total_text.strip())
|
|
37
|
+
except ValueError:
|
|
38
|
+
raise OSError("RAM measurement unavailable") from None
|
|
39
|
+
available = (int(free[1]) + int(inactive[1]) + int(speculative[1])) * int(page[1])
|
|
36
40
|
if total <= 0 or int(page[1]) <= 0 or available > total:
|
|
37
41
|
raise OSError("RAM measurement unavailable")
|
|
38
42
|
return total, available
|
|
@@ -11,8 +11,8 @@ from typing import Literal, TypedDict
|
|
|
11
11
|
|
|
12
12
|
from localmodels import catalog as cat
|
|
13
13
|
from localmodels import llm_rank
|
|
14
|
-
from localmodels.budget import Placement, gib, placements
|
|
15
|
-
from localmodels.context_policy import window_k
|
|
14
|
+
from localmodels.budget import Placement, agent_budget, gib, placements
|
|
15
|
+
from localmodels.context_policy import AGENT, window_k
|
|
16
16
|
from localmodels.estimator import PhysicsRefusal
|
|
17
17
|
from localmodels.probe import HostFacts
|
|
18
18
|
|
|
@@ -76,6 +76,7 @@ _QUANT_REASONS = {
|
|
|
76
76
|
),
|
|
77
77
|
}
|
|
78
78
|
RECOMMENDED_REASONS = {
|
|
79
|
+
"windows-candidate-fallback": llm_rank.WINDOWS_FALLBACK_WARNING,
|
|
79
80
|
"user-default": "User-selected small-Mac default; SimplexAI score and full acceptance pending.",
|
|
80
81
|
"product-default": "This machine's default model, chosen by its maker.",
|
|
81
82
|
"best-quality-resident": (
|
|
@@ -160,8 +161,12 @@ def recommendation(
|
|
|
160
161
|
facts: HostFacts,
|
|
161
162
|
) -> tuple[cat.CatalogEntry, str, Placement] | None:
|
|
162
163
|
"""Pick an eligible LLM on one card, then a pooled split. Other entries stay inspectable."""
|
|
164
|
+
live = tuple(
|
|
165
|
+
e
|
|
166
|
+
for e in entries
|
|
167
|
+
if llm_rank.automatic_here(e, facts) and not llm_rank.windows_fallback(e, facts)
|
|
168
|
+
)
|
|
163
169
|
for placement in _candidates(host):
|
|
164
|
-
live = tuple(e for e in entries if llm_rank.automatic_here(e, facts))
|
|
165
170
|
picked = llm_rank.recommended_entry(
|
|
166
171
|
placement.budget,
|
|
167
172
|
live,
|
|
@@ -170,6 +175,30 @@ def recommendation(
|
|
|
170
175
|
)
|
|
171
176
|
if picked is not None:
|
|
172
177
|
return picked[0], picked[1], placement
|
|
178
|
+
fallback = next((e for e in entries if llm_rank.windows_fallback(e, facts)), None)
|
|
179
|
+
if fallback is not None:
|
|
180
|
+
candidates = [
|
|
181
|
+
(p, budget)
|
|
182
|
+
for p in host
|
|
183
|
+
if not p.conflicts and (budget := agent_budget(p, facts)) is not None
|
|
184
|
+
]
|
|
185
|
+
candidates.sort(key=lambda pair: -pair[1].usable_vram_bytes)
|
|
186
|
+
fitting = []
|
|
187
|
+
for entry in (*live, fallback):
|
|
188
|
+
for p, budget in candidates:
|
|
189
|
+
if llm_rank.automatic_fit(entry, facts, budget, AGENT, {"search": True}):
|
|
190
|
+
key = llm_rank.rank_key(entry, entry.variants[-1], budget)
|
|
191
|
+
fitting.append((key, entry.id, p.gpu_indices[0]))
|
|
192
|
+
break
|
|
193
|
+
if not fitting:
|
|
194
|
+
return None
|
|
195
|
+
entry_id, index = llm_rank.choose(fitting, "smartest", fallback_ids={fallback.id})
|
|
196
|
+
if entry_id != fallback.id:
|
|
197
|
+
return None
|
|
198
|
+
fallback_placement = next((p for p in host if p.id == f"gpu:{index}"), None)
|
|
199
|
+
if fallback_placement is None:
|
|
200
|
+
return None
|
|
201
|
+
return fallback, "windows-candidate-fallback", fallback_placement
|
|
173
202
|
return None
|
|
174
203
|
|
|
175
204
|
|