mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8017] [Issue]: Pictures and clips are lost when a local LLM and ComfyUI share one GPU (llama-swap) #7519
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#7519
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 @JamesMowery on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8017
Originally assigned to: @SpicyMarinara on GitHub.
Summary
With one GPU shared between a local LLM and a local image/video backend (for example llama-swap swapping between a llama.cpp model and ComfyUI), pictures and clips wait for minutes and are often lost. A ComfyUI video behind such a swapper can also fail after five minutes, and a selfie whose prompt comes back empty disappears without a word.
Expected behavior
Actual behavior
POST /prompt.Steps to reproduce
Environment
staging)Logs, screenshots, or video
The video failure is Undici's headers timeout (
UND_ERR_HEADERS_TIMEOUT) after five minutes.Additional context
The fix is opt-in (
MARINARA_SHARED_GPU_HOSTS), so setups with separate GPUs or hosted providers are untouched. @SpicyMarinara for visibility.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 23, 2026):
Resolved by #8018, merged into
stagingas507830a8a8b27360d4c4aa6d56438f66037519f7. Verified that the reviewed head6c6705bf1ed2b0ff8091535dd3dccc8b1eac4e13is a parent of the merge and an ancestor of current staging. All 8 required checks passed, the current-head Dottore review isolated no defects, all review threads were resolved, and the current-head owner approval is recorded in the review.The opt-in
MARINARA_SHARED_GPU_HOSTSconfiguration coordinates text/media turns for the listed proxy hosts without holding a global media permit while waiting for the GPU. The ComfyUI request uses the configured video render deadline for both headers and body, and empty/think-only selfie prompts now produce an explicit error. The four relevant regression files passed at the contributor head and in a clean integration fixture with staging's pnpm 12 graph; the integration also passed fullpnpm check. Additional real-route controls verified empty prompts, cancellation, cap enforcement and release of all permits/waiters.This is source and controlled provider-boundary proof, not a claim of a physical llama-swap/GPU session or a real five-minute render. Configure the opt-in hosts for a shared-GPU setup; leave the setting empty for separate GPUs or remote providers. The pending ten-language documentation publication is tracked by #8019 / #8140.
Post-merge Regression Checks, container publication, and CodeQL are still running at the time of closure. No pending check is being reported as passed.
@SpicyMarinara commented on GitHub (Oct 23, 2026):
Post-merge publication is complete at
507830a8a8b27360d4c4aa6d56438f66037519f7: Regression Checks, container publication, and CodeQL all succeeded. Both AMD64 and ARM64 configurations in the staging Docker image identify this exact merge; manifest digestsha256:e63f243f4202e05487a56c5d70cbcf5daebf5543b5b0c25e71798dd1915798f1.The related ten-language configuration documentation is also published through #8140. All 20 raw branch files matched their reviewed bytes and hashes before #8019 was closed.