Skip to content

fix(inference): ai/inference/* project canonical serving state — excise dead Unsloth :8888 (task #87) - #1841

Merged
joelteply merged 1 commit into
canaryfrom
fix/ai-inference-verbs-off-dead-unsloth-8888
Jul 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/ai-inference-verbs-off-dead-unsloth-8888

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

…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
@joelteply
joelteply merged commit 9942f41 into canary Jul 6, 2026
@joelteply
joelteply deleted the fix/ai-inference-verbs-off-dead-unsloth-8888 branch July 6, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant