@simplexai/localmodels-linux-arm64 0.1.0-dev.57 → 0.1.0-dev.58

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 (29) hide show
  1. package/bootstrap.identity +1 -1
  2. package/bootstrap.sha256 +28 -27
  3. package/modules/localmodels/__init__.py +1 -1
  4. package/modules/localmodels/budget.py +161 -1
  5. package/modules/localmodels/catalog.py +5 -2
  6. package/modules/localmodels/gpu_specs.py +38 -13
  7. package/modules/localmodels/library_cli.py +8 -1
  8. package/modules/localmodels/library_elastic.py +720 -0
  9. package/modules/localmodels/library_model.py +101 -4
  10. package/modules/localmodels/library_pricing.py +31 -39
  11. package/modules/localmodels/library_serve.py +238 -42
  12. package/modules/localmodels/library_state.py +31 -0
  13. package/modules/localmodels/library_status.py +95 -2
  14. package/modules/localmodels/llm_rank.py +16 -5
  15. package/modules/localmodels/metal.py +141 -0
  16. package/modules/localmodels/metal_probe.py +167 -0
  17. package/modules/localmodels/probe.py +2 -2
  18. package/modules/localmodels/recommend.py +6 -1
  19. package/modules/localmodels/stack_compose.py +6 -1
  20. package/modules/localmodels/stack_hardware.py +3 -1
  21. package/modules/localmodels/stack_picks.py +16 -2
  22. package/modules/{simplex_localmodels-0.1.0.dev57.dist-info → simplex_localmodels-0.1.0.dev58.dist-info}/METADATA +1 -1
  23. package/modules/{simplex_localmodels-0.1.0.dev57.dist-info → simplex_localmodels-0.1.0.dev58.dist-info}/RECORD +25 -24
  24. package/package.json +1 -1
  25. package/tool.json +1 -1
  26. /package/modules/{simplex_localmodels-0.1.0.dev57.dist-info → simplex_localmodels-0.1.0.dev58.dist-info}/WHEEL +0 -0
  27. /package/modules/{simplex_localmodels-0.1.0.dev57.dist-info → simplex_localmodels-0.1.0.dev58.dist-info}/entry_points.txt +0 -0
  28. /package/modules/{simplex_localmodels-0.1.0.dev57.dist-info → simplex_localmodels-0.1.0.dev58.dist-info}/licenses/NOTICE +0 -0
  29. /package/modules/{simplex_localmodels-0.1.0.dev57.dist-info → simplex_localmodels-0.1.0.dev58.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -1 +1 @@
1
- linux-arm64 0aafada9017943d22a4b3cecb879ddc59f805a68 0.1.0.dev57 python/bin/python3.12 modules
1
+ linux-arm64 30e679a5df5f09596f3847ba7f05381c72742917 0.1.0.dev58 python/bin/python3.12 modules
package/bootstrap.sha256 CHANGED
@@ -1,7 +1,7 @@
1
- 61ff3c9642ab5b64501c88020c3bc271aa1d8cbacf280f91d3391363658297ba bootstrap.identity
1
+ f620ab9f7e73412883b7dfac12026960670ddd0cd12880233dd3afd7ad391f6e bootstrap.identity
2
2
  15f49306ae54bb208f5a65763f59522a9193d5b01b31279c9bab116bba7ffe5c kit.py
3
3
  821556e6336796450ab852d375117b48a4887e71d255794fd6318d99982a5ab6 modules/localmodels/HERMES-LICENSE
4
- 73a83d38ae589ec358da6e75c08a818ed157fd2e98d95ee9fa731db9b92097ef modules/localmodels/__init__.py
4
+ 2328353c18f593390961da3b34c7261554b7b2030cd23d5e50840f71e01386d8 modules/localmodels/__init__.py
5
5
  621e43ff0982247fb512979ef5d26d0b8c12f5d058669fd10dc220f2b6e92779 modules/localmodels/__main__.py
6
6
  d58431790b752ed9c5819872e8a237c49d3c0e15d8b5b4d4be24a61e504d4a56 modules/localmodels/app.py
7
7
  411de68b0ef44694442bacbe20cb4be1e3e4f29f6d533fdc8192174f15e57243 modules/localmodels/approval.py
@@ -19,9 +19,9 @@ b895ebf41bf584dff5fb4580c5f6f2a7fa35dbf4fd3fe39cf04507ff256c87d7 modules/localm
19
19
  0ed86425ac9c62c65a4859362f8fc313e5779aab1e7d5f53a6dbed6fe118a054 modules/localmodels/bifrost_pi.py
20
20
  dce42834f72fd15c85cc9860c718d6d519d327de9de8f74ad0d526504c8ad4f6 modules/localmodels/bifrost_provider.py
21
21
  e1666d11575ac2590e7c92cdc1751de78633cb3c410698db7d5a06c46b1bfcbc modules/localmodels/bifrost_unit.py
22
- 4c6935435ed38910b41ac4ca88e68f77f4548db6526e5c891f8e978d73826fe0 modules/localmodels/budget.py
22
+ 70e2dff62131a4577ea61896f458d89ff602555094821bf1351f7ead01221d0a modules/localmodels/budget.py
23
23
  508deb4c939e043ffab7d9dd5ae14f019e587cfba5661c2b9fbd5c48ee207550 modules/localmodels/catalog.json
24
- 1e3f37817db776704e92576c8c04bbc1bd47b8bc4d32e8609c72acb4bcd82f58 modules/localmodels/catalog.py
24
+ 02f62604c9c5979a348cf97cfb5bf26924ea75c2282eb7ad8eb02838f418d95a modules/localmodels/catalog.py
25
25
  969006f2f57c8d5f454d84e6d9589d925219da92f75696add3cbd0497c9e8726 modules/localmodels/catalog_add.py
26
26
  eef0cd1dc8df8b9606b434585ca26d027a4d52927c005d8d822ccd08d9bc9406 modules/localmodels/catalog_license.py
27
27
  655c0e50ebbbb4b63866f310b2c8fcf19f8d88323af8dd9215139c39855f03ae modules/localmodels/catalog_recipes.py
@@ -74,7 +74,7 @@ aa1ceeabf556f8f8dacc1225f577d280b9b5d22fab1f52fa7ae61fa920e38bcf modules/localm
74
74
  a383698c70e35da41a1462ab87d0458aebfa4ee310714021991f28228d585304 modules/localmodels/gateway_speed.py
75
75
  0c880e62ba300bb970b8ac87bf5207ece2bdd998eca1b3f7179664eaf546044a modules/localmodels/gateway_switch.py
76
76
  fd8a7d7900f32e6424cd333be7dc951f050962f2308a585c0e1c4e82620fec9e modules/localmodels/gguf.py
77
- df03fe707e9acacb5a24a1fd3e937af40a3bc526aeb9f85b744c0c18cc144dc4 modules/localmodels/gpu_specs.py
77
+ c20cfcd19599f6554e4e155ec573e02631354a16f327bee5b369b83022ca6a26 modules/localmodels/gpu_specs.py
78
78
  152ab61d4157ae79832e3184da744d1cf31f154b01273fd4725288ad12874b79 modules/localmodels/guard-requirements.lock
79
79
  863a02affaa3dc5654e08293636c7b1a8ea1040980d8e1469f41d214613b4cdc modules/localmodels/guard.py
80
80
  cd6aad804272bd9582b6b055780f9e494dbcbc1d7fcd5f29b6d0aa63452a872f modules/localmodels/guard_runtime.py
@@ -87,28 +87,29 @@ e175963b358d0436c14e0397a6963ef7dd17bf576102d060ebb256327ddcad99 modules/localm
87
87
  c07dac3e7c06dfe65555dcb172e391814013195c6c818f3429c885b2ec851d78 modules/localmodels/http_local.py
88
88
  a2c36e5567789d7498e513ddbc33b0866c04134d53be1155712c19654be1aed5 modules/localmodels/install.py
89
89
  ec5614a8c16f13866d25ed907647296c81a29d20ca7eb74933ce802bc4b6c3b6 modules/localmodels/kokoro-tts-0.6.1.txt
90
- 639d1e31d09603cbd64c90748f981b185476611dc266e574388faac9e4f78b9e modules/localmodels/library_cli.py
90
+ c2e7dcf4382e16652e3af5a6cbcd4484933b3ca9b0612339ed511b850e544767 modules/localmodels/library_cli.py
91
91
  38fa164918f3bc5ed1f0c7dd90fa2ad087bee44d79aa1a1966de41738a3af117 modules/localmodels/library_convert.py
92
+ a0f0ea64b395cac1fcbeed0dc1290892c224a358851c7b9e1d235659708cf029 modules/localmodels/library_elastic.py
92
93
  bc17c4b3b6b9581988d43a166396650cc1234ad714c6bfefc9616d4a80cbf0f1 modules/localmodels/library_floor.py
93
94
  672d78b0779043a1067f4dfc08549ed9f4bd33d92219fed1c10a393195633649 modules/localmodels/library_gateway.py
94
95
  f05c7d71791b0bba7ca17ffa8c48b2f47360d874c27527f22d0284708f93c0d6 modules/localmodels/library_jobs.py
95
96
  a930b34c504105e519a5d40bc152218385e753623d43172d92134e2924ca1f5d modules/localmodels/library_kept.py
96
- c10110690c7261b0d21b1b1614ff34b0359ad95b150f89e98afa27f5876840b5 modules/localmodels/library_model.py
97
+ 67e436e18f9cd0771d1c788a96e411b38eebf285f5695b202308feebe3b73d16 modules/localmodels/library_model.py
97
98
  bf6f2afc8c51b219be38da0aacd7373841a4b10d729b83b88842592e9c6ced6c modules/localmodels/library_order.py
98
99
  d85ae5872936c2649b1f5475cd743deb26db716586f80370183c8c9b8291970d modules/localmodels/library_poly.py
99
- c651609e7a5290c35188910c8c2388dab44c7d2188504eee06ae79b9681b8855 modules/localmodels/library_pricing.py
100
- ca58adea6a3c81654dfc54a3ff464db87725aa6c15486e2d5913eb0a15caab02 modules/localmodels/library_serve.py
101
- 2f602f54110eefd648d29fe2447927bd1693ca7eb2104b24d32fc9c286fb4153 modules/localmodels/library_state.py
102
- 113ccef13f290a7e21c35c66ac7b96b3396bbb794e9c2ac8d19ac9922999de77 modules/localmodels/library_status.py
100
+ c3766b43eb88a730d542b068e07e6f1d820d75dc08de024fb06b3744f8d9d2af modules/localmodels/library_pricing.py
101
+ d027ae1006c4cdc60b2925e9c5e6dfb49d780c28ce4fe2388e9d1ae99ee589b4 modules/localmodels/library_serve.py
102
+ 629fe5cc5ddb5f13677abc8075b68a897cc17543e72d4786582baf53b5d38d31 modules/localmodels/library_state.py
103
+ 685eecc28575686efb61eeaccd81d58b949e69e414aca238b9e88f4641b253f3 modules/localmodels/library_status.py
103
104
  3c15295ae9f686138cf92cd715c9a8eeeffcc3049948de3b74c6229f23b31355 modules/localmodels/library_vram.py
104
- 43ad223ebd9151c8b571891a7194ea66a90deb178903b6be3abd922aadc75fdf modules/localmodels/llm_rank.py
105
+ 5774eb1305852db64bc4430bb2fc2853566cf89f88d06777a995f0588138d163 modules/localmodels/llm_rank.py
105
106
  0286664dffd19f21c732bc4a9f5abb5c7d7bb74ce6de18affaad0b2202c4e5c4 modules/localmodels/magpie_setup.py
106
107
  0ccb8a4750aaf143ef8dc7652d71786b37eaad9947a10839d3133362c3ce052b modules/localmodels/magpie_windows.py
107
108
  9539b3a078cf633e7ee7a8338785501254f5891eaeebb076f2c755aebe5daffc modules/localmodels/memcalc.py
108
109
  c831b870d8abb63653c1b96863c49bd081b2d7f769508f76678a8c9e0e3f5b07 modules/localmodels/memcalc_cli.py
109
110
  90db9d1f19c5948b0eb5b6486dc909c77b9c4c4db73de4431258575947a0c150 modules/localmodels/memcalc_load.py
110
- 76d67721e0d13eabeae7b493b0ed3760f0a6f7d1fdd1cb268628c40f4acfe444 modules/localmodels/metal.py
111
- 6a1b7e6d8d9b7c7a5f66411a4a35a759b1f50021d24c4204f8ad335c902e0bf3 modules/localmodels/metal_probe.py
111
+ 76803df959fef1598fbd83bdad95ec1c2ec4859915bd43956ec0803917b7e424 modules/localmodels/metal.py
112
+ deb336467e25fca7d6133e656d6ddec1b29cefe55eac09dddd0e1a7f1368ed84 modules/localmodels/metal_probe.py
112
113
  f632e0485b5b3b6e3f855c276026491ee9ad3a5cd2c3b7b9e480ebfc811cf9d7 modules/localmodels/mirrors.py
113
114
  b054849c733e1f9aca64a2890a5de0080130e1aaa5181336d6837d9a56784b11 modules/localmodels/mlx-lm-0.32.2-requirements.txt
114
115
  6b2bdc7f11ef739e5d27c9f2ac65df72621f0051a52b0d0f7b26a0bbf006b09b modules/localmodels/mlx_server.py
@@ -119,14 +120,14 @@ b4737389ef84da9bef3773d04a0b06a0aeeadb8efefa83e633fd246ad514044c modules/localm
119
120
  a3308bd747cd61cc58e52f3bac3a95f7a7bcb5dca4dd954c5054148e56bd8d38 modules/localmodels/preparation.py
120
121
  4b10583c45a7e0882ea1e36dcd5e86536afdfcfc44ca22b355b3a5f745680472 modules/localmodels/privacy.py
121
122
  0aee52c415e2e7fd246d8ae94bb4b1012ff2a71ebf17e33f2f53e08e2526e396 modules/localmodels/privacy_acceptance.py
122
- 507a6cbc2bac419a414e207e611c746f1d01e365757a659f1111f6843b0add8e modules/localmodels/probe.py
123
+ c19a15f8678ed180a11454826017ccac8636a12571bd2459a6724b12479a8ac4 modules/localmodels/probe.py
123
124
  7f70f5857f64967209a3bf080658953624bd1a20890b144fbc6d2e9bd9234f6f modules/localmodels/process_identity.py
124
125
  26cb67704ebe22eee93e41c025b1a2f70226ca271dcb8d946b2fa6ab7efe5d31 modules/localmodels/process_identity_darwin.py
125
126
  346f71c330b44b8f287b1bf181bceb1610f85f78909e8884404a6c40699392de modules/localmodels/process_identity_linux.py
126
127
  3fd467c97d644b24f7c60a93341dcf324fe60d6f11209bc8219ef95157ce7fe0 modules/localmodels/process_windows.py
127
128
  70249629ab362d3f3c852f576e6640b1091bf5e227bda354a564fa361ad00f78 modules/localmodels/python-bootstrap-lock.json
128
129
  a9bad854b6797dc7e91ce87e003bf8c0a22e9f1a699a4281bc9a7c6d754c3cb1 modules/localmodels/quant_formats.py
129
- 82b974ea60f1486d6b4b3375024e0601ed90db3dcf049e5f75f8bb6864b38f07 modules/localmodels/recommend.py
130
+ 8b1541f0b2a0e2e8945d7aabec097f97c412a03f732bd9b69b1d65c24e66e9c2 modules/localmodels/recommend.py
130
131
  7837577afcc31a9e17297b23c6a819fb3d74d78af55a7ec49e23cb566e981935 modules/localmodels/recommend_cli.py
131
132
  296fc3981b910013c52ca44c480c91562fcdcb9aa70ef445698e908852dc8b03 modules/localmodels/records.py
132
133
  82e176b7483f1fc774ac1b114083ea9da92bc861efd1f19aae5a775401ec7bd8 modules/localmodels/region.py
@@ -186,7 +187,7 @@ e6364b4fa45c5f2234b9213736711a4e303f455444762b916d75b8353b804666 modules/localm
186
187
  cf1e88ea779da644e261f59b61382ceca00e29704148eb4ddefefd1b0cefbfbf modules/localmodels/stack_cli.py
187
188
  066b05c31d7b6ba2044a1caf92c0d63dbbc0ca775eccb3af8202f498309224ee modules/localmodels/stack_client_settings.py
188
189
  d58db3c741416e3edd45975c9a5c3859a71895afd49cc31b6cc4a903a9c07477 modules/localmodels/stack_clients.py
189
- af07775c1db2d73ff27fcd5b322ffdc9d502506404f155feedff60638cffefa7 modules/localmodels/stack_compose.py
190
+ 637ddb531e44c69e08d52075ab43576d1c4b0392cb39a254235bb63ed4b17762 modules/localmodels/stack_compose.py
190
191
  4a63c6309e7a31f890a89360ac842edf09f64cae1a668604aaae5ef378323c84 modules/localmodels/stack_console.py
191
192
  28265fc389f40e3afa898c4428263f2eb28a34e1fa3835f018a3780640efccc8 modules/localmodels/stack_debug.py
192
193
  7310656ab89c04a4b1713a1dafb4159ee9b8e23a901cb0ea8d84aece5b2de2f9 modules/localmodels/stack_decision.py
@@ -194,7 +195,7 @@ af07775c1db2d73ff27fcd5b322ffdc9d502506404f155feedff60638cffefa7 modules/localm
194
195
  7fd5d84d39b56c535a07427201a143864e6443ed955d11b09c08581347d6f009 modules/localmodels/stack_down.py
195
196
  7b6a50acc845cf750943bff19dbb4eeb41518d1859f427209d83f79294545519 modules/localmodels/stack_events.py
196
197
  3799f6e4d957bc7595ea71d2a45d16f6e6ad85cc0ffba46c529889e56b8d1b3c modules/localmodels/stack_gpu_memory.py
197
- a690c3d68aa60a6cbcd3202b96187d2cb37b3b869740870dce51790040049068 modules/localmodels/stack_hardware.py
198
+ 6ab8141fd564642690b66e23d22893546180ea7cde379dfbf12c49911b663417 modules/localmodels/stack_hardware.py
198
199
  7a0f469e6c9020df7215d8cc309e90e4d85542172fbb5d50cf863e5c20e295fe modules/localmodels/stack_hardware_text.py
199
200
  8e1c51ca353f4544ea52b7719290b3533d372308edb74adfdba956b5c4e2755d modules/localmodels/stack_journal.py
200
201
  92ad77166502bcf0bec7b75a414c42c0309368a8708689114999a807827000d1 modules/localmodels/stack_ledger.py
@@ -203,7 +204,7 @@ a690c3d68aa60a6cbcd3202b96187d2cb37b3b869740870dce51790040049068 modules/localm
203
204
  2499da826297698e496f4d74e816ed248ed95d08829d13c7ac9230980b99cda1 modules/localmodels/stack_mcp.py
204
205
  a4e4c64fec78dd463eab69fb90e3ce534c6f3c2abe97fb8ea5ca187620ad885e modules/localmodels/stack_memory.py
205
206
  73c85d9b48e14871106775b41ac4ddb01842879108675eed8712529ed89edbae modules/localmodels/stack_mlx.py
206
- 0f00c61ca52d2c688ced1220f56ee824ecb4df99c4f204f8144120a1e3535425 modules/localmodels/stack_picks.py
207
+ 0fe08a97489f2f482afd7d433bcb569bc7c03b8c2ec228a2b91f4478569578a0 modules/localmodels/stack_picks.py
207
208
  f749534d8196abfc5933bdf92b6a714495bac833c342cd9976845cbabd3e6b30 modules/localmodels/stack_plan.py
208
209
  b33413954b9ffef629bf9f7bafc59d5761a58f45b28c6ce0cd638103e5cffbc4 modules/localmodels/stack_ports.py
209
210
  84eecf29fec533ea16f3447db9099aaa281d888c1c4b186fa84c25d76c508168 modules/localmodels/stack_preflight.py
@@ -280,13 +281,13 @@ f79c861df0b16c8cd05872d88f1fc2910023336519131671a0cd64cb490af17e modules/localm
280
281
  1f24f15ba0c87178716d1552484be55a6a775231f4468fc95c4177f6dffbd081 modules/localmodels/web/view/view.js
281
282
  84535ea1c54aeb68bfbfbe357b7f19e7a2d69b9ce9ff2f4f7e8b6a668f76eb3f modules/localmodels/win_probe.py
282
283
  d3be4542d9b3f32a61bc65cc4264a74301b0eab6f302a30f43e878e9e9b228d6 modules/localmodels/windows_job.py
283
- ae99f0e1342be8ead631b9ce60ee651403945895aa20aa95259afb656e83b56f modules/simplex_localmodels-0.1.0.dev57.dist-info/METADATA
284
- 03028141bfc926f9579262bd5ea81d574b6691b0fbd92954f62c9d76da57ba5b modules/simplex_localmodels-0.1.0.dev57.dist-info/RECORD
285
- d5d0ff1a812a108c50ed59eb504c60763fde1316386f85207d1d2206518a55a7 modules/simplex_localmodels-0.1.0.dev57.dist-info/WHEEL
286
- 3a3059212ac60178113110eaaeafa6dbafe72c598d64d3616cbb498ae9c881f7 modules/simplex_localmodels-0.1.0.dev57.dist-info/entry_points.txt
287
- b57710affc4ca11c13057cf73ff661bcd50fba0455d2ebe0e23b40cb11c5a6eb modules/simplex_localmodels-0.1.0.dev57.dist-info/licenses/NOTICE
288
- 821556e6336796450ab852d375117b48a4887e71d255794fd6318d99982a5ab6 modules/simplex_localmodels-0.1.0.dev57.dist-info/licenses/localmodels/HERMES-LICENSE
289
- b9079d9e5edf7301acfcbf01d51450ac3d960078eeed248f173c0b0aa44b3703 package.json
284
+ cc59de73e7921c9e0dc1354f14c35ddecc6b2ec25ed180f670df588686cacee3 modules/simplex_localmodels-0.1.0.dev58.dist-info/METADATA
285
+ fab3e2568d3472a4d4d4798e3caaa6407465b373ad2cb8e31404586e5cab1532 modules/simplex_localmodels-0.1.0.dev58.dist-info/RECORD
286
+ d5d0ff1a812a108c50ed59eb504c60763fde1316386f85207d1d2206518a55a7 modules/simplex_localmodels-0.1.0.dev58.dist-info/WHEEL
287
+ 3a3059212ac60178113110eaaeafa6dbafe72c598d64d3616cbb498ae9c881f7 modules/simplex_localmodels-0.1.0.dev58.dist-info/entry_points.txt
288
+ b57710affc4ca11c13057cf73ff661bcd50fba0455d2ebe0e23b40cb11c5a6eb modules/simplex_localmodels-0.1.0.dev58.dist-info/licenses/NOTICE
289
+ 821556e6336796450ab852d375117b48a4887e71d255794fd6318d99982a5ab6 modules/simplex_localmodels-0.1.0.dev58.dist-info/licenses/localmodels/HERMES-LICENSE
290
+ 9c165f17dee427ade39f2786391a3c15707c4b82775fac3518fbecd8eda87088 package.json
290
291
  323c98709b03c4624442afd97b7f09d9978e4031bd1957f1afb080b038d8e9b4 python/bin/python3.12
291
292
  3b2f81fe21d181c499c59a256c8e1968455d6689d269aa85373bfb6af41da3bf python/lib/python3.12/LICENSE.txt
292
293
  981d4c398849f9ebcab72300d9c1fe288fd6d7f28957b3b3fa3a493a5836d95c python/lib/python3.12/__future__.py
@@ -4251,4 +4252,4 @@ df828a376c73cadc0f03b447cdcde54d4a552b10bfd51bf1349d95ae27760155 python/share/t
4251
4252
  4908bd229176dcb81a0c54e087cc725040988babad9e806a5052fb722cf5b511 python/share/terminfo/z/ztx
4252
4253
  4908bd229176dcb81a0c54e087cc725040988babad9e806a5052fb722cf5b511 python/share/terminfo/z/ztx-1-a
4253
4254
  4908bd229176dcb81a0c54e087cc725040988babad9e806a5052fb722cf5b511 python/share/terminfo/z/ztx11
4254
- 2941655ec75139be9d521698cc54782bd13d14072ff47324d0de18344fb4be4f tool.json
4255
+ 8e63723da3efc8f06e52f5fdd63eaad0c02b16c56a1ad5075f3649b2d032c181 tool.json
@@ -3,4 +3,4 @@
3
3
  See docs/local-models/architecture.md.
4
4
  """
5
5
 
6
- __version__ = "0.1.0.dev57"
6
+ __version__ = "0.1.0.dev58"
@@ -107,6 +107,7 @@ def _uma(
107
107
  *,
108
108
  gpu_name: str = "",
109
109
  gpu_pci_id: int | None = None,
110
+ gpu_bandwidth_gb_s: float | None = None,
110
111
  lazy_reads: bool = True,
111
112
  ) -> HardwareBudget:
112
113
  return HardwareBudget(
@@ -117,6 +118,7 @@ def _uma(
117
118
  gpu_name=gpu_name,
118
119
  platform=facts.get("platform", ""),
119
120
  gpu_pci_id=gpu_pci_id,
121
+ gpu_bandwidth_gb_s=gpu_bandwidth_gb_s,
120
122
  lazy_reads=lazy_reads,
121
123
  )
122
124
 
@@ -358,13 +360,19 @@ def placements(facts: HostFacts, *, planning: bool = True) -> list[Placement]:
358
360
  # Metal, integrated or unknown GPUs, CPU: RAM as unified memory. AMD/Intel discrete cards
359
361
  # need the engine's device probe, which runs only after an engine is installed.
360
362
  cls = facts.get("gpu_vendor_class", "unknown")
363
+ backend = "metal" if facts.get("platform") == "darwin" else "cpu"
364
+ metal_info = metal.reading(facts) if backend == "metal" else None
365
+ metal_name = str(metal_info.get("name") or "") if metal_info else ""
361
366
  budget = _uma(
362
367
  ram_total if planning else ram_avail,
363
368
  ram_total,
364
369
  facts,
370
+ gpu_name=metal_name,
371
+ gpu_bandwidth_gb_s=gpu_specs.bandwidth_gb_s(metal_name, total_bytes=ram_total)
372
+ if metal_name
373
+ else None,
365
374
  lazy_reads=cls not in ("amd", "intel"),
366
375
  )
367
- backend = "metal" if facts.get("platform") == "darwin" else "cpu"
368
376
  return [
369
377
  Placement(
370
378
  "host",
@@ -511,5 +519,157 @@ def agent_budget(
511
519
  )
512
520
 
513
521
 
522
+ @dataclass(frozen=True)
523
+ class AdmissionBudget:
524
+ """Dual-tier memory admission boundary for loading one model on a pool.
525
+
526
+ - ``hard_ceiling_bytes`` is the only gate that hard-refuses with ``LOAD_NO_ROOM``
527
+ (Metal wired headroom on Apple Silicon, 0 under Critical pressure; live free VRAM on
528
+ discrete NVIDIA cards).
529
+ - ``soft_budget_bytes`` drives elastic posture selection and pressure warnings; on Apple
530
+ Silicon unified memory it never hard-rejects on its own while under ``hard_ceiling_bytes``.
531
+ """
532
+
533
+ pool: str
534
+ backend: str # metal | cuda | cpu
535
+ soft_budget_bytes: int
536
+ hard_ceiling_bytes: int
537
+ reserve_bytes: int
538
+ wired_headroom_bytes: int | None = None
539
+ wired_ceiling_bytes: int | None = None
540
+ gpu_in_use_bytes: int | None = None
541
+ inactive_anon_bytes: int = 0
542
+ reclaimable_inactive_anon_bytes: int = 0
543
+ pressure_level: int | None = None
544
+ critical_pressure: bool = False
545
+ allows_soft_overcommit: bool = False
546
+ physical_limit_bytes: int = 0
547
+
548
+
549
+ def admission_budget(
550
+ facts: HostFacts, pool: str, *, delta_bytes: int = 0
551
+ ) -> AdmissionBudget | None:
552
+ """Compute the dual-tier (soft budget + hard ceiling) admission boundary for ``pool``.
553
+
554
+ ``delta_bytes`` is net bytes already reserved by concurrent loads minus bytes freed by
555
+ planned unloads on ``pool`` (positive reduces headroom, negative increases it).
556
+ Returns None when ``pool`` does not exist on ``facts``.
557
+ """
558
+ if pool == "unified":
559
+ if metal.supported(facts):
560
+ level = facts["ram"].get("pressure_level")
561
+ critical = metal.is_critical_pressure(facts)
562
+ base_reserve = metal.soft_host_keep_bytes(facts) + METAL_VRAM_RESERVE_BYTES
563
+ pressured_facts, _ = metal.pressured(facts)
564
+ kept = int(pressured_facts["ram"].get("pressure_kept_bytes") or 0)
565
+ reserve = base_reserve + kept
566
+ wired_ceiling = metal.wired_ceiling_bytes(facts)
567
+ gpu_in_use = metal.gpu_in_use_bytes(facts)
568
+ inactive_anon = metal.inactive_anon_bytes(facts)
569
+ reclaimable = metal.reclaimable_inactive_anon_bytes(facts)
570
+ total = int(facts["ram"]["total_bytes"])
571
+ wired_ram = facts["ram"].get("wired_bytes")
572
+ if critical:
573
+ phys_limit = 0
574
+ soft_budget = 0
575
+ wired_headroom = 0
576
+ else:
577
+ if wired_ram is not None and wired_ram >= 0:
578
+ phys_limit = max(0, total - int(wired_ram) - metal.HARD_OS_FLOOR_BYTES)
579
+ else:
580
+ phys_limit = max(0, total - metal.HOST_KEEP_BYTES)
581
+ soft_avail = max(0, min(total, metal.soft_available_bytes(facts) - delta_bytes))
582
+ soft_budget = max(0, soft_avail - base_reserve)
583
+ max_wired = int(wired_ceiling * metal.WIRED_HEADROOM_SAFETY_FRACTION)
584
+ wired_headroom = max(
585
+ 0, min(max_wired, phys_limit, metal.wired_headroom_bytes(facts) - delta_bytes)
586
+ )
587
+ return AdmissionBudget(
588
+ pool="unified",
589
+ backend="metal",
590
+ soft_budget_bytes=soft_budget,
591
+ hard_ceiling_bytes=wired_headroom,
592
+ reserve_bytes=reserve,
593
+ wired_headroom_bytes=wired_headroom,
594
+ wired_ceiling_bytes=wired_ceiling,
595
+ gpu_in_use_bytes=gpu_in_use,
596
+ inactive_anon_bytes=inactive_anon,
597
+ reclaimable_inactive_anon_bytes=reclaimable,
598
+ pressure_level=level,
599
+ critical_pressure=critical,
600
+ allows_soft_overcommit=not critical,
601
+ physical_limit_bytes=phys_limit,
602
+ )
603
+ unified = unified_pool_bytes(facts)
604
+ if unified is None:
605
+ return None
606
+ nvidia = [
607
+ g
608
+ for g in facts.get("gpus") or []
609
+ if g.get("vendor") == "nvidia" and g.get("mig_mode") != "enabled"
610
+ ]
611
+ first_free = nvidia[0]["free_bytes"] if nvidia else 0
612
+ _, ram_avail = host_ram(facts)
613
+ usable_total = max(
614
+ 0, int(unified * (1 - _UMA_HEADROOM_FRACTION)) - AGENT_VRAM_RESERVE_BYTES
615
+ )
616
+ raw_live = max(
617
+ 0,
618
+ int(min(unified, first_free + ram_avail) * (1 - _UMA_HEADROOM_FRACTION))
619
+ - AGENT_VRAM_RESERVE_BYTES,
620
+ )
621
+ live_budget = max(0, min(usable_total, raw_live - delta_bytes))
622
+ return AdmissionBudget(
623
+ pool="unified",
624
+ backend="cuda",
625
+ soft_budget_bytes=live_budget,
626
+ hard_ceiling_bytes=live_budget,
627
+ reserve_bytes=max(0, unified - usable_total),
628
+ allows_soft_overcommit=False,
629
+ physical_limit_bytes=max(0, min(unified, first_free + ram_avail) - delta_bytes),
630
+ )
631
+ if pool.startswith("gpu:"):
632
+ try:
633
+ index = int(pool.split(":", 1)[1])
634
+ except ValueError:
635
+ return None
636
+ gpu = next(
637
+ (
638
+ g
639
+ for g in facts.get("gpus") or []
640
+ if g["index"] == index and g.get("vendor") == "nvidia"
641
+ ),
642
+ None,
643
+ )
644
+ if gpu is None:
645
+ return None
646
+ live_free = max(0, min(gpu["total_bytes"], gpu["free_bytes"] - delta_bytes))
647
+ usable = max(0, live_free - AGENT_VRAM_RESERVE_BYTES)
648
+ return AdmissionBudget(
649
+ pool=pool,
650
+ backend="cuda",
651
+ soft_budget_bytes=usable,
652
+ hard_ceiling_bytes=usable,
653
+ reserve_bytes=AGENT_VRAM_RESERVE_BYTES,
654
+ allows_soft_overcommit=False,
655
+ physical_limit_bytes=live_free,
656
+ )
657
+ if pool == "system":
658
+ total, avail = host_ram(facts)
659
+ pool_cap = int(total * (1 - _UMA_HEADROOM_FRACTION))
660
+ used = total - avail
661
+ usable = max(0, min(pool_cap, pool_cap - used - delta_bytes))
662
+ return AdmissionBudget(
663
+ pool="system",
664
+ backend="cpu",
665
+ soft_budget_bytes=usable,
666
+ hard_ceiling_bytes=usable,
667
+ reserve_bytes=max(0, total - pool_cap),
668
+ allows_soft_overcommit=False,
669
+ physical_limit_bytes=max(0, avail - delta_bytes),
670
+ )
671
+ return None
672
+
673
+
514
674
  def gib(n: int | float) -> str:
515
675
  return f"{n / _GIB:.1f} GB"
@@ -284,6 +284,9 @@ _DISCRETE_BANDWIDTH_GB_S = 1000.0
284
284
  _UMA_BANDWIDTH_GB_S = 210.0
285
285
  _HOST_BANDWIDTH_GB_S = 80.0
286
286
  PLEASANT_FLOOR_TOK_S = 20.0
287
+ # Below this decode rate a model is practically unusable for interactive agent loops, so automatic
288
+ # selection prefers any fitting candidate at or above this floor over a higher-scored model below it.
289
+ USABLE_FLOOR_TOK_S = 5.0
287
290
  # What each speed estimate rests on; every one but measured-decode is an estimate.
288
291
  DECODE_BASES = {
289
292
  "discrete-class": f"a discrete-GPU class constant, {_DISCRETE_BANDWIDTH_GB_S:g} GB/s",
@@ -344,10 +347,10 @@ def decode_estimate(
344
347
  basis, bandwidth = "host-measured", budget.host_bandwidth_gb_s
345
348
  elif spilled:
346
349
  basis, bandwidth = "host-class", _HOST_BANDWIDTH_GB_S
347
- elif budget.uma:
348
- basis, bandwidth = "uma-class", _UMA_BANDWIDTH_GB_S
349
350
  elif budget.gpu_bandwidth_gb_s:
350
351
  basis, bandwidth = "gpu-spec", budget.gpu_bandwidth_gb_s
352
+ elif budget.uma:
353
+ basis, bandwidth = "uma-class", _UMA_BANDWIDTH_GB_S
351
354
  else:
352
355
  basis, bandwidth = "discrete-class", _DISCRETE_BANDWIDTH_GB_S
353
356
  effective_backend = hardware_key(budget, backend)[1]
@@ -1,15 +1,17 @@
1
- """What a card's model name and compute capability say about it: the architecture, and the memory
2
- bandwidth NVIDIA publishes for that model.
1
+ """What a GPU or Apple Silicon SoC model name and compute capability say about it: the
2
+ architecture, and the memory bandwidth the vendor publishes for that model.
3
3
 
4
- Decode reads the resident weights once per token, so a card's memory bandwidth bounds its decode
5
- speed; two 24 GB cards of different models do not decode alike (product.md). The table holds
6
- vendor spec-sheet figures, not measurements of any host, and only names that pin one memory
7
- configuration: a name NVIDIA sells with two memory setups (RTX 3060 8/12 GB, RTX 3080 10/12 GB,
8
- RTX 3060 Ti and RTX 4070 in GDDR6 and GDDR6X) and every laptop part are left out, so their speed keeps the discrete-class constant. On
9
- qwen3.8-27b UD-Q4_K_M without speculation the repository measured 43–47.6 tok/s on an
10
- RTX 4090 D and 14.8 tok/s on an L4 (catalog/model-matrix/pending/llm.qwen.json): a ratio of
11
- 3.2 against 3.4 between their spec bandwidths, where the old single 1000 GB/s class constant
12
- priced both alike.
4
+ Decode reads the resident weights once per token, so memory bandwidth bounds decode speed; two
5
+ devices with the same capacity but different memory buses do not decode alike (product.md). The
6
+ table holds vendor spec-sheet figures, not measurements of any host, and only names that pin one
7
+ memory configuration: NVIDIA parts sold with two memory setups (RTX 3060 8/12 GB, RTX 3080
8
+ 10/12 GB, RTX 3060 Ti and RTX 4070 in GDDR6 and GDDR6X), laptop NVIDIA parts, and Apple Silicon
9
+ Max chips sold with two bus widths (M3 Max 300/400 GB/s, M4 Max 410/546 GB/s, M5 Max 460/614 GB/s)
10
+ are left out unless a known host fact (such as Apple M6's 16 GB vs 24/32 GB memory tier)
11
+ disambiguates them, so unlisted names keep their class constant. On qwen3.8-27b UD-Q4_K_M without
12
+ speculation the repository measured 43–47.6 tok/s on an RTX 4090 D and 14.8 tok/s on an L4
13
+ (catalog/model-matrix/pending/llm.qwen.json): a ratio of 3.2 against 3.4 between their spec
14
+ bandwidths, where the old single 1000 GB/s class constant priced both alike.
13
15
  """
14
16
 
15
17
  from __future__ import annotations
@@ -56,7 +58,27 @@ _BANDWIDTH_GB_S: tuple[tuple[str, float], ...] = (
56
58
  (r"h200", 4800.0),
57
59
  (r"t4", 320.0),
58
60
  (r"v100 (sxm2|pcie) (16|32)gb", 900.0),
61
+ # Apple Silicon unified memory bandwidth (vendor published specs).
62
+ # Omitted: M3 Max (300/400 GB/s), M4 Max (410/546 GB/s), M5 Max (460/614 GB/s) vary by core
63
+ # tier; base M6 varies by RAM capacity and is resolved when total_bytes is provided.
64
+ (r"apple m1", 68.25),
65
+ (r"apple m1 pro", 200.0),
66
+ (r"apple m1 max", 400.0),
67
+ (r"apple m1 ultra", 800.0),
68
+ (r"apple m2", 100.0),
69
+ (r"apple m2 pro", 200.0),
70
+ (r"apple m2 max", 400.0),
71
+ (r"apple m2 ultra", 800.0),
72
+ (r"apple m3", 100.0),
73
+ (r"apple m3 pro", 150.0),
74
+ (r"apple m3 ultra", 819.0),
75
+ (r"apple m4", 120.0),
76
+ (r"apple m4 pro", 273.0),
77
+ (r"apple m5", 153.0),
78
+ (r"apple m5 pro", 307.0),
79
+ (r"apple m5 ultra", 1200.0),
59
80
  )
81
+ _GIB = 1 << 30
60
82
  _DROPPED = re.compile(r"\b(nvidia|geforce|tesla|quadro)\b")
61
83
 
62
84
  # Compute capability major (and minor where one major spans two) → architecture.
@@ -89,9 +111,12 @@ def device_class(name: str) -> str:
89
111
  return key
90
112
 
91
113
 
92
- def bandwidth_gb_s(name: str) -> float | None:
93
- """The published memory bandwidth of the card nvidia-smi names ``name``; None: not listed."""
114
+ def bandwidth_gb_s(name: str, *, total_bytes: int | None = None) -> float | None:
115
+ """The published memory bandwidth of the GPU or Apple Silicon SoC ``name``; None: not listed."""
94
116
  key = normalized(name)
117
+ if key == "apple m6" and total_bytes is not None and total_bytes > 0:
118
+ # Base Apple M6 ships with 153 GB/s at 16 GB and 170 GB/s at 24/32 GB.
119
+ return 153.0 if total_bytes <= 16 * _GIB else 170.0
95
120
  return next((bw for pattern, bw in _BANDWIDTH_GB_S if re.fullmatch(pattern, key)), None)
96
121
 
97
122
 
@@ -96,6 +96,13 @@ def add_parser(sub: argparse._SubParsersAction[argparse.ArgumentParser]) -> None
96
96
  metavar="MODEL",
97
97
  help="unload this model first (repeatable); refused before any unload without room",
98
98
  )
99
+ load.add_argument(
100
+ "--force",
101
+ "--allow-overcommit",
102
+ dest="force",
103
+ action="store_true",
104
+ help="load at the compact floor posture even when live memory is below headroom guards (still refuses critical OS memory pressure)",
105
+ )
99
106
  load.add_argument("--jsonl", action="store_true", help="accepted; output is JSONL")
100
107
  cli_help.document(
101
108
  load,
@@ -158,7 +165,7 @@ def cli(args: argparse.Namespace) -> int:
158
165
  load=lambda m, b, u: library_serve.load(m, b, u),
159
166
  )
160
167
  elif verb == "load":
161
- row = library_serve.load(args.model, args.base_dir, args.unload)
168
+ row = library_serve.load(args.model, args.base_dir, args.unload, force=args.force)
162
169
  elif verb == "unload":
163
170
  row = library_serve.unload(args.model, args.base_dir)
164
171
  elif verb == "remove":