Skip to content

feat(llama-cpp-rocm10): add llama.cpp ROCm 10 inference (io.github.ggml_org.LlamaCpp.ROCM10) - #1285

Draft
rhgKc2yp wants to merge 1 commit into
flatpark:mainfrom
rhgKc2yp:add/io.github.ggml_org.LlamaCpp.ROCM10
Draft

rhgKc2yp wants to merge 1 commit into
flatpark:mainfrom
rhgKc2yp:add/io.github.ggml_org.LlamaCpp.ROCM10

Conversation

@rhgKc2yp

@rhgKc2yp rhgKc2yp commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What

Add io.github.ggml_org.LlamaCpp.ROCM10, the community package of llama.cpp's official Linux x86_64 ROCm 10.0 release. It provides local LLM inference, the server's HTTP API and browser chat, plus llama, llama-cli, llama-bench and llama-quantize commands.

Packaging

Pins upstream's [b12359 ROCm 10.0 release](https://github.com/ggml-org/llama.cpp/releases/tag/b12359) on Freedesktop 26.08, with checksum-verified vendor binaries and official AMD runtime components matching upstream CI. All binaries remain unchanged; no compilation or Python installation is required.

The Adapted package includes AMD library paths, a launcher defaulting to 127.0.0.1:8082, and a private persistent model cache. The resolver tracks upstream releases while keeping ROCm dependencies separately pinned. Major ROCm upgrades require packaging changes.

The full install covers all upstream GPU targets (~6.9 GB download). A supported AMD GPU and KFD-enabled kernel driver are required, but no host ROCm toolchain is needed.

Sandbox

  • Network access for model downloads and the local API.
  • --device=all for KFD and GPU access; its broad permissions require maintainer review.
  • Optional read-only access to host model directories.
  • No general host filesystem, command, display or audio access.

Tested

  • All downloads passed checksum, size and archive integrity checks.
  • Offline runtime verification, packaging audits and all repository tests passed.
  • Package built and installed successfully from a signed local repository, though installation required substantial memory and disk space.
  • HIP dependencies resolved entirely inside the sandbox; GPU execution was unavailable because the test host lacked KFD.
  • CPU inference, offline model caching, WebUI serving and OpenAI-compatible API requests passed.
  • Host integration remained unchanged, with no unexpected session-bus activity. Test resources were retained and the server stopped.

Unverified

AMD GPU offload/inference remain pending. There is no native GUI window, tray or media integration to measure. Another tester must provide AMD device/driver details and logs proving HIP layer offload and successful inference; the listing remains held until that is confirmed. A first-run profile was exercised in the initial smoke test; the final install was tested with the retained private model cache.

Test GPU detection and inference

Record the GPU model/GFX target, kernel, driver, Flatpak version, and the commands and logs below. An empty device list or CPU-only inference does not pass.

flatpak run io.github.ggml_org.LlamaCpp.ROCM10 --list-devices
flatpak run io.github.ggml_org.LlamaCpp.ROCM10 \
  -hf bartowski/SmolLM2-135M-Instruct-GGUF:Q4_K_M \
  -ngl 99 -c 2048 --log-verbosity 3 2>&1 | tee llama-rocm10-gpu.log

In another terminal:

curl --fail http://127.0.0.1:8082/health
curl --fail http://127.0.0.1:8082/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"messages":[{"role":"user","content":"What is the capital of France?"}],"max_tokens":32,"temperature":0}'

Confirm the server log identifies the AMD device, loads the HIP backend without missing libraries or kernels, and reports layers offloaded to the GPU. Generate a response through the API and send a message through browser chat at http://127.0.0.1:8082. Attach the log and a screenshot of the resulting chat; no private data.

Stop it with flatpak kill io.github.ggml_org.LlamaCpp.ROCM10. Restart with --offline and the same -hf, -ngl and context arguments, and confirm the cached model still generates through the GPU. Check that browser chat history survives reopening. Check a fresh first run and compare the home directory, autostart entries and desktop entries before and after; only app-private data should be created.

Test the desktop entry in your terminal environment, plus the CLI:

flatpak run --command=llama-cli io.github.ggml_org.LlamaCpp.ROCM10 \
  -hf bartowski/SmolLM2-135M-Instruct-GGUF:Q4_K_M \
  -ngl 99 -p 'Say hello' -n 32 --single-turn
flatpak kill io.github.ggml_org.LlamaCpp.ROCM10

Report exactly what passed or failed. Hold publication if GPU offload, kernel loading, inference, persistence or startup fails. Other GPU architectures remain untested unless additional testers cover them.

To use an existing model directory, grant only that directory:

flatpak override --user --filesystem=/path/to/models:ro io.github.ggml_org.LlamaCpp.ROCM10
flatpak run io.github.ggml_org.LlamaCpp.ROCM10 -m /path/to/models/model.gguf -ngl 99
# Undo optional overrides:
flatpak override --user --reset io.github.ggml_org.LlamaCpp.ROCM10

@jing2uo jing2uo added the needs-testers Needs someone with specific hardware or a setup we don't have label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Test this PR

A test repository with the apps this PR changes, built from 884d48e in this run.

App x86_64 aarch64
io.github.ggml_org.LlamaCpp.ROCM10 yes no

Install:

flatpak install --user https://test.flatpark.org/pr/1285/io.github.ggml_org.LlamaCpp.ROCM10.flatpakref

Already have it from FlatPark? Switch to the test build:

flatpak remote-add --user --if-not-exists flatpark-pr1285 https://test.flatpark.org/pr/1285/flatpark-pr1285.flatpakrepo
flatpak install --user --reinstall flatpark-pr1285 io.github.ggml_org.LlamaCpp.ROCM10

To go back to the released build (for a new app, flatpak uninstall --user <id> instead):

flatpak install --user --reinstall flatpark io.github.ggml_org.LlamaCpp.ROCM10
flatpak remote-delete --user flatpark-pr1285

Drop --user to install system-wide. The repository is signed with the FlatPark testing key (7858 FD7D D9F5 27EC 0234 2A9A 7630 ADC3 5A94 2414), not the release key. It is withdrawn when this PR closes or loses the needs-testers label. This comment is updated on every push.

@jing2uo

jing2uo commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the detailed testing notes!

A small process note for future PRs: when a PR needs hardware testing, the needs-testers label is all that's needed. It already marks the PR as waiting on testers and keeps the test repository above published. There's no need to add a [Testing] prefix to the title or a "do not merge until…" line to the description. The Unverified section is still the right place to say what's left to confirm (here, AMD GPU offload/inference).

Nothing needs to change on this PR. It's fine as it is. We'll keep it open until an AMD tester confirms.

@rhgKc2yp rhgKc2yp changed the title [Testing] feat(llama-cpp-rocm10): add llama.cpp ROCm 10 inference (io.github.ggml_org.LlamaCpp.ROCM10) feat(llama-cpp-rocm10): add llama.cpp ROCm 10 inference (io.github.ggml_org.LlamaCpp.ROCM10) Nov 17, 2026

This branch was successfully deployed

1 active deployment
testing — 884d48e6 Deployed Nov 16, 2026 by jing2uo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-testers Needs someone with specific hardware or a setup we don't have

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants