Repository navigation
fix(inference): ai/inference/* project canonical serving state — excise dead Unsloth :8888 (task #87) - #1841
Merged
Conversation
…se dead Unsloth :8888 (task #87) VERIFIED LIVE: `cu ai/inference/status` / `models` were routing through `inference/unsloth_control` (hardcoded DEFAULT_HOST http://127.0.0.1:8888 — the retired Unsloth gateway), so they returned "inference gateway unreachable" while the real engine (llama-server :58057, qwen2.5-coder-14b + Asha's coder-reflex LoRA) was serving fine. The hot `ai/generate` path already routed correctly; only these management verbs were stranded on the corpse. Architecturally correct, not a URL swap — these commands are PROJECTIONS of the one authority, never a private transport: - status/models read `llama_server::current_serving()` (the ServingSnapshot the serving daemon publishes on its global watch) + `model_registry::catalog::models()` for the loadable catalog (the registry OWNS on-disk discovery). InferenceStatusView replaces the Unsloth-typed InferenceStatus; ModelsResult.available is now the id list from the registry. - load/unload delegate to the serving daemon's `serving/pin`/`serving/unpin` — the ONE single-resident model-swap authority (fit-gated respawn), fail-loud naming it instead of mutating a private gateway. - catalog.rs's llama-server ProviderSpec base_url now uses llama_server::DEFAULT_BASE_URL (owned here), not unsloth_control::DEFAULT_HOST. Proof after `cu reboot`: status → activeModel qwen2.5-coder-14b, baseUrl :58057/v1, ready true, Asha LoRA in adapters, ctx 11264; models → real active + catalog, no :8888 error. 9 unit tests green (incl. a no-network projection test + a delegates-to-serving/pin test). Unsloth is not part of this system — we own the models + genome. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VERIFIED LIVE:
cu ai/inference/status/modelswere routing throughinference/unsloth_control(hardcoded DEFAULT_HOST http://127.0.0.1:8888 — the retiredUnsloth gateway), so they returned "inference gateway unreachable" while the real engine
(llama-server :58057, qwen2.5-coder-14b + Asha's coder-reflex LoRA) was serving fine. The
hot
ai/generatepath already routed correctly; only these management verbs were strandedon the corpse.
Architecturally correct, not a URL swap — these commands are PROJECTIONS of the one
authority, never a private transport:
llama_server::current_serving()(the ServingSnapshot the servingdaemon publishes on its global watch) +
model_registry::catalog::models()for theloadable catalog (the registry OWNS on-disk discovery). InferenceStatusView replaces the
Unsloth-typed InferenceStatus; ModelsResult.available is now the id list from the registry.
serving/pin/serving/unpin— the ONEsingle-resident model-swap authority (fit-gated respawn), fail-loud naming it instead of
mutating a private gateway.
(owned here), not unsloth_control::DEFAULT_HOST.
Proof after
cu reboot: status → activeModel qwen2.5-coder-14b, baseUrl :58057/v1,ready true, Asha LoRA in adapters, ctx 11264; models → real active + catalog, no :8888
error. 9 unit tests green (incl. a no-network projection test + a delegates-to-serving/pin
test). Unsloth is not part of this system — we own the models + genome.
Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo