mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1010] [MERGED] Fix llama sidecar context slot sizing #4880
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#4880
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/1010
Author: @cha1latte
Created: 5/19/2026
Status: ✅ Merged
Merged: 5/19/2026
Merged by: @cha1latte
Base:
staging← Head:fix/issue-993-llama-ctx-size📝 Commits (1)
14fcd0dFix llama sidecar context slot sizing📊 Changes
1 file changed (+6 additions, -2 deletions)
View changed files
📝
packages/server/src/services/sidecar/sidecar-launch-plan.ts(+6 -2)📄 Description
Linked issue
Closes #993
Why this change
--parallel 2 --ctx-size 8192, which gives each llama-server slot only 4096 tokens. Tracker batches configured for an 8192-token local sidecar could still exceed the effective slot context and fail with 400 context-size errors.What changed
contextSizesetting as the per-request/slot budget.--ctx-sizetotal by the configured parallel slot count so two slots each receive the requested context budget.--paralleland--ctx-sizestay in sync.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/server exec tsx ../../scratch/issue-993-ctx-size-repro.ts beforereproduced the bug before the fix:--parallel 2 --ctx-size 8192produced an effective per-slot context of 4096.pnpm --filter @marinara-engine/server exec tsx ../../scratch/issue-993-ctx-size-repro.ts afterpassed after the fix:--parallel 2 --ctx-size 16384produced an effective per-slot context of 8192.gpuLayers=0.pnpm checkpassed locally.n_ctx = 8192. This needs the affected runtime/model/GPU setup; the launch-argument path is covered by the scratch proof above.Docs and release impact
No docs, schema, dependency, or release/version files changed.
UI evidence (if applicable)
N/A - server-side launch-argument fix; no UI surface changed.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.