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.
…he CPU tools/install/test_amd.sh runs lib.sh's detection against four recorded hosts in tests/fixtures/amd (a sysfs tree, rocminfo output, ROCm's version file and nvidia-smi answers; no GPU needed): - strix-halo: Radeon 8060S (gfx1151) APU, 96 GiB GTT, a 4 GiB carve-out that is not VRAM, connector entries (card1-DP-1) beside the card - discrete: an Intel CPU and iGPU beside a Radeon RX 7900 XTX with real VRAM - nvidia: an NVIDIA GPU and an AMD card on one box; the NVIDIA path wins and says what it said before AMD detection existed (checked against main's lib.sh) - none: no GPU The fixtures caught one bug: amd_name took the first rocminfo Marketing Name that was not an AMD CPU, so an Intel CPU agent named the GPU. It now takes the first agent whose Device Type is GPU. LR_SYSFS (default /sys) points the sysfs reads at a fixture. CI runs the script.
…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/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.
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.
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. Tests cover the auto-select and the overrides.
Review of 944f585: transcription replaced the requested temperature with 0 and ignored timestamp granularity, so temperature=0.7 with timestamps=word succeeded with no words. - temperature, language and prompt go to the server as asked. A server that cannot honour one refuses it, and the caller gets that 400 with the server's reason (Gufo's Qwen3-ASR: "supports temperature 0 only"). - options.timestamps lists the granularities the server returns ([] by default). A request for a listed one asks for verbose_json with that timestamp_granularities[] (word also asks for segment when listed), and a reply without them is a server_error, never a transcript missing what was asked. - word not listed is refused (invalid_request_error) before the server is asked. segment not listed keeps the whole clip as one segment, since the daemon asks for segments for every verbose_json, srt and vtt reply. The fake server now records each request's form fields: 23 checks (was 8), covering forwarding, refusals and both timestamp configurations. CI runs them.
worker.py had grown to 662 lines with edits and image to video, past the 600-line convention; the RFC 6455 client moves to comfy_events.py (76 lines) and worker.py is 596. No behaviour change: the 29 worker checks pass.
…Strix deployment runs) # Conflicts: # .github/workflows/ci.yml
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.
…as a GPU step Review of 944f585: - Torch wheel unhashed (whisper/rocm/uv.lock): PyTorch's index publishes no digest, so the wheel's sha256 (2ad8066c..., 6227849000 bytes) is added by hand. uv sync --locked refuses other bytes (checked with a one-digit change: "Hash mismatch"). tools/install/check_hashes.py refuses any uv.lock or requirements*.txt artifact without a sha256; CI runs it over the checkout, and its tests. - Gufo pinned by digest: tools/gufo/IMAGE is gufo-runtime:0.34.0@sha256:49b1fce4... (engine 2845939b, the build measured here). serve.sh refuses a reference without a digest unless GUFO_ALLOW_UNPINNED=1; the profile's step checks the pulled digest. - Hugging Face weights by commit, every file by size and sha256: pins/*.json for Flash-Next Q4 and Q3 (f5d175de), Qwen3-TTS CustomVoice (0c0e3051) and Qwen3-ASR (7278e1e7). tools/install/hf_pinned.py downloads the manifest's files at its revision through hf (resumable) and verifies them; done is a stamp of the manifest plus a size check. The local copies on the test box verify against all four. - GUFO_IMAGE reaches the workers: start.sh passes it (and GUFO_ALLOW_UNPINNED, GUFO_STOP_TIMEOUT when set) into the transient unit; env.sh defaults it from tools/gufo/IMAGE. deploy/strix-halo/test_start.sh runs start.sh with a stub systemd-run that gives the daemon only --setenv values and a stub podman that records the image: default, exported and site-file overrides, a digest-less refusal (11 checks; 3 pass against the old start.sh). - gufo diagnose is its own step, gpu: true, so --no-gpu skips it; the image step only pulls and checks the digest. - CI: bash -n over deploy/strix-halo/*.sh and tools/gufo/*.sh; the hash check, hf_pinned tests and the unit test.
…iMax tools run) # Conflicts: # .github/workflows/ci.yml
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.
…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.
Whole-scene H3-Image edits (no mask) use minimax-h3-image-edit-unmasked.json: 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: the rain-to-snow comparison on gfx1151 (384 s, GTT peak 37.2 GiB).
… venv The weights come from pins/minimax-*.json (repo, revision, every file's size and sha256) through tools/install/hf_pinned.py: a manifest is marked done only after a full sha256 check, and ok-models then needs that mark, the sizes and the links. The ComfyUI venv installs from requirements-rocm7.2.txt with --require-hashes (PyTorch ROCm included; the same 88 packages as the venv measured on gfx1151). test_install.sh: 16 checks with a stub hf (no network); in CI.
jayleaton
left a comment
There was a problem hiding this comment.
Thanks for pinning the ComfyUI dependencies and verifying every model download. All 72 files are text, with no binaries or weights. ComfyUI (GPL-3.0) and ComfyUI-GGUF (Apache-2.0) are fetched at install time at pinned commits, and nothing fetches remote code at runtime. The MiniMax territorial restrictions are documented correctly.
Blocking, inherited. Please bring in the detached-server lifecycle fixes from #154 and #156 before this deployment merges.
Blocking: deploy/strix-halo/comfyui/nodes/minimax_h3_image_gguf.py:35. This monkey-patch works around an upstream engine issue. CONTRIBUTING.md asks for an entry in the upstream-change ledger plus an upstream PR, or an explanation of why it can't go upstream. Please add the entry and how it gets resolved.
Nit: deploy/profiles/strix-halo-gfx1151.json:332. The download and disk totals leave out the added Q8_0 model (22,026,760,928 bytes). Please update the step and model totals so disk planning keeps its margin.
Nit: deploy/strix-halo/config.json.in:90. Please state H3-Image's licence terms explicitly: the separate authorization needed for hosted services, the USD 1M annual revenue threshold, and the commercial UI notice. Please also update NOTICE, which still says ComfyUI is only used during development.
…ts code A job, video or 3D asset object's error now has type (the value an HTTP error for the same failure carries, e.g. insufficient_memory), code (the same value, as before) and message. A client matching the HTTP type in a job's message missed jobs refused for room (the message reads "insufficient memory: ...") and gave up instead of retrying. docs/AGENTS.md: match type or code, never the message. Test: the error object's JSON.
A video job holds its model while it runs; a chat request (or an API load) that needs the room is refused at once with 503 insufficient_memory, and loads once the job is done. The scheduler already does this (in_use); the test pins it, and fails if admit may take a slot in use.
…b's tool is never a victim (test)
MIOpen's 3-D convolution segfaults ComfyUI (SIGSEGV, no Python exception) in the Qwen3.5 vision tower that encodes the first frame: Qwen35VisionPatchEmbed is a Conv3d with kernel == stride. With no padding, unit dilation and one group that convolution tiles its input, so it is exactly a matrix product of each block with the flattened weight. nodes/rocm_conv3d_patchify.py replaces comfy.ops' Conv3d._conv_forward at import, only on a ROCm build and only for GPU tensors, computes those convolutions with F.linear and hands every other one (padding, dilation, groups, autopad) to the original. LOCALROUTER_CONV3D_PATCHIFY=0 turns it off. install.sh installs it beside the GGUF loader node, and ok-comfyui checks both. test_conv3d_patchify.py (35 checks, CPU) compares it with conv3d in fp32 and fp16: the patch-embed shape, 1x1x1, multi-block, left-over rows, the passthrough cases, and the class hook. CI runs it on CPU PyTorch from requirements-test-cpu.txt (every file pinned by sha256).
The model's server no longer gets a session of its own (start_new_session): it stays in the worker's process group, so the daemon's SIGKILL of that group on abort or timeout takes it down too, and PR_SET_PDEATHSIG (SIGTERM) covers the worker dying alone. Before, a hard kill left the server, and a Gufo container behind it, holding the GPU. An unload now signals the server and every process below it (/proc children) instead of its group. Seed 0 was dropped by a truthiness check: a request's seed is sent whenever it has one and send_seed is on. Tests: SIGKILL of the worker's group mid-generation, the server is gone (fails on the old worker: the server outlived it); the server receives seed 0; no seed, none sent; send_seed false, none sent.
With the openai_audio worker's server now in the worker's process group, the daemon's SIGKILL of that group (abort, timeout) kills serve.sh and the podman client, but not the container: conmon runs it outside the group, and the SIGTERM trap never runs. serve.sh starts a watcher in its own session that removes this run's container, by its --cidfile id (never a later run's of the same name), once the script is gone. test_serve.sh (8 checks, stub podman whose container is outside the group): SIGKILL of the group removes the container, by id, and the watcher cleans up; SIGTERM still stops it through the trap; a run started right after a killed one keeps its container. 3 of them fail on the old serve.sh. CI runs it.
ComfyUI no longer gets a session of its own (start_new_session): it stays in the worker's process group, so the daemon's SIGKILL of that group on abort or timeout takes it down too, and PR_SET_PDEATHSIG (SIGTERM) covers the worker dying alone. Before, a hard kill left ComfyUI holding the GPU. An unload now signals ComfyUI and every process below it instead of its group; SIGUSR1 (cancel) still goes to the worker alone. Test: SIGKILL of the worker's group mid-render, the fake ComfyUI is gone (fails on the old worker). The worker tests start the worker in its own group, as the daemon does.
…ontainer die with the worker # Conflicts: # .github/workflows/ci.yml
…heir upstream paths 13: minimax_h3_image_gguf.py swaps comfy.sd.load_diffusion_model_state_dict for one load to supply the pdd config the unsloth GGUF lacks. Planned upstream pull request (not opened): ComfyUI's detect_unet_config takes pdd_steps from the final layer's head shape when a MiniMax state dict has no config metadata. 14: rocm_conv3d_patchify.py replaces comfy.ops Conv3d._conv_forward on ROCm. Planned: a standalone reproducer filed with PyTorch (ROCm), then, failing a fix, a ComfyUI pull request adding the path beside its NVIDIA conv workaround. The node, README and install.sh no longer blame MIOpen: ComfyUI turns cudnn (MIOpen) off by default on gfx1151, so the crashing backend is PyTorch ROCm's 3-D convolution, not yet pinned down.
The weights step and the model's download and disk totals left out minimax_h3_image_pruned-Q8_0.gguf (22,026,760,928 bytes), which the pins download for whole-scene edits. Weights: 91,797,364,272 bytes (the three manifests); model: 97,797,364,272 download, 109,562,596,347 disk. The step titles name the Q8_0 GGUF and both ComfyUI nodes.
…ntime
config.json.in: minimax-h3-image's licence now quotes section IV.1 (separate
prior written authorization from MiniMax above USD 1 million annualized
revenue, or for a Hosted Service to third parties) and, as its notice,
section IV.2 ("MiniMax-H3-Image" shown on the user interface of a commercial
product or service), from the licence text dated November 10, 2026.
NOTICE: ComfyUI is no longer only a development-time reference: on Strix Halo
it is the runtime of the MiniMax tools, downloaded at a pinned commit by the
installer and driven as a separate process, not distributed; ComfyUI-GGUF
likewise; the two nodes are ours. The H3-Image weights' licence is listed.
|
Review fixes pushed (new commits, no force-push):
— SMF Works |
# Conflicts: # .github/workflows/ci.yml
# Conflicts: # .github/workflows/ci.yml
# Conflicts: # .github/workflows/ci.yml
jayleaton
left a comment
There was a problem hiding this comment.
Round 2: thanks. The Q8_0 totals, the H3-Image licence terms and the NOTICE fix are all verified. What's left:
- Blocking, inherited from #155:
tools/gufo/serve.sh:33. Container teardown depends on the reaper. See the #155 review. - Blocking:
docs/dev/UPSTREAM.md:199and:224. Both upstream PRs are still marked "planned". CONTRIBUTING asks for a link to the actual upstream PR, or the specific reason a change can't go upstream. Please open and link them, or write down why not. - Blocking:
deploy/strix-halo/comfyui/nodes/rocm_conv3d_patchify.py:47. The new replacement, which is on by default, changes the numbers. A CPU probe found 284,625 of 294,912 fp32 values differ, even thoughallclosepasses. Before it's on by default, please add the comparisons CONTRIBUTING asks for (on the target GPU, for the operation, the chain and the full output) or an explicitly accepted numerical baseline. Otherwise make it opt-in. - Nit:
docs/dev/UPSTREAM.md:229. There's an extra blank line at the end of the file, sogit diff --checkfails.
ci.yml: keep this branch's steps after main's openai_audio step.
ci.yml: main's openai_audio step, then this branch's ComfyUI worker step.
…split/5-minimax-workflows ci.yml: keep this branch's steps.
…amd-split/5-minimax-workflows # Conflicts: # .github/workflows/ci.yml
…cannot keep the container The watcher polled serve.sh with kill -0, which succeeds on a zombie. If a subreaper left serve.sh unreaped after a SIGKILL of the worker's group, the container kept running until the reap. The watcher now reads the State: line in /proc/<pid>/status and stops waiting on Z (or X); kill -0 remains only where /proc is not mounted. test_serve.sh: a parent that does not reap serve.sh for 60 s; after the group SIGKILL serve.sh is a zombie and the container must be removed (by its id) while it still is. 3 new checks; the old watcher fails 2 of them.
…FY=rocm) The product sums in a different order from PyTorch's conv3d: allclose holds, but most fp32 values differ in their last bits, and no GPU baseline has been accepted for that. The node now leaves ComfyUI as it is unless the tool's env sets LOCALROUTER_CONV3D_PATCHIFY=rocm (ROCm build, GPU tensors) or =1 (any build and device, the tests); 0 still refuses an explicit install. The README and UPSTREAM.md entry 14 say so, and that without it image to video crashes ComfyUI on gfx1151. test_conv3d_patchify.py: off by default on any build; rocm on a build without ROCm; an unknown value; the class untouched after the refusals. Also drops the extra blank line at the end of docs/dev/UPSTREAM.md, so git diff --check passes.
…ts a zombie serve.sh as gone) into amd-split/5-minimax-workflows
|
Round 2, in new commits:
|
jayleaton
left a comment
There was a problem hiding this comment.
Round 3: the default-on blocker and the EOF nit are fixed, and all 38 CPU Conv3d checks pass. Three blockers remain:
- Blocking:
.github/workflows/ci.yml:46. This inherits #155's CI conflict, and it adds a second ComfyUI worker check for the worker that's already on main. Please restack after #155 and keep a single worker check. - Blocking:
deploy/strix-halo/config.json.in:68. The stock gfx1151 profile advertisesimage_to_videowith the workaround turned off. The README says the first request on that config crashes ComfyUI. Please put the capability and its workflow binding behind the same opt-in as the workaround. - Blocking:
docs/dev/UPSTREAM.md:199and:226. Both entries still describe filings as "planned". Each needs a link to the upstream PR, or a concrete reason it can't go upstream.
Part 5 of 5 (split from #152).
Stacked: this branch is Part 3 plus a merge of Part 4, then 4 commits of its own. Until those merge, the diff here includes them; review the commits after the merge commit.
MiniMax H3 (text or image to video, with audio) and H3-Image (text to image, edits) workflows and the profile's
minimaxmodel. Both install steps need--accept, because the MiniMax licences grant nothing in the US, the EU, the UK or South Korea; LocalRouter shows the licence and excluded regions and enforces nothing. Includes the commits that arrived during the review of #152: edits, image to video, and whole-scene edits (Q8_0 at about 2 MP, 30 steps; masked edits stay Q4_K_M at 1 MP, 6 steps).Same integrity rules as Part 3:
deploy/strix-halo/comfyui/install.shdownloads the weights fromdeploy/strix-halo/pins/minimax-*.json(pinned revisions, every file's size and sha256) throughhf_pinned.py, with a full sha256 check before a manifest counts as done.comfyui/requirements-rocm7.2.txtwith--require-hashes, PyTorch ROCm included (88 packages, the venv measured on gfx1151).comfyui/test_install.sh(16 checks, stub hf, no network) is in CI, andbash -ncoverscomfyui/*.sh.Measured on gfx1151 (README): 1024² image 47 s; 2 s 512×288 video with audio 56 s; masked edit 104–111 s; whole-scene edit 384 s at 37.2 GiB GTT peak.
Checks run locally: everything in Part 3 plus comfy 29/29, test_install 16/16, check_hashes 10/10 lock files.