Profile
Back to NewsBack
GitHub Trending 36 min
Reader Mode
zxcHolmes/minimax-h3-studio: minimax-h3-studio

zxcHolmes/minimax-h3-studio: minimax-h3-studio

MiniMax-H3 Studio

A self-hosted web studio for MiniMax-H3 audio-video generation on a single GPU machine. It drives ComfyUI as a Python library (no ComfyUI UI, no workflow JSON) so it can use the quantized ComfyUI checkpoints and ComfyUI's dynamic VRAM offloading, and puts a resident job server and a browser UI in front of it.

  • Text to video, image to video (first frame, or first + last frame) and references to video (up to 6 images and 3 videos; a reference video passes on its motion, camera, scene and sound).
  • Turbo LoRAs from larryvrh (4 steps) and Pika H3 Flex (6 steps), optionally with training-free sparse attention, plus FastVideo's FastH3 bases, selectable per job; the base model follows the mode automatically.
  • Picture generation and editing with MOSS-Image, FLUX.2 Klein 4B (4 steps), Qwen Image 2.1 Turbo (8 steps) and Ming Image 0.2 Design (12 steps). Klein, Qwen and Ming edit input images. A finished picture goes into editing, video or 3D with one click.
  • Image to 3D with Pixal3D: a single image becomes a textured GLB, with interactive rotation/zoom and download.
  • Speech and transcription through native audio.cpp CUDA server: Qwen3-TTS, VoxCPM2 and OmniVoice for generation/cloning/design; Qwen3-ASR for uploaded audio/video transcription and supported subtitle exports.
  • Music generation with MiniMax Music 3: songs up to 5 minutes from a caption and lyrics.
  • Upscaling finished videos 2× with RelayVSR, keeping their sound.
  • Guide audio for video jobs: anchor a slice of a song or recording as the shot's soundtrack, so singing, speech and motion follow it (music videos, lip sync).
  • FastVideo's distilled FastH3 8-step checkpoints as a second model group that runs without a LoRA.
  • Weights stay loaded between jobs; jobs run one at a time from a persistent queue.
  • H3 video output is pixel-identical to the official ComfyUI example workflows with the same settings.
  • Deploy the server and UI over SSH, then download the models you use from the Studio sidebar.
On an RTX 4090 a 5-second clip with sound takes about 30–45 s at 544p and 65–70 s at 768p.

!MiniMax-H3 Studio: the generation form on the left, matching generation history on the right

Requirements

GPU machine (where generation runs)

  • Linux with an NVIDIA GPU. Developed on an RTX 4090 24 GB with 125 GB RAM; checkpoints are memory-mapped, so plenty of system RAM (64 GB+) and a fast SSD help.
  • A ComfyUI checkout at commit 2f894332 or newer (v0.44.0 plus 14 commits, the first with RelayVSR; developed against that commit) and its Python environment (conda or venv). ./deploy.sh install sets all of this up on a bare machine (see Quick start); this project only imports ComfyUI. After git pull, install the versions its requirements.txt pins: this commit needs comfy-aimdo==0.6.0 and comfy-kitchen==0.2.41, whose window_attention RelayVSR calls (on PyTorch older than cu130, rebuild comfy_kitchen as described below).
  • systemd, and sudo without a password prompt for the deploy user (the deploy script installs and restarts a systemd unit over non-interactive SSH).
  • python3, curl and rsync.
  • Optional, about 2× faster: triton and sageattention in the ComfyUI environment (enabled through H3_COMFY_ARGS).
  • Optional, for the larryvrh LoRA: its ComfyUI node, git clone https://github.com/larryvrh/ComfyUI-MiniMax-H3-Turbo /custom_nodes/ComfyUI-MiniMax-H3-Turbo.
Your machine (where you deploy from): Node.js 18+, ssh with key-based login to the GPU machine, rsync, and scp.

comfy_kitchen on PyTorch older than cu130

ComfyUI runs the int8 checkpoints' matmuls and the block-sparse attention of FastH3 (VSA) and of the sparse choices (Sol-Attn) through comfy_kitchen, which has cuda, triton and eager (plain PyTorch) backends. Two things keep the fast backends off on a cu128 setup like the reference machine (torch 2.11.0+cu128, driver 570):

  1. The published comfy_kitchen CUDA wheels need the CUDA 13 runtime and an NVIDIA driver r580 or newer, so their CUDA ops do not load on a cu128 setup with driver 570. Rebuild it from source against the CUDA toolkit that matches your torch (source builds support CUDA 12.8 and newer), for your GPU's architecture, and install that wheel into the ComfyUI environment. This is how the reference machine's comfy_kitchen 0.2.41 was built:
- Prerequisites: the CUDA toolkit matching torch's CUDA (python -c "import torch; print(torch.version.cuda)"; here /usr/local/cuda-12.8 with nvcc), CMake 3.26+ and nanobind 2+ (pip fetches both into the build environment), and your GPU's compute capability without the dot (nvidia-smi --query-gpu=compute_cap --format=csv: 8.9 → 89 for RTX 40, 86 for RTX 30, 120 for RTX 50). Building only for your own architecture is much faster than the default list. - Get the source from Comfy-Org/comfy-kitchen at the tag of the version ComfyUI installed (pip show comfy-kitchen). It vendors CUTLASS and flash-attention as git submodules, so clone recursively:
git clone --branch v0.2.41 --recurse-submodules https://github.com/Comfy-Org/comfy-kitchen ~/build/comfy-kitchen-0.2.41

Keep a copy of the installed package first so you can roll back: cp -r /comfy_kitchen ~/build/backup_kitchen_cu13. - Build a wheel inside the ComfyUI environment (about a few minutes; build dependencies such as cmake, ninja and nanobind are fetched by pip):

conda activate comfyui            # or the ComfyUI venv
     cd ~/build/comfy-kitchen-0.2.41
     export CUDA_HOME=/usr/local/cuda-12.8 PATH=/usr/local/cuda-12.8/bin:$PATH
     export COMFY_CUDA_ARCHS=89        # your compute capability; setup.py reads it (its README's
                                       # equivalent is python setup.py build_ext --cuda-archs="89" bdist_wheel)
     export MAX_JOBS=16 CMAKE_BUILD_PARALLEL_LEVEL=16
     pip wheel . --no-deps -w ~/build/dist -v 2>&1 | tee ~/build/build.log

- Install it over the published wheel and check that the CUDA backend loads:

pip install --force-reinstall --no-deps ~/build/dist/comfy_kitchen-0.2.41-*.whl
     python -c "import comfy_kitchen as ck; print(ck.list_backends()['cuda']['available'])"   # True

If available stays False, read unavailable_reason in ck.list_backends()['cuda']; it is usually a toolkit / driver mismatch or a wrong COMFY_CUDA_ARCHS. Updating ComfyUI can pull a newer published comfy_kitchen back in; rebuild the new version the same way.

  1. Even then, stock ComfyUI disables the CUDA backend whenever torch is older than cu130, in comfy/quant_ops.py:
if cuda_version < (13,):
       ck.registry.disable("cuda")
       logging.warning("WARNING: You need pytorch with cu130 or higher ...")

Patch it so the backend is only disabled when its ops really fail to load:

-        if cuda_version < (13,):
   +        # Local change: comfy_kitchen is built from source for this CUDA version, so keep its CUDA backend
   +        # below cu130 as long as its ops load; only disable it when they do not.
   +        if cuda_version < (13,) and not ck.list_backends().get("cuda", {}).get("available"):
                ck.registry.disable("cuda")

The same change as a command, safe to run more than once (it backs up the original to quant_ops.py.orig):

cd /path/to/ComfyUI && python3 - <<'EOF'
   from pathlib import Path
   p = Path("comfy/quant_ops.py"); t = p.read_text()
   old = "        if cuda_version < (13,):\n            ck.registry.disable(\"cuda\")"
   new = ("        if cuda_version < (13,) and not ck.list_backends().get(\"cuda\", {}).get(\"available\"):\n"
          "            ck.registry.disable(\"cuda\")")
   if new in t:
       print("already patched")
   elif old in t:
       Path("comfy/quant_ops.py.orig").write_text(t)
       p.write_text(t.replace(old, new)); print("patched")
   else:
       raise SystemExit("pattern not found: ComfyUI changed this code, apply the idea by hand")
   EOF

Keep --enable-triton-backend in H3_COMFY_ARGS too. Restart the server afterwards and check its startup log (journalctl -u h3-server) for Found comfy_kitchen backend cuda: {'available': True, 'disabled': False, ...}. On the 4090 this made every model 17–48% faster (the timings in this README). The patch lives in the ComfyUI checkout, not in this repo: re-apply it after updating ComfyUI (a git pull may also conflict with it). If the CUDA backend is unavailable, everything still runs on triton, only slower.

Quick start

git clone https://github.com/<you>/minimax-h3-studio && cd minimax-h3-studio
cp .env.example .env          # then edit it, see Configuration
./deploy.sh install           # set up the GPU machine from scratch, deploy and start

Run ./deploy.sh to build the UI and start the server. On a fresh host, supply the SSH target and leave H3_COMFYUI unset to deploy the lightweight setup server. Open Environment to choose an existing ComfyUI checkout and Python executable or let Studio create its own. Then open Models to download the models you need.

Environment

Environment (/environment) shows storage locations and free space, host tools and GPU driver, the Python and ComfyUI environment, and optional feature runtimes. When the inference environment is missing, Studio opens this page automatically. Use Check again after making changes to the host.

  • Configuration saves server-local paths, the PyPI mirror, and HTTPS options into .studio/settings.json by default. Saved fields take precedence over the legacy deployment environment. Existing defaults and models are reused. Changing the data directory selects a different history and output location. Configuration changes restart Studio after active jobs and downloads finish.
  • Install core runtime creates the selected Python environment and installs ComfyUI, CUDA PyTorch, the Python dependencies, and the enabled acceleration packages. Extras includes the H3 Turbo node and an optional comfy_kitchen build when the matching CUDA toolkit is available. Install system packages, the NVIDIA driver, or the CUDA toolkit on the host before continuing if they are missing.
  • Feature runtimes can install audio.cpp separately from the GGUF models. It displays installed and running states independently. SoulX and AuK can install their individual environments and checkpoints from the same page.
  • Open Studio on loopback on the GPU host to edit the configuration or install packages. For remote access, use HTTPS and obtain the setup key as the Studio service account via python3 server/environment_config.py --setup-key from the installation directory. To enable editing when HTTPS is off, use an SSH port forward to the Studio HTTP listener and open it at http://127.0.0.1. The setup key and settings stay on the server.
For a local checkout, build the UI with npm --prefix web ci and npm --prefix web run build, then start the setup server with scripts/bootstrap.sh. The bootstrap needs Python with its venv module. No ComfyUI installation is required to open the page.

Setting up a bare machine

./deploy.sh install copies scripts/install.sh to the GPU machine, runs it there and then deploys the UI and the server. You can also run scripts/install.sh on the GPU machine itself; it reads the same .env. It goes through these steps, checks each one first and only does what is missing, so after an interruption (a dropped connection, a failed download, the reboot a new driver needs) you run the same command again:

| Step | Skipped when | Otherwise | |---|---|---| | system | git, curl, rsync, python3, gcc/g++/make, ffmpeg, aria2c exist | apt-get install of the missing ones | | driver | nvidia-smi reports driver 570 or newer | ubuntu-drivers install (or H3_NVIDIA_DRIVER); stops with exit status 3 if a reboot is needed. An older driver is reported, not replaced | | python | the conda env (or the H3_PYTHON venv) exists with Python 3.10+ | installs Miniforge at the root H3_CONDA_SH points into and creates the env, or creates the venv | | comfyui | H3_COMFYUI is a checkout at 2f894332 or newer | clones ComfyUI at H3_COMFYUI_REF. An older checkout is reported, not updated | | torch | torch, torchvision and torchaudio import and see the GPU | installs H3_TORCH_SPEC from H3_TORCH_INDEX | | requirements | the pinned ComfyUI requirements and uv are available | pip install -r requirements.txt uv | | accel | triton and sageattention are installed (only those H3_COMFY_ARGS asks for) | pip install | | kitchen | comfy_kitchen's CUDA backend loads and ComfyUI does not switch it off | on a cu12x torch: installs the matching CUDA toolkit from NVIDIA's apt repository, builds comfy_kitchen from source and patches comfy/quant_ops.py, as described above | | nodes | the larryvrh node is in custom_nodes | clones it | | models (opt-in) | every file prepare_models.py lists exists | runs prepare_models.py, which resumes partial downloads |

./deploy.sh install --check                  # report what is missing, change nothing
./deploy.sh install --skip kitchen           # leave steps out
./deploy.sh install --with-models            # prepare the full checkpoint set before deploying
./deploy.sh install --only torch accel       # run only these steps (no deploy afterwards)
./deploy.sh install -- --skip ref2va --workers 4 --connections 8   # arguments after -- go to prepare_models.py

From mainland China the default sources are slow (measured on a rented 4090 in November 2026: GitHub, conda-forge, download.pytorch.org and NVIDIA's .com host 0.1–0.4 MB/s, huggingface.co unreachable). These settings measured 10–80 MB/s there:

H3_MODEL_SOURCE=modelscope
HF_ENDPOINT=https://hf-mirror.com
H3_CONDA_INSTALLER=https://mirrors.tuna.tsinghua.edu.cn/github-release/conda-forge/miniforge/LatestRelease/Miniforge3-Linux-x86_64.sh
H3_CONDA_CHANNEL=https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
H3_TORCH_INDEX=https://mirrors.nju.edu.cn/pytorch/whl/cu128
H3_CUDA_REPO=https://developer.download.nvidia.cn/compute/cuda/repos
PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/

GitHub clones (ComfyUI, the larryvrh node, comfy_kitchen's source) and the audio.cpp runtime still come from H3_GITHUB; the clones are made without history to keep them small.

Package installs and the driver need sudo on the GPU machine; the systemd unit ./deploy.sh installs afterwards needs it without a password prompt. The automatic system steps are written for Ubuntu (developed on 24.04); on another distribution the script names what is missing and you install it yourself. Skipping the kitchen step uses the Triton backend and is 17–48% slower. Strata for LLM batches is not installed.

Open http://:8190. The first start loads the text encoder and VAEs; the UI shows when the server is ready.

Install on iPhone or iPad

Open the Studio URL in Safari and choose Share → Add to Home Screen. If Safari shows Open as Web App, leave it on, then tap Add. Launch H3 Studio from the new icon to open it outside the Safari browser chrome. The app needs a network connection to the Studio server.

The compact workspace keeps the tools on the left and the composer below the results. Open Settings for generation parameters and optional inputs. Press Enter in the main prompt to submit or Shift+Enter for a newline. New tasks appear at the bottom. Scroll toward the top to load earlier results.

Configuration

Use Environment for Studio's saved configuration. The deployment scripts also accept .env (git-ignored) for the SSH target, service settings, and installation defaults. Variables already set in your shell take precedence over .env for the scripts. Explicit settings saved in Studio take precedence over the corresponding server environment variables.

| Variable | Required | Default | Meaning | |---|---|---|---| | H3_DEPLOY_HOST | yes | | SSH target of the GPU machine, e.g. me@gpu-host | | H3_COMFYUI | | configured in Environment | Existing ComfyUI checkout or initial default | | H3_CONDA_ENV | | comfyui | Conda env that runs ComfyUI | | H3_CONDA_SH | | ~/miniconda3/etc/profile.d/conda.sh | conda init script to source | | H3_PYTHON | | | Absolute path of a Python interpreter (venv); overrides the conda settings | | H3_DEPLOY_DIR | | ~/minimax-h3-studio | Install directory on the GPU machine (code and UI) | | H3_DATA_DIR | | $H3_DEPLOY_DIR/data | Data directory on the GPU machine (jobs.db and all generated files); put it on a large disk | | H3_STATE_DIR | | $H3_DEPLOY_DIR/.studio | Optional server-side location for Environment settings and the setup key. Set it in the launcher environment | | H3_SERVICE_USER | | SSH user | User the service runs as | | H3_SERVICE | | h3-server | systemd unit name | | H3_HOST / H3_PORT | | 0.0.0.0 / 8190 | Address the server listens on | | H3_HTTPS | | off | Set 1 to also serve HTTPS with a cached 100-year local Root CA ($H3_DATA_DIR/tls/ca.crt, downloadable at /ca.crt) and an auto-renewed 800-day server cert | | H3_HTTPS_PORT | | 8443 | HTTPS port used alongside H3_PORT when H3_HTTPS=1 | | H3_TLS_HOSTS | | auto-detected LAN IPs | Optional comma/space-separated extra IPs or hostnames for the TLS cert SAN | | H3_COMFY_ARGS | | --enable-triton-backend --use-sage-attention | Extra ComfyUI CLI flags; set it empty if triton / sageattention are not installed | | HF_ENDPOINT | | https://huggingface.co | Hugging Face mirror for model downloads | | HF_TOKEN | | | Token for gated or private repos | | H3_MODEL_SOURCE | | | modelscope: fetch each model from ModelScope's copy of the same repo first, from HF_ENDPOINT when it has none | | H3_AUDIOCPP_DIR | | sibling audio_cpp/ next to H3_COMFYUI | Native runtime, package cache and selected GGUF models | | H3_AUDIOCPP_PORT | | 8191 | Worker-owned audio.cpp server, bound only to loopback | | H3_AUDIOCPP_THREADS | | 8 | Native CPU worker threads | | H3_AUDIOCPP_INSTANCES | | 1 | audio.cpp servers for speech jobs; consecutive queued speech jobs run one per instance (ports PORT, PORT+10, …). Measured on the 4090: 2 instances ≈ 1.9× clips/min | | H3_AUDIOCPP_TIMEOUT | | 1800 | Maximum seconds for one native speech/ASR request | | H3_AUDIO_TOOLS_DIR | | $H3_DATA/audio_tools | Standalone SoulX-Singer-SVC and AuK-Flash environments and pinned checkpoints | | H3_STRATA_DIR | | | Strata checkout (.venv/, serve/server.py) for kind=llm batches; empty disables LLM jobs | | H3_STRATA_CONFIG | | | Strata engine config JSON (model, context, MTP) | | H3_STRATA_PORT | | 8192 | Worker-owned Strata server, bound only to loopback | | H3_STRATA_PARALLEL | | 8 | Strata decode slots (--parallel) | | H3_STRATA_CONCURRENCY | | 16 | Default requests in flight per LLM batch | | H3_STRATA_TIMEOUT | | 1800 | Maximum seconds for one chat request | | H3_API | | http://: | Where npm run dev proxies API calls | | H3_COMFYUI_REF | | 2f894332 | Machine setup: commit, tag or branch a new ComfyUI checkout is made at | | H3_PYTHON_VERSION | | 3.12 | Machine setup: Python version of a new conda env | | H3_TORCH_SPEC / H3_TORCH_INDEX | | torch 2.11.0, torchvision 0.26.0, torchaudio 2.11.0 / the cu128 index | Machine setup: PyTorch packages and the index they come from | | H3_NVIDIA_DRIVER | | ubuntu-drivers install | Machine setup: apt package of the NVIDIA driver to install when there is none | | H3_GITHUB | | https://github.com | Machine setup: mirror for clones and the conda installer | | H3_CONDA_CHANNEL | | conda-forge | Machine setup: conda-forge or a mirror of it | | H3_CUDA_REPO | | https://developer.download.nvidia.com/compute/cuda/repos | Machine setup: NVIDIA's CUDA apt repository or a mirror | | H3_BUILD_DIR | | ~/build | Machine setup: installers and the comfy_kitchen source build | | PIP_INDEX_URL | | | Machine setup: PyPI mirror (read by pip itself) |

Models

The standalone Models page (/models) lists the files each feature needs, their paths on the GPU host, sizes, and download progress. Choose Download to start a background transfer, Pause to keep the partial files, or Resume / Retry to continue. Shared checkpoints are reused. The page fetches remote size metadata if it is not already known. A missing size is shown as a dash.

Submitting a job with a missing model returns HTTP 409 with a link to Models. Once the model is ready, submit the job again. Downloads run separately from the inference queue, so already installed models remain usable. In Models, the Hugging Face source defaults to HF Mirror. Switch to the official Hugging Face site for subsequent downloads or retries. Studio uses the HF_TOKEN and PIP_INDEX_URL configured at deployment. The batch CLI also accepts HF_ENDPOINT and H3_MODEL_SOURCE. Strata uses the checkpoint configured in its own runtime.

For batch preparation, ./deploy.sh models runs scripts/prepare_models.py on the GPU machine. It downloads exactly what the server is configured to use (the list comes from server/model_catalog.py, server/image_models.py and server/audio_catalog.py), skips files that already exist and resumes interrupted downloads. You can also run it directly on the GPU machine; it needs only Python's standard library:

python3 scripts/prepare_models.py --comfyui /path/to/ComfyUI
python3 scripts/prepare_models.py --list                    # show files and sources
python3 scripts/prepare_models.py --comfyui ... --skip ref2va fasth3

Groups for --skip / --only include shared, fl2va, ref2va, larryvrh, pika, fasth3, image, klein, qwen-image, ming-image, audio, audio-runtime, qwen3_tts, voxcpm2, omnivoice, qwen3_asr, music, relayvsr, and pixal3d. image includes all four picture models. Use klein, qwen-image or ming-image to select individual models. Extra arguments to ./deploy.sh models are passed to the downloader.

| File | Folder | Source | Size | |---|---|---|---| | qwen3vl_32b_minimax_h3_nvfp4_awq (text encoder) | text_encoders | Comfy-Org/MiniMax-H3 | 15.7 GB | | minimax_h3_video_vae_int8_convrot, minimax_h3_audio_vae_fp32 | vae | Comfy-Org/MiniMax-H3 | 3.4 GB | | minimax_h3_fl2va_pruned_int8_convrot (text / image to video) | diffusion_models | Comfy-Org/MiniMax-H3 | 21 GB | | minimax_h3_ref2va_pruned_int8_convrot (reference, Pika) | diffusion_models | Comfy-Org/MiniMax-H3 | 21 GB | | Pika H3 Flex LoRAs (fl2va, ref2va) | loras | Pika-Labs/Pika-H3-Flex | 2 GB each | | minimax_h3_turbo_v4_step600_ema | loras | larryvrh/MiniMax-H3-Turbo-Lora | 0.8 GB | | fastvideo_fasth3_8step_v2_pruned_int8_convrot (FastH3, text / image) | diffusion_models | FastVideo/FastVideo-FastH3-Comfy | 22 GB | | fasth3_omniref_8step_pruned_int8_convrot (FastH3, reference) | diffusion_models | FastVideo/FastH3-Omni-Comfy | 22 GB | | moss_image_sft_int8_convrot (pictures) | diffusion_models | Comfy-Org/MOSS-Image | 5.4 GB | | qwen3.5_9b_w4a8_gptq (picture text encoder) | text_encoders | Comfy-Org/MOSS-Image | 7.3 GB | | flux2-vae_small (picture VAE) | vae | Comfy-Org/MOSS-Image | 0.25 GB | | flux-2-klein-4b (distilled, 4-step generation/editing; not Base) | diffusion_models | Comfy-Org/Flux-2-Klein-4B | 7.2 GB | | qwen_3_4b (Klein text encoder) | text_encoders | Comfy-Org/Flux-2-Klein-4B | 7.5 GB | | flux2-vae-klein (Klein VAE; source filename flux2-vae) | vae | Comfy-Org/Flux-2-Klein-4B | 0.31 GB | | qwen_image_2.1_turbo_int8_convrot (8-step generation/editing) | diffusion_models | Comfy-Org/Qwen-Image-2.1 | 6.8 GB | | qwen3vl_8b_int8_convrot (Qwen Image 2.1 text/vision encoder) | text_encoders | Comfy-Org/Qwen-Image-2.1 | 8.7 GB | | qwen_image_2.1_vae_bf16 (Qwen Image 2.1 VAE) | vae | Comfy-Org/Qwen-Image-2.1 | 0.63 GB | | ming_image_0.2_design_int8_convrot (12-step generation/editing) | diffusion_models | Comfy-Org/Ming-Image | 5.8 GB | | ming_image_0.2_ling_mini_2.0_int8_convrot (Ming Image 0.2 text encoder) | text_encoders | Comfy-Org/Ming-Image | 19 GB | | ming_image_vae_bf16 (Ming Image 0.2 VAE) | vae | Comfy-Org/Ming-Image | 0.24 GB | | minimax_music3_dit_int8_convrot (music) | diffusion_models | Comfy-Org/MiniMax-Music-3 | 2.5 GB | | minimax_music3_text_encoder_pruned_int8_convrot (music text encoder) | text_encoders | Comfy-Org/MiniMax-Music-3 | 9.2 GB | | minimax_music3_dav (music VAE) | vae | Comfy-Org/MiniMax-Music-3 | 0.22 GB | | relayvsr_x2_lightx2v_int8_convrot (RelayVSR 2×) | diffusion_models | Comfy-Org/RelayVSR | 4.8 GB | | relayvsr_flash_vae_x2_fp32 (RelayVSR decoder) | vae | Comfy-Org/RelayVSR | 0.12 GB | | pixal3d_int8_convrot (image to 3D) | diffusion_models | Comfy-Org/Pixal3D | 5.2 GB | | dino_v3_L_naf_fp32 (3D image encoder) | clip_vision | Comfy-Org/Pixal3D | 1.1 GB | | trellis_2_shape_vae_bf16 (3D shape VAE) | vae | Comfy-Org/Pixal3D | 1.0 GB | | trellis_2_texture_vae_bf16 (3D texture VAE) | vae | Comfy-Org/Pixal3D | 0.88 GB | | moge_2_vitl_normal_fp16 (3D camera estimation) | geometry_estimation | Comfy-Org/MoGe | 0.62 GB | | birefnet (3D background removal) | background_removal | Comfy-Org/BiRefNet | 0.41 GB |

The Klein and Qwen Turbo additions require approximately 31.1 GiB (33.4 GB) in total. Table sizes are approximate binary gigabytes. Klein files are stored under split_files/ in its Hugging Face repository; its VAE is saved as flux2-vae-klein.safetensors to preserve any pre-existing flux2-vae.safetensors; the downloader maps them into ComfyUI's normal model folders. Only the distilled flux-2-klein-4b and standalone Qwen Turbo checkpoint are downloaded; the full-step Base models, extracted Turbo LoRA and optional prompt-enhancement encoders are excluded.

HF_ENDPOINT=https://hf-mirror.com ./deploy.sh models --only klein qwen-image --workers 4

Downloads resume from .part files and the six new files are verified against their official SHA256 checksums before being made available. --workers controls concurrent downloads (1–8, default 1). For parallel connections within each file, install aria2c and add --connections 8; the default uses only the Python standard library. Segmented .part.aria2 downloads must be resumed with --connections greater than one. Existing files in these two new groups are also checked against the pinned hashes. Allow at least 35 GiB of additional free space for these two model groups; generated images and other data need their own space.

The models are under their own licenses (MiniMax-H3 Community License for the base checkpoints); review them before use.

Using the studio

| Mode | Base model | Inputs | |---|---|---| | Text | fl2va | prompt | | Frames | fl2va | first frame, optional last frame | | Reference | FastH3 OmniRef or ref2va + Pika H3 Flex | prompt, optional reference images (up to 6) and videos (up to 3) | | Picture / MOSS-Image | MOSS-Image | prompt; generation only | | Picture / FLUX.2 Klein 4B | distilled 4-step Klein | prompt; optional input images for editing | | Picture / Qwen Image 2.1 Turbo | 8-step Turbo int8 | prompt; optional input images for editing | | Picture / Ming Image 0.2 Design | 12-step Design int8 | prompt; optional input images for editing (up to 8) | | Music | MiniMax Music 3 | caption, optional lyrics, maximum length (no video) | | Image to 3D | Pixal3D | one image; textured GLB output |

Prompts are edited in three sections: picture, sound and music. Reference mode builds the official ref2va prompt layout (subject definitions, summary, retention) from the images and their descriptions; refer to them as , ... Switch to the raw prompt view to see or edit the full text. Job cards show the first lines of the prompt; long prompts expand with Show more.

!Reference mode with two subjects, each with a short description

Finished jobs appear in the matching task-type history: videos play inline, songs get an audio player and their lyrics, pictures link to the full-size PNG, and 3D models offer interactive preview and GLB download. Reuse loads a job's settings back into the form; a picture's Reference / Frame buttons and a song's Video button hand it to a video job, while a picture's 3D button opens image-to-3D generation.

!Two job cards: the same prompt with FastH3 V2 at 768p (71 s) and 544p (39 s)

Models come in three groups. MiniMax-H3 + LoRA runs the fl2va base model with larryvrh's turbo LoRA for text and image modes. The recommended sparse choice adds the same training-free Sol-Attn sparse attention as Pika's sparse choices (described below), which halved sampling with comparable quality:

| LoRA | Mode | Steps | Resolutions | 5 s clip on a 4090 | |---|---|---|---|---| | larryvrh v4 4-step · sparse (recommended) | text / image | 4 | 544p, 768p | ~22 s / ~38 s (sampling 14 s / 26 s) | | larryvrh v4 4-step | text / image | 4 | 544p, 768p | ~31 s / ~67 s |

The lightx2v turbo LoRAs were removed on 2026-10-31.

FastVideo FastH3 runs FastVideo's distilled 8-step checkpoints, which replace the base model and take no LoRA. They use the settings of the ComfyUI FastH3 templates, including comfy_kitchen attention with Video Sparse Attention (keep 10%):

| Model | Mode | Sampler | Shift | 5 s clip on a 4090 | |---|---|---|---|---| | FastH3 V2 8-step | text / image | res_multistep | 10/3 | ~39 s (544p) / ~71 s (768p) | | FastH3 OmniRef 8-step | reference | euler | 12/3 | ~41 s (544p) / ~67 s (768p) |

Pika H3 Flex puts Pika's Comfy-format BF16 LoRAs (Pika-Labs/Pika-H3-Flex, comfy/loras/) on the official fl2va and ref2va bases, one for text / image modes and one for reference mode. It samples like Comfy-Org's video_pika_h3_flex_* templates: the lcm sampler (fresh noise every step) over six fixed sigmas 1.0, 0.972973, 0.923077, 0.8, 0.571429, 0.333333, 0.0 (Pika's knots 1000/750/500/250/100/40/0 at shift 12; audio shift 3), so the sampler and steps cannot be changed. Pika trains for 480p / 768p; 544p works as well.

| Choice | Mode | 544p | 768p | |---|---|---|---| | Pika H3 Flex 6-step · sparse (recommended) | text / image, 5 s | ~25 s (sampling 17 s) | ~45 s (sampling 34 s) | | Pika H3 Flex 6-step · sparse (recommended) | reference, 10.8 s, one image + guide audio | ~54 s (sampling 39 s) | ~108 s (sampling 84 s) | | Pika H3 Flex 6-step · sparse, dense 1st step | text / image, 5 s | | ~50 s (sampling 38 s) | | Pika H3 Flex 6-step · sparse, dense 1st step | reference, the same 10.8 s shot | ~59 s (sampling 43 s) | | | Pika H3 Flex 6-step · dense | text / image, 5 s | | ~81 s (sampling 69 s) | | Pika H3 Flex 6-step · dense | reference, the same 10.8 s shot | ~95 s (sampling 79 s) | |

All Pika choices use lcm over the six fixed sigmas at shift 12/3. Sparse attention saves the most at 768p: its gain grows with the sequence length, and 544p sequences are about half as long. Measured on a 4090 on 2026-10-31.

Dense Pika is slower than FastH3 although it takes fewer steps, because FastH3 uses Video Sparse Attention (VSA). VSA needs the coarse attention branch FastH3 learned in training, so it cannot run on the official bases. The sparse choices use the training-free Sol-Attn method of the same ComfyUI node instead. That node is ComfyUI's built-in BlockSparseAttention (comfy_extras/nodes_sparse_attention.py), not a custom node; the engine switches the model to comfy kitchen attention and selects sol-attn. Its kernels come from comfy_kitchen (ck.sol_attn), so the sparse choices, like VSA, need a comfy_kitchen build whose CUDA ops load on your GPU (see comfy_kitchen on PyTorch older than cu130); otherwise the node reports "no compiled sol_attn kernel for this GPU". Settings: tau 1.3 (about 10% of key blocks computed exactly), with text, reference and audio rows kept exact. The recommended one runs all six steps sparse and halves sampling; the other keeps the first step dense (start 0.2) for about 4 s more. On the two test shots, picture quality, subject identity and motion held up in both; the shots diverge from the dense ones, as any change to attention makes them do. Pika was not trained for sparse attention; the dense choice reproduces Pika's templates.

Reference mode used to offer the lightx2v ref2v 4-step LoRAs on the ref2va base; they smeared fast motion (swinging sleeves, blades) into streaks even at 6–8 steps, so they were removed in favour of OmniRef. Pika's ref2va LoRA, on the same base, kept the fast sword dance that broke them free of streaks. FastH3 needs a comfy_kitchen build whose CUDA kernels match the driver (the cu13 wheel fails on CUDA 12.8 drivers; rebuild it from source with COMFY_CUDA_ARCHS set). With torch older than cu130, stock ComfyUI disables comfy_kitchen's CUDA backend in comfy/quant_ops.py even when it works; keeping it enabled (only disable it when its ops fail to load) made every model 17–48% faster on the 4090, the timings above. Keep --enable-triton-backend as well. Switching between groups swaps the resident base model, which takes about a second plus the first-use load from disk.

MOSS-Image pictures use MOSS-Image with the settings of the ComfyUI template: 25 steps, cfg 2.5, er_sde, simple scheduler, about one megapixel (1024×1024 for 1:1). Write the prompt as a detailed English caption; the template's LLM prompt expansion is not used (it took ~45 s and made results worse), since the agent or person writing prompts already does that. A picture takes about 10–16 s on a 4090 depending on the prompt; the first picture job also loads the MOSS models. The video models stay resident. A finished picture's Reference and Frame buttons add it to the reference images or set it as the first frame of the video form. For image editing, use Klein, Qwen or Ming.

!Picture mode

Guide audio: any video job can take an audio file and a start time. The slice of the audio as long as the shot is anchored as its soundtrack from frame 0 (ComfyUI's MiniMaxH3AddGuide), and the model generates the picture to match: singers sing along, motion follows the beat. In the measured shots the clip's audio envelope correlates 0.92–0.99 with the song slice. A finished song's Video button puts it into the form as guide audio. For a music video, cut the song into shots whose lengths are on the frame grid (124, 141, 158, ... frames), give each shot its start time in the song, and lay the original song under the assembled video.

Music uses MiniMax Music 3 (int8 DiT and text encoder) with the settings of the ComfyUI template: the text encoder writes the acoustic tokens from the caption and lyrics (cfg 1.7, top-k 50), then 30 euler steps at cfg 1.7 and a tiled VAE decode; the result is saved as mp3 (V0). Write the caption in three parts (Global Metadata: genre, BPM, key, mood; Vocal Details; Arrangement); lyrics take section tags such as [Verse], [Chorus], [Instrumental], and an empty lyrics field gives an instrumental. The length is a maximum from 10 s to 5 min; the model may end the song earlier. A 60 s song takes about 100 s on a 4090 (about 70 s writing the acoustic tokens, 28 s sampling); time grows with the actual length, roughly 1.3 s per second of music plus 20 s. The first music job also loads the models; they stay resident next to the video and picture models. The form estimates how long the lyrics need and warns, with a one-click fix, when the maximum length would cut the song off.

!Music mode with lyrics and the length warning

Song covers and audio editing

Cover song changes the lead singer's timbre using SoulX-Singer-SVC. Upload a song up to five minutes long and a reference with 2–15 seconds of solo singing. Full-song mode uses Mel-Band RoFormer to extract the lead and mixes the converted vocal into the stereo backing track at the original key and duration. Isolated-vocals mode returns a mono vocal WAV. Edit audio uses AuK-Flash for short clips up to 15 seconds. It can replace lyrics in solo singing, change spoken timbre from a description, extract singing, clean up speech, or apply a custom instruction. Both histories can play the original and the result and download WAV files.

On Models, download SoulX-Singer-SVC or AuK-Flash to install its pinned weights and CUDA 12.8 Python environment. ./deploy.sh audio-tools provides the command-line installation. The GPU host needs Python 3.10–3.12, uv, Git, FFmpeg, and access to PyPI, the PyTorch wheel index, GitHub and Hugging Face (or HF_ENDPOINT). Use --only soulx-singer-svc or --only auk-flash to prepare one tool, or --check to verify the installation. Run python3 scripts/prepare_audio_tools.py --root /path/to/audio_tools to prepare them directly on the GPU host. Each job owns a subprocess and shares the Studio GPU queue. AuK-Flash uses CPU offload and checks for 19 GiB of available GPU memory after offloading existing models.

The public API and form fields are described in Song covers and audio editing.

Use Vocal gain in Full song mode to balance the converted lead against the backing track. New jobs start at +3 dB. The mixer applies the gain to the converted vocal before adding the backing track.

Use Record voice under Target voice to record a reference in the browser on trusted HTTPS or a loopback origin. Read the sample text or sing a short phrase. The form previews the recording and sends it with the cover job.

Native speech and transcription (audio.cpp)

Speech/ASR runs in the pinned audio.cpp v0.9.3 CUDA 12.8 server, independently of ComfyUI inference nodes. Studio starts its own loopback-only child on demand, with lazy loading, max_loaded_models: 1, a 1024 MiB native load headroom guard, and no idle unload timer. Repeated requests reuse the same model/session. The existing ComfyUI environment supplies CUDA/NCCL shared libraries to the child; a CPU fallback is rejected.

Only the requested families are included:

| Studio model | Prepared variant | Modes / timing | |---|---|---| | Qwen3-TTS | 1.7B Q8 Base, CustomVoice, VoiceDesign | Clone / preset speech / voice design use their respective checkpoints | | VoxCPM2 | Q8 | Generate, clone, design; descriptions use its native parenthesized text prefix | | OmniVoice | Q8 | Generate, clone, design; design uses the model's supported gender, age, pitch, accent/dialect and whisper attributes | | Qwen3-ASR | 1.7B Q8 + 0.6B Q8 Forced Aligner | Text and aligned words; subtitle cues are grouped from real aligned word spans |

This integration transcribes uploaded recordings, not live microphone streams. Upload audio or video (WAV, MP3, M4A, FLAC, MP4, MOV, WebM and other PyAV-readable files); the worker extracts/resamples audio to mono 16 kHz PCM, retaining video start offsets and audio gaps so exported timestamps stay on the original playback timeline. Metadata-less browser WebM recordings are supported too. Maximum input is 2 hours / 256 MB. Clone references may be audio or video up to 30 seconds. Qwen cloning can use a reference transcript or its speaker-embedding-only mode when the transcript is omitted.

Exports: TXT and JSON for every transcript; word JSON for aligned Qwen words; SRT and VTT only when the model actually returned timing spans. Qwen subtitle segments are grouped from alignment rather than claimed as native sentence detection.

Prepare runtime and models:

HF_ENDPOINT=https://hf-mirror.com ./deploy.sh models --only audio --workers 4 --connections 8

Runtime or individual groups can also be selected:

./deploy.sh models --only audio-runtime qwen3_tts

Native-only preparation does not require a ComfyUI checkout:

python scripts/prepare_models.py --only audio --audio-cpp /path/to/audio_cpp

The runtime is downloaded from the v0.9.3 Ubuntu CUDA 12.8 Colab release. The archive and every selected GGUF have pinned SHA256 checksums in server/audio_catalog.py. Runtime installation rejects archive links/devices and path traversal and swaps a complete installation into place. If the GPU host cannot reach GitHub, prepare/cache the archive on a connected machine and copy that verified package into /packages/ (and the small VAD asset into its listed model folder if raw GitHub downloads are blocked); preparation rechecks its checksum before installation. On Linux the binary also needs compatible CUDA/NCCL libraries; Studio discovers those from the existing Python environment.

The selected weights total about 15.1 GiB, plus a 218 MiB runtime archive, installed executable and the 1.2 MB Silero VAD dependency used by Qwen's timestamp-safe chunking. Allow at least 18 GiB. All other audio.cpp model families, fine-tunes and checkpoint precisions are excluded. GGUF tokenizers/codecs are embedded, so there is no extra tokenizer download.

| File (relative to /models/) | Source | Approx. size | |---|---|---| | Qwen3-TTS-12Hz-1.7B-Base-GGUF/qwen3-tts-12hz-1.7b-base-q8_0_v2.gguf | audio-cpp/audio.cpp-gguf | 2.51 GiB | | Qwen3-TTS-12Hz-1.7B-CustomVoice-GGUF/qwen3-tts-12hz-1.7b-customvoice-q8_0.gguf | audio-cpp/audio.cpp-gguf | 2.62 GiB | | Qwen3-TTS-12Hz-1.7B-VoiceDesign-GGUF/qwen3-tts-12hz-1.7b-voicedesign-q8_0.gguf | audio-cpp/audio.cpp-gguf | 2.62 GiB | | VoxCPM2-GGUF/voxcpm2-q8_0.gguf | audio-cpp/audio.cpp-gguf | 2.75 GiB | | OmniVoice-GGUF/omnivoice-q8_0.gguf | audio-cpp/audio.cpp-gguf | 1.26 GiB | | Qwen3-ASR-1.7B-GGUF/qwen3-asr-1.7b-q8_0.gguf | audio-cpp/audio.cpp-gguf | 2.30 GiB | | Qwen3-ForcedAligner-0.6B-GGUF/qwen3-forced-aligner-0.6b-q8_0.gguf | audio-cpp/audio.cpp-gguf | 1.05 GiB | | Silero-VAD/silero_vad_16k.safetensors | audio.cpp v0.9.3 bundled asset | 1.2 MB |

API: POST /api/jobs with kind=speech, audio_model (qwen3_tts, voxcpm2, omnivoice), speech_mode (generate, clone, design), prompt (text to speak), optional instruction, language, voice, reference_text, seed, and voice_audio for cloning. Design requires instructions; OmniVoice accepts only the declared attributes. Speech WAVs are under /files/speech/ and can become video guide audio or another voice reference.

For ASR, use kind=asr, audio_model (qwen3_asr), media, optional language and timestamps (none, word, segment; word alignment is the default). Export URLs are returned as transcript_urls; raw native details remain in the JSON export. History filters accept kind=speech or kind=asr plus the matching audio_model. Model files, generated runtime configs, logs, uploads and results stay outside tracked source.

!Native voice cloning

LLM batches (Strata)

Text generation runs through a worker-owned Strata server (H3_STRATA_DIR + H3_STRATA_CONFIG; measured with Qwen3.6-35B-A3B UD-Q4_K_XL, 8 slots, 16K context, MTP 2 on the 4090: ~97 tok/s for one request, ~340 tok/s aggregate with 16 requests in flight). One job is one batch, so LLM work queues FIFO with the image, video and speech jobs: Strata starts on the first llm job (~1 min from a cold page cache), stays up for the following llm jobs, and is stopped before any other job, because it holds nearly all VRAM. Entering it offloads the ComfyUI models and stops audio.cpp.

API: POST /api/jobs with kind=llm, a requests JSONL file (1–5000 lines of {"id": "...", "body": {OpenAI chat completion body}}), optional prompt (label) and concurrency (1–64, default H3_STRATA_CONCURRENCY). Each request is retried up to 3 times on transport errors, finish_reason: length or (with response_format json_schema / json_object) unparsable JSON. The job finishes done even when some requests failed; result holds requests, succeeded, failed, completion_tokens, tokens_per_second, and output_url (/files/llm/.jsonl) has one line per request: {"id", "ok", "content", "usage", "attempts", "seconds"} or {"id", "ok": false, "error"}. Turn thinking off per request with "chat_template_kwargs": {"enable_thinking": false}. History: GET /api/jobs?kind=llm (API only; the web UI has no LLM page).

!Qwen3-ASR aligned words and subtitle exports

GPU memory and model residency

Healthy consecutive jobs reuse their model objects and warm GPU weights; there is no idle timer that clears the cache. Before each job, runtime_memory.py checks ComfyUI's available memory (including reusable allocator cache) against its native minimum inference headroom. With enough space, managed video/image/music/upscale tasks keep resident weights and let DynamicVRAM size allocations per node. Under pressure, ComfyUI offloads only as much as needed, then falls back to a full GPU offload. If headroom is still unavailable, the job fails before model loading.

Changing the image model or video base releases only the old model family and its clones. Entering audio.cpp or Pixal3D releases ComfyUI GPU weights because they also allocate outside DynamicVRAM; CPU model objects remain cached. Pixal3D still frees GPU weights before meshing.

Before returning from audio.cpp to ComfyUI, the worker explicitly unloads the native model. If its private CUDA context/cache still leaves insufficient execution headroom, the owned child process is stopped. Audio cancellation also terminates only that owned child; the next request starts a clean server.

An OOM stops the current job and releases its inference frames and cached models without an automatic retry. The next queued job can proceed after successful recovery. If cleanup fails, the inference worker stops and health reports an error requiring a service restart; queued jobs stay in the database. /api/health includes the last worker memory snapshot and its action (retained, reclaimed, offloaded_for_external, or recovery). POST /api/unload remains available while idle for explicitly freeing the GPU.

Image generation and editing models

The Image navigation category includes MOSS-Image, FLUX.2 Klein 4B, Qwen Image 2.1 Turbo and Ming Image 0.2 Design. Klein and Qwen support up to four input images for editing, and Ming supports up to eight. Output images can be sent into another edit or into video/3D generation. Each model has a separate draft and filtered history.

  • Klein follows the official distilled workflow: four Euler steps, CFG 1, Flux2Scheduler, Qwen3 4B text encoding, and VAE reference latents for edits. It uses flux-2-klein-4b.safetensors, never the base-4b checkpoint.
  • Qwen 2.1 Turbo follows the official Turbo generation and editing workflows: eight Euler steps, CFG 1 and the exact manual sigma ladder 1, 0.978453, 0.95418, 0.926626, 0.89508, 0.845148, 0.704534, 0.414568, 0. TextEncodeQwenImage21 handles text/vision conditioning and reference latents; edits follow the first input's canvas, and the native KV cache stays on auto/default. Optional prompt enhancement is omitted for lower latency.
  • Ming Image 0.2 Design uses the Comfy-Org quantized checkpoints and the native generation and edit sampling settings. It uses 12 steps, CFG 1, the simple scheduler, and Euler for generation or LCM for edits. Studio uses roughly 1 MP canvases and passes the prompt directly to Ming. Edits follow the first input's aspect ratio. PNG output retains alpha. To request transparency, start the prompt with RGBA, 4-channel, transparent background. The three model files total about 26 GB.
Install Ming weights with ./deploy.sh models --only ming-image. ComfyUI at 2f894332 includes the required Ming nodes and model loaders. The layered Design checkpoint is a separate model for layer decomposition.

On the RTX 4090 with ComfyUI at 2f894332,

... (README truncated for length)

Chat with me