FastKandinsky 6.0 Pro QAD for AMD Loom
A Loom package (.loom programs and a model.json card) for kandinskylab/FastKandinsky-6.0-Pro-NVPF4-QAD: a Qwen2.5-VL text encoder, CLIP pooling, the joint audio/video DiT with NVFP4-packed weights, the PiFlow scheduler, the Hunyuan video VAE, the MMAudio VAE and the BigVGAN vocoder, served as an OpenAI-style /v1/videos/generations endpoint by loom-serve. The reply is an AVI with uncompressed video frames and synchronized mono PCM at 44,100 Hz. The text encoder, CLIP encoder, both VAEs, the vocoder and both tokenizers are read unmodified from the publisher's checkpoint at a pinned revision; the DiT transformer is the publisher's BF16/F32 checkpoint packed into row-major NVFP4 with FP8 scales per 16 values, and that packed file is the only weight stored in this repository. It was ported, optimized and tested on the AMD Radeon AI PRO R9700 (gfx1201). Video serving in loom-serve is upstreamed as ROCm/hrx-system PR #3588 (branch loom-video-serving, commit 66b1f31f3b); until it merges, build loom-serve from that branch.
Quick start
Open your GPU and copy its commands. The commands fetch the package from this repository and download the remaining components from the publisher's repository at the revision pinned in model.json.lock.
pipx install "hrx-loom[hf]==0.3.0" # plus the video-serving patch: see the note below
loom-fetch huggingface:loom-fun/kandinskylab-FastKandinsky-6.0-Pro-NVPF4-QAD-loom:video-gfx1201-32gb@a950a954ea50b299581226bf34e5f6cab754b5bc --materialize=copy --output=fastkandinsky
cd fastkandinsky
loom-serve --devices=devices-r9700.json --model=serve-r9700.json --listen=127.0.0.1:8080 --request_body_bytes=8388608
:video-gfx1201-32gbselects the 768×512, 121-frame, 24 fps preset; see Presets.devices-r9700.jsonkeeps the parameter bank in GPU-addressable host RAM (NUMA node 0) and the transient workspace in VRAM;serve-r9700.jsonselects thevideo-gfx1201-32gbpreset ofmodel.json. Run one model at a time on this machine.- The listener comes up before model preparation finishes.
GET /v1/statusreports progress andGET /v1/modelslists the model once it is ready. - loom-serve build: the released 0.3.0 wheel does not include the video service yet. Until PR #3588 merges, build from source: clone ROCm/hrx-system, check out branch
loom-video-serving(66b1f31f3b) and build theloom-servetarget with the AMDGPU target enabled. The card and programs themselves are SDK-version independent.
Other AMD GPUs supported by hrx-loom can fetch the same package (--device=amdgpu --pool_backing=fixed instead of the two R9700 JSON files). They have not been tested with it yet.
Send a request
In another terminal (POSIX shell with curl, jq and base64):
curl --fail-with-body http://127.0.0.1:8080/v1/videos/generations \
-H 'Content-Type: application/json' \
-d '{"model": "kandinskylab/FastKandinsky-6.0-Pro-NVPF4-QAD", "prompt": "A red fox walking through falling snow in a quiet forest. Audio: soft footsteps in the snow.", "seed": "42", "response_format": "b64_json"}' \
| jq -r '.data[0].b64_json' | base64 --decode > clip.avi
ffmpeg -i clip.avi -c:v libx264 -pix_fmt yuv420p -c:a aac clip.mp4 # optional transcode
The same seed gives the same AVI, byte for byte. Add "size": "1024x576" for another geometry (multiples of 16) and "image" with base64-packed RGB24 bytes of a reference frame (plus the matching "size") for image-to-video conditioning. The default preset renders 768×512, 121 frames at 24 fps in eight steps, with 44.1 kHz mono audio, and accepts up to 257 text tokens.
Performance
Radeon AI PRO R9700 (gfx1201)
768×512, 121 frames, 24 fps, 8 steps, video + audio. Seconds per clip for one client sending the request over HTTP to a server that already holds the model and waiting for the AVI (end to end, including the initial weight transfer on a fresh server). Every build below rendered the same seed-42 fox clip byte-identically (SHA-256 561980e6…d16666).
| build | s/clip ↓ | note |
|---|---|---|
| Loom (this package, 32-channel decoder convolutions) | 502.97 | the files in this repository |
| Loom, same programs with 16-channel decoder convolutions | 504.01 | paired control, 2026-11-30 |
| Loom, original port before optimization | 2226.06 | 2026-11-26, before the attention, projection and VAE kernels were tuned |
No other backend (FastVideo, diffusers) was timed on this machine; the comparison columns of the image cards do not apply here.
Methodology
- Device: AMD Radeon AI PRO R9700 (gfx1201, 32 GB, 640 GB/s), Linux, ROCm stack of the local build. hrx-loom
loom-servebuilt from branchloom-video-serving(66b1f31f3b); programs generated by thefastkandinskymodule of loom-fun at package lock SHA-256b4b8091227991c16e325cb733cdda8d4218389b734ff58fa653aba5a91675f6c(programgenerate.loomSHA-256efb41ab4c6c11c7535fa5d6c858b81a5465fae90755bcaf32ba62b0a4a9fc67e). - Workload: seed 42, prompt "A red fox walking through falling snow in a quiet forest. Audio: soft footsteps in the snow.", 768×512, 121 frames, 8 steps. One fresh server per number, one request, HTTP end to end; wall time includes the first-request weight transfer to the GPU.
- Profile of the published build: 502.97 s wall, 497.37 s busy, 101,784 kernel dispatches, 0 dropped. Family shares of wall: video self-attention 40.5 %, video VAE 20.9 %, projection GEMMs 19.3 %, other 7.0 %, cross-attention 6.7 %, quantize/unpack 2.9 %. Full table in REPORT.md.
- Optimization log (what was tried, kept and rejected with measurements): REPORT.md.
- Other GPUs: not tested.
- Timed 2026-12-02.
Presets
| preset | geometry | text capacity |
|---|---|---|
video-gfx1201-32gb | 768×512, 121 frames, 24 fps, 8 steps, 44.1 kHz mono audio | 257 Qwen tokens after the template crop |
The preset geometry is fixed at build time; size in a request must match it. Frame counts follow 4n + 1.
Features
| feature | status | detail |
|---|---|---|
| API | ✅ | OpenAI-style /v1/videos/generations, response_format: b64_json, AVI reply (uncompressed video + PCM s16le mono 44.1 kHz) |
| geometry | ✅ | size as WIDTHxHEIGHT, multiples of 16, matching the preset |
| frames / fps | ✅ | fixed by the preset (121 frames at 24 fps, 4n + 1 frame counts) |
| seed | ✅ | repeatable: the same seed gives byte-identical AVI bytes |
| steps | ✅ | 8, fixed by the checkpoint |
| prompt length | ✅ | 257 text tokens after Qwen2.5-VL chat framing; longer prompts are truncated like the reference pipeline |
| image input (img2img / i2v) | ✅ | image (base64 RGB24) + matching size; CLIP pooling over the reference frame |
| audio | ✅ | synchronized mono PCM at 44,100 Hz from the MMAudio VAE + BigVGAN vocoder, in the same AVI |
| concurrency | ✅ | pending_requests: 1 in the preset; run one package at a time on a 32 GB GPU |
Correctness
| gate | description | R9700 (gfx1201) |
|---|---|---|
| seeded full-clip digest | Seed-42 768×512 8-step fox clip rendered over HTTP; the whole AVI (all 121 video frames and all 222,338 PCM samples) compared by SHA-256 against the pinned digest 561980e6f034d24da288c6b69bc9ba70a571049e3634385b52a5f28cc1d16666 | ✅ pass (byte-exact, reproduced on the files in this repository) ¹ |
| seeded replay | repeated requests with the same seed on one server | ✅ identical digests |
| invalid requests | unsupported size rejected | ✅ HTTP 400 |
| clean shutdown | SIGTERM during idle after serving | ✅ exit code 0 |
| oracle vs diffusers | text and image conditioning, one and eight steps, matching initial noise: decoded RGB frames PSNR and waveform SNR against Diffusers 0.42.1 | ✅ parity tables in REPORT.md |
- ¹ 2026-12-02, the staged package before upload (this repository's
model.json,model.json.lock, programs, packed transformer and constants), fetched withloom-fetchinto a clean directory and served withloom-servefrom branchloom-video-serving(66b1f31f3b); render 504.11 s end to end, digest matched.
Files
model.json/model.json.lock: the card and the pinned source files (sha256 checked byloom-fetch). Lock scopeassets: the publisher components resolve to@publisher/…at revision4b242f55…, the packed transformer and constants resolve to@document/…(this repository).generate.loom,service.loom,weights.loom: the Loom programs (DiT, text conditioning, VAE, vocoder, request handling).weights-00.safetensors: the publisher's DiT transformer packed to row-major NVFP4 with FP8 scales per 16 values (23,832,013,136 bytes, SHA-256e4a6ca56…ac47). This is the only weight file stored here.constants.safetensors: build-time constants (24,885,792 bytes).devices-r9700.json,serve-r9700.json: the R9700 device and deployment configuration used in the Quick start.REPORT.md: how the values above were measured: setup, commands, profiles, optimization log and oracle parity.
There is no tokenizer.json or info.json here. loom-fetch takes both tokenizers from the publisher's repository, and info.json is produced by the LLM card generator, which does not cover video models yet.
Versions: card schema model-card.v1; programs from the fastkandinsky module of loom-fun; loom-serve from ROCm/hrx-system PR #3588 (loom-video-serving @ 66b1f31f3b).
Source files
loom-fetch takes each component from the repository whose file the programs read directly, at a pinned revision:
| component | read from | file |
|---|---|---|
| DiT transformer (source of the packed NVFP4 file) | kandinskylab/FastKandinsky-6.0-Pro-NVPF4-QAD @ 4b242f55 | transformer/diffusion_pytorch_model.safetensors, BF16/F32, 60.3 GB — packed locally into this repository's weights-00.safetensors |
| text encoder (Qwen2.5-VL) | same @ 4b242f55 | text_encoder/model-0000{1..5}-of-00005.safetensors |
| CLIP text encoder | same @ 4b242f55 | text_encoder_2/model.safetensors |
| video VAE (Hunyuan) | same @ 4b242f55 | vae/diffusion_pytorch_model.safetensors |
| audio VAE (MMAudio) | same @ 4b242f55 | audio_vae/diffusion_pytorch_model.safetensors |
| vocoder (BigVGAN) | same @ 4b242f55 | vocoder/diffusion_pytorch_model.safetensors |
| Qwen tokenizer | same @ 4b242f55 | tokenizer/tokenizer.json |
| CLIP tokenizer | same @ 4b242f55 | tokenizer_2/tokenizer.json |
The checkpoint is published under the MIT license, as declared in the publisher's model card, which also describes model training, intended uses and limitations.