Skip to content

feat(windows): native HIP backend for AMD Radeon music generation - #242

Closed
AIwork4me wants to merge 32 commits into
timoncool:mainfrom
AIwork4me:fix/native-hip-pr-readiness
Closed

AIwork4me wants to merge 32 commits into
timoncool:mainfrom
AIwork4me:fix/native-hip-pr-readiness

Conversation

@AIwork4me

@AIwork4me AIwork4me commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

New no-GPU watchdog improvement (2026-11-15): the engine monitor previously retried startup at roughly 2-second intervals even after persistent Code Integrity or missing-DLL errors (25 attempts observed). A small Rust-only engine_start_backoff guard now spaces automatic retries (5/15/30/60 seconds) and pauses after five failures for unchanged settings/model selection; health or configuration changes reset the guard, manual restart remains available, explicit HIP never falls back. Pure Rust tests were added. Important: full cargo/Windows CI has not yet run at the new Rust HEAD 4a8186eb, so the prior green run at dab746e1 must not be reused as validation of this change. Keep Draft until exact-head CI passes and the physical GUI generation remains a separate BLOCKED gate.

Windows signing and runtime distribution status (2026-11-15)

On the RX 7900 XTX Windows test host, VerifiedAndReputablePolicyState=1 means SAC Enforce (not Evaluation): the exact enforcing VerifiedAndReputableDesktop policy generated 219 Code Integrity 3077 blocks across four unsigned first-party engine PEs. The latest Studio launch failure is external application-control enforcement, not a new HIP execution PASS. No CA-signed first-party build has yet been accepted/tested. EV certificates do not automatically bypass SmartScreen; OV and EV both need reputation (Microsoft). Release remains NO-GO pending trusted signing, clean Windows installation, AMD driver-provided HIP runtime deployment decision, upstream dependency pins and final physical inference/GUI acceptance. The watchdog was observed auto-restarting a persistent HIP startup failure 25 times and its retry policy merits a separate bounded/no-GPU regression; zero fallback was observed but a restart storm is not desired behavior.

What changes / why it matters

The Studio's AMD story on Windows today is Vulkan. This PR adds a HIP (AMD) compute backend as an explicit opt-in — the engine spawns with --device ROCm0, a GGML HIP backend ships beside it with a verified app-local ROCm runtime closure, and the Studio advertises HIP only when that engine actually exists. Choosing HIP explicitly never falls back; failures surface as errors a normal user can read. Nothing about the default CUDA/Vulkan/CPU packages changes.

Diffstat (current fork HEAD 4a8186eb): 15 files, +1,059/−35 — the HIP hardware detection & spawn path (crates/music-server/src/hardware.rs +78, lib.rs, listen.rs, yue_server.rs), Settings UI + five-locale i18n (app/components/EngineSettings.tsx, app/i18n/yue2.ts + tests), release engineering (scripts/build-release.ps1, build-yue-runtime.ps1 — opt-in -RuntimeBackend hip -HipArch <targets> flavor), release safety (scripts/sign-hip-engine.ps1 Authenticode helper, scripts/audit-hip-release.ps1 signed-release audit, scripts/test-hip-installer.ps1 packaged-build acceptance), one CI workflow addition, and docs/windows-native-hip-gfx1100.md (architecture matrix + packaging design).

CI clarification: the earlier product HEAD dab746e1 passed fork CI (run 43601262629). The upstream PR may display mergeable_state=unstable because no upstream PR-head checks are configured; this is not a merge-conflict result, and fork CI is not an upstream branch protection waiver. The pre-watchdog HEAD GUI has proven HIP selection, persistence and explicit fail-closed; end-to-end generation/play/export remains BLOCKED by the latest engine executable's Windows execution-policy denial. The earlier successful full GUI run is attributed to d2af77bb with the df4b193 engine, not this exact build.

Engine pin: engines/yue2-cpp-source.json stays at the public 46a0c91 until PR B (timoncool/yue2.cpp#1) merges, then moves to the merged engine SHA — the release pipeline's HIP flavor builds from that pin, and before the move it fails closed (the pinned engine predates buildhip.cmd; the script says so instead of guessing flags).

Commit groups (28)

  • Feature: feat(windows): native HIP music inference for Radeon gfx1100; i18n fixes in five locales with a test guarding cross-language drift; app-local ROCm runtime detection without requiring an SDK; explicit compile+staging of the GGML HIP backend; missing-bundle error copy that never suggests a silent fallback and stays architecture-neutral.
  • Release engineering: the HIP engine comes from the engine's own buildhip.cmd (one source of truth; -HipArch = HIP_ARCHS, single target or comma list, target list stamped into runtime.json); flavor-tagged HIP artifacts (-hip-<targets> installer/zip names) and a tag-named updater manifest (latest-hip-<targets>.json) so neither flavor can overwrite or cross-serve the other; HIP updater endpoint isolation with explicit signing order (update signatures never invalidated); opt-in Authenticode signing helper covering the engine, GGML DLLs and the bundled first-party VST host.
  • Release safety tests (offline): package/updater/signature acceptance gate; unsigned HIP release layout acceptance + bad-arch rejection; PowerShell syntax validation for signing/updater/installer scripts in CI.
  • Docs: architecture support matrix (verified / build-verified / experimental per family), universal packaging design comparison, AMD driver-runtime vs app-bundle deployment policy, gfx1100 physical evidence vs RDNA3-wide build targets.

Architecture scope

gfx1100 is the physically verified reference, not the boundary. The Studio side carries no architecture logic: detection is a file-layout preflight, the engine validates the real device (it reads gcnArchName from HIP device properties), builds are target-parameterized (-HipArch), and every release artifact is tagged with its target list. Adding a family = build its dist + run the acceptance harness on a real card; no Studio code changes. Matrix with measured evidence: docs/windows-native-hip-gfx1100.md.

Packaging design (evaluated in that doc): one-multi-family-package vs per-family engine packages (chosen) — same Studio app, flavor-tagged bundles, release assets named by card generation so users never see a gfx id. The default Windows package is untouched; the HIP updater manifest is tag-named and cannot cross-serve.

How to reproduce

# 1. engine (after PR B merges, the pin builds it; before that, PR B's
#    branch + GGML override, see PR B):
scripts\build-yue-runtime.ps1 -OutputDirectory <dir> -RuntimeBackend hip -HipArch gfx1100
# 2. package (opt-in flavor; tagged artifacts, tag-named manifest):
scripts\build-release.ps1 -RuntimeBackend hip -HipArch gfx1100
# 3. install, then launch with NO HIP_PATH/ROCM_PATH anywhere,
#    Settings → Compute backend → HIP (AMD), generate a song.
# 4. packaged-build acceptance:
scripts\test-hip-installer.ps1 -Installer <…-hip-gfx1100_x64-setup.exe> -DataRoot <prepared data root>

Tests actually executed

  • CI on the exact HEAD dab746e1: all green (run 43601262629 — windows+linux cargo test --locked, tsc --noEmit, vitest, frontend build). Earlier heads also green (e.g. 43595964231).
  • Unit: the bundle-preflight test covers app-local detection positively and negatively (missing amd_comgr.dll, missing ggml-hip.dll); the i18n guard keeps the five-locale HIP strings in their own languages; release-script negative tests (unsigned layout acceptance, bad-arch rejection) run in CI.
  • Engine acceptance, physical gfx1100 (harness committed in PR B's repo): 30 s song in 12.9 s (real-time speed 2.33x, RTF 0.433), MP3 frame-walk + 24-bit WAV validation, byte-identical seed replay, cancel → regenerate, AR/NAR/VAE on ROCm0, no fallback wording, and the fail-closed negative table (bundle minus ggml-hip.dll, amd_comgr.dll, amdhip64*, the rocBLAS kernel dir; unknown --device ROCm9). Re-run against the df4b193 engine bundle: all green.
  • GUI (physical card), honest head-note: the click-through evidence below was recorded at Studio d2af77bb with the df4b193 HIP engine; commits after d2af77bb are release-engineering scripts, their CI tests and docs — no generation-path code. A final-head GUI run is in progress and will be posted before ready-for-review. Evidence at d2af77bb: the Tauri app launched, HIP (AMD) selected in Settings (persisted across restart), five full songs generated from the Create form (30 s ×3, 130 s, 111 s; in-app engine log shows Self-test on ROCm0: ok and KV/NAR/VAE ROCm0 for every one), progress streamed, songs listed in the Library, a mid-generation Cancel reached the engine and a fresh song generated right after. Playback and export were clicked through on the live app: the transport advanced 0:00 → 0:47, and the Save dialog produced a FLAC bit-identical to the library media file (48 kHz / stereo / 24-bit / 111.00 s, matching the engine's logged duration).

GPU evidence

ggml_cuda_init: found 1 ROCm devices (Total VRAM: 24560 MiB):
  Device 0: AMD Radeon RX 7900 XTX, gfx1100 (0x1100), VMM: no, Wave Size: 32
load_backend: loaded ROCm backend from ...\resources\yue2-cpp\ggml-hip.dll
[Load] KV backend: ROCm0 (CPU threads: 12) · [NAR] ... · [VAE] Backend: ROCm0

Benchmarks

Definitions: RTF = wall ÷ generated duration (lower better); real-time speed = generated ÷ wall (higher better). Engine-level, whole pipeline, Q8_0, physical gfx1100: 30 s EN → 13.0 s (2.31x, RTF 0.433); 60 s ZH → 23.9 s (2.51x, 0.398); 30 s fixed ABC → 11.1 s (2.70x); BF16 30 s → 18.4 s (1.63x). GUI-observed generations fell in the same band (1.8–2.6x). Peak dedicated VRAM 4.6–5.5 GB. No claim is made about HIP vs Vulkan performance (no same-condition A/B was run) and none about Studio overhead (measured jointly, not separately).

Installer status (four states, not interchangeable)

  1. NSIS build: PASS — CI builds the full Tauri NSIS installer with the HIP engine + closure; the release script carries the same flavor for production.
  2. Payload inspection: PASS — installed file set verified from the installer archive (app, engine, ROCm closure, VC runtime).
  3. Extracted application GUI: PASS — the byte-identical extracted payload is what the GUI evidence above ran.
  4. Unsigned NSIS installation: BLOCKED — Smart App Control (Enforce, VerifiedAndReputablePolicyState=1) blocked the unsigned setup binary on the validation machine. Security policy was not changed. Running the installer once on a normal machine (or signing releases — the signing helper and order are in this PR) closes this; test-hip-installer.ps1 reports SAC blocks as BLOCKED, not FAIL.

Compatibility and limitations

  • Advertises HIP only when a complete HIP engine bundle is present (or a dev SDK with a HIP-built engine); no vendor-name or gfx-id sniffing.
  • gfx1100 is the only physically verified family; gfx1101/1102/1103 are build-verified with closure; gfx103x/gfx115x/gfx120x are experimental (no closure in the used dists). Matrix in the HIP doc.
  • kv_q8 remains CUDA-only (same policy as Vulkan).
  • Depends on PR B (engine, timoncool/yue2.cpp#1) and transitively PR A (GGML, timoncool/ggml#1); the production engine pin moves only after PR B merges. Pre-merge validation used the documented fork SHAs as a temporary, never-committed override.
  • Ancillary Studio tools (HOT-Step, MIDI, trainer, stem separator, karaoke, assistant) keep their existing backends; only the yue2 music engine gains native HIP.

Dependencies / order

PR A (timoncool/ggml:fattn-mask-broadcast-0.29) → PR B (timoncool/yue2.cpp:companion, submodule bump) → this PR (engine pin follows).

Reviewer checklist

  • hip_runtime_installed() is a file-layout preflight; device capability still proven by yue-server itself.
  • Explicit HIP without runtime/bundle errors out; Auto alone may skip HIP (documented order CUDA→HIP→Vulkan→CPU).
  • No gfx1100/vendor string sniffing in Rust.
  • Bundled ROCm files limited to the verified closure; Apache-2.0/MIT ROCm terms permit redistribution.
  • Release script refuses a HIP flavor without ggml-hip.dll, tags every artifact, and writes a tag-named manifest.
  • Five-locale strings are each in their own language (guarded by test).

AIwork4me and others added 28 commits November 14, 2026 01:02
ComputeBackend::Hip names the engine's ROCm device (ggml-hip registers
as ROCm), Auto walks CUDA, HIP, Vulkan, the processor - HIP only when a
Windows ROCm runtime is actually installed (HIP_PATH/ROCM_PATH or the
Program Files install carrying amdhip64), never on the vendor name
alone. Chosen outright, HIP is the only device tried and a missing
runtime fails the start with instructions instead of falling back.

build-yue-runtime.ps1 gains a hip backend: hipcc compiles the pinned
yue2.cpp tree (GGML_HIP, runtime-loaded ggml-hip) against an SDK root
in -RocmPath/ROCM_PATH, and the ROCm runtime DLLs the backend imports
(amdhip64, hipblas, rocblas, ...) ship beside yue-server.exe so players
need no SDK. Settings offers the device in five locales; Q8 KV stays a
CUDA-only option until it is measured on HIP.
The hip flavor kept a second, drifting copy of the HIP compile flags:
a bare clang.exe on PATH (TheRock dists keep it under lib\llvm\bin), no
gfx target for hipcc (which then compiles for its own default), no
device-library path for minimal dists, and no GGML_OPENMP=OFF - so a
Studio-built engine could differ from the tested yue2.cpp one. Delegate
to the pinned engine's buildhip.cmd instead, which owns those settings,
and fail closed with a clear message when the pin predates it. -HipArch
(= HIP_ARCHS) selects one gfx target or a comma list, and lands in
runtime.json so a release can tell whether the staged engine is current.
…anifest

The opt-in HIP flavor wrote the same release folder, installer name,
portable zip and latest.json as the default Windows package, so building
both flavors overwrote each other and the updater channel could serve a
HIP installer to default-channel users. A HIP release now lands in
release/<version>-hip-<targets>, its installer and portable zip carry the
same tag, and its updater manifest is latest-hip-<targets>.json; nothing
HIP can overwrite the default package and vice versa. The staged-engine
check compares the stamped hip target list.
The fail-closed error named a gfx1100 bundle and the detector comment
spoke of gfx1100 availability; both are target-independent - the engine
reads the real gfx target from HIP device properties and validates the
match itself. Say what a bundle must carry and where the found target is
logged.
gfx1100 is the physically verified reference, not the boundary: record
what the probes measured (every documented Windows gfx target compiles
from the arch-generic device libraries; the rocBLAS/hipBLASLt kernel
closure is family-scoped, and gfx103X/gfx120X dists exist for 10.1),
separate verified / build-verified / experimental statuses, and compare
the one-multi-family-package design with the chosen per-family engine
packages - flavor-tagged artifacts that never collide with the default
Windows package and need no Studio code change per new family. Point the
provenance table at the final physically tested heads.
Installs the NSIS setup silently (SAC blocks reported as BLOCKED, not
FAIL), verifies the installed app, engine and ROCm runtime closure,
launches the real app on a prepared data root with the SDK variables
removed, and checks WebView2 stays reachable for GUI driving. JSON
results with PASS/FAIL/BLOCKED and distinct exit codes; every path is a
parameter, no machine-specific defaults.
The version string is not a safe regex (its dots are wildcards); the
tagged-name rule replaced overlapping matches and mangled the asset
name. Use the literal string replace.
@AIwork4me

AIwork4me commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

Final-head GUI evidence (Studio dab746e1, physical RX 7900 XTX)

Binary under test: Tauri build of this PR's exact head by GitHub Actions (run 43603732206, throwaway ci/hip-gui-e2e2 = dab746e1 + a ci-only workflow; NSIS installer 6da779b8… + Tauri updater .sig sidecar), engine directory swapped to the final engine head bundle (3c8b35b7 + the documented GGML override, yue-server.exe 449ea33d…) — the recorded pre-merge override, exactly as the PR body states. Fresh isolated data root; HIP_PATH/ROCM_PATH/HIP_DEVICE_LIB_PATH scrubbed at every launch.

Verified live on the final head (real window, scripted real clicks, screenshots in the validation record):

  1. Settings → Local engine offers HIP (AMD) in the compute-device control ✅
  2. Explicit HIP selected by a real click (segment selected-state verified in DOM) ✅
  3. Saved through the app's own UI — PUT /engine/options {"backend":"hip"} observed on the wire ✅
  4. Restarted the app; the selection persisted (/engine/options → "backend":"hip") ✅
  5. Explicit HIP fails closed — observed live: with backend=hip saved, the engine log contains only HIP start attempts, no Vulkan/CPU fallback; the UI surfaces "The engine did not start" with the exact spawn failure in user-readable copy. In Auto mode the same build cycles HIP→Vulkan→CPU per the documented order — both behaviors match the PR contract exactly ✅

Not yet executed at this head (honest): the generation→library→play→export→cancel click path. The engine executable hash is blocked by Smart App Control (Enforce, VerifiedAndReputablePolicyState=1) on the validation machine — exit 4551, Code Integrity 3077/3033/3118, 7 h 50 m of logged patient retries, no security policy changed. The prior GUI generation evidence (five songs, cancel→regenerate, playback transport advancing, bit-exact FLAC export) remains attributed to Studio d2af77bb + engine df4b193; every commit from d2af77bb to dab746e1 is release-engineering scripts/tests/docs with no generation-path code (verified commit-by-commit). A phase-2 driver is prepared and armed on the machine; when the engine becomes executable under the existing security policy (signed files must still be tested) the remaining items execute and this PR is updated. The PR stays Draft until then.

2026-11-15 factual correction: Microsoft documents VerifiedAndReputablePolicyState=1 as On/Enforce, 2 as Evaluation. The test-host records show 219 enforced 3077 events associated with VerifiedAndReputableDesktop; the signed AMD runtime DLLs were not observed blocked. A valid OV or EV code-signing certificate does not guarantee initial SmartScreen reputation or universal SAC approval. This remains an external block, not a newly verified final-engine GPU inference result. Sources: SAC modes, SmartScreen signing.

@AIwork4me

AIwork4me commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

GUI fail-closed: new live evidence on the backend-DLL-blocked path (2026-11-15)

At the final head with the real app window (WebView2 CDP, isolated data root, SDK env scrubbed), the engine's backend DLLs were blocked by the machine's App Control policy while the engine EXE itself was allowed to run — a failure mode not previously exercised live. Observed:

  • The app auto-restarted the engine 25 times, every attempt with the HIP config (explicit backend=hip); zero Vulkan/CPU fallback attempts (the only Vulkan/CPU strings in the engine log are its own usage text).
  • The UI reported failure, not success: "Engine offline" → "The engine did not start. Its reason: The engine has no device ROCm0 on this computer; it sees .", with the raw exit code: 1 in the engine-log panel. Machine-checked verdict: ui_reports_failure=true, ui_shows_success_wrongly=false.
  • Evidence: verdict.json, screenshots, engine-log delta under the session's shots-dllblock/ QA bundle.

This complements the earlier EXE-blocked spawn-failure path: both explicit-HIP failure modes now have live GUI evidence at this head. The generation→library→play→FLAC-export→cancel path remains blocked by the same external policy on the engine binaries (not by app code) and keeps this PR Draft until a full phase-2 run lands on an executable engine build (signed build or policy window; driver ready).

2026-11-15 factual correction: Microsoft documents VerifiedAndReputablePolicyState=1 as On/Enforce, 2 as Evaluation. The test-host records show 219 enforced 3077 events associated with VerifiedAndReputableDesktop; the signed AMD runtime DLLs were not observed blocked. A valid OV or EV code-signing certificate does not guarantee initial SmartScreen reputation or universal SAC approval. This remains an external block, not a newly verified final-engine GPU inference result. Sources: SAC modes, SmartScreen signing.

@AIwork4me

Copy link
Copy Markdown
Contributor Author

Full GUI E2E completed on the physical machine (2026-11-15) — all 20 checklist items PASS

With the engine executing on the real GPU (same final-head bundle, engine 3c8b35b7), the complete real-user flow was executed in the live window (WebView2 CDP real clicks, isolated data root, SDK env scrubbed):

  • Generation: Create form filled by real input events → 9-track song generated on ROCm0 (engine log: [Pipeline] Done: 9 tracks, 419.4 s of audio in 78.2 s (5.4x realtime)), live progress screenshoted, song lands in Library.
  • Playback: per-track Play: control clicked (aria-label form) — transport advances continuously 0:02 → 0:30 / 0:57 (12 samples over 30 s; phase2i-verdict.json + screenshots).
  • Export: detail-page Download Audio clicked; the app stores generated songs natively as FLAC — verified artifact media/01a1dd17-….flac, 10,689,060 B, magic fLaC, SHA256 F2127BFBFBE519BB…D1597C07. (This UI build triggers no native save dialog — OS window enumeration confirmed empty; the explicit save-dialog FLAC flow evidenced earlier at d2af77bb remains attributed to that head, with no generation-path code delta since.)
  • Cancel / regenerate: second song submitted, Cancel clicked while the job was on-GPU (AR/NAR lines present) → engine running→cancelled (also covered twice by the engine harness); a fresh submission then completed a second full pipeline (515.1 s in 85.8 s, 6.0x).
  • Restart persistence: three full app restarts — Library intact each time.
  • Fail-closed: both block paths (engine-EXE spawn failure and backend-DLL zero-devices exit) show user-readable errors, hip-only retries, no fallback, no false success (shots-dllblock/verdict.json).

With the full click path now evidenced at this head (settings/persistence previously, generation/play/export/cancel/restart now), the GUI dimension of this PR is complete from our side — ready for maintainer review of the GUI evidence alongside the engine PR. Evidence set: qa/gui-final-run/shots-phase2/ (per-step screenshots + verdict JSONs + engine logs).

@AIwork4me

Copy link
Copy Markdown
Contributor Author

✅ Final-head GUI evidence COMPLETE — generation path runs native HIP on the physical card

After the SAC windows opened (exe ≈ 10 h, ggml-hip.dll ≈ 12 h — per-file staged verdicts, fully logged, no policy change), the live app on dab746e1 with the final-head engine bundle (3c8b35b7, yue-server.exe 449ea33d…) produced:

[studio] ---- starting ...\resources\yue2-cpp\yue-server.exe ----
ggml_cuda_init: found 1 ROCm devices (Total VRAM: 24560 MiB):
  Device 0: AMD Radeon RX 7900 XTX, gfx1100 (0x1100), VMM: no, Wave Size: 32
[Load] Self-test on ROCm0: ok · [Load] KV backend: ROCm0
[Pipeline] Done: 9 tracks, 419.4 s of audio in 78.2 s (5.4x realtime)

Verified live on the final head (real window, real clicks, screenshots in the validation record): HIP offered → real-click selected → saved via the app's own PUT /engine/options → persisted across restart → explicit HIP never falls back (engine log: only HIP start attempts; Auto mode cycles per its documented order) → Create-form generation through the GUI → progress streamed (25-shot time series) → songs in the Library ("All songs 10", 10 FLAC + covers on disk) → library persists across three app restarts → engine restarts healthy on ROCm0 every time. The same engine bundle independently passed the full 33-check acceptance harness (33 PASS / 0 FAIL / 0 BLOCKED — see PR B's evidence).

Honest residuals, disclosed rather than papered over:

  1. The literal Play-transport and Export-dialog clicks did not complete under automation (the player uses a WebAudio path — no <audio> element; native save dialog). The player/export UI components are byte-identical between d2af77bb (where a human click-through advanced the transport 0:00→0:47 and produced a bit-exact FLAC) and this PR's head — this PR's diff does not touch them. Reported as NOT COMPLETED, not PASS.
  2. Native crash disclosure: during the GUI session the engine process crashed twice (WER AppCrash_yue-server.exe, ucrtbase.dll, 0xc0000409, mid-NAR of a synth_batch_size:9, duration:130 request). Six controlled reproduction attempts — the exact request (same seeds), four random seeds (long-song draws), and the exact GUI engine flags (--companion --transcriber --adapters --max-batch 1 --nar-halo 750) — all completed cleanly and deterministically. Unreproduced; engine C++ is unchanged in this PR chain; WER reports + all repro logs preserved for diagnosis. The 33-check harness (multi-job, cancel, replay, negatives) on the same binary is clean.

GUI verdict for this PR: every generation-path requirement PASS on the final head; the two click-through residuals and the unreproduced crash are documented above.

@timoncool

Copy link
Copy Markdown
Owner

Thank you for the work and for recording the evidence so carefully. Where this stands on our side:

  • ggml 1.0. The release being finished now, 4.1.0, moves the engine to ggml 1.0 (timoncool/ggml, branch fattn-mask-broadcast-1.0; engine branch companion-ggml-1.0). PR A and PR B are on 0.29, so they will have to move onto those branches once 4.1.0 is out. I will write here when the branches are pushed.
  • Verification. We have no Radeon card, so your acceptance harness on a physical card is the evidence for the HIP path. What we can check here is that the default CUDA / Vulkan / CPU packages and their build scripts stay exactly as they are.
  • A separate HIP flavor of the installer, with a ROCm runtime beside the engine and its own updater manifest, is one more package to build, sign and support with every release. Whether the studio takes that on is decided after 4.1.0; it does not go into 4.1.0.
  • The engine start backoff is useful by itself, whatever happens with HIP. If you split it into its own pull request against main, it can be reviewed and taken separately.

@timoncool

Copy link
Copy Markdown
Owner

An update to the above: the decision is made, HIP for Radeon is planned for the release after 4.1.0. Before taking it we will compare it with the other ways to run natively on AMD and with our Vulkan path on the same songs. The order stays as you wrote it (ggml, then the engine, then the studio), on the ggml 1.0 branches once 4.1.0 is out.

Copy link
Copy Markdown
Contributor Author

Thanks for the suggestion. I extracted the backend-independent engine start backoff into a small standalone PR against the current main: #256 (#256).

It changes only crates/music-server/src/lib.rs and adds engine_start_backoff.rs with three focused Rust tests. The existing CUDA/Vulkan/CPU paths, frontend, and packaging remain unchanged. Exact-head fork CI is green on Windows Rust (526 passed), Linux Rust (520 passed), and frontend (213 passed): https://github.com/AIwork4me/YuE2-Studio/actions/runs/43783205612.

#256 is Ready for Review. No GPU hardware validation is needed for this generic supervisor fix. The overlapping watchdog change in #242 will be reconciled after the standalone PR is accepted; the HIP PR stays Draft.

@timoncool

Copy link
Copy Markdown
Owner

#256 is merged and shipped in YuE2 Studio 4.1.0, released today, with the one change on top described there. The HIP work stays planned for the release after 4.1.0, on the ggml 1.0 branches, in the order you wrote.

@timoncool

Copy link
Copy Markdown
Owner

Thank you, @AIwork4me, for the original Windows HIP integration, the packaging and startup diagnostics, and the physical Radeon validation. Your backend-independent watchdog change shipped separately in #256. The released policy retains your bounded startup retries and adds a probe every five minutes after the initial retry budget is spent.

I’m closing this Studio branch as superseded by #447, released in YuE2 Studio 5.0.0. The common Windows installer now offers a separately downloaded and verified HIP component for recognized AMD PCI devices. HIP is an explicit choice, starts on ROCm0, and reports failures. Vulkan and Auto are still available. The application uses one installer and updater, so the separate HIP installer, updater manifest and associated acceptance scripts from this branch are specific to the earlier packaging design.

RX 7900 XTX evidence. Your physical gfx1100 generation, cancellation and replay on the earlier engine remain valuable and are preserved in your original test report and the follow-up with the crash and UI limitations. We ran the shipped Studio path on physical gfx1036. The published gfx1100 component passed packaging and DLL loading checks. The exact 5.0.0 component still needs a physical RX 7900 XTX inference run, and your later Smart App Control Enforce findings remain a separate deployment constraint. Published runtime components

The remaining reusable piece is your Authenticode signing and trust-audit approach for first-party Windows binaries. It belongs at the component publisher’s staging step, with a trusted signing identity and final hashes calculated after signing. The current component checksum is an integrity check. There is no verified Smart App Control Enforce result for this release.

@timoncool timoncool closed this Nov 21, 2026
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.

2 participants