Repository navigation
Conversation
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.
… honest GPU tiers
…ning/updater guards
Final-head GUI evidence (Studio
|
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:
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 |
…ration reset and CPU-only tests
…ttings/model change
…rsus GPU acceptance gates
Full GUI E2E completed on the physical machine (2026-11-15) — all 20 checklist items PASSWith the engine executing on the real GPU (same final-head bundle, engine
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: |
✅ Final-head GUI evidence COMPLETE — generation path runs native HIP on the physical cardAfter the SAC windows opened (exe ≈ 10 h, 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 Honest residuals, disclosed rather than papered over:
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. |
|
Thank you for the work and for recording the evidence so carefully. Where this stands on our side:
|
|
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. |
|
Thanks for the suggestion. I extracted the backend-independent engine start backoff into a small standalone PR against the current It changes only #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. |
|
#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. |
|
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. |
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_backoffguard 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 HEAD4a8186eb, so the prior green run atdab746e1must 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=1means SAC Enforce (not Evaluation): the exact enforcingVerifiedAndReputableDesktoppolicy generated 219 Code Integrity3077blocks 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.ps1Authenticode helper,scripts/audit-hip-release.ps1signed-release audit,scripts/test-hip-installer.ps1packaged-build acceptance), one CI workflow addition, anddocs/windows-native-hip-gfx1100.md(architecture matrix + packaging design).CI clarification: the earlier product HEAD
dab746e1passed fork CI (run 43601262629). The upstream PR may displaymergeable_state=unstablebecause 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 tod2af77bbwith thedf4b193engine, not this exact build.Engine pin:
engines/yue2-cpp-source.jsonstays at the public46a0c91until 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 predatesbuildhip.cmd; the script says so instead of guessing flags).Commit groups (28)
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.buildhip.cmd(one source of truth;-HipArch=HIP_ARCHS, single target or comma list, target list stamped intoruntime.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.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
gcnArchNamefrom 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
Tests actually executed
dab746e1: all green (run 43601262629 — windows+linuxcargo test --locked,tsc --noEmit, vitest, frontend build). Earlier heads also green (e.g. 43595964231).amd_comgr.dll, missingggml-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.ROCm0, no fallback wording, and the fail-closed negative table (bundle minusggml-hip.dll,amd_comgr.dll,amdhip64*, the rocBLAS kernel dir; unknown--device ROCm9). Re-run against the df4b193 engine bundle: all green.d2af77bbwith thedf4b193HIP engine; commits afterd2af77bbare 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 atd2af77bb: 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 showsSelf-test on ROCm0: okand KV/NAR/VAEROCm0for 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
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)
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.ps1reports SAC blocks as BLOCKED, not FAIL.Compatibility and limitations
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.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.gfx1100/vendor string sniffing in Rust.ggml-hip.dll, tags every artifact, and writes a tag-named manifest.