Repository navigation
Closed
Closed
Copy link
Labels
area: inferenceInference routing, serving, model selection, or outputsarea: local-modelsLocal model providers, downloads, launch, or connectivityarea: providersInference provider integrations and provider behaviorfeaturePR adds or expands user-visible functionalityplatform: dgx-sparkAffects DGX Spark hardware or workflows
Description
Summary
Begin delivery slice 6 from accepted epic #8144 by binding the exact verified llama.cpp GGUF from #8279 into the provider-neutral host-local lifecycle transaction.
This slice is declarative and dormant. It consumes the repository-owned YAML-compiled llama.cpp launch contract and the typed verified-local artifact, launches through a Docker-owned transaction, and persists only immutable serving authority. It does not activate managed llama.cpp onboarding or claim product support.
Dependencies
- [Managed inference] Reuse Hugging Face acquisition for verified llama.cpp GGUF input #8279 and PR feat(inference): verify acquired llama.cpp GGUF #8387 provide standard Hugging Face cache acquisition plus the verified-local GGUF artifact.
- PR feat(inference): bind llama.cpp durable lifecycle #8418 is the clean publishable implementation for this issue and folds in only the minimum provider-neutral engine authority, receipt, and journal contracts required by the dormant Docker llama.cpp lifecycle.
- PRs feat(runtime): persist engine lifecycle and state mutation contract #8058 and feat(runtime): add durable host-local inference lifecycle #8069 are not dependencies of this slice; their broader provider stack remains separate.
- Discussion RFC 0001: Managed inference serving specifications #7636 and epic [Epic] Support llama.cpp as a managed local inference server #8144 are accepted.
The implementation is reconstructed directly on current main and carries no unrelated provider-stack history.
Observable outcome
- A dormant Docker lifecycle adapter accepts only the YAML-compiled llama.cpp launch contract and typed verified-local artifact.
- The adapter revalidates the artifact filesystem identity immediately before the single provider-owned container launch.
- The bounded command comes from the existing llama.cpp materializer; there is no arbitrary command or shell surface.
- Durable authority records the provider, exact runtime, endpoint, image digest, serving plan or recipe digest, model digest and size, and GPU authority.
- Host cache paths, filesystem identity, Hugging Face credentials, API-key material, and GGUF bytes never enter the durable receipt or sandbox state.
- Restart and recovery re-resolve or reacquire through the existing shared Hugging Face mechanism and reverify the same declarative model identity.
- Destroy and uninstall remove only the exact owned runtime and never delete or copy the shared Hugging Face cache entry.
- Docker production registration, onboarding, route mutation, and support activation remain unchanged.
Acceptance criteria
-
llama-cppis represented as a managed host-local service without changing the existing Ollama, NIM, or vLLM receipt behavior. - The adapter rejects provider or engine authority drift before mutation.
- File replacement, same-path identity drift, digest mismatch, and size mismatch fail before container launch.
- Exactly one provider-owned launch capture consumes the allowlisted materialized argv.
- The persisted receipt round-trips canonically and contains no host path, filesystem identity, credential, token, or GGUF bytes.
- Restart and recovery tests prove fresh verified-artifact binding with no second model cache.
- Cleanup tests prove the shared Hugging Face cache file is retained.
- Existing Docker, vLLM, NIM, Ollama, generic endpoint, and dormant qualification behavior is unchanged.
- Focused tests, typecheck, security review, documentation-writer review, and required exact-head CI pass.
Non-goals
- No custom downloader, private model cache, duplicated GGUF, arbitrary URL, runtime model download, or egress.
- No onboarding menu, environment-variable selection, provider registration, route mutation, status UI, or support claim.
- No Podman activation; Docker is the first managed llama.cpp runtime.
- No full restart, rebuild, restore, clone, or uninstall product wiring beyond the dormant reusable transaction contract in this slice.
Part of #8144 and completes the remaining lifecycle handoff in #8279.
Metadata
Metadata
Assignees
Labels
area: inferenceInference routing, serving, model selection, or outputsarea: local-modelsLocal model providers, downloads, launch, or connectivityarea: providersInference provider integrations and provider behaviorfeaturePR adds or expands user-visible functionalityplatform: dgx-sparkAffects DGX Spark hardware or workflows
Activity
ericksoa commentedon Aug 5, 2026
Implementation status (2026-08-05):
Publication is intentionally held until the required lifecycle predecessor #8069 lands. That PR is still stacked behind #8261, #8058, and #8061. I am not opening a misleading PR that would include the predecessor stack and main-integration history in this slice diff.
Activation warning: this slice remains dormant. Before a later PR registers Docker llama.cpp or persists its receipts, receipt persistence and journal finalization must become one crash-safe operation or gain complete boundary reconciliation.
ericksoa commentedon Aug 6, 2026
The next bounded lifecycle sub-slice is #8414: make receipt publication and create-journal finalization crash-recoverable through a durable receipt-publication phase plus exact idempotent replay. It remains dormant and does not broaden #8395 into onboarding or production registration.
feat(inference): bind llama.cpp durable lifecycle (#8418)