@simplexai/localmodels-linux-arm64 0.1.0-dev.59 → 0.1.0-dev.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bootstrap.identity +1 -1
- package/bootstrap.sha256 +126 -107
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/__main__.py +107 -44
- package/modules/localmodels/apple_sensors.py +431 -0
- package/modules/localmodels/auth_proxy.py +185 -19
- package/modules/localmodels/bifrost_admin.py +30 -0
- package/modules/localmodels/bifrost_checks.py +2 -2
- package/modules/localmodels/bifrost_config.py +132 -9
- package/modules/localmodels/bifrost_models.py +1 -1
- package/modules/localmodels/catalog.json +509 -54
- package/modules/localmodels/catalog.py +21 -4
- package/modules/localmodels/catalog_add.py +42 -11
- package/modules/localmodels/catalog_license.py +2 -0
- package/modules/localmodels/catalog_recipes.py +2 -0
- package/modules/localmodels/cli_parser.py +6 -2
- package/modules/localmodels/context_policy.py +40 -4
- package/modules/localmodels/custom_hub.py +983 -0
- package/modules/localmodels/custom_hub_http.py +579 -0
- package/modules/localmodels/custom_probe.py +451 -0
- package/modules/localmodels/debug_mode.py +13 -0
- package/modules/localmodels/debug_stub_server.py +156 -1
- package/modules/localmodels/deploy.py +38 -7
- package/modules/localmodels/deploy_steps.py +5 -0
- package/modules/localmodels/download-mirrors.json +20 -0
- package/modules/localmodels/engines-b12757-mix-ef2df21.json +26 -0
- package/modules/localmodels/engines-prism-b12178-03ec600.json +131 -0
- package/modules/localmodels/engines-strata-poly-0.2.20-poly.6.json +94 -0
- package/modules/localmodels/engines-whisper-b5454.json +120 -1
- package/modules/localmodels/engines.py +38 -8
- package/modules/localmodels/estimator.py +60 -7
- package/modules/localmodels/gateway.py +48 -3
- package/modules/localmodels/gateway_app_bifrost.py +18 -18
- package/modules/localmodels/gateway_bifrost.py +102 -16
- package/modules/localmodels/gateway_cli.py +14 -80
- package/modules/localmodels/gateway_server.py +88 -16
- package/modules/localmodels/gguf.py +6 -0
- package/modules/localmodels/gpu_specs.py +35 -1
- package/modules/localmodels/harness.py +1 -2
- package/modules/localmodels/hf_repo.py +12 -4
- package/modules/localmodels/host_sensors.py +704 -0
- package/modules/localmodels/install.py +4 -4
- package/modules/localmodels/library_cli.py +181 -3
- package/modules/localmodels/library_custom.py +831 -0
- package/modules/localmodels/library_elastic.py +35 -7
- package/modules/localmodels/library_gateway.py +94 -32
- package/modules/localmodels/library_jobs.py +76 -11
- package/modules/localmodels/library_kept.py +50 -6
- package/modules/localmodels/library_model.py +254 -2
- package/modules/localmodels/library_pricing.py +83 -4
- package/modules/localmodels/library_serve.py +178 -60
- package/modules/localmodels/library_smoke.py +315 -0
- package/modules/localmodels/library_state.py +77 -1
- package/modules/localmodels/library_status.py +126 -4
- package/modules/localmodels/npm_transport.py +4 -58
- package/modules/localmodels/nvml_ctypes.py +431 -0
- package/modules/localmodels/plan_envelope.py +14 -6
- package/modules/localmodels/recommend_cli.py +2 -1
- package/modules/localmodels/records.py +1 -0
- package/modules/localmodels/remote_ops.py +120 -665
- package/modules/localmodels/remote_ops_common.py +729 -0
- package/modules/localmodels/remote_ops_download.py +396 -241
- package/modules/localmodels/remote_ops_mirrors.py +26 -65
- package/modules/localmodels/remote_ops_prepare.py +43 -35
- package/modules/localmodels/remote_ops_ranges.py +98 -65
- package/modules/localmodels/remote_ops_remove.py +30 -22
- package/modules/localmodels/remote_ops_service.py +103 -95
- package/modules/localmodels/remote_ops_verify.py +113 -65
- package/modules/localmodels/runtime-lock.json +19 -19
- package/modules/localmodels/runtime_cli.py +15 -5
- package/modules/localmodels/runtime_io.py +54 -1
- package/modules/localmodels/service_control.py +32 -1
- package/modules/localmodels/service_wiring.py +2 -3
- package/modules/localmodels/service_worker.py +6 -2
- package/modules/localmodels/services_cli.py +35 -27
- package/modules/localmodels/source_byok.py +3 -5
- package/modules/localmodels/speech-sv.txt +93 -0
- package/modules/localmodels/speech_admission.py +437 -0
- package/modules/localmodels/speech_catalog.py +170 -0
- package/modules/localmodels/speech_cli.py +273 -0
- package/modules/localmodels/speech_jobs.py +772 -0
- package/modules/localmodels/speech_model.py +404 -0
- package/modules/localmodels/speech_serve.py +287 -0
- package/modules/localmodels/speech_server.py +837 -0
- package/modules/localmodels/speech_state.py +697 -0
- package/modules/localmodels/speech_worker_sensevoice.py +255 -0
- package/modules/localmodels/speech_workers.py +783 -0
- package/modules/localmodels/stack.py +0 -33
- package/modules/localmodels/stack_auto.py +5 -3
- package/modules/localmodels/stack_aux_gpu.py +45 -4
- package/modules/localmodels/stack_capacity.py +77 -8
- package/modules/localmodels/stack_cli.py +16 -1
- package/modules/localmodels/stack_compose.py +1 -1
- package/modules/localmodels/stack_down.py +24 -1
- package/modules/localmodels/stack_hardware.py +57 -88
- package/modules/localmodels/stack_hardware_text.py +4 -59
- package/modules/localmodels/stack_lifecycle.py +2 -2
- package/modules/localmodels/stack_memory.py +14 -3
- package/modules/localmodels/stack_suite.py +9 -10
- package/modules/localmodels/stack_summary.py +4 -4
- package/modules/localmodels/stack_view.py +77 -53
- package/modules/localmodels/stack_view_demo.py +36 -5
- package/modules/localmodels/stack_view_events.py +147 -12
- package/modules/localmodels/stack_view_gpu.py +97 -17
- package/modules/localmodels/stack_view_llm.py +16 -1
- package/modules/localmodels/stack_view_measure.py +4 -1
- package/modules/localmodels/stack_view_schema.py +54 -8
- package/modules/localmodels/stack_view_serve.py +40 -3
- package/modules/localmodels/stack_view_slots.py +89 -10
- package/modules/localmodels/stack_view_telemetry.py +163 -0
- package/modules/localmodels/stack_view_text.py +5 -2
- package/modules/localmodels/stack_view_tick.py +658 -0
- package/modules/localmodels/stack_view_words.py +4 -0
- package/modules/localmodels/{strata-poly-serve-0.2.20-poly.5.txt → strata-poly-serve-0.2.20-poly.6.txt} +1 -1
- package/modules/localmodels/suite.py +3 -1
- package/modules/localmodels/telemetry_math.py +538 -0
- package/modules/localmodels/transport.py +3 -2
- package/modules/localmodels/tui_views.py +2 -2
- package/modules/localmodels/web/view/view.js +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev59.dist-info → simplex_localmodels-0.1.0.dev61.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev59.dist-info → simplex_localmodels-0.1.0.dev61.dist-info}/RECORD +123 -104
- package/modules/{simplex_localmodels-0.1.0.dev59.dist-info → simplex_localmodels-0.1.0.dev61.dist-info}/licenses/NOTICE +9 -0
- package/package.json +1 -1
- package/tool.json +1 -1
- package/modules/localmodels/bifrost_datasheet.py +0 -53
- package/modules/localmodels/bifrost_provider.py +0 -88
- package/modules/localmodels/bifrost_unit.py +0 -99
- package/modules/localmodels/engines-strata-poly-0.2.20-poly.5.json +0 -94
- package/modules/localmodels/gateway_switch.py +0 -51
- package/modules/localmodels/library_floor.py +0 -78
- package/modules/localmodels/service_stop.py +0 -52
- /package/modules/{simplex_localmodels-0.1.0.dev59.dist-info → simplex_localmodels-0.1.0.dev61.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev59.dist-info → simplex_localmodels-0.1.0.dev61.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev59.dist-info → simplex_localmodels-0.1.0.dev61.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -22,7 +22,7 @@ from localmodels import console, harness, stack, stack_args, stack_picks, stack_
|
|
|
22
22
|
from localmodels.plan_envelope import PlanError
|
|
23
23
|
from localmodels.stack_console import Board
|
|
24
24
|
from localmodels.stack_plan import StackError, command
|
|
25
|
-
from localmodels.stack_summary import styled
|
|
25
|
+
from localmodels.stack_summary import styled, summary
|
|
26
26
|
|
|
27
27
|
_REFUSED = (StackError, PlanError, harness.HarnessError, ValueError, KeyError)
|
|
28
28
|
|
|
@@ -47,7 +47,7 @@ def _fail(exc: Exception) -> int:
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
def cli(args: argparse.Namespace) -> int:
|
|
50
|
-
options =
|
|
50
|
+
options = stack_args.options_from_args(args)
|
|
51
51
|
explicit = getattr(args, "gateway", None) is not None
|
|
52
52
|
selected = getattr(args, "component_selections", ())
|
|
53
53
|
if (
|
|
@@ -78,7 +78,7 @@ def cli(args: argparse.Namespace) -> int:
|
|
|
78
78
|
path = stack.save(plan)
|
|
79
79
|
except _REFUSED as exc:
|
|
80
80
|
return _fail(exc)
|
|
81
|
-
print(styled(
|
|
81
|
+
print(styled(summary(plan, path, apply_line=False)))
|
|
82
82
|
seen = plan.get("hardware")
|
|
83
83
|
offered = seen.get("picks", []) if seen else []
|
|
84
84
|
other = (
|
|
@@ -99,7 +99,7 @@ def cli(args: argparse.Namespace) -> int:
|
|
|
99
99
|
path = stack.save(plan)
|
|
100
100
|
except _REFUSED as exc:
|
|
101
101
|
return _fail(exc)
|
|
102
|
-
print(styled(
|
|
102
|
+
print(styled(summary(plan, path, apply_line=False)))
|
|
103
103
|
answer = _confirm(None)
|
|
104
104
|
if answer != "y":
|
|
105
105
|
print(
|
|
@@ -13,7 +13,17 @@ import json
|
|
|
13
13
|
import sys
|
|
14
14
|
from pathlib import Path
|
|
15
15
|
|
|
16
|
-
from localmodels import
|
|
16
|
+
from localmodels import (
|
|
17
|
+
cli_help,
|
|
18
|
+
custom_hub,
|
|
19
|
+
custom_probe,
|
|
20
|
+
deploy,
|
|
21
|
+
library_custom,
|
|
22
|
+
library_jobs,
|
|
23
|
+
library_serve,
|
|
24
|
+
library_smoke,
|
|
25
|
+
library_status,
|
|
26
|
+
)
|
|
17
27
|
from localmodels.contracts import decode
|
|
18
28
|
from localmodels.library_model import (
|
|
19
29
|
EXIT_FAILED,
|
|
@@ -35,6 +45,7 @@ DESCRIPTION = (
|
|
|
35
45
|
FALLBACK = {
|
|
36
46
|
"download": "DOWNLOAD_FAILED",
|
|
37
47
|
"load": "ENGINE_START_FAILED",
|
|
48
|
+
"smoke-test": "ENGINE_START_FAILED",
|
|
38
49
|
"unload": "ENGINE_START_FAILED",
|
|
39
50
|
"remove": "INVALID_STATE",
|
|
40
51
|
"cancel": "INVALID_STATE",
|
|
@@ -103,6 +114,13 @@ def add_parser(sub: argparse._SubParsersAction[argparse.ArgumentParser]) -> None
|
|
|
103
114
|
action="store_true",
|
|
104
115
|
help="load at the compact floor posture even when live memory is below headroom guards (still refuses critical OS memory pressure)",
|
|
105
116
|
)
|
|
117
|
+
load.add_argument(
|
|
118
|
+
"--ctx",
|
|
119
|
+
type=int,
|
|
120
|
+
default=None,
|
|
121
|
+
metavar="TOKENS",
|
|
122
|
+
help="override the served context window (e.g. 2048 or 4096 for verified custom models)",
|
|
123
|
+
)
|
|
106
124
|
load.add_argument("--jsonl", action="store_true", help="accepted; output is JSONL")
|
|
107
125
|
cli_help.document(
|
|
108
126
|
load,
|
|
@@ -110,6 +128,26 @@ def add_parser(sub: argparse._SubParsersAction[argparse.ArgumentParser]) -> None
|
|
|
110
128
|
"register it with the gateway and pi.",
|
|
111
129
|
examples=[("%(prog)s qwen3.8-27b:UD-Q4_K_M --unload qwen3.8-27b-iq3s:UD-IQ3_S", "")],
|
|
112
130
|
)
|
|
131
|
+
smoke = verbs.add_parser(
|
|
132
|
+
"smoke-test",
|
|
133
|
+
help="verify a downloaded model with an ephemeral loopback server without activating it",
|
|
134
|
+
)
|
|
135
|
+
_model(smoke)
|
|
136
|
+
smoke.add_argument(
|
|
137
|
+
"--ctx",
|
|
138
|
+
type=int,
|
|
139
|
+
default=4096,
|
|
140
|
+
metavar="TOKENS",
|
|
141
|
+
help="context size for the conservative smoke-test (default 4096; retry at 2048 on OOM)",
|
|
142
|
+
)
|
|
143
|
+
_base(smoke)
|
|
144
|
+
smoke.add_argument("--jsonl", action="store_true", help="accepted; output is JSONL")
|
|
145
|
+
cli_help.document(
|
|
146
|
+
smoke,
|
|
147
|
+
"Start an isolated ephemeral loopback llama-server, run a minimal completion check, "
|
|
148
|
+
"record verification status, and stop the server so active models and routing stay untouched.",
|
|
149
|
+
examples=[("%(prog)s custom.hf.owner--repo:Q4_K_M --ctx 4096 --jsonl", "")],
|
|
150
|
+
)
|
|
113
151
|
for verb, text, note in (
|
|
114
152
|
("unload", "stop a model's server; its weights stay", "unregister and stop the server"),
|
|
115
153
|
("remove", "delete a model's weights (unloads it first)", "keeps files others use"),
|
|
@@ -124,6 +162,80 @@ def add_parser(sub: argparse._SubParsersAction[argparse.ArgumentParser]) -> None
|
|
|
124
162
|
f"{text[0].upper()}{text[1:]}: {note}. Prints one result or error object.",
|
|
125
163
|
examples=[("%(prog)s qwen3.8-27b-iq3s:UD-IQ3_S --json", "")],
|
|
126
164
|
)
|
|
165
|
+
custom = verbs.add_parser(
|
|
166
|
+
"custom", help="search and probe community Hugging Face / ModelScope repositories (JSON)"
|
|
167
|
+
)
|
|
168
|
+
custom_verbs = custom.add_subparsers(dest="custom_command", required=True, metavar="COMMAND")
|
|
169
|
+
c_search = custom_verbs.add_parser(
|
|
170
|
+
"search", help="search Hugging Face and ModelScope for GGUF repositories"
|
|
171
|
+
)
|
|
172
|
+
c_search.add_argument(
|
|
173
|
+
"--config-stdin",
|
|
174
|
+
action="store_true",
|
|
175
|
+
required=True,
|
|
176
|
+
help="read search parameters (and optional token) as JSON from standard input",
|
|
177
|
+
)
|
|
178
|
+
_base(c_search)
|
|
179
|
+
c_search.add_argument("--json", action="store_true", help="accepted; the output is JSON")
|
|
180
|
+
cli_help.document(
|
|
181
|
+
c_search,
|
|
182
|
+
"Search Hugging Face and/or ModelScope for community GGUF models without mutating state. "
|
|
183
|
+
"Reads JSON parameters (hub, query, format, limit, optional token) from stdin and prints "
|
|
184
|
+
"one localmodels.library-custom-search/v1 document.",
|
|
185
|
+
examples=[("%(prog)s --config-stdin --json", "")],
|
|
186
|
+
)
|
|
187
|
+
c_probe = custom_verbs.add_parser(
|
|
188
|
+
"probe", help="inspect a Hugging Face or ModelScope repository without downloading weights"
|
|
189
|
+
)
|
|
190
|
+
c_probe.add_argument(
|
|
191
|
+
"--config-stdin",
|
|
192
|
+
action="store_true",
|
|
193
|
+
required=True,
|
|
194
|
+
help="read probe target (and optional token) as JSON from standard input",
|
|
195
|
+
)
|
|
196
|
+
_base(c_probe)
|
|
197
|
+
c_probe.add_argument(
|
|
198
|
+
"--facts",
|
|
199
|
+
type=Path,
|
|
200
|
+
metavar="FILE",
|
|
201
|
+
help="price variants against saved host facts (probe JSON) instead of probing; read-only",
|
|
202
|
+
)
|
|
203
|
+
c_probe.add_argument("--json", action="store_true", help="accepted; the output is JSON")
|
|
204
|
+
cli_help.document(
|
|
205
|
+
c_probe,
|
|
206
|
+
"Inspect a Hugging Face or ModelScope URL or owner/repo shorthand without downloading "
|
|
207
|
+
"weights. Lists GGUF variants, runs a bounded Range header read for memory pricing, and "
|
|
208
|
+
"prints one localmodels.library-custom-probe/v1 document.",
|
|
209
|
+
examples=[("%(prog)s --config-stdin --base-dir /srv/models --json", "")],
|
|
210
|
+
)
|
|
211
|
+
c_download = custom_verbs.add_parser(
|
|
212
|
+
"download",
|
|
213
|
+
help="download a community Hugging Face or ModelScope GGUF model into isolated storage",
|
|
214
|
+
)
|
|
215
|
+
c_download.add_argument(
|
|
216
|
+
"--config-stdin",
|
|
217
|
+
action="store_true",
|
|
218
|
+
required=True,
|
|
219
|
+
help="read custom download spec (and optional token) as JSON from standard input",
|
|
220
|
+
)
|
|
221
|
+
_base(c_download)
|
|
222
|
+
c_download.add_argument("--jsonl", action="store_true", help="accepted; output is JSONL")
|
|
223
|
+
cli_help.document(
|
|
224
|
+
c_download,
|
|
225
|
+
"Download a community GGUF variant into isolated custom storage and leave it idle "
|
|
226
|
+
"(Standby-First) with verification.status='untested'. Emits localmodels.library-event/v1 "
|
|
227
|
+
"JSONL progress and terminal result or error.",
|
|
228
|
+
examples=[("%(prog)s --config-stdin --base-dir /srv/models --jsonl", "")],
|
|
229
|
+
)
|
|
230
|
+
cli_help.document(
|
|
231
|
+
custom,
|
|
232
|
+
"Search, probe, and download community Hugging Face and ModelScope model repositories.",
|
|
233
|
+
examples=[
|
|
234
|
+
("%(prog)s search --config-stdin --json", ""),
|
|
235
|
+
("%(prog)s probe --config-stdin --base-dir /srv/models --json", ""),
|
|
236
|
+
("%(prog)s download --config-stdin --base-dir /srv/models --jsonl", ""),
|
|
237
|
+
],
|
|
238
|
+
)
|
|
127
239
|
cli_help.document(
|
|
128
240
|
parser,
|
|
129
241
|
DESCRIPTION,
|
|
@@ -134,6 +246,66 @@ def add_parser(sub: argparse._SubParsersAction[argparse.ArgumentParser]) -> None
|
|
|
134
246
|
)
|
|
135
247
|
|
|
136
248
|
|
|
249
|
+
def _read_custom_stdin() -> dict[str, object]:
|
|
250
|
+
raw = sys.stdin.read()
|
|
251
|
+
if not raw.strip():
|
|
252
|
+
return {}
|
|
253
|
+
try:
|
|
254
|
+
parsed = json.loads(raw)
|
|
255
|
+
except ValueError as exc:
|
|
256
|
+
raise LibraryError("INVALID_REPO_SPEC", f"invalid JSON on standard input: {exc}") from None
|
|
257
|
+
if not isinstance(parsed, dict):
|
|
258
|
+
raise LibraryError("INVALID_REPO_SPEC", "standard input must be a JSON object")
|
|
259
|
+
return parsed
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
def _custom(args: argparse.Namespace) -> int:
|
|
263
|
+
sub = args.custom_command
|
|
264
|
+
jsonl = sub == "download"
|
|
265
|
+
token: str | None = None
|
|
266
|
+
try:
|
|
267
|
+
payload = _read_custom_stdin()
|
|
268
|
+
raw_token = payload.get("token")
|
|
269
|
+
if isinstance(raw_token, str):
|
|
270
|
+
token = raw_token
|
|
271
|
+
if sub == "search":
|
|
272
|
+
doc: object = custom_probe.search(payload, args.base_dir)
|
|
273
|
+
elif sub == "download":
|
|
274
|
+
row = library_custom.download_custom(payload, args.base_dir)
|
|
275
|
+
emit_final(result_doc(row), jsonl=True)
|
|
276
|
+
return 0
|
|
277
|
+
else:
|
|
278
|
+
facts: HostFacts | None = None
|
|
279
|
+
if args.facts is not None:
|
|
280
|
+
try:
|
|
281
|
+
facts = decode(json.loads(args.facts.read_text(encoding="utf-8")), HostFacts)
|
|
282
|
+
except (OSError, ValueError, TypeError) as exc:
|
|
283
|
+
raise LibraryError(
|
|
284
|
+
"INVALID_REPO_SPEC", f"invalid --facts file {args.facts}: {exc}"
|
|
285
|
+
) from None
|
|
286
|
+
doc = custom_probe.probe(payload, args.base_dir, facts=facts)
|
|
287
|
+
except LibraryError as exc:
|
|
288
|
+
safe = LibraryError(
|
|
289
|
+
exc.code,
|
|
290
|
+
custom_hub.redact_secrets(exc.detail, extra_token=token),
|
|
291
|
+
failed=exc.failed,
|
|
292
|
+
**exc.fields,
|
|
293
|
+
)
|
|
294
|
+
emit_final(error_doc(safe), jsonl=jsonl)
|
|
295
|
+
return safe.exit_code
|
|
296
|
+
except KeyboardInterrupt:
|
|
297
|
+
error = LibraryError("CANCELLED", f"custom {sub} was interrupted")
|
|
298
|
+
emit_final(error_doc(error), jsonl=jsonl)
|
|
299
|
+
return error.exit_code
|
|
300
|
+
except Exception as exc: # noqa: BLE001 - every failure ends in one contract error line
|
|
301
|
+
safe_detail = custom_hub.redact_secrets(str(exc), extra_token=token)
|
|
302
|
+
code = "DOWNLOAD_FAILED" if sub == "download" else "HUB_UNREACHABLE"
|
|
303
|
+
emit_final(error_doc(LibraryError(code, safe_detail)), jsonl=jsonl)
|
|
304
|
+
return EXIT_FAILED
|
|
305
|
+
print(json.dumps(doc, ensure_ascii=False, indent=1))
|
|
306
|
+
return 0
|
|
307
|
+
|
|
308
|
+
|
|
137
309
|
def _status(args: argparse.Namespace) -> int:
|
|
138
310
|
from localmodels import library_convert
|
|
139
311
|
|
|
@@ -155,7 +327,9 @@ def cli(args: argparse.Namespace) -> int:
|
|
|
155
327
|
verb = args.library_command
|
|
156
328
|
if verb == "status":
|
|
157
329
|
return _status(args)
|
|
158
|
-
|
|
330
|
+
if verb == "custom":
|
|
331
|
+
return _custom(args)
|
|
332
|
+
jsonl = verb in ("download", "load", "smoke-test")
|
|
159
333
|
try:
|
|
160
334
|
if verb == "download":
|
|
161
335
|
row = library_jobs.download(
|
|
@@ -165,7 +339,11 @@ def cli(args: argparse.Namespace) -> int:
|
|
|
165
339
|
load=lambda m, b, u: library_serve.load(m, b, u),
|
|
166
340
|
)
|
|
167
341
|
elif verb == "load":
|
|
168
|
-
row = library_serve.load(
|
|
342
|
+
row = library_serve.load(
|
|
343
|
+
args.model, args.base_dir, args.unload, force=args.force, ctx=args.ctx
|
|
344
|
+
)
|
|
345
|
+
elif verb == "smoke-test":
|
|
346
|
+
row = library_smoke.smoke_test(args.model, args.base_dir, ctx=args.ctx)
|
|
169
347
|
elif verb == "unload":
|
|
170
348
|
row = library_serve.unload(args.model, args.base_dir)
|
|
171
349
|
elif verb == "remove":
|