@simplexai/localmodels-linux-x64 0.1.0-dev.56 → 0.1.0-dev.57

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 (37) hide show
  1. package/bootstrap.identity +1 -1
  2. package/bootstrap.sha256 +36 -35
  3. package/modules/localmodels/__init__.py +1 -1
  4. package/modules/localmodels/bifrost_admin.py +2 -1
  5. package/modules/localmodels/bifrost_checks.py +11 -8
  6. package/modules/localmodels/bifrost_models.py +2 -1
  7. package/modules/localmodels/catalog.json +10 -8
  8. package/modules/localmodels/gateway_accept.py +4 -3
  9. package/modules/localmodels/gateway_bifrost.py +2 -1
  10. package/modules/localmodels/gateway_cli.py +4 -3
  11. package/modules/localmodels/gateway_server.py +3 -1
  12. package/modules/localmodels/harness.py +2 -2
  13. package/modules/localmodels/hf_repo.py +27 -4
  14. package/modules/localmodels/remote_ops_download.py +36 -261
  15. package/modules/localmodels/remote_ops_ranges.py +447 -0
  16. package/modules/localmodels/runtime_auth.py +2 -1
  17. package/modules/localmodels/runtime_cli.py +1 -1
  18. package/modules/localmodels/runtime_install.py +5 -2
  19. package/modules/localmodels/runtime_io.py +3 -2
  20. package/modules/localmodels/runtime_pi.py +2 -1
  21. package/modules/localmodels/runtime_windows_acl.py +39 -0
  22. package/modules/localmodels/source_byok_probe.py +2 -1
  23. package/modules/localmodels/stack.py +13 -3
  24. package/modules/localmodels/stack_cli.py +1 -0
  25. package/modules/localmodels/stack_events.py +15 -0
  26. package/modules/localmodels/stack_plan.py +5 -1
  27. package/modules/localmodels/stack_progress.py +30 -5
  28. package/modules/localmodels/stack_run.py +117 -0
  29. package/modules/localmodels/transport.py +1 -0
  30. package/modules/{simplex_localmodels-0.1.0.dev56.dist-info → simplex_localmodels-0.1.0.dev57.dist-info}/METADATA +1 -1
  31. package/modules/{simplex_localmodels-0.1.0.dev56.dist-info → simplex_localmodels-0.1.0.dev57.dist-info}/RECORD +33 -32
  32. package/package.json +1 -1
  33. package/tool.json +1 -1
  34. /package/modules/{simplex_localmodels-0.1.0.dev56.dist-info → simplex_localmodels-0.1.0.dev57.dist-info}/WHEEL +0 -0
  35. /package/modules/{simplex_localmodels-0.1.0.dev56.dist-info → simplex_localmodels-0.1.0.dev57.dist-info}/entry_points.txt +0 -0
  36. /package/modules/{simplex_localmodels-0.1.0.dev56.dist-info → simplex_localmodels-0.1.0.dev57.dist-info}/licenses/NOTICE +0 -0
  37. /package/modules/{simplex_localmodels-0.1.0.dev56.dist-info → simplex_localmodels-0.1.0.dev57.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -1 +1 @@
1
- linux-x64 8ecf4bb328e1798ff166f1f48919b3b6c3c64270 0.1.0.dev56 python/bin/python3.12 modules
1
+ linux-x64 0aafada9017943d22a4b3cecb879ddc59f805a68 0.1.0.dev57 python/bin/python3.12 modules
package/bootstrap.sha256 CHANGED
@@ -1,7 +1,7 @@
1
- a853ec4a5883de3fa7cae5a3a05513d194f8b29b0db18541ef0add9bfce94e80 bootstrap.identity
1
+ 9c593faa7ad3bb2ea4932b22e20d62dddfe56c8b88ee19f10c35431e8515476b bootstrap.identity
2
2
  15f49306ae54bb208f5a65763f59522a9193d5b01b31279c9bab116bba7ffe5c kit.py
3
3
  821556e6336796450ab852d375117b48a4887e71d255794fd6318d99982a5ab6 modules/localmodels/HERMES-LICENSE
4
- b81b0f166db58c3efc54539145e3c05e8c62f11db7e113da66b47e9a76f224f8 modules/localmodels/__init__.py
4
+ 73a83d38ae589ec358da6e75c08a818ed157fd2e98d95ee9fa731db9b92097ef 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
@@ -10,17 +10,17 @@ d58431790b752ed9c5819872e8a237c49d3c0e15d8b5b4d4be24a61e504d4a56 modules/localm
10
10
  95405062422603c9dd1812a60866741bb9f1ff97d4ea149c9364cf023c0d58cf modules/localmodels/asr_websocket.py
11
11
  f9b07adb4d29fac9212a3e03a97e856d9174a8d05f5ccd61f1c9090dceca95cf modules/localmodels/auth_proxy.py
12
12
  43d68f19504bb2c322c494eb09ced498c66a3f7a95acec021eaabdfc9fb5da51 modules/localmodels/bandwidth_probe.py
13
- 5fd2b172e7857737fa6018b0838cf16bca3c4b32e0d7de40c61b007696877881 modules/localmodels/bifrost_admin.py
14
- 3b3abc7e95bd81fba1bce8586518284319c7924e827f8d6612bfe03c069d01a5 modules/localmodels/bifrost_checks.py
13
+ c173f0c4c3efd651ad1bdc3af1e60d05a75426e1fcde18df752bb4f3870d5922 modules/localmodels/bifrost_admin.py
14
+ 14507ae5ce974979f896724cad8979fd6535f8112f021eedc5857d08e36d6245 modules/localmodels/bifrost_checks.py
15
15
  b895ebf41bf584dff5fb4580c5f6f2a7fa35dbf4fd3fe39cf04507ff256c87d7 modules/localmodels/bifrost_clients.py
16
16
  23a6caa5a3edbf0e62ef20e1de64af68348b7afabb6a6be4398e93b9389ef7a0 modules/localmodels/bifrost_config.py
17
17
  64b00a4c2366c2e5a4a12aa817098ff636fb3362de4404ef3bc7741af4562a99 modules/localmodels/bifrost_datasheet.py
18
- 0c51f6d24421d45eada94f02105885091a72f7ea2c49ed3659f61dcd8d4b4c6a modules/localmodels/bifrost_models.py
18
+ 6c6dcd4e5ddbce07fefcb3528c643ad5347701680903cc7f2599c4e32cf86de1 modules/localmodels/bifrost_models.py
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
22
  4c6935435ed38910b41ac4ca88e68f77f4548db6526e5c891f8e978d73826fe0 modules/localmodels/budget.py
23
- fcc74eb415477d3a50ff06ab2d6a6400ceca26f95048ca64dc818a1458d79d2f modules/localmodels/catalog.json
23
+ 508deb4c939e043ffab7d9dd5ae14f019e587cfba5661c2b9fbd5c48ee207550 modules/localmodels/catalog.json
24
24
  1e3f37817db776704e92576c8c04bbc1bd47b8bc4d32e8609c72acb4bcd82f58 modules/localmodels/catalog.py
25
25
  969006f2f57c8d5f454d84e6d9589d925219da92f75696add3cbd0497c9e8726 modules/localmodels/catalog_add.py
26
26
  eef0cd1dc8df8b9606b434585ca26d027a4d52927c005d8d822ccd08d9bc9406 modules/localmodels/catalog_license.py
@@ -59,18 +59,18 @@ f83b086fb074f5487b1498dffbe25ac9a2324cfbbfe83d4f42a238a0fa0dd526 modules/localm
59
59
  7a49e928bb35cb2ae70a4c1288ce371b381f52b3ed2e64a36f58006a0c741a0d modules/localmodels/fixtures/stack-research-demo-plan.json
60
60
  fff4343321a2cb00d759d4afcf2fda0559736f7abd02c130b8920cc732c6fd4b modules/localmodels/frontend.py
61
61
  963c12afb5e67b0e239034a9b30bb8e3c403d2cb2d5b345be4167aa79689591f modules/localmodels/gateway.py
62
- d32bd8b2802b338d37d3cb7bd42fe1d33c0d955af5f9b02fa67f9c35a3a8859b modules/localmodels/gateway_accept.py
62
+ f98bf81e7b9677dbf48008a715bdc9c5f49c2d7709312347dc9722179fe40ba1 modules/localmodels/gateway_accept.py
63
63
  977a5a05dd792a61b81b2a12326257d9b83d3fe4355fa5cffbae3dd756ff81c4 modules/localmodels/gateway_admin.py
64
64
  d494471dc8c1733be3bee92ad5305f8e0ce4c7f333b29c59ec2ceb3dc6c2ff15 modules/localmodels/gateway_app_bifrost.py
65
- 75861a29bd027910d9f275a9afd294d3b7655d297c16b3d3e8f89d5b52a5f215 modules/localmodels/gateway_bifrost.py
66
- edfcae45788203bf2aecfd1aeb679303444ab9f7ea7924d35ce996b10892cc24 modules/localmodels/gateway_cli.py
65
+ c39b2d644896c856be35e9c355ae5766dc38a2ed432c6cf65aa31e2261f6623c modules/localmodels/gateway_bifrost.py
66
+ 21619a37e92aa3658516cff935634cc66b09361e31c98d01091267fb440f512e modules/localmodels/gateway_cli.py
67
67
  c1a5228bc8463087a975fedc917f3e0e5a92149ba2e7bf3d490e7ce7331de65c modules/localmodels/gateway_clients.py
68
68
  382d7410df8d09f69172c362478efeef5bacb079b7cd5ccd0371650c08fafc51 modules/localmodels/gateway_foundations.py
69
69
  aeaaca9f85ed05924e34bd29f4a42a778af4c13b8510e96313fa5c6a5379a7a4 modules/localmodels/gateway_home.py
70
70
  f19ad8ac484582c6688f53dfcc4e8db0ef5d61cba1919f8daade727281fefe91 modules/localmodels/gateway_keys.py
71
71
  8ad773383aba097c102ffddd7e74488b246046eaa56187224ea2fe3993cd7d26 modules/localmodels/gateway_probe.py
72
72
  aa1ceeabf556f8f8dacc1225f577d280b9b5d22fab1f52fa7ae61fa920e38bcf modules/localmodels/gateway_requests.py
73
- b4d1d278d4b1228f76334a4e4626b4ac94a86137f427ccda715597f4bcce8033 modules/localmodels/gateway_server.py
73
+ 9025c916ba300706d087ae6e64bc478fdd030cc3c2832419db60900f24f0543a modules/localmodels/gateway_server.py
74
74
  a383698c70e35da41a1462ab87d0458aebfa4ee310714021991f28228d585304 modules/localmodels/gateway_speed.py
75
75
  0c880e62ba300bb970b8ac87bf5207ece2bdd998eca1b3f7179664eaf546044a modules/localmodels/gateway_switch.py
76
76
  fd8a7d7900f32e6424cd333be7dc951f050962f2308a585c0e1c4e82620fec9e modules/localmodels/gguf.py
@@ -78,11 +78,11 @@ df03fe707e9acacb5a24a1fd3e937af40a3bc526aeb9f85b744c0c18cc144dc4 modules/localm
78
78
  152ab61d4157ae79832e3184da744d1cf31f154b01273fd4725288ad12874b79 modules/localmodels/guard-requirements.lock
79
79
  863a02affaa3dc5654e08293636c7b1a8ea1040980d8e1469f41d214613b4cdc modules/localmodels/guard.py
80
80
  cd6aad804272bd9582b6b055780f9e494dbcbc1d7fcd5f29b6d0aa63452a872f modules/localmodels/guard_runtime.py
81
- aa7e641a58730150f725097d13f3dce0784d572530a5801bbbcfae681169c1b8 modules/localmodels/harness.py
81
+ 643454754b82c2b95639a3868fea21e59458c830340171e0b0db228fed218722 modules/localmodels/harness.py
82
82
  8d0b3d98cb7d3367139900a2d5ff844e426830a95c87bed4e11db115db5ce06b modules/localmodels/harness_cleanup.py
83
83
  5fb35eff511cdeb1459ccbb8441c008cf7ff059fcb1f409cdd7e7c027967f6ee modules/localmodels/harness_gateway.py
84
84
  e175963b358d0436c14e0397a6963ef7dd17bf576102d060ebb256327ddcad99 modules/localmodels/harness_probe.py
85
- 4ac09373d0ff5b3799c3c6723d1f288a70273415815ba191632cd0f4c833326c modules/localmodels/hf_repo.py
85
+ 181f8506f0522f6637b7df1071f56f6d634ac038ac404fdb9fb7b85a8bb8cf14 modules/localmodels/hf_repo.py
86
86
  304e2c2d14113855bd4b127b6bd38e19066aa4f828a41840863960457a1fbb8e modules/localmodels/hosts.py
87
87
  c07dac3e7c06dfe65555dcb172e391814013195c6c818f3429c885b2ec851d78 modules/localmodels/http_local.py
88
88
  a2c36e5567789d7498e513ddbc33b0866c04134d53be1155712c19654be1aed5 modules/localmodels/install.py
@@ -131,10 +131,11 @@ a9bad854b6797dc7e91ce87e003bf8c0a22e9f1a699a4281bc9a7c6d754c3cb1 modules/localm
131
131
  296fc3981b910013c52ca44c480c91562fcdcb9aa70ef445698e908852dc8b03 modules/localmodels/records.py
132
132
  82e176b7483f1fc774ac1b114083ea9da92bc861efd1f19aae5a775401ec7bd8 modules/localmodels/region.py
133
133
  e90823158a9aafcc7b0d753d14e594d411f0d77b0058bba2d6e9232619949848 modules/localmodels/remote_ops.py
134
- 2798a8e611357f4e0900175230c71ab6a331134d284d2ba49e1a022c5bd7c876 modules/localmodels/remote_ops_download.py
134
+ 7dbf8a7c996e401f363908ab263ba22a6519b2faee5a0f8d9a57750d7245df80 modules/localmodels/remote_ops_download.py
135
135
  f60c50c329a3de58ae20931da52e735aa32242ca71851f3de972b6f9b033ed9f modules/localmodels/remote_ops_launchd.py
136
136
  6c033bd6c36c1878eddcc735041aab0f4b8091c59867ac4f0a496c9d3bc28acf modules/localmodels/remote_ops_mirrors.py
137
137
  12e97234e8478f2910e167e23b59bbc6f4915f05eae806143b7081e7611ea0b5 modules/localmodels/remote_ops_prepare.py
138
+ 9cc49b75f43077ded2d921d580b5e64946d8a446728d549aeb1f4a58ea76261b modules/localmodels/remote_ops_ranges.py
138
139
  a681538921520ab6712fd4b9d6f609af2087d8f1e57ac599ab9565aaef728237 modules/localmodels/remote_ops_remove.py
139
140
  e090cd635023f1b3a627e0886270cb20e0d6d8cac6457a756b035bc02cc8ae4d modules/localmodels/remote_ops_service.py
140
141
  a921f088ded36507c29f103c081bf2b4bd5d708e3bea2dc6a13758c58685b48c modules/localmodels/remote_ops_verify.py
@@ -143,15 +144,15 @@ f507b2163fe60e57674d982eebccd8740606d397ae7d8257f198e2e434083ac3 modules/localm
143
144
  465f7320737eaab31bb5ba00ccddf03f95e827108684f8dfa987f8753881f1b3 modules/localmodels/reuse.py
144
145
  97c8fbce708bdc105ca0fd1ebf444f787ad9d0e9f2160174454f93463c3812fe modules/localmodels/runtime-lock.json
145
146
  363f6b332dafbc3ddcfdaabb909638742cd61c6666aec31f0ec1ce495f64bb60 modules/localmodels/runtime_args.py
146
- e7fc738c4af1e49102d4a7a89930b2b7435ee2783cfe9c4be2111350dc2df5fd modules/localmodels/runtime_auth.py
147
- 07360130f6919b5b6445908b3cac172ff6a0040966eae6e79011a540a0ceb4a6 modules/localmodels/runtime_cli.py
147
+ 1ad2dc8cb7b56490a70174ae70becc060269c584999011781d6d0b800b9f16f8 modules/localmodels/runtime_auth.py
148
+ bf63a27f6442529245a5c66b9dd206f95d9efa1835586e0d15fea4b8217e7085 modules/localmodels/runtime_cli.py
148
149
  1cde2a4e0272b8b5419ec65f31aa4196c7c09dfc66d482df25c8f596968900c3 modules/localmodels/runtime_discovery.py
149
- 4bceb4b27fa2f8460db77ae740974a8edd6e0bf92b7876a2e7096d97e3d27d94 modules/localmodels/runtime_install.py
150
- f41ab3302e3e5cba0c044377d180b2c015fe9942f0a2ccf9f1d1e60070625b7f modules/localmodels/runtime_io.py
151
- 6794edeefd3de47269b84e6bf44d28eb8628b387581128030facc90d6f4e0ab9 modules/localmodels/runtime_pi.py
150
+ 622fb00414d3ef4f8e1f7ba553642d30ba5cfc3df8c4fa928043299e529b6abe modules/localmodels/runtime_install.py
151
+ 316b29bc3bfa5dda41b6491e2ba257580413541689b8075eb1af57975aaa82cb modules/localmodels/runtime_io.py
152
+ 95d80ddcd55d0e9f4274cd2d93282f8b1443b65a6c270b27f86b2a1886ab7546 modules/localmodels/runtime_pi.py
152
153
  a785412104d407392d13cbd98dc649842bf5d4af3b563a86ac3a740a83f9f7a3 modules/localmodels/runtime_process.py
153
154
  098b2d9d9ccd62ddda0f0cb80e548ba1ea9231744a645b0cd5bf1a4fad1e8cab modules/localmodels/runtime_releases.py
154
- 8e6ec174f59b29a2c51908b4976faf434a73d82341010204441a82ecdd7c39c8 modules/localmodels/runtime_windows_acl.py
155
+ 7ed1f4961cdc770f423ea3afe0144aab4a0c8b3aea8080cab20d057e11190725 modules/localmodels/runtime_windows_acl.py
155
156
  a4b7df305d2c2bfb9cc323cb5f579f08d1db03c7e7d2432bdda64cc393086a53 modules/localmodels/service_autostart.py
156
157
  d04438dd8c7502714a7714d19f9eb1abeca38c90a2b159c7b52f2faf98c188a8 modules/localmodels/service_control.py
157
158
  1af2334c1970cd171e3bd058173b12ef5a2e82aa25bebe11ce6939be73498a22 modules/localmodels/service_deployment.py
@@ -171,9 +172,9 @@ d345bf04686937599fe093bf259135f45ec24c434f711d7bd5c7155bdc2d69e3 modules/localm
171
172
  ae907b9ea8b6cd729266750ca0bdf5d1deefc9fce9c685521fe9a5576ed524eb modules/localmodels/sizecalc_cli.py
172
173
  77247b3d4e8fe49a20bc29548fa999f95d40db4c08f17baf218e177783c52f4d modules/localmodels/slot_cache.py
173
174
  1c774a5cc27dfec9efb696580915b02876609a1d046e5458d1078109afd61625 modules/localmodels/source_byok.py
174
- fc51f2a5814159fedf7a5c9e52f181adc65bf7bcb7d6e7a7f987b71cd22a4f09 modules/localmodels/source_byok_probe.py
175
+ 8d240128df44e581161977dcffb23853fe16bf2287847688dfbafa1957b097a8 modules/localmodels/source_byok_probe.py
175
176
  e161aa5bed4df6d564b982be9fb2d7f7fb3c30c70df3622f2ed3b99da170b83c modules/localmodels/source_cli.py
176
- 1f78ae7a6c8a333196dd30b7ec355b9b084ffffe3e103d2a9fb34d2089741ef3 modules/localmodels/stack.py
177
+ 90e9379e718204404aea9bf59ea31694ac95c9f89ff4b7bb1076e7096527f528 modules/localmodels/stack.py
177
178
  4050964f9be097eeb4576486af02d57eb157ffa21cf71aaca88592036327f166 modules/localmodels/stack_arena.py
178
179
  7552531dd59454e29e548a70b6c33390559b4a2000fa5814deb424ae19657de5 modules/localmodels/stack_args.py
179
180
  8aa197cadc3c3c1101c9bd45e2ef7a41400068a0b2a09717c1c44d47ef919968 modules/localmodels/stack_auto.py
@@ -182,7 +183,7 @@ e161aa5bed4df6d564b982be9fb2d7f7fb3c30c70df3622f2ed3b99da170b83c modules/localm
182
183
  16570ee078cbe3fb1bfaa3a26a14ec203c322e62e3894b9ecfd922f9f5092d19 modules/localmodels/stack_capacity.py
183
184
  edc0e7d2b168e6a5a11f565cadb268f72dba4de261cfa7cb3c14f671ef0c29df modules/localmodels/stack_card.py
184
185
  e6364b4fa45c5f2234b9213736711a4e303f455444762b916d75b8353b804666 modules/localmodels/stack_cleanup.py
185
- d848ff7208be04f91f0a3186492f9c2cc043c1c99ce88355ace13cb8b5987023 modules/localmodels/stack_cli.py
186
+ cf1e88ea779da644e261f59b61382ceca00e29704148eb4ddefefd1b0cefbfbf modules/localmodels/stack_cli.py
186
187
  066b05c31d7b6ba2044a1caf92c0d63dbbc0ca775eccb3af8202f498309224ee modules/localmodels/stack_client_settings.py
187
188
  d58db3c741416e3edd45975c9a5c3859a71895afd49cc31b6cc4a903a9c07477 modules/localmodels/stack_clients.py
188
189
  af07775c1db2d73ff27fcd5b322ffdc9d502506404f155feedff60638cffefa7 modules/localmodels/stack_compose.py
@@ -191,7 +192,7 @@ af07775c1db2d73ff27fcd5b322ffdc9d502506404f155feedff60638cffefa7 modules/localm
191
192
  7310656ab89c04a4b1713a1dafb4159ee9b8e23a901cb0ea8d84aece5b2de2f9 modules/localmodels/stack_decision.py
192
193
  671c022d17dc3e221c62d676d340260e60550f1ece5d37f32f970248f959f382 modules/localmodels/stack_doctor.py
193
194
  7fd5d84d39b56c535a07427201a143864e6443ed955d11b09c08581347d6f009 modules/localmodels/stack_down.py
194
- 8149d0b314e3840dd2bf381e31951b865e53a069f7b28c055c86a10885e96626 modules/localmodels/stack_events.py
195
+ 7b6a50acc845cf750943bff19dbb4eeb41518d1859f427209d83f79294545519 modules/localmodels/stack_events.py
195
196
  3799f6e4d957bc7595ea71d2a45d16f6e6ad85cc0ffba46c529889e56b8d1b3c modules/localmodels/stack_gpu_memory.py
196
197
  a690c3d68aa60a6cbcd3202b96187d2cb37b3b869740870dce51790040049068 modules/localmodels/stack_hardware.py
197
198
  7a0f469e6c9020df7215d8cc309e90e4d85542172fbb5d50cf863e5c20e295fe modules/localmodels/stack_hardware_text.py
@@ -203,10 +204,10 @@ a690c3d68aa60a6cbcd3202b96187d2cb37b3b869740870dce51790040049068 modules/localm
203
204
  a4e4c64fec78dd463eab69fb90e3ce534c6f3c2abe97fb8ea5ca187620ad885e modules/localmodels/stack_memory.py
204
205
  73c85d9b48e14871106775b41ac4ddb01842879108675eed8712529ed89edbae modules/localmodels/stack_mlx.py
205
206
  0f00c61ca52d2c688ced1220f56ee824ecb4df99c4f204f8144120a1e3535425 modules/localmodels/stack_picks.py
206
- 0e53fc79a59cc4da46246a42b3490574adc2b2fdfa5ea2ea71fee0e13b302daa modules/localmodels/stack_plan.py
207
+ f749534d8196abfc5933bdf92b6a714495bac833c342cd9976845cbabd3e6b30 modules/localmodels/stack_plan.py
207
208
  b33413954b9ffef629bf9f7bafc59d5761a58f45b28c6ce0cd638103e5cffbc4 modules/localmodels/stack_ports.py
208
209
  84eecf29fec533ea16f3447db9099aaa281d888c1c4b186fa84c25d76c508168 modules/localmodels/stack_preflight.py
209
- 036065514fa52129efd8ea08356f7382649efb76aedd00655ff64fbdede45d28 modules/localmodels/stack_progress.py
210
+ 9581715544801a47c4bada18f55fcbea97bf584030546074b6b55ec162211e51 modules/localmodels/stack_progress.py
210
211
  6c5551d3e0db8310bb3fc617f383fe9d900e00740ac2a7ec84ffdd74a9e2f190 modules/localmodels/stack_remove.py
211
212
  c6f7548a090b4b508b11460ab61d1665ba5be1595b44ba47c32ad46b0f4ac200 modules/localmodels/stack_research.py
212
213
  4be035bd46217a6efadd9968ce5202eaef1ffe301862077cb3a41f4803e5b6b6 modules/localmodels/stack_research_demo.py
@@ -214,7 +215,7 @@ eb776cbdf6ec5ba36954c35f9b41725bb4cf6b63af4a362621cde6210b864b74 modules/localm
214
215
  c19cdd0ab345fcd79e1712df85ff5949c798543f5be7e7966a5b58e85d3677a9 modules/localmodels/stack_review.py
215
216
  97265664870ce50233342ff2d8962f393a8b99fee894c3884a7faeed3dca3c6d modules/localmodels/stack_rollback.py
216
217
  c9dcf21454f3f903842f5c89c3953b330364d9ba3ae721c287f375ddcd70f331 modules/localmodels/stack_route.py
217
- a477e51b6ea0bfecbaaada7f2a7869c190c0ae33e16690e86ef46225cea5a5ce modules/localmodels/stack_run.py
218
+ 5b06c19a9f8e40076372d48831ecbeef77d35a1777ab81acb907905671307019 modules/localmodels/stack_run.py
218
219
  4f36be1dfda29ed51be4f812ea847d9f753292bd590ac64009b75b0e46080f7c modules/localmodels/stack_suite.py
219
220
  30bbd57e7e65e8e623b006a6b209bdc0d3e63019b26417d4ad1aed6760e59292 modules/localmodels/stack_summary.py
220
221
  42871e96a95da22acc140439535ded39d10fac07a8f4c08412f5a6a907bf8515 modules/localmodels/stack_try.py
@@ -251,7 +252,7 @@ c9a84cfa4e4dfad81510fc6f111c7db76929d566cd96c49fafdc5f8e5447f5b1 modules/localm
251
252
  b9462839aa5bb336a31afa263dffe06028eb0ce4ab468ef723f4e91f378cb80f modules/localmodels/suite.py
252
253
  22be2d2d6303c7714503bbe72d5d4788eb070b9939f6ec81ebd947eb45f53f8b modules/localmodels/tool_archive.py
253
254
  3fc53d0e9ae000e7b8e81b4a14a1e3627c366517ebd39da22aedaa81dfbafd25 modules/localmodels/tools.json
254
- 2d54edb061b48c60f67a36a7279507be5f81d4bc4f98fe3d29732f7db93aad22 modules/localmodels/transport.py
255
+ 8f6ffbb993a3d89ec78698fe907e7c838d3acd0054064f7a43547872886f7a44 modules/localmodels/transport.py
255
256
  3225834c48a59ed70b2e7505956274741eaf420794eb78e9a48135a5cdeb0e56 modules/localmodels/tts_server.py
256
257
  aaf67ee19efc7d4100ffb1ea5f122f0e257751870c5f342e93f8887c954be484 modules/localmodels/tui.py
257
258
  f82d73d5dd1721d8bc7d8b7fa371d57ce8f1d7a3a873a2120f9765517ef900ea modules/localmodels/tui_dialogs.py
@@ -279,13 +280,13 @@ f79c861df0b16c8cd05872d88f1fc2910023336519131671a0cd64cb490af17e modules/localm
279
280
  1f24f15ba0c87178716d1552484be55a6a775231f4468fc95c4177f6dffbd081 modules/localmodels/web/view/view.js
280
281
  84535ea1c54aeb68bfbfbe357b7f19e7a2d69b9ce9ff2f4f7e8b6a668f76eb3f modules/localmodels/win_probe.py
281
282
  d3be4542d9b3f32a61bc65cc4264a74301b0eab6f302a30f43e878e9e9b228d6 modules/localmodels/windows_job.py
282
- f33c076b94757a5b8cfaa3c5ebbda4c092d9f4c6730a073a846d0b64ffd41e2a modules/simplex_localmodels-0.1.0.dev56.dist-info/METADATA
283
- 1e58afb94ca0378707d84d8d0ec4cb801ab5978600bd7346806680847e1a88af modules/simplex_localmodels-0.1.0.dev56.dist-info/RECORD
284
- d5d0ff1a812a108c50ed59eb504c60763fde1316386f85207d1d2206518a55a7 modules/simplex_localmodels-0.1.0.dev56.dist-info/WHEEL
285
- 3a3059212ac60178113110eaaeafa6dbafe72c598d64d3616cbb498ae9c881f7 modules/simplex_localmodels-0.1.0.dev56.dist-info/entry_points.txt
286
- b57710affc4ca11c13057cf73ff661bcd50fba0455d2ebe0e23b40cb11c5a6eb modules/simplex_localmodels-0.1.0.dev56.dist-info/licenses/NOTICE
287
- 821556e6336796450ab852d375117b48a4887e71d255794fd6318d99982a5ab6 modules/simplex_localmodels-0.1.0.dev56.dist-info/licenses/localmodels/HERMES-LICENSE
288
- d55629d49f7142300db6d05f518c39a253889ccbf7b57c231d6c4eaf0deede98 package.json
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
+ 64abd7ac6143978b3eb7812fae89342411e4ca99eb9962321d80c298074ef0f8 package.json
289
290
  23bc148d2b48964b621c5561ff2b81c1d9c7b717967a7491efbf12f4304882b5 python/bin/python3.12
290
291
  3b2f81fe21d181c499c59a256c8e1968455d6689d269aa85373bfb6af41da3bf python/lib/python3.12/LICENSE.txt
291
292
  981d4c398849f9ebcab72300d9c1fe288fd6d7f28957b3b3fa3a493a5836d95c python/lib/python3.12/__future__.py
@@ -4250,4 +4251,4 @@ df828a376c73cadc0f03b447cdcde54d4a552b10bfd51bf1349d95ae27760155 python/share/t
4250
4251
  4908bd229176dcb81a0c54e087cc725040988babad9e806a5052fb722cf5b511 python/share/terminfo/z/ztx
4251
4252
  4908bd229176dcb81a0c54e087cc725040988babad9e806a5052fb722cf5b511 python/share/terminfo/z/ztx-1-a
4252
4253
  4908bd229176dcb81a0c54e087cc725040988babad9e806a5052fb722cf5b511 python/share/terminfo/z/ztx11
4253
- 4f5157c97d7c792caf4751761348fdc00c7e5f81aae894e74c94de343a8ef1eb tool.json
4254
+ 27cb1838d811356b1e568725cb49f4a4073759d5dcdddee4de850258504161bc tool.json
@@ -3,4 +3,4 @@
3
3
  See docs/local-models/architecture.md.
4
4
  """
5
5
 
6
- __version__ = "0.1.0.dev56"
6
+ __version__ = "0.1.0.dev57"
@@ -12,6 +12,7 @@ cold-restart path cleanly.
12
12
  from __future__ import annotations
13
13
 
14
14
  import base64
15
+ import http.client
15
16
  import json
16
17
  import urllib.error
17
18
  import urllib.parse
@@ -89,7 +90,7 @@ def _request(
89
90
  raw = resp.read() or b""
90
91
  except urllib.error.HTTPError as exc:
91
92
  raise AdminError(f"Bifrost admin {method} {path} returned HTTP {exc.code}") from None
92
- except (urllib.error.URLError, OSError, ValueError) as exc:
93
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError) as exc:
93
94
  raise AdminError(f"Bifrost admin {method} {path} failed ({type(exc).__name__})") from None
94
95
  if not 200 <= status < 300:
95
96
  raise AdminError(f"Bifrost admin {method} {path} returned HTTP {status}")
@@ -6,6 +6,7 @@ from __future__ import annotations
6
6
 
7
7
  import base64
8
8
  import contextlib
9
+ import http.client
9
10
  import json
10
11
  import os
11
12
  import tempfile
@@ -67,7 +68,7 @@ def logged_calls(addr: str, provider: str, objects: str | None = None) -> int |
67
68
  query["objects"] = objects
68
69
  try:
69
70
  found = _admin_get(addr, "/api/logs?" + urllib.parse.urlencode(query))
70
- except (urllib.error.URLError, OSError, ValueError):
71
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError):
71
72
  return None
72
73
  page = found.get("pagination")
73
74
  total = page.get("total_count") if isinstance(page, dict) else None
@@ -96,7 +97,9 @@ def _rule_name(row: dict[str, Any]) -> Any:
96
97
 
97
98
  def _routed_log(addr: str, provider: str | None, since: str) -> dict[str, Any] | None:
98
99
  for _ in range(10):
99
- with contextlib.suppress(urllib.error.URLError, OSError, ValueError):
100
+ with contextlib.suppress(
101
+ urllib.error.URLError, OSError, http.client.HTTPException, ValueError
102
+ ):
100
103
  for row in logs(
101
104
  addr, objects="chat_completion", **({"providers": provider} if provider else {})
102
105
  ):
@@ -176,7 +179,7 @@ def tier_routes(gw: harness.GatewayPlan, timeout: float) -> list[Check]:
176
179
  ),
177
180
  }
178
181
  )
179
- except (urllib.error.URLError, OSError, ValueError) as exc:
182
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError) as exc:
180
183
  checks.append(
181
184
  {
182
185
  "check": f"gateway {label} tier target",
@@ -212,7 +215,7 @@ def direct_targets(gw: harness.GatewayPlan, timeout: float) -> list[Check]:
212
215
  )
213
216
  ok = TOUCH_EXPECT in gateway_requests.text(answer).lower()
214
217
  detail = f"{endpoint['model']} {'answered' if ok else 'failed its readiness question'}"
215
- except (OSError, ValueError) as exc:
218
+ except (OSError, http.client.HTTPException, ValueError) as exc:
216
219
  ok, detail = False, f"{type(exc).__name__}: direct LLM readiness unavailable"
217
220
  checks.append({"check": f"LLM {role} readiness", "ok": ok, "detail": detail})
218
221
  return checks
@@ -251,7 +254,7 @@ def accept(
251
254
  with opener().open(f"http://{addr}/v1/models", timeout=60) as r:
252
255
  listed = json.loads(r.read() or b"{}").get("data") or []
253
256
  rows = {str(m.get("id")): m for m in listed if isinstance(m, dict)}
254
- except (urllib.error.URLError, OSError, ValueError) as exc:
257
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError) as exc:
255
258
  rows = {}
256
259
  check("bifrost /v1/models", False, f"{type(exc).__name__}: {exc}")
257
260
  ids = set(rows)
@@ -294,7 +297,7 @@ def accept(
294
297
  )
295
298
  answer = gateway_requests.text(resp)
296
299
  check(f"gateway {AGENT_MODEL}", TOUCH_EXPECT in answer.lower(), answer.strip()[:200])
297
- except (urllib.error.URLError, OSError, ValueError) as exc:
300
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError) as exc:
298
301
  check(f"gateway {AGENT_MODEL}", False, f"{type(exc).__name__}: {exc}")
299
302
  row = _routed_log(addr, None if gw.get("llm_fast") else gw["llm_provider"], since)
300
303
  check(
@@ -322,7 +325,7 @@ def accept(
322
325
  name,
323
326
  *gateway_requests.aux_answer(addr, ep, f"{pid}/{ep['model']}", timeout),
324
327
  )
325
- except (urllib.error.URLError, OSError, ValueError) as exc:
328
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError) as exc:
326
329
  check(name, False, f"{type(exc).__name__}: {exc}")
327
330
  continue
328
331
  after = logged_after(addr, pid, before)
@@ -501,7 +504,7 @@ def usage(doc: hosts.Owned) -> Finding | None:
501
504
  record["addr"],
502
505
  "/api/logs?" + urllib.parse.urlencode({"start_time": start, "limit": "1"}),
503
506
  )
504
- except (urllib.error.URLError, OSError, ValueError):
507
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError):
505
508
  return finding("gateway.usage", "warn", "cannot read the Bifrost request log")
506
509
  page = found.get("pagination")
507
510
  total = page.get("total_count", 0) if isinstance(page, dict) else 0
@@ -11,6 +11,7 @@ A name the listing lacks is an error: the gateway does not serve it.
11
11
 
12
12
  from __future__ import annotations
13
13
 
14
+ import http.client
14
15
  import json
15
16
  import urllib.error
16
17
  from typing import Any, Literal, TypedDict
@@ -117,7 +118,7 @@ def listed(addr: str, timeout: float = 20) -> list[str]:
117
118
  try:
118
119
  with opener().open(f"http://{addr}/v1/models", timeout=timeout) as r:
119
120
  value = json.loads(r.read() or b"{}")
120
- except (urllib.error.URLError, OSError, ValueError) as exc:
121
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError) as exc:
121
122
  raise HarnessError(
122
123
  f"Bifrost at {addr} does not list its models ({type(exc).__name__}); is it running?"
123
124
  " `stack status` shows it, `stack up` starts it"
@@ -440,13 +440,13 @@
440
440
  "quant": "GSQ-RCO-IQ2_XS",
441
441
  "files": [
442
442
  {
443
- "path": "Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf",
443
+ "path": "IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf",
444
444
  "size_bytes": 39225954592,
445
445
  "revision": "ed59f92082b1e93c0e96d60a8b11aab089b52f09",
446
446
  "sha256": "92cee27ae5bbadcd732416a0f7a7f0acc092399dbbe8f5a5efa707c2ec0a49d7"
447
447
  },
448
448
  {
449
- "path": "Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf",
449
+ "path": "IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf",
450
450
  "size_bytes": 28800138432,
451
451
  "revision": "ed59f92082b1e93c0e96d60a8b11aab089b52f09",
452
452
  "sha256": "316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113"
@@ -466,6 +466,7 @@
466
466
  "architecture": "qwen4exp",
467
467
  "mtp_draft_depth": 3,
468
468
  "mmproj": {
469
+ "repo": "unsloth/Qwen3.8-Flash-Next-GGUF",
469
470
  "path": "mmproj-BF16.gguf",
470
471
  "size_bytes": 907542944,
471
472
  "local": "mmproj-Qwen3.8-Flash-Next-BF16.gguf",
@@ -530,13 +531,13 @@
530
531
  "quant": "GSQ-RCO-IQ3_S",
531
532
  "files": [
532
533
  {
533
- "path": "Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
534
+ "path": "IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
534
535
  "size_bytes": 54817524224,
535
536
  "revision": "ed59f92082b1e93c0e96d60a8b11aab089b52f09",
536
537
  "sha256": "4c1eb2ceb4915e1192f4f386021897bde56a97f40a0bb78bb86465e0f7d2aca3"
537
538
  },
538
539
  {
539
- "path": "Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
540
+ "path": "IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
540
541
  "size_bytes": 28800138432,
541
542
  "revision": "ed59f92082b1e93c0e96d60a8b11aab089b52f09",
542
543
  "sha256": "316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113"
@@ -556,6 +557,7 @@
556
557
  "architecture": "qwen4exp",
557
558
  "mtp_draft_depth": 3,
558
559
  "mmproj": {
560
+ "repo": "unsloth/Qwen3.8-Flash-Next-GGUF",
559
561
  "path": "mmproj-BF16.gguf",
560
562
  "size_bytes": 907542944,
561
563
  "local": "mmproj-Qwen3.8-Flash-Next-BF16.gguf",
@@ -3106,18 +3108,18 @@
3106
3108
  "memory_estimate_bytes": 36507222016,
3107
3109
  "files": [
3108
3110
  {
3109
- "path": "Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf",
3111
+ "path": "IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf",
3110
3112
  "local_name": "Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf",
3111
3113
  "size_bytes": 39225954592,
3112
3114
  "sha256": "92cee27ae5bbadcd732416a0f7a7f0acc092399dbbe8f5a5efa707c2ec0a49d7",
3113
- "url": "{hf}/{repo}/resolve/{revision}/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf"
3115
+ "url": "{hf}/{repo}/resolve/{revision}/IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf"
3114
3116
  },
3115
3117
  {
3116
- "path": "Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf",
3118
+ "path": "IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf",
3117
3119
  "local_name": "Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf",
3118
3120
  "size_bytes": 28800138432,
3119
3121
  "sha256": "316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113",
3120
- "url": "{hf}/{repo}/resolve/{revision}/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf"
3122
+ "url": "{hf}/{repo}/resolve/{revision}/IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf"
3121
3123
  },
3122
3124
  {
3123
3125
  "path": "packs/iq2_xs/conversions.json",
@@ -3,6 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import csv
6
+ import http.client
6
7
  import io
7
8
  import subprocess
8
9
  import tempfile
@@ -45,7 +46,7 @@ def check_decision(
45
46
  key,
46
47
  timeout,
47
48
  )
48
- except (urllib.error.URLError, OSError, ValueError) as exc:
49
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError) as exc:
49
50
  return {"check": name, "ok": False, "detail": f"{type(exc).__name__}: {exc}"}
50
51
  answers = resp.get("answers")
51
52
  answer = answers.get("outage") if isinstance(answers, dict) else None
@@ -154,7 +155,7 @@ def accept(
154
155
  )
155
156
  answer = text(resp)
156
157
  check(f"gateway group/{gw['group']}", TOUCH_EXPECT in answer.lower(), answer.strip()[:200])
157
- except (urllib.error.URLError, OSError, ValueError) as exc:
158
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError) as exc:
158
159
  check(f"gateway group/{gw['group']}", False, f"{type(exc).__name__}: {exc}")
159
160
  if routed:
160
161
  after = after_fn(plan, decider, "routing", before)
@@ -170,7 +171,7 @@ def accept(
170
171
  try:
171
172
  harness_gateway.require_target(plan)
172
173
  check(name, *aux_answer(gw["addr"], ep, f"{pid}/{ep['model']}", timeout))
173
- except (urllib.error.URLError, OSError, ValueError) as exc:
174
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError) as exc:
174
175
  check(name, False, f"{type(exc).__name__}: {exc}")
175
176
  continue
176
177
  after = after_fn(plan, pid, None, before)
@@ -3,6 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import contextlib
6
+ import http.client
6
7
  import os
7
8
  import secrets
8
9
  import shutil
@@ -328,7 +329,7 @@ def healthy(addr: str, timeout: float = 5) -> bool:
328
329
  try:
329
330
  with opener().open(f"http://{addr}/health", timeout=timeout) as r:
330
331
  return bool(r.status == 200)
331
- except (urllib.error.URLError, OSError, ValueError):
332
+ except (urllib.error.URLError, OSError, http.client.HTTPException, ValueError):
332
333
  return False
333
334
 
334
335
 
@@ -5,6 +5,7 @@ from __future__ import annotations
5
5
  import argparse
6
6
  import errno
7
7
  import hashlib
8
+ import http.client
8
9
  import json
9
10
  import os
10
11
  import secrets
@@ -228,7 +229,7 @@ def status(root: Path) -> dict[str, Any]:
228
229
  authenticated=live.get("authenticated") is True,
229
230
  models=live.get("models", []),
230
231
  )
231
- except (OSError, ValueError, urllib.error.URLError):
232
+ except (OSError, ValueError, urllib.error.URLError, http.client.HTTPException):
232
233
  pass
233
234
  return result
234
235
 
@@ -251,14 +252,14 @@ def _stop(root: Path) -> dict[str, Any]:
251
252
  while True:
252
253
  try:
253
254
  live = _request(root, state, "status")
254
- except (OSError, ValueError, urllib.error.URLError):
255
+ except (OSError, ValueError, urllib.error.URLError, http.client.HTTPException):
255
256
  live = None
256
257
  if live is not None:
257
258
  if live.get("instance") != state["instance"]:
258
259
  raise ValueError("Gateway ownership mismatch")
259
260
  try:
260
261
  _request(root, state, "stop", method="POST")
261
- except (OSError, ValueError, urllib.error.URLError):
262
+ except (OSError, ValueError, urllib.error.URLError, http.client.HTTPException):
262
263
  pass # The server may have closed between its status and stop requests.
263
264
  if worker_idle(root):
264
265
  if state.get("kind") == "bifrost":
@@ -4,6 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import argparse
6
6
  import hmac
7
+ import http.client
7
8
  import http.server
8
9
  import json
9
10
  import os
@@ -293,7 +294,7 @@ def ingress_handler(
293
294
  if self.path == "/_localmodels/status" and self.command == "GET":
294
295
  try:
295
296
  models = model_ids(state["upstreamPort"])
296
- except (OSError, ValueError, urllib.error.URLError):
297
+ except (OSError, ValueError, urllib.error.URLError, http.client.HTTPException):
297
298
  models = []
298
299
  ready = False
299
300
  else:
@@ -327,6 +328,7 @@ def ingress_handler(
327
328
  _, current["authenticated"] = configure(root, state)
328
329
  except (
329
330
  OSError,
331
+ http.client.HTTPException,
330
332
  ValueError,
331
333
  TypeError,
332
334
  AttributeError,
@@ -51,7 +51,7 @@ from localmodels.npm_transport import ToolBuild as ToolBuild
51
51
  from localmodels.npm_transport import fetch_bifrost
52
52
  from localmodels.remote_ops import Archive, fetch
53
53
  from localmodels.remote_ops_download import npm_copies
54
- from localmodels.runtime_io import Event, error_cause
54
+ from localmodels.runtime_io import Event, error_cause, rename_with_retry
55
55
  from localmodels.stack_events import CombinedEvents as _CombinedEvents
56
56
  from localmodels.stack_events import ToolEvents
57
57
  from localmodels.tool_archive import (
@@ -606,7 +606,7 @@ def _install_tree(tools_dir: Path, name: str, unpack: Callable[[Path], None], ma
606
606
  (staging / ".complete").write_text(marker + "\n", encoding="utf-8")
607
607
  if final.exists():
608
608
  shutil.rmtree(final)
609
- staging.rename(final)
609
+ rename_with_retry(staging, final)
610
610
  finally:
611
611
  if staging.exists():
612
612
  shutil.rmtree(staging)
@@ -15,6 +15,7 @@ Because the Hub is queried, ``--offline`` plans refuse repo specs and keep takin
15
15
  from __future__ import annotations
16
16
 
17
17
  import difflib
18
+ import http.client
18
19
  import io
19
20
  import json
20
21
  import re
@@ -193,6 +194,26 @@ def close_ids(name: str, ids: Sequence[str]) -> list[str]:
193
194
  return [i for score, i in scored[:3] if score >= max(0.6, best - 0.1)]
194
195
 
195
196
 
197
+ def _hub_call(repo: str, call: Callable[[], object]) -> object:
198
+ try:
199
+ return call()
200
+ except http.client.HTTPException as exc:
201
+ raise PlanError(
202
+ f"Hub HTTP error reading {repo} ({type(exc).__name__})",
203
+ cause_code="HUB_UNREACHABLE",
204
+ ) from exc
205
+
206
+
207
+ def _hub_header(repo: str, url: str, read_range: FetchBytes) -> GGUFHeader:
208
+ try:
209
+ return _repo_header(url, read_range)
210
+ except http.client.HTTPException as exc:
211
+ raise PlanError(
212
+ f"Hub HTTP error reading {repo} ({type(exc).__name__})",
213
+ cause_code="HUB_UNREACHABLE",
214
+ ) from exc
215
+
216
+
196
217
  def entry_for(
197
218
  spec: str,
198
219
  entries: tuple[cat.CatalogEntry, ...],
@@ -234,7 +255,7 @@ def entry_for(
234
255
  f"/revision/{urllib.parse.quote(revision)}" if revision else ""
235
256
  )
236
257
  try:
237
- doc = decode(hf_get(first), ModelInfo)
258
+ doc = decode(_hub_call(repo, lambda: hf_get(first)), ModelInfo)
238
259
  except urllib.error.HTTPError:
239
260
  raise
240
261
  except OSError as exc:
@@ -244,7 +265,7 @@ def entry_for(
244
265
  commit = doc.get("sha")
245
266
  if not commit:
246
267
  raise PlanError(f"{repo} does not resolve on the Hub")
247
- raw_tree = hf_get(f"{api}/api/models/{repo}/tree/{commit}")
268
+ raw_tree = _hub_call(repo, lambda: hf_get(f"{api}/api/models/{repo}/tree/{commit}"))
248
269
  if not isinstance(raw_tree, list):
249
270
  raise PlanError("Hub tree must be an array")
250
271
  tree = [
@@ -256,8 +277,10 @@ def entry_for(
256
277
  if not groups:
257
278
  raise PlanError(f"{repo} has no .gguf model file")
258
279
  stem, files = _pick(groups, quant, repo)
259
- header = _repo_header(
260
- f"{api}/{repo}/resolve/{commit}/{urllib.parse.quote(files[0]['path'])}", read_range
280
+ header = _hub_header(
281
+ repo,
282
+ f"{api}/{repo}/resolve/{commit}/{urllib.parse.quote(files[0]['path'])}",
283
+ read_range,
261
284
  )
262
285
  card = doc.get("cardData") or {}
263
286
  license_name, license_link = _license(card)