@simplexai/localmodels-darwin-arm64 0.1.0-dev.37 → 0.1.0-dev.39

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 +85 -78
  3. package/modules/localmodels/__init__.py +1 -1
  4. package/modules/localmodels/__main__.py +4 -0
  5. package/modules/localmodels/bifrost_checks.py +9 -6
  6. package/modules/localmodels/bifrost_config.py +35 -1
  7. package/modules/localmodels/bifrost_datasheet.py +12 -2
  8. package/modules/localmodels/catalog.json +155 -8
  9. package/modules/localmodels/catalog.py +19 -1
  10. package/modules/localmodels/catalog_recipes.py +33 -2
  11. package/modules/localmodels/cli_parser.py +26 -3
  12. package/modules/localmodels/deploy.py +37 -9
  13. package/modules/localmodels/deploy_steps.py +6 -3
  14. package/modules/localmodels/download-mirrors.json +52 -4
  15. package/modules/localmodels/engines-b11583.json +20 -4
  16. package/modules/localmodels/engines-b12167.json +5 -1
  17. package/modules/localmodels/engines-strata-0.1.47.json +5 -1
  18. package/modules/localmodels/engines-strata-0.1.49.2.json +5 -1
  19. package/modules/localmodels/engines-strata-0.1.59.1.json +5 -1
  20. package/modules/localmodels/engines-strata-poly-0.1.45-poly.9.json +5 -1
  21. package/modules/localmodels/engines-whisper-b5454.json +5 -1
  22. package/modules/localmodels/engines.json +55 -11
  23. package/modules/localmodels/frontend.py +5 -2
  24. package/modules/localmodels/gateway_bifrost.py +11 -9
  25. package/modules/localmodels/gateway_cli.py +4 -2
  26. package/modules/localmodels/guard.py +15 -6
  27. package/modules/localmodels/harness.py +65 -33
  28. package/modules/localmodels/harness_gateway.py +9 -3
  29. package/modules/localmodels/hf_repo.py +15 -8
  30. package/modules/localmodels/library_gateway.py +26 -13
  31. package/modules/localmodels/library_jobs.py +51 -3
  32. package/modules/localmodels/library_model.py +10 -0
  33. package/modules/localmodels/library_pricing.py +29 -22
  34. package/modules/localmodels/library_serve.py +5 -0
  35. package/modules/localmodels/library_state.py +9 -1
  36. package/modules/localmodels/library_status.py +30 -0
  37. package/modules/localmodels/llm_rank.py +83 -30
  38. package/modules/localmodels/metal_probe.py +16 -6
  39. package/modules/localmodels/npm_signatures.py +131 -0
  40. package/modules/localmodels/npm_transport.py +26 -10
  41. package/modules/localmodels/process_identity.py +32 -5
  42. package/modules/localmodels/recommend.py +5 -2
  43. package/modules/localmodels/region.py +244 -0
  44. package/modules/localmodels/remote_ops.py +69 -13
  45. package/modules/localmodels/remote_ops_download.py +210 -10
  46. package/modules/localmodels/remote_ops_prepare.py +61 -8
  47. package/modules/localmodels/runtime-lock.json +13 -13
  48. package/modules/localmodels/runtime_args.py +4 -2
  49. package/modules/localmodels/runtime_cli.py +19 -37
  50. package/modules/localmodels/runtime_discovery.py +30 -0
  51. package/modules/localmodels/runtime_install.py +81 -6
  52. package/modules/localmodels/runtime_io.py +61 -5
  53. package/modules/localmodels/runtime_pi.py +79 -0
  54. package/modules/localmodels/runtime_process.py +99 -15
  55. package/modules/localmodels/runtime_releases.py +51 -71
  56. package/modules/localmodels/search_server.py +5 -1
  57. package/modules/localmodels/service_probe.py +62 -4
  58. package/modules/localmodels/setup_inspection.py +21 -4
  59. package/modules/localmodels/setup_text.py +6 -0
  60. package/modules/localmodels/source_byok.py +484 -0
  61. package/modules/localmodels/source_byok_probe.py +275 -0
  62. package/modules/localmodels/source_cli.py +426 -0
  63. package/modules/localmodels/stack.py +31 -14
  64. package/modules/localmodels/stack_args.py +8 -4
  65. package/modules/localmodels/stack_binding.py +47 -4
  66. package/modules/localmodels/stack_cli.py +2 -0
  67. package/modules/localmodels/stack_compose.py +5 -5
  68. package/modules/localmodels/stack_events.py +3 -0
  69. package/modules/localmodels/stack_hardware.py +21 -6
  70. package/modules/localmodels/stack_llm_ram.py +16 -6
  71. package/modules/localmodels/stack_picks.py +4 -4
  72. package/modules/localmodels/stack_progress.py +9 -1
  73. package/modules/localmodels/stack_run.py +29 -0
  74. package/modules/localmodels/stack_suite.py +10 -3
  75. package/modules/localmodels/stack_warm.py +45 -4
  76. package/modules/localmodels/tools.json +1396 -32
  77. package/modules/localmodels/transport.py +40 -13
  78. package/modules/localmodels/windows_job.py +69 -0
  79. package/modules/{simplex_localmodels-0.1.0.dev37.dist-info → simplex_localmodels-0.1.0.dev39.dist-info}/METADATA +1 -1
  80. package/modules/{simplex_localmodels-0.1.0.dev37.dist-info → simplex_localmodels-0.1.0.dev39.dist-info}/RECORD +82 -75
  81. package/package.json +1 -1
  82. package/tool.json +1 -1
  83. /package/modules/{simplex_localmodels-0.1.0.dev37.dist-info → simplex_localmodels-0.1.0.dev39.dist-info}/WHEEL +0 -0
  84. /package/modules/{simplex_localmodels-0.1.0.dev37.dist-info → simplex_localmodels-0.1.0.dev39.dist-info}/entry_points.txt +0 -0
  85. /package/modules/{simplex_localmodels-0.1.0.dev37.dist-info → simplex_localmodels-0.1.0.dev39.dist-info}/licenses/NOTICE +0 -0
  86. /package/modules/{simplex_localmodels-0.1.0.dev37.dist-info → simplex_localmodels-0.1.0.dev39.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -8,6 +8,9 @@
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",
11
+ "family": "qwen",
12
+ "publisher": "Qwen",
13
+ "parameters": "27B",
11
14
  "status": "validated",
12
15
  "tasks": [
13
16
  "llm",
@@ -91,6 +94,9 @@
91
94
  "repo": "unsloth/Qwen3.8-27B-GGUF",
92
95
  "license": "Apache-2.0",
93
96
  "license_url": "https://huggingface.co/Qwen/Qwen3.8-27B/blob/main/LICENSE",
97
+ "family": "qwen",
98
+ "publisher": "Qwen",
99
+ "parameters": "27B",
94
100
  "status": "candidate",
95
101
  "tasks": [
96
102
  "llm",
@@ -166,6 +172,9 @@
166
172
  "repo": "unsloth/Qwen3.8-27B-GGUF",
167
173
  "license": "Apache-2.0",
168
174
  "license_url": "https://huggingface.co/Qwen/Qwen3.8-27B/blob/main/LICENSE",
175
+ "family": "qwen",
176
+ "publisher": "Qwen",
177
+ "parameters": "27B",
169
178
  "status": "validated",
170
179
  "validated_on": [
171
180
  "linux",
@@ -249,6 +258,9 @@
249
258
  "repo": "ConwayResearch/Underdog-Saluki-27B-1.0",
250
259
  "license": "Apache-2.0",
251
260
  "license_url": "https://huggingface.co/ConwayResearch/Underdog-Saluki-27B-1.0/blob/4f60eba09f4b6db63c72915d328d97e1d93edb8c/README.md",
261
+ "family": "qwen",
262
+ "publisher": "ConwayResearch",
263
+ "parameters": "27B",
252
264
  "status": "candidate",
253
265
  "tasks": [
254
266
  "llm",
@@ -324,6 +336,8 @@
324
336
  "repo": "unsloth/Qwen3.8-Flash-Next-GGUF",
325
337
  "license": "qwen-community-1.0",
326
338
  "license_url": "https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE",
339
+ "family": "qwen",
340
+ "publisher": "Qwen",
327
341
  "status": "candidate",
328
342
  "tasks": [
329
343
  "llm",
@@ -405,6 +419,8 @@
405
419
  "repo": "ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF",
406
420
  "license": "qwen-community-1.0",
407
421
  "license_url": "https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE",
422
+ "family": "qwen",
423
+ "publisher": "Qwen",
408
424
  "status": "validated",
409
425
  "validated_on": [
410
426
  "darwin"
@@ -491,6 +507,8 @@
491
507
  "repo": "ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF",
492
508
  "license": "qwen-community-1.0",
493
509
  "license_url": "https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE",
510
+ "family": "qwen",
511
+ "publisher": "Qwen",
494
512
  "status": "validated",
495
513
  "validated_on": [
496
514
  "darwin"
@@ -577,6 +595,10 @@
577
595
  "repo": "unsloth/Qwen3.6-35B-A3B-MTP-GGUF",
578
596
  "license": "Apache-2.0",
579
597
  "license_url": "https://huggingface.co/Qwen/Qwen3.6-35B-A3B/blob/main/LICENSE",
598
+ "family": "qwen",
599
+ "publisher": "Qwen",
600
+ "parameters": "35B",
601
+ "active_parameters": "3B",
580
602
  "status": "validated",
581
603
  "tasks": [
582
604
  "llm",
@@ -673,6 +695,8 @@
673
695
  "repo": "unsloth/DeepSeek-V4-Flash-0731-GGUF",
674
696
  "license": "MIT",
675
697
  "license_url": "https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731/blob/main/LICENSE",
698
+ "family": "deepseek",
699
+ "publisher": "DeepSeek",
676
700
  "status": "candidate",
677
701
  "tasks": [
678
702
  "llm"
@@ -684,23 +708,33 @@
684
708
  "files": [
685
709
  {
686
710
  "path": "UD-Q4_K_XL/DeepSeek-V4-Flash-0731-UD-Q4_K_XL-00001-of-00005.gguf",
687
- "size_bytes": 5257408
711
+ "size_bytes": 5257408,
712
+ "revision": "fbbb5b93fb787c21338159b0af3318bb3f4d9768",
713
+ "sha256": "d13ce8f90855547bdaebe7312f531a1f2c4f822178d3103951f27fe884395cfa"
688
714
  },
689
715
  {
690
716
  "path": "UD-Q4_K_XL/DeepSeek-V4-Flash-0731-UD-Q4_K_XL-00002-of-00005.gguf",
691
- "size_bytes": 48935523072
717
+ "size_bytes": 48935523072,
718
+ "revision": "fbbb5b93fb787c21338159b0af3318bb3f4d9768",
719
+ "sha256": "d5b61668950f4743aacd677675d7fcf7507dbe1db6d304e8ff97ed1f00827bee"
692
720
  },
693
721
  {
694
722
  "path": "UD-Q4_K_XL/DeepSeek-V4-Flash-0731-UD-Q4_K_XL-00003-of-00005.gguf",
695
- "size_bytes": 48980787136
723
+ "size_bytes": 48980787136,
724
+ "revision": "fbbb5b93fb787c21338159b0af3318bb3f4d9768",
725
+ "sha256": "9705db7e589f360685ca7bd48100b270d78d228d4f5aa980508f3b2778af5494"
696
726
  },
697
727
  {
698
728
  "path": "UD-Q4_K_XL/DeepSeek-V4-Flash-0731-UD-Q4_K_XL-00004-of-00005.gguf",
699
- "size_bytes": 49999168416
729
+ "size_bytes": 49999168416,
730
+ "revision": "fbbb5b93fb787c21338159b0af3318bb3f4d9768",
731
+ "sha256": "7f13a68e3ca64208454c4ba32cc2757c0cbe78e3e5576c3142bf7007ca97da42"
700
732
  },
701
733
  {
702
734
  "path": "UD-Q4_K_XL/DeepSeek-V4-Flash-0731-UD-Q4_K_XL-00005-of-00005.gguf",
703
- "size_bytes": 7174505088
735
+ "size_bytes": 7174505088,
736
+ "revision": "fbbb5b93fb787c21338159b0af3318bb3f4d9768",
737
+ "sha256": "ed0d93164d3784968d6ce40d6d201ba98337f16e7db1b31fe495b2b0f334cc09"
704
738
  }
705
739
  ]
706
740
  }
@@ -713,7 +747,9 @@
713
747
  "n_vocab": 163840,
714
748
  "draft": {
715
749
  "path": "dspark-DeepSeek-V4-Flash-0731-Q8_0.gguf",
716
- "size_bytes": 10896057440
750
+ "size_bytes": 10896057440,
751
+ "revision": "fbbb5b93fb787c21338159b0af3318bb3f4d9768",
752
+ "sha256": "2c7ac54b0b64a99df1f139a9f1371a00198265e1d6a614b77597d20a655a4249"
717
753
  },
718
754
  "sampling": {
719
755
  "temp": "1.0",
@@ -739,6 +775,9 @@
739
775
  "repo": "openbmb/MiniCPM5-2B-GGUF",
740
776
  "license": "Apache-2.0",
741
777
  "license_url": "https://huggingface.co/openbmb/MiniCPM5-2B/blob/f97400052a43d642bbc6e9975e2397e3ae6a6b52/README.md",
778
+ "family": "other",
779
+ "publisher": "OpenBMB",
780
+ "parameters": "2B",
742
781
  "status": "candidate",
743
782
  "tasks": [
744
783
  "llm"
@@ -793,6 +832,9 @@
793
832
  "repo": "openbmb/MiniCPM5-2B-GGUF",
794
833
  "license": "Apache-2.0",
795
834
  "license_url": "https://huggingface.co/openbmb/MiniCPM5-2B/blob/f97400052a43d642bbc6e9975e2397e3ae6a6b52/README.md",
835
+ "family": "other",
836
+ "publisher": "OpenBMB",
837
+ "parameters": "2B",
796
838
  "status": "candidate",
797
839
  "tasks": [
798
840
  "llm"
@@ -845,6 +887,9 @@
845
887
  "repo": "unsloth/Qwen3.5-2B-GGUF",
846
888
  "license": "Apache-2.0",
847
889
  "license_url": "https://huggingface.co/Qwen/Qwen3.5-2B/blob/main/LICENSE",
890
+ "family": "qwen",
891
+ "publisher": "Qwen",
892
+ "parameters": "2B",
848
893
  "status": "deprecated",
849
894
  "tasks": [
850
895
  "llm",
@@ -917,6 +962,9 @@
917
962
  "repo": "unsloth/Qwen3.5-4B-GGUF",
918
963
  "license": "Apache-2.0",
919
964
  "license_url": "https://huggingface.co/Qwen/Qwen3.5-4B/blob/main/LICENSE",
965
+ "family": "qwen",
966
+ "publisher": "Qwen",
967
+ "parameters": "4B",
920
968
  "status": "deprecated",
921
969
  "tasks": [
922
970
  "llm",
@@ -989,6 +1037,9 @@
989
1037
  "repo": "unsloth/Qwen3.5-9B-GGUF",
990
1038
  "license": "Apache-2.0",
991
1039
  "license_url": "https://huggingface.co/Qwen/Qwen3.5-9B/blob/main/LICENSE",
1040
+ "family": "qwen",
1041
+ "publisher": "Qwen",
1042
+ "parameters": "9B",
992
1043
  "status": "deprecated",
993
1044
  "tasks": [
994
1045
  "llm",
@@ -1058,6 +1109,10 @@
1058
1109
  "repo": "unsloth/Nemotron-3-Nano-30B-A3B-GGUF",
1059
1110
  "license": "nvidia-nemotron-open-model-license",
1060
1111
  "license_url": "https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-nemotron-open-model-license/",
1112
+ "family": "other",
1113
+ "publisher": "NVIDIA",
1114
+ "parameters": "30B",
1115
+ "active_parameters": "3B",
1061
1116
  "status": "candidate",
1062
1117
  "tasks": [
1063
1118
  "llm"
@@ -1119,10 +1174,13 @@
1119
1174
  {
1120
1175
  "id": "spark-x2.6-1.7b",
1121
1176
  "display_name": "Spark-X2.6 1.7B",
1122
- "description": "Spark-X2.6 1.7B (2026-10, hybrid SWA attention) at Q8_0 for 16 GB unified-memory Macs: 7 full-attention layers keep 128K x 2 small",
1177
+ "description": "Spark-X2.6 1.7B (2026-10, hybrid SWA attention) at Q8_0: user-selected 16 GB Mac fastest choice and every Mac's last fallback (roadmap decision 57), at a 64K window shared by two slots; no SimplexAI score, vendor anchor 55 never ranks it",
1123
1178
  "repo": "XHToken/Spark-X2.6-1.7B-GGUF",
1124
1179
  "license": "Apache-2.0",
1125
1180
  "license_url": "https://huggingface.co/XHToken/Spark-X2.6-1.7B-GGUF/blob/cdc3d8893fba4ce0687f1b49ce1e18b29cae96d0/README.md",
1181
+ "family": "other",
1182
+ "publisher": "XHToken",
1183
+ "parameters": "1.7B",
1126
1184
  "status": "candidate",
1127
1185
  "reasoning_efforts": [
1128
1186
  "low",
@@ -1131,7 +1189,9 @@
1131
1189
  "tasks": [
1132
1190
  "llm"
1133
1191
  ],
1134
- "evidence": [],
1192
+ "evidence": [
1193
+ "2026-11-16-spark-mac16-ladder"
1194
+ ],
1135
1195
  "variants": [
1136
1196
  {
1137
1197
  "quant": "Q8_0",
@@ -1149,6 +1209,7 @@
1149
1209
  }
1150
1210
  ],
1151
1211
  "n_ctx_train": 1048576,
1212
+ "max_agent_window": 65536,
1152
1213
  "full_layers": 7,
1153
1214
  "recurrent_layers": 0,
1154
1215
  "per_layer_f16": 2048,
@@ -1182,6 +1243,9 @@
1182
1243
  "repo": "XHToken/Spark-X2.6-4B-GGUF",
1183
1244
  "license": "Apache-2.0",
1184
1245
  "license_url": "https://huggingface.co/XHToken/Spark-X2.6-4B-GGUF/blob/0e8aa39a34063946ce07bbaaff392093b11b6829/README.md",
1246
+ "family": "other",
1247
+ "publisher": "XHToken",
1248
+ "parameters": "4B",
1185
1249
  "status": "candidate",
1186
1250
  "reasoning_efforts": [
1187
1251
  "low",
@@ -1238,6 +1302,71 @@
1238
1302
  ]
1239
1303
  }
1240
1304
  },
1305
+ {
1306
+ "id": "spark-x2.6-4b-q4km",
1307
+ "display_name": "Spark-X2.6 4B",
1308
+ "description": "Spark-X2.6 4B Q4_K_M candidate: user-selected Mac small-memory default (16 GB smartest, 24 GB fastest, every Mac's fallback below Qwen3.8-27B; roadmap decision 57), at a 64K window shared by two slots. No SimplexAI score; physical 16 GB Mac installation and full product acceptance pending",
1309
+ "repo": "XHToken/Spark-X2.6-4B-GGUF",
1310
+ "license": "Apache-2.0",
1311
+ "license_url": "https://huggingface.co/XHToken/Spark-X2.6-4B-GGUF/blob/9d716770ac7477776de5f891f70cdf98b003a5cd/README.md",
1312
+ "family": "other",
1313
+ "publisher": "XHToken",
1314
+ "parameters": "4B",
1315
+ "status": "candidate",
1316
+ "reasoning_efforts": [
1317
+ "low",
1318
+ "high"
1319
+ ],
1320
+ "tasks": [
1321
+ "llm"
1322
+ ],
1323
+ "evidence": [
1324
+ "2026-11-16-spark-mac16-ladder"
1325
+ ],
1326
+ "variants": [
1327
+ {
1328
+ "quant": "Q4_K_M",
1329
+ "files": [
1330
+ {
1331
+ "path": "Spark-X2.6-4B-Q4_K_M.gguf",
1332
+ "size_bytes": 3543441312,
1333
+ "revision": "9d716770ac7477776de5f891f70cdf98b003a5cd",
1334
+ "sha256": "91cb2811aebb47ac916aa619d27d4cdd7f4143106b7917accb8ead4cd7f5cbd9"
1335
+ }
1336
+ ],
1337
+ "lazy_bytes": 0,
1338
+ "embd_table_bytes": 671088640,
1339
+ "mtp_layer_bytes": 0
1340
+ }
1341
+ ],
1342
+ "n_ctx_train": 1048576,
1343
+ "max_agent_window": 65536,
1344
+ "full_layers": 9,
1345
+ "recurrent_layers": 0,
1346
+ "per_layer_f16": 4096,
1347
+ "swa_layers": 27,
1348
+ "swa_window": 512,
1349
+ "moe": false,
1350
+ "n_vocab": 131072,
1351
+ "architecture": "spark2_5",
1352
+ "n_embd": 2560,
1353
+ "tied_embeddings": false,
1354
+ "sampling": {
1355
+ "top-k": "-1",
1356
+ "top-p": "0.95",
1357
+ "temp": "1"
1358
+ },
1359
+ "quality": {
1360
+ "score": 0,
1361
+ "sources": [
1362
+ {
1363
+ "type": "editorial",
1364
+ "ref": "User decision 2026-11-16 (roadmap decision 57): Mac small-memory default chosen by the user, outside SimplexAI ranking. 0 is unranked, not a measured capability score; the vendor anchor of spark-x2.6-4b (72) does not apply to Mac ranking. Header facts (untied 671088640-byte embedding table) read from the pinned GGUF over Hub Range requests",
1365
+ "date": "2026-11-16"
1366
+ }
1367
+ ]
1368
+ }
1369
+ },
1241
1370
  {
1242
1371
  "id": "lfm3-1.7b",
1243
1372
  "display_name": "LFM3 1.7B",
@@ -1245,6 +1374,9 @@
1245
1374
  "repo": "LiquidAI/LFM3-1.7B-GGUF",
1246
1375
  "license": "LFM Open License v1.0",
1247
1376
  "license_url": "https://huggingface.co/LiquidAI/LFM3-1.7B-GGUF/blob/cd0c74c575b5c416f3011b5b4c298077f26ca8c2/LICENSE",
1377
+ "family": "other",
1378
+ "publisher": "Liquid AI",
1379
+ "parameters": "1.7B",
1248
1380
  "status": "candidate",
1249
1381
  "tasks": [
1250
1382
  "llm"
@@ -1304,6 +1436,8 @@
1304
1436
  "repo": "inclusionAI/Ling-3.0-tiny-GGUF",
1305
1437
  "license": "MIT",
1306
1438
  "license_url": "https://huggingface.co/inclusionAI/Ling-3.0-tiny-GGUF/blob/01b850e29ed5b44e2b810160ff980a9bb353296f/README.md",
1439
+ "family": "other",
1440
+ "publisher": "inclusionAI",
1307
1441
  "status": "validated",
1308
1442
  "validated_on": [
1309
1443
  "darwin"
@@ -1372,6 +1506,9 @@
1372
1506
  "repo": "ornith-ai/Ornith-1.5-9B-GGUF",
1373
1507
  "license": "MIT",
1374
1508
  "license_url": "https://huggingface.co/ornith-ai/Ornith-1.5-9B-GGUF/blob/abdd624b12ebf020b767fff532ff44fe552b28c3/README.md",
1509
+ "family": "other",
1510
+ "publisher": "Ornith AI",
1511
+ "parameters": "9B",
1375
1512
  "status": "candidate",
1376
1513
  "tasks": [
1377
1514
  "llm",
@@ -1442,6 +1579,9 @@
1442
1579
  "repo": "ornith-ai/Ornith-1.5-9B-GGUF",
1443
1580
  "license": "MIT",
1444
1581
  "license_url": "https://huggingface.co/ornith-ai/Ornith-1.5-9B-GGUF/blob/abdd624b12ebf020b767fff532ff44fe552b28c3/README.md",
1582
+ "family": "other",
1583
+ "publisher": "Ornith AI",
1584
+ "parameters": "9B",
1445
1585
  "status": "candidate",
1446
1586
  "tasks": [
1447
1587
  "llm",
@@ -1513,6 +1653,9 @@
1513
1653
  "repo": "mlx-community/Qwen3.5-2B-MLX-4bit",
1514
1654
  "license": "Apache-2.0",
1515
1655
  "license_url": "https://huggingface.co/Qwen/Qwen3.5-2B/blob/main/LICENSE",
1656
+ "family": "qwen",
1657
+ "publisher": "Qwen",
1658
+ "parameters": "2B",
1516
1659
  "status": "candidate",
1517
1660
  "tasks": [
1518
1661
  "llm"
@@ -1610,6 +1753,10 @@
1610
1753
  "repo": "LiquidAI/LFM2.5-24B-A2B-GGUF",
1611
1754
  "license": "lfm-open-license-v1.0",
1612
1755
  "license_url": "https://huggingface.co/LiquidAI/LFM2.5-24B-A2B-GGUF/blob/0912d33141f77e10705345a6732bfd83f0252fdc/LICENSE",
1756
+ "family": "other",
1757
+ "publisher": "Liquid AI",
1758
+ "parameters": "24B",
1759
+ "active_parameters": "2B",
1613
1760
  "status": "candidate",
1614
1761
  "tasks": [
1615
1762
  "llm"
@@ -15,7 +15,7 @@ from __future__ import annotations
15
15
 
16
16
  import json
17
17
  from collections.abc import Sequence
18
- from dataclasses import dataclass, field
18
+ from dataclasses import dataclass, field, replace
19
19
  from pathlib import Path, PurePosixPath
20
20
 
21
21
  from localmodels import decode_calibration, vision
@@ -128,6 +128,9 @@ class CatalogEntry:
128
128
  full_layers: int
129
129
  recurrent_layers: int
130
130
  per_layer_f16: int # KV bytes/token per full-attention layer
131
+ # The agent posture's window never grows past this (0: no cap beyond the posture's target);
132
+ # the Mac small-memory ladder runs Spark-X2.6 at 64K shared by two slots (decision 57).
133
+ max_agent_window: int = 0
131
134
  swa_layers: int = 0
132
135
  swa_window: int = 0
133
136
  moe: bool = False
@@ -166,6 +169,11 @@ class CatalogEntry:
166
169
  validated_on: tuple[str, ...] = () # PLATFORMS its validating evidence ran on; empty: all
167
170
  reasoning_efforts: tuple[str, ...] = () # levels the template accepts; empty: EFFORT_LEVELS
168
171
  runtime: str = "llama.cpp"
172
+ # Model card (CardData): empty when the catalog does not state it.
173
+ family: str = ""
174
+ publisher: str = ""
175
+ parameters: str = ""
176
+ active_parameters: str = ""
169
177
 
170
178
  @property
171
179
  def mtp_capable(self) -> bool:
@@ -210,6 +218,11 @@ class CatalogEntry:
210
218
  agent: AgentPosture | None = None,
211
219
  ) -> LaunchPlan:
212
220
  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
+ )
213
226
  profile = eager(self.profile(variant)) # the agent argv has no --lazy-mode
214
227
  depth = self.mtp_draft_depth if self.agent_mtp and self.mtp_capable else 0
215
228
  return vision.priced(self.mmproj, profile, budget, agent, mtp_depth=depth)
@@ -413,6 +426,7 @@ def load_catalog(value: object) -> tuple[CatalogEntry, ...]:
413
426
  full_layers=m["full_layers"],
414
427
  recurrent_layers=m["recurrent_layers"],
415
428
  per_layer_f16=m["per_layer_f16"],
429
+ max_agent_window=m.get("max_agent_window", 0),
416
430
  swa_layers=m.get("swa_layers", 0),
417
431
  swa_window=m.get("swa_window", 0),
418
432
  moe=m.get("moe", False),
@@ -443,6 +457,10 @@ def load_catalog(value: object) -> tuple[CatalogEntry, ...]:
443
457
  validated_on=tuple(m.get("validated_on", [])),
444
458
  reasoning_efforts=tuple(m.get("reasoning_efforts", [])),
445
459
  runtime=m.get("runtime", "llama.cpp"),
460
+ family=m.get("family", ""),
461
+ publisher=m.get("publisher", ""),
462
+ parameters=m.get("parameters", ""),
463
+ active_parameters=m.get("active_parameters", ""),
446
464
  )
447
465
  )
448
466
  return tuple(entries)
@@ -18,6 +18,9 @@ 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
20
  TASKS = tuple("llm vision decision embedding reranker stt tts search privacy-span".split())
21
+ # Model-card families Linger's LocalModelFamily knows (its contract); "other" for the rest.
22
+ FAMILIES = tuple("qwen gemma llama openai deepseek mistral phi glm kimi claude grok other".split())
23
+ SCALE = r"[1-9][0-9]*(\.[0-9]+)?[BM]" # a parameter scale as a model's name states it: 27B, 1.7B
21
24
  # intelligence_score: the installed SimplexAI score (decisions 26, 33); make check keeps it equal
22
25
  QUALITY_SOURCE_TYPES = ("editorial", "own_eval", "external_index", "kld", "intelligence_score")
23
26
 
@@ -88,8 +91,20 @@ class ProvenanceData(TypedDict, total=False):
88
91
  base_license_url: str
89
92
 
90
93
 
91
- class OptionalModelData(ModelData, ProvenanceData, total=False):
94
+ class CardData(TypedDict, total=False):
95
+ """Since 2026-11-17: what a model card shows, stated per entry, never guessed from a name.
96
+ ``family`` is one of FAMILIES; ``parameters`` and ``active_parameters`` are display scales
97
+ such as 35B and 3B (an MoE's active slice), as the model's own name states them."""
98
+
99
+ family: str
100
+ publisher: str
101
+ parameters: str
102
+ active_parameters: str
103
+
104
+
105
+ class OptionalModelData(ModelData, ProvenanceData, CardData, total=False):
92
106
  runtime: str
107
+ max_agent_window: int # since 2026-11-16: the agent posture's window cap, tokens
93
108
  swa_layers: int
94
109
  swa_window: int
95
110
  moe: bool
@@ -270,6 +285,22 @@ def _entry_problems(
270
285
  return found
271
286
 
272
287
 
288
+ def _card_problems(model: OptionalModelData) -> list[str]:
289
+ found = []
290
+ if model.get("family") is not None and model.get("family") not in FAMILIES:
291
+ found.append(f"family is not one of {', '.join(FAMILIES)}")
292
+ publisher = model.get("publisher")
293
+ if publisher is not None and not (0 < len(publisher.strip()) <= 120):
294
+ found.append("publisher must be 1 to 120 characters")
295
+ for key in ("parameters", "active_parameters"):
296
+ value = cast(dict[str, object], model).get(key)
297
+ if value is not None and not re.fullmatch(SCALE, str(value)):
298
+ found.append(f"{key} is not a scale such as 27B or 1.7B")
299
+ if model.get("active_parameters") and not model.get("parameters"):
300
+ found.append("active_parameters needs parameters")
301
+ return found
302
+
303
+
273
304
  def _pin_problems(model: OptionalModelData) -> list[str]:
274
305
  """A file pinned by content must name that content and the commit that holds it."""
275
306
  assets = [f for v in model["variants"] for f in v["files"]]
@@ -303,7 +334,7 @@ def problems(value: object) -> list[str]:
303
334
  issues.append("quality has no sources")
304
335
  elif any(s["type"] not in QUALITY_SOURCE_TYPES for s in quality["sources"]):
305
336
  issues.append("quality.sources[].type is unknown")
306
- issues += _pin_problems(m)
337
+ issues += _pin_problems(m) + _card_problems(m)
307
338
  found += [f"models.{m['id']}: {issue}" for issue in issues]
308
339
  for c in doc.get("components", []):
309
340
  issues = _entry_problems(c, c["task"], c["runtime"])
@@ -22,6 +22,7 @@ from localmodels import (
22
22
  services_cli,
23
23
  setup_inspection,
24
24
  sizecalc_cli,
25
+ source_cli,
25
26
  stack,
26
27
  stack_lifecycle,
27
28
  )
@@ -39,7 +40,17 @@ GROUPS = (
39
40
  ("devices", ("discover", "devices", "desktop-snapshot")),
40
41
  (
41
42
  "installer integration",
42
- ("setup", "library", "foundations", "harness", "gateway", "magpie", "guard", "debug"),
43
+ (
44
+ "setup",
45
+ "library",
46
+ "source",
47
+ "foundations",
48
+ "harness",
49
+ "gateway",
50
+ "magpie",
51
+ "guard",
52
+ "debug",
53
+ ),
43
54
  ),
44
55
  ("interfaces and catalog", ("tui", "serve", "catalog", "commands", "completion")),
45
56
  )
@@ -49,6 +60,7 @@ SUMMARIES = {
49
60
  "setup": "read-only setup inspection for installers (JSON)",
50
61
  "foundations": "background decision, embedding and reranker services",
51
62
  "library": "download, load, unload and remove single models (JSON)",
63
+ "source": "inspect, verify and switch the active model source (local, subscription, BYOK)",
52
64
  "guard": "optional CPU privacy profile; never rewires services",
53
65
  "magpie": "Magpie alone for Claude Code/Codex subscriptions (no local model)",
54
66
  "catalog": "maintain the model catalog (`add` drafts an entry from a GGUF)",
@@ -76,7 +88,9 @@ SECTIONS = (
76
88
  "(default ~/.local/state/localmodels)\n"
77
89
  "NO_COLOR, FORCE_COLOR turn color off or on\n"
78
90
  "LOCALMODELS_PROGRESS=plain plain progress lines even on a terminal\n"
79
- "LOCALMODELS_PROGRESS_JSON=1 installer progress JSONL on stderr during stack apply",
91
+ "LOCALMODELS_PROGRESS_JSON=1 installer progress JSONL on stderr during stack apply\n"
92
+ "SIMPLEX_REGION=cn|global download sources China-first or global-first "
93
+ "(auto: saved region.json, else probed)",
80
94
  ),
81
95
  (
82
96
  "exit status",
@@ -212,7 +226,8 @@ def _single(sub: Parsers) -> None:
212
226
  default=deploy.hf_endpoint(),
213
227
  metavar="URL",
214
228
  help="where the host downloads weights from (default: $HF_ENDPOINT, else Hugging "
215
- "Face); faster sources of the same pinned files are still tried",
229
+ "Face); other sources of the same pinned files are still tried, China-first in "
230
+ "download region cn",
216
231
  )
217
232
  p.add_argument(
218
233
  "--engine-path", metavar="PATH", help="reuse a llama-server already on the host"
@@ -310,6 +325,13 @@ def argument_parser() -> argparse.ArgumentParser:
310
325
  version=f"localmodels {__version__}",
311
326
  help="print the package version and exit",
312
327
  )
328
+ parser.add_argument(
329
+ "--region",
330
+ choices=("auto", "global", "cn"),
331
+ default=None,
332
+ help="download region: cn tries China sources first, global keeps today's sources first "
333
+ "(default: $SIMPLEX_REGION, else the saved or probed region)",
334
+ )
313
335
  sub = parser.add_subparsers(dest="command", required=True, metavar="COMMAND")
314
336
  _devices(sub)
315
337
  _inspect(sub)
@@ -327,6 +349,7 @@ def argument_parser() -> argparse.ArgumentParser:
327
349
  setup_inspection.add_parser(sub)
328
350
  services_cli.add_parser(sub)
329
351
  library_cli.add_parser(sub)
352
+ source_cli.add_parser(sub)
330
353
  debug_cli.add_parser(sub)
331
354
  for name, summary in SUMMARIES.items():
332
355
  cli_help.summarize(sub, name, summary)
@@ -17,7 +17,7 @@ from dataclasses import dataclass
17
17
  from typing import TypedDict
18
18
 
19
19
  from localmodels import catalog as cat
20
- from localmodels import chat_template, hf_repo, hosts, metal, stack_debug, vision
20
+ from localmodels import chat_template, hf_repo, hosts, metal, region, stack_debug, vision
21
21
  from localmodels.budget import (
22
22
  Placement,
23
23
  agent_budget,
@@ -71,7 +71,7 @@ from localmodels.transport import Executor
71
71
 
72
72
  DEFAULT_BASE_DIR = "~/.local/share/localmodels"
73
73
  DEFAULT_PORT = 18100
74
- HF_API = "https://huggingface.co"
74
+ HF_API = region.HF_API
75
75
 
76
76
 
77
77
  def hf_endpoint() -> str:
@@ -153,6 +153,29 @@ def _hf_get(url: str) -> object:
153
153
  ) from exc
154
154
 
155
155
 
156
+ def hub_get(api: str, path: str, *, mint: bool = False) -> object:
157
+ """One Hub API document. A lookup checked against a catalog pin asks the Hubs
158
+ region.hub_endpoints orders (in cn hf-mirror.com first) and moves to the other when one
159
+ cannot be reached, switching the region. A lookup that ``mint``s a SHA256 pin asks ``api``
160
+ alone: the default Hugging Face or the user's own Hub, never the mirror. A Hub that
161
+ answered (an HTTP error) is final."""
162
+ endpoints = [api.rstrip("/")] if mint else region.hub_endpoints(api)
163
+ for index, endpoint in enumerate(endpoints):
164
+ try:
165
+ doc = _hf_get(endpoint + path)
166
+ except PlanError as exc:
167
+ if index + 1 < len(endpoints):
168
+ continue
169
+ if mint and not region.explicit_hub(api):
170
+ what = path.split("/api/models/")[-1]
171
+ raise PlanError(region.MINT_REFUSAL.format(what=what)) from exc
172
+ raise
173
+ if index:
174
+ region.fallback_to(region.side_of_endpoint(endpoint))
175
+ return doc
176
+ raise AssertionError("unreachable Hub loop")
177
+
178
+
156
179
  class Revision(TypedDict):
157
180
  sha: str
158
181
 
@@ -174,25 +197,30 @@ def resolve_files(assets: list[tuple[str, cat.AssetFile]], api: str) -> list[Pin
174
197
  """Pin each asset to a commit and its LFS SHA256 via the Hub API. The catalog records sizes,
175
198
  and digests only for files it pins; a file whose size disagrees with the catalog is refused
176
199
  (the pricing would lie), and so is one whose content differs from its catalog pin."""
177
- revisions: dict[tuple[str, str], str] = {}
178
- trees: dict[tuple[str, str, str], dict[str, OptionalTreeEntry]] = {}
200
+ revisions: dict[tuple[str, str, bool], str] = {}
201
+ trees: dict[tuple[str, str, str, bool], dict[str, OptionalTreeEntry]] = {}
179
202
  pinned: list[PinnedFile] = []
180
203
  for repo, asset in assets:
181
- key = (repo, asset.revision)
204
+ mint = asset.sha256 is None # the Hub's answer becomes the pin: trusted Hub only
205
+ key = (repo, asset.revision, mint)
182
206
  if key not in revisions:
183
207
  doc = decode(
184
- _hf_get(f"{api}/api/models/{repo}/revision/{urllib.parse.quote(asset.revision)}"),
208
+ hub_get(
209
+ api,
210
+ f"/api/models/{repo}/revision/{urllib.parse.quote(asset.revision)}",
211
+ mint=mint,
212
+ ),
185
213
  Revision,
186
214
  )
187
215
  revisions[key] = doc["sha"]
188
216
  commit = revisions[key]
189
217
  directory = asset.path.rsplit("/", 1)[0] if "/" in asset.path else ""
190
- tkey = (repo, commit, directory)
218
+ tkey = (repo, commit, directory, mint)
191
219
  if tkey not in trees:
192
- url = f"{api}/api/models/{repo}/tree/{commit}" + (
220
+ path = f"/api/models/{repo}/tree/{commit}" + (
193
221
  f"/{urllib.parse.quote(directory)}" if directory else ""
194
222
  )
195
- entries = _hf_get(url)
223
+ entries = hub_get(api, path, mint=mint)
196
224
  if not isinstance(entries, list):
197
225
  raise PlanError("Hub tree must be an array")
198
226
  parsed = [decode(e, OptionalTreeEntry) for e in entries]