mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6702] [MERGED] feat(sidecar): load existing GGUF files and control KV cache #7292
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7292
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6702
Author: @SpicyMarinara
Created: 9/26/2026
Status: ✅ Merged
Merged: 9/26/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/local-gguf-6675📝 Commits (5)
fd5b70afeat(sidecar): configure existing GGUF files and KV cache typesf87ce38feat(sidecar): select local GGUFs and report runtime allocations49beffeMerge remote-tracking branch 'origin/staging' into codex/local-gguf-66754974948Merge remote-tracking branch 'origin/staging' into codex/local-gguf-6675b5f6fdetest(sidecar): prove existing local model rate limit📊 Changes
13 files changed (+707 additions, -29 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)➕
e2e/sidecar-local-gguf.e2e.ts(+93 -0)📝
packages/client/src/components/modals/ModelDownloadModal.tsx(+120 -15)📝
packages/client/src/localization/locales/en.json(+17 -2)📝
packages/client/src/stores/sidecar.store.ts(+5 -0)📝
packages/server/src/routes/sidecar.routes.ts(+52 -4)➕
packages/server/src/services/sidecar/sidecar-gpu-memory.ts(+31 -0)📝
packages/server/src/services/sidecar/sidecar-launch-plan.ts(+5 -0)📝
packages/server/src/services/sidecar/sidecar-model-files.ts(+28 -1)📝
packages/server/src/services/sidecar/sidecar-model.service.ts(+85 -7)📝
packages/server/src/services/sidecar/sidecar-process.service.ts(+11 -0)📝
packages/shared/src/types/sidecar.ts(+14 -0)➕
scripts/regressions/sidecar-local-gguf.regression.ts(+245 -0)📄 Description
Linked issue
Closes #6675
Why this change
An existing GGUF should be usable without downloading another copy, and local-model users need control over KV-cache memory and a useful view of loaded allocations.
What changed
Validation
Passed
pnpm check, the agent-runtime regression, the focused local-GGUF regression, seven UI smoke cases, and desktop Chromium/mobile Chromium/mobile WebKit coverage. Rechecked server types after review fixes and the desktop browser after the final draft-reset fix; inspected light desktop and dark mobile screenshots.The focused regression covers persisted selection across restart, invalid and symlinked projector paths, preserving borrowed files, failed config persistence, download collisions and concurrent selection, recovery when a file disappears during shutdown, unchanged f16 arguments, quantized launch flags, and CPU/GPU/Metal allocation parsing. Browser proof covers mocked runtime status, KV selection, late-loaded paths, preserving edited drafts, failed selection and successful selection.
Local CodeRabbit completed three reviews: four initial findings, three follow-up findings, and one final draft-reset finding. All eight were addressed and validated; none were dismissed.
The new route also passed a regression through the existing privileged-sidecar limiter: request 21 receives HTTP 429. CodeQL alert 568 was dismissed as a false positive because the global hook already enforces this rule before authorization.
No real GPU/model inference or live model download was performed. The displayed figures estimate allocations reported by llama.cpp; they are not free-VRAM measurements and exclude driver overhead/other applications.
Docs and release impact
Unreleased changelog entry and localized in-app guidance included. No version bump or docs-tree changes.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.