[GH-ISSUE #641] [Issue]: #301

Closed
opened 2026-10-20 17:27:26 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Talref on GitHub (May 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/641

Originally assigned to: @SpicyMarinara on GitHub.

Summary

CUDA backend detection succeeds, but the llama.cpp sidecar/runtime never installs or starts inside Docker.

Marinara reports:

Marinara could not find an NVIDIA GPU runtime for linux/x64

even though CUDA and NVIDIA runtime are working correctly inside the container.

Expected behavior

The CUDA llama.cpp backend/runtime should download/install automatically and start successfully.

The sidecar-runtime directory should contain the runtime binaries/logs.

Actual behavior

  • GPU detection works (Backend hints: CUDA Vulkan)
  • nvidia-smi works both on the host and inside the container
  • but data/sidecar-runtime remains completely empty
  • no server.log is created
  • CUDA backend fails to start

CPU/Vulkan backends work correctly.

Steps to reproduce

  1. Run Marinara Engine via Docker with NVIDIA runtime enabled.
  2. Configure/setup local inference with CUDA backend.
  3. Observe runtime error:
Marinara could not find an NVIDIA GPU runtime for linux/x64
  1. Inspect data/sidecar-runtime and observe it remains empty.

Environment

  • Marinara Engine version: latest GHCR image at time of reporting
  • Install type: docker
  • OS + version: Arch Linux
  • Browser or app shell: Firefox / Chromium
  • GPU: NVIDIA GTX 1660 Ti

Logs, screenshots, or video

Docker container can access the GPU successfully:

docker exec -it marinara nvidia-smi

works correctly.

Also verified:

docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.4.1-base-ubuntu22.04 nvidia-smi

works correctly.

data/sidecar-runtime remains empty after startup.

Additional context

This appears to be separate from NVIDIA Container Toolkit configuration.

GPU passthrough and CUDA access are functioning correctly in Docker containers generally.

The issue seems related to Marinara's sidecar/runtime bootstrap or runtime download logic.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Talref on GitHub (May 10, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/641 Originally assigned to: @SpicyMarinara on GitHub. ## Summary CUDA backend detection succeeds, but the llama.cpp sidecar/runtime never installs or starts inside Docker. Marinara reports: ```text Marinara could not find an NVIDIA GPU runtime for linux/x64 ``` even though CUDA and NVIDIA runtime are working correctly inside the container. ## Expected behavior The CUDA llama.cpp backend/runtime should download/install automatically and start successfully. The `sidecar-runtime` directory should contain the runtime binaries/logs. ## Actual behavior * GPU detection works (`Backend hints: CUDA Vulkan`) * `nvidia-smi` works both on the host and inside the container * but `data/sidecar-runtime` remains completely empty * no `server.log` is created * CUDA backend fails to start CPU/Vulkan backends work correctly. ## Steps to reproduce 1. Run Marinara Engine via Docker with NVIDIA runtime enabled. 2. Configure/setup local inference with CUDA backend. 3. Observe runtime error: ```text Marinara could not find an NVIDIA GPU runtime for linux/x64 ``` 4. Inspect `data/sidecar-runtime` and observe it remains empty. ## Environment * Marinara Engine version: latest GHCR image at time of reporting * Install type: docker * OS + version: Arch Linux * Browser or app shell: Firefox / Chromium * GPU: NVIDIA GTX 1660 Ti ## Logs, screenshots, or video Docker container can access the GPU successfully: ```bash docker exec -it marinara nvidia-smi ``` works correctly. Also verified: ```bash docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.4.1-base-ubuntu22.04 nvidia-smi ``` works correctly. `data/sidecar-runtime` remains empty after startup. ## Additional context This appears to be separate from NVIDIA Container Toolkit configuration. GPU passthrough and CUDA access are functioning correctly in Docker containers generally. The issue seems related to Marinara's sidecar/runtime bootstrap or runtime download logic. ## Template check * [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:27:26 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (May 10, 2026):

Fixed on main in commit 8d16c06.

What changed:

  • Linux x64 NVIDIA runtime selection now still tries a CUDA asset first if upstream ever publishes one, but falls back to the official Vulkan runtime and then CPU instead of failing with “could not find an NVIDIA GPU runtime.”
  • Stored Vulkan/CPU fallback installs now satisfy the Linux NVIDIA runtime preference so the modal/status path does not immediately try to reinstall the impossible CUDA target.
  • The local model modal now labels Linux NVIDIA as a Vulkan fallback and explains that a custom CUDA build should be used through System llama-server.
  • Added focused runtime-selection coverage for the Linux NVIDIA fallback order and compatibility checks.

Validation run:

  • pnpm exec prettier --write ...
  • pnpm --filter @marinara-engine/server exec tsx --import ./test/setup-env.ts --test test/sidecar-runtime-selection.test.ts
  • pnpm impeccable:check
  • pnpm lint
  • pnpm build
<!-- gh-comment-id:4415663779 --> @SpicyMarinara commented on GitHub (May 10, 2026): Fixed on `main` in commit `8d16c06`. What changed: - Linux x64 NVIDIA runtime selection now still tries a CUDA asset first if upstream ever publishes one, but falls back to the official Vulkan runtime and then CPU instead of failing with “could not find an NVIDIA GPU runtime.” - Stored Vulkan/CPU fallback installs now satisfy the Linux NVIDIA runtime preference so the modal/status path does not immediately try to reinstall the impossible CUDA target. - The local model modal now labels Linux NVIDIA as a Vulkan fallback and explains that a custom CUDA build should be used through System llama-server. - Added focused runtime-selection coverage for the Linux NVIDIA fallback order and compatibility checks. Validation run: - `pnpm exec prettier --write ...` - `pnpm --filter @marinara-engine/server exec tsx --import ./test/setup-env.ts --test test/sidecar-runtime-selection.test.ts` - `pnpm impeccable:check` - `pnpm lint` - `pnpm build`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#301
No description provided.