mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #993] [Issue]: b9222 llama.cpp build ignores --ctx-size — all models clamped to 4096 regardless of flags #482
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#482
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?
Originally created by @halleh1318 on GitHub (May 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/993
Originally assigned to: @cha1latte on GitHub.
Title: b9222 llama.cpp build ignores
--ctx-size— all models clamped to 4096 regardless of flagsBuild:
b9222-win-x64-cuda(bundled with Marinara Engine)GPU: NVIDIA GeForce RTX 2070 SUPER (8GB VRAM)
CPU: AMD Ryzen 5 3600X
Date: 19 May 2026
Summary:
The sidecar runtime's llama-server.exe consistently clamps every model to
n_ctx=4096, completely ignoring--ctx-size 8192and all rope scaling flags. This causesOpenAI API error 400: request exceeds the available context size (4096 tokens)on any agent request over 4k tokens — which is basically all tracker agent batches.Models tested (all exhibit identical behavior):
gemma-4-E2B-it-Q8_0.gguf→ slots initialized atn_ctx = 4096gemma-4-E2B-it-Q4_K_M.gguf→ same clampLlama-3.2-3B-Instruct-Q8_0.gguf→ same clampRelevant server log for every model:
Attempted fixes (none worked):
--ctx-size 8192in launch command — ignored--rope-scaling yarnappended to launch — ignored--rope-scaling linear— ignoredcontextSizeset to 8192 on both connection and sidecar config — confirmed correctExpected behavior:
--ctx-size 8192should result in slots withn_ctx = 8192, allowing agent requests up to ~8k tokens without rejection.Actual behavior:
All slots hard-clamped to
n_ctx = 4096. Any request exceeding 4096 tokens is immediately rejected with error 400.Impact:
Tracker agents (World State, Character Tracker, Persona Stats, Quest, etc.) cannot function with the local sidecar model. This forces users to either burn main model tokens on tracker work or abandon local inference entirely. Currently a blocker for the "use local model for all tracker agents" feature.