mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #106] [MERGED] fix(sidecar): Replace native llama addon rebuilds with downloadable llama-server runtime #4469
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#4469
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/106
Author: @ghost
Created: 4/19/2026
Status: ✅ Merged
Merged: 4/19/2026
Merged by: @SpicyMarinara
Base:
main← Head:fix/sidecar-model-gguf📝 Commits (4)
a694926Implement llama-server sidecar runtime099ffc5Improve sidecar setup modal flowfc3e468Fix sidecar installed state in connections panel044f9f8Fix sidecar install state in download modal📊 Changes
19 files changed (+2249 additions, -1962 deletions)
View changed files
📝
package.json(+1 -3)📝
packages/client/src/components/game/GameSetupWizard.tsx(+1 -1)📝
packages/client/src/components/modals/ModelDownloadModal.tsx(+313 -180)📝
packages/client/src/components/panels/ConnectionsPanel.tsx(+12 -51)📝
packages/client/src/stores/sidecar.store.ts(+224 -93)📝
packages/server/package.json(+0 -1)📝
packages/server/src/app.ts(+6 -0)📝
packages/server/src/routes/generate.routes.ts(+2 -1)📝
packages/server/src/routes/sidecar.routes.ts(+107 -68)➕
packages/server/src/services/sidecar/sidecar-download.ts(+165 -0)📝
packages/server/src/services/sidecar/sidecar-inference.service.ts(+202 -273)📝
packages/server/src/services/sidecar/sidecar-model.service.ts(+335 -194)➕
packages/server/src/services/sidecar/sidecar-process.service.ts(+313 -0)➕
packages/server/src/services/sidecar/sidecar-runtime.service.ts(+526 -0)📝
packages/shared/src/types/sidecar.ts(+42 -24)📝
pnpm-lock.yaml(+0 -951)📝
start-termux.sh(+0 -39)📝
start.bat(+0 -44)📝
start.sh(+0 -39)📄 Description
Summary
This replaces the old
node-llama-cppsidecar path with a downloadedllama-serverruntime and keeps the local-model flow working without native compilation on end-user machines.It also adds support for using curated Gemma presets or custom GGUFs from HuggingFace, plus a clearer setup flow in the download modal.
Why
The previous sidecar flow depended on rebuilding native llama bindings locally, which was fragile across user machines and especially painful on Windows and other environments without the right toolchain.
This change moves Marinara to the official upstream
llama.cppserver binaries instead:node-llama-cppdependencyWhat changed
Server
llama-serversubprocessllama.cpprelease assetsmodelPathClient
Launcher / packaging
start.batstart.shstart-termux.shnode-llama-cppfrom package manifests and lockfilePlatform/runtime support
This runtime-selection flow now supports official download/install paths for:
With runtime matching/fallback for available upstream variants such as:
User impact
Users should now be able to enable the local sidecar without needing to compile llama.cpp locally.
They can also:
Validation
Ran:
pnpm --filter @marinara-engine/shared buildpnpm --filter @marinara-engine/server buildpnpm --filter @marinara-engine/client buildManual:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.