Repository navigation
Conversation
lib.sh: when nvidia-smi sees no GPU, hw_gpu/hw_driver/hw_vram/hw_summary read the first amdgpu card (sysfs) and rocminfo (marketing name, gfx target), hw_rocm the ROCm version, hw_gtt/hw_gtt_used the GTT pool an APU's GPU maps. hw_match gains optional hardware.min_rocm, hardware.gfx and hardware.min_gtt_gib. The NVIDIA and macOS paths are unchanged. doctor.sh: the free-memory warning reads hardware.min_free_gib (default 88, as before) and, on AMD, shows GTT in use and AMD-side hints; a deploy.service of "systemd-transient" (systemd-run --user) is checked by is-active instead of a unit file.
…rver
tools/speech/openai_audio/worker.py serves speech (POST /v1/audio/speech, raw PCM
streamed into speech.wav) and transcription (POST /v1/audio/transcriptions ->
transcript.json) through a model's own server, which it starts from options.server
({port}, {id}, {weights}) and stops on exit, as openai_server does for chat; or an
existing options.url. Standard library only. Server 4xx -> invalid_request_error,
503/unreachable -> service_unavailable; 64-bit seeds are folded to 32 bits.
test_worker.py runs it against a fake server (no GPU).
tools/speech/whisper/rocm/{pyproject.toml,uv.lock}: the same worker and pins as the
Spark, with torch and triton-rocm from PyTorch's ROCm 7.2 index for x86_64 Linux AMD
GPUs. The existing lock is untouched. Measured on gfx1151: WER 4.09% on 73
LibriSpeech clips, 17x real time.
serve.sh NAME PORT [podman opts] -- gufo serve ...: foreground, loopback-only, stops the container on SIGTERM and waits so GPU memory is free; --replace clears leftovers; video/render groups by name (keep-groups needs crun).
AMD Strix Halo (Radeon 8060S, gfx1151, 96 GiB GTT): Qwen3.8 Flash-Next chat via Gufo (Q4 + MTP) and llama.cpp (Q3 + MTP) as openai_server tools, Qwen3-TTS and Qwen3-ASR via Gufo behind openai_audio, Whisper on ROCm. budget_bytes = GTT less 2 GiB. The daemon runs as a transient systemd user unit (render/start/stop/status.sh); site files override env.sh. Tested end to end: /v1 chat, /v1/audio, and the voice loop (voice_e2e.py --smoke) passing with 1.2-1.4 s first audio on warm turns.
tools/comfyui/worker.py starts its own ComfyUI (options.comfy_dir/python/args/env, loopback, a private output directory) or uses options.url, fills an API-format workflow from the request through explicit bindings (node.input), queues it, reports progress from /ws, waits on /history and fetches 0.png.. or video.mp4 through /view. Unbound fields (negative prompt, steps, guidance), edits and image-to-video are refused, never ignored; sizes, frame grids (frame_multiple / frame_offset) and fps are checked; audio off removes a bound input. Cancel is SIGUSR1 (/queue delete + /interrupt), and the worker stays loaded. Standard library only; test_worker.py runs it against a fake ComfyUI (16 checks). engine.fill: a video tool's options may name default_width/default_height for requests without a size (a cmd model's own size); else 1344x768 as before.
Two workflows (comfyui/minimax-h3-t2va.json: int8 DiT + 4-step turbo LoRA, video with audio; comfyui/minimax-h3-image-t2i.json: Q4_K_M GGUF, 6 steps) served by tools/comfyui as minimax-h3 (text_to_video, 512x288 default, 17k+5 frames at 24 fps) and minimax-h3-image (text_to_image) on their own ComfyUI ports. Both are booked at the whole GTT budget: ComfyUI stages weights in host RAM, the same memory on this APU, which the GTT budget does not count, so every other model is unloaded first and the voice models return after the job. Licences carry the excluded regions. Tested through /v1/images/generations and /v1/videos. The README opens the MiniMax section with a licence note: both Community Licenses exclude the United States, the EU, the UK and South Korea; the tools are opt-in examples.
options.modes.image_edit / image_to_video give requests with input images their own workflow and bindings, merged over the tool's. references, mask and first_frame are uploaded to ComfyUI (/upload/image, into the worker's private input directory, cleaned per job) and wired in through added LoadImage nodes (IMAGE, or MASK for a mask). Requests a tool cannot honour are still refused. Tests: 24 checks against a fake ComfyUI.
…ideo comfyui/install.sh (profile model 'minimax', needs --accept for the MiniMax licences): pinned ComfyUI + ComfyUI-GGUF, a Python 3.13 venv with PyTorch ROCm 7.2, the H3-Image GGUF loader node, and pinned weights linked into ComfyUI/models; idempotent, no sudo. minimax-h3-image gains image_edit (minimax-h3-image-edit.json: up to 5 images, optional mask composited back), minimax-h3 gains image_to_video (first frame). README: install, measurements on gfx1151, licence note.
|
Hi Jay — following up on the gaps I mentioned in the original description. I've pushed two more commits onto this PR:
The profile now has an automatic ComfyUI install ( Re-tested on gfx1151: Happy to split or drop any of this if you'd rather take it separately. |
image_edit may set defaults and an unmasked overlay (workflow, bindings, defaults) used when a request has input images but no mask; request fields still override. Masked edits keep the tool's fast defaults. deploy/strix-halo: whole-scene H3-Image edits use Q8_0 at about 2 MP and 30 steps (cfg 1.0); masked edits stay Q4_K_M, 1 MP, 6 steps. install.sh fetches the Q8_0 GGUF (still behind --accept). README: rain-to-snow comparison on gfx1151 (384 s, GTT peak 37.2 GiB). Tests cover the auto-select and overrides (29 checks).
|
Thanks for this, @smfworks, and for the detailed hardware results and the offer to split. We reviewed The existing NVIDIA and macOS paths look preserved: These need fixing before we can merge:
On splitting: yes please, since the newer commits make this even broader. A shape that would review well:
Locally, everything in scope passed: the Zig build (10/10), host unit checks (26/26), audio (8/8), ComfyUI (16/16), the syntax checks and the whitespace check. CI is waiting on first-time-contributor approval, and we'll approve it on the split PRs. |
|
Have my agent addressing all issues
…On Mon, Nov 16, 2026 at 6:02 AM JJ Eaton ***@***.***> wrote:
*jayleaton* left a comment (jayleaton/localrouter#152)
<#152 (comment)>
Thanks for this, @smfworks <https://github.com/smfworks>, and for the
detailed hardware results and the offer to split. We reviewed 944f585.
Your three newer commits (ComfyUI edits and image-to-video, up to
8493bb7) arrived during the review and aren't covered yet.
The existing NVIDIA and macOS paths look preserved: min_free_gib still
defaults to 88, the transient-service branch is opt-in, and we found no new
failure path on hosts without an AMD GPU. Gufo publishes only 127.0.0.1:
PORT, and there's no curl|sh, no committed secrets and no telemetry in
the diff. We didn't audit the third-party image's contents. New files stay
under the 600-line convention. The Zig change is narrow: engine defaults
keep precedence, and the fallback has a unit test.
These need fixing before we can merge:
- *Unhashed Torch wheel (tools/speech/whisper/rocm/uv.lock:384).* The
Torch wheel has no SHA-256. Its version and source are fixed, but its
contents aren't verified. Please add the wheel's hash, and a check that
rejects unhashed artifacts.
- *Unpinned image and model downloads (tools/gufo/serve.sh:17,
deploy/profiles/strix-halo-gfx1151.json:162).* Gufo defaults to the
mutable ghcr.io/gufo-org/toolboxes/gufo-runtime:latest. The Hugging
Face downloads have no revisions and only check that the files exist, so
two clean installs can get different artifacts. Please pin the image by
digest and the models by revision, and verify file integrity.
- *GUFO_IMAGE not reaching the workers
(deploy/strix-halo/start.sh:12).* The transient service gets only PATH
and HOME, so an exported GUFO_IMAGE override doesn't reach the
workers. Bootstrap can pull the pinned image while the workers start
latest. Please pass the chosen image into the unit, and add a test
that it gets through.
- *Ignored transcription options
(tools/speech/openai_audio/worker.py:263).* Transcription silently
replaces the requested temperature with 0 and ignores timestamp
granularity: a temperature=0.7, timestamps=word request succeeds with
no words. Please forward the supported options, request the matching
response format, and reject unsupported timestamp requests explicitly.
Please also add tests, since the current 8 don't cover this.
- *GPU diagnostic runs under --no-gpu
(deploy/profiles/strix-halo-gfx1151.json:137).* gufo diagnose uses the
GPU devices but isn't marked gpu: true, so --no-gpu still runs it.
Please split the image download from the diagnostic, and mark the
diagnostic as a GPU step.
- *Nit: new tests and scripts missing from CI
(.github/workflows/ci.yml:20).* Please add the new Python test suites
and the Strix/Gufo scripts to CI. Right now the suites aren't run, and the
shell syntax check skips those scripts.
On splitting: yes please, since the newer commits make this even broader.
A shape that would review well:
1. AMD detection and doctor, with regression fixtures.
2. The generic openai_audio worker.
3. ROCm Whisper, pinned Gufo and the Strix deployment.
4. The generic ComfyUI worker and the Zig size options.
5. The MiniMax workflows and examples.
Locally, everything in scope passed: the Zig build (10/10), host unit
checks (26/26), audio (8/8), ComfyUI (16/16), the syntax checks and the
whitespace check. CI is waiting on first-time-contributor approval, and
we'll approve it on the split PRs.
—
Reply to this email directly, view it on GitHub
<#152?email_source=notifications&email_token=B5RKCWGDRS74OPRUFXYZAGT5ZLNDHA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJRGQ2TQMRWHA3KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-6914582686>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B5RKCWFRQMUQSRG24SAKFN35ZLNDHAVCNFSNUABGKJSXA33TNF2G64TZHMYTIMBZGYZTENBZGU5US43TOVSTWNRUGEZDQOJRGI3TJILWAI>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/B5RKCWE2HU5LHC6MRT6VSGL5ZLNDHA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJRGQ2TQMRWHA3KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y>
and Android
<https://github.com/notifications/mobile/android/B5RKCWG2QFOPYN24F2GMV4D5ZLNDHA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJRGQ2TQMRWHA3KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Thanks for the thorough review, @jayleaton. I've split this into the five PRs you suggested, and each one also covers the newer commits (ComfyUI edits and image to video, up to 8493bb7):
Every review item is addressed:
Locally, every branch passes |
Hi Jay! As discussed in #151, this adds AMD Strix Halo (Ryzen AI Max+ 395 / Radeon 8060S, gfx1151, ROCm 7.2) support. Everything is additive: the NVIDIA and macOS paths are unchanged, and no Zig engine code changes beyond one small option. Ten commits, each standing on its own, so we're happy to split this into smaller PRs or drop anything you'd rather not carry.
Closes #151
Changes
tools/install/lib.sh,doctor.sh). Whennvidia-smisees no GPU, these read the amdgpu card from sysfs androcminfo(GPU name and gfx target), plus the ROCm version and GTT size/usage. Profiles can optionally requirehardware.min_rocm,.gfxand.min_gtt_gib. doctor shows GTT in use with AMD hints, readsmin_free_gibfrom the profile (default 88, as before), and can check asystemd-transientservice.tools/speech/openai_audio. A stdlib-onlycmdworker for any OpenAI-compatible audio server (/v1/audio/speechstreamed as PCM intospeech.wav,/v1/audio/transcriptions→transcript.json). It starts and stops the model's own server likeopenai_serverdoes for chat. Includes a fake-server test.tools/speech/whisper/rocm). The existing worker with a lock on PyTorch's ROCm 7.2 wheels (torch 2.13.0+rocm7.2). The existing lock is untouched.serve.sh. Runs a Gufo server (an MIT-licensed gfx1151 inference engine for Qwen3.8 Flash-Next, Qwen3-TTS, Qwen3-ASR, …) in rootless Podman, in the foreground under a worker, reachable on loopback only. It stops cleanly on SIGTERM so GPU memory is free when it exits.strix-halo-gfx1151profile +deploy/strix-halokit (status: preview).llama-server(Q3 + MTP) asopenai_servertools, plus Qwen3-TTS and Qwen3-ASR via Gufo behindopenai_audio, plus Whisper on ROCm.budget_bytes= GTT minus 2 GiB, because GPU allocations past GTT fail even when MemAvailable has room.systemd --userunit, with render/start/stop/status scripts. An optional site file overridesenv.sh.tools/comfyui/worker.py. A generic, stdlib-onlycmdworker that serves image/video tools through ComfyUI.bindings./ws, fetches outputs via/view, and supports cancel via SIGUSR1.options.modes.image_edit/image_to_videogive requests with input images their own workflow and bindings. References, an optional mask, and a first frame are uploaded to ComfyUI and wired in through added LoadImage nodes (IMAGE, or MASK for a mask).image_editmay setdefaultsand anunmaskedoverlay (workflow, bindings, defaults) used when a request has input images but no mask; request fields (size, steps, guidance) still override. Masked / local edits keep the tool's fast defaults.default_width/default_heightoptions inengine.fill, so acmdvideo tool can declare its own size (with a unit test). Includes a fake-ComfyUI test (29 checks).minimax-h3text/image-to-video with audio,minimax-h3-imagetext-to-image and edits, including an optional mask).minimaxmodel requires--accept. The README opens that section with a note, and the tools'licensefields list the excluded regions. Happy to leave the MiniMax commits out if you'd rather not ship them.comfyui/install.sh(the profile'sminimaxmodel: stepscomfyuiandweights) installs, without sudo and idempotently, pinned ComfyUI + ComfyUI-GGUF, a Python 3.13 venv with PyTorch ROCm 7.2, the H3-Image GGUF loader node, and pinned weights linked intoComfyUI/models(Q4_K_M and Q8_0 for H3-Image). A checkout with local changes is left alone.COMFY_HF=DIRreuses an existing download. The MiniMax download is still behind--accept.Tested on gfx1151 (Radeon 8060S, 96 GiB GTT, ROCm 7.2.4, Podman 6.1 with runc)
zig build -Doptimize=ReleaseSafeOK (no-Dnvcc);zig build test33/33 steps, 72/72 tests passed;openai_audiotest 8/8;comfyuitest 29/29 against a fake ComfyUI./v1/chat/completions(Flash-Next Q4 via Gufo): 17.5 s cold load, 56 tokens in 1.69 s, streaming OK./v1/audio/speech(Qwen3-TTS, streamed PCM): 226 ms to first audio, about 2.4× real time./v1/audio/transcriptions: Qwen3-ASR 2.4 s cold, 0.58 s warm. Whisper large-v3-turbo on ROCm 9.8 s cold, 0.52 s warm; WER 4.09% on 73 LibriSpeech dev-clean clips at 17× real time./v1/realtime(voice_e2e.py --smoke --skip-barge, chat on the Q3 tool): passed all 11 checks. First audio 1217 / 1376 ms on warm turns; a 42.6 s spoken reply with 0 underruns.Known gaps
--skip-barge).doctor.shreports zig/uv and the Whisper venv/model as missing when they're installed outside the profile's$Jprefix (site-specific paths).last_frame), and H3-Image's prompt expansion. ComfyUI's own H3-Image template still scales to about 4 MP and expands the prompt with a separate LLM; we locked in 2 MP / 30 steps as the whole-scene default because it was enough on this box.Thanks for localrouter. Any feedback welcome, and we can rework or split as you prefer.