
| Why tela | Benchmarks | Showcase | Quickstart | CLI & Server Docs | INT4 Weights | NVFP4 Weights | Agent Skill |
Supported GPUs: NVIDIA RTX 30 / 40 / 50 series only (
sm_86Ampere,sm_89Ada Lovelace,sm_120/sm_121Blackwell, RTX PRO 6000, and DGX Spark). Older architectures (sm_75Turing / RTX 20xx,sm_80A100/H100) are not supported.
Agents do not connect nodes with wires. They run code.
Most open-source video and image generation still lives inside Python node graphs designed for dragging wires by hand. tela is a zero-Python, single-binary C++20 and CUDA inference engine for the MiniMax-H3 model family (Ref2VA, FL2VA, MiniMax-H3-Image, pi-H3, and Viggle Remake) with predictable CLI flags, an OpenAI-compatible HTTP server, thin ComfyUI nodes, and an agent skill.
| Live RTX 4090 CLI HUD · Still | Live RTX 4090 CLI HUD · Video |
|---|---|
![]() |
![]() |
| 25-step Euler, 6.7 s DiT, 0.8 s decode, inline Kitty preview | 94-frame live mini-GIF across steps 1/6 to 6/6, 1.4 s decode |
What ships in the binary:
- Pre-calibrated 4-bit DiT & text weights: Universal
11.8 GBMiniMax-H3-INT4andViggle-Remake-INT4DiTs calibrated with Full-Hessian HSVDQuant + Hadamard-GPTQ, Blackwell12.8 GBMiniMax-H3-NVFP4andViggle-Remake-NVFP4using SmoothQuant + AWQ + rank-32 SVDQuant + Four Over Six, plus 4-bit Qwen3-VL 32B text encoders (14.73 GBuniversal W4A8 and15.69 GBdirectComfy-Org/MiniMax-H3NVFP4-AWQ on Blackwell). - Faster than ComfyUI 0.45 across every modality: 2.4× to 3.2× faster cold boot and faster dense INT8 inference on RTX 4090, with built-in Spark sparse attention and TeaCache.
- Zero-spill CUDA/PTX kernels: Native Blackwell
NVFP4andNVFP4A8(sm_120/sm_121) GEMMs and SageAttention3-style micro-scaled NVFP4 attention,W4A8Tensor Core GEMMs, SageAttention FP8/INT8, FlashAttention-2, and SpargeAttn PV-Skip. - 6 GB to 96 GB VRAM scaling & creator controls: Hugepage streaming down to 6 GB GPUs, flat-VRAM MultiDiffusion windowing up to 60 s+ with
--window-blend warmup, localized video/image inpainting (--canvas+--mask), high-detail--facefix, reusable--refmodlatents, multi-shot--shotsstoryboards, decoder-free pi-H3 1.5 DWD, and native 16.82 MP stills via Ostris 2D Image VAE. - Zero-symlink model lookup & agent-ready serving: Single binary (
tela render,tela refmod,tela serve,tela doctor,tela quantize) that reads$TELA_MODELS(~/.tela/models) and falls back automatically to$COMFYUI_MODELS(~/ComfyUI/models), exposes an OpenAI-compatible/v1/*server with warm Qwen3-VL KV prefix cache plus thin ComfyUI nodes (comfyui/), and renders live Kitty Graphics previews.
The hero chart above compares tela against ComfyUI 0.45 in identical dense mode (--spark off) on an idle RTX 4090 at 400 W. Below are the apples-to-apples Blackwell NVFP4 (sm_120) modality benchmarks and RTX 4090 duration scaling curves.
All Blackwell numbers below were measured on a rented NVIDIA RTX PRO 6000 Blackwell Workstation Edition (sm_120, 96 GB, CUDA 12.9) with identical inputs, prompts, and seeds. Raw logs live in metrics_r18_nvfp4_v2.json, metrics_rtx_pro_6000.json, and quant_eval_summary.json. NVFP4 pairs Full-Hessian Schur-Replay GPTQ with a rank-32 BF16 SVDQuant branch, reaching 24.67 dB mean Ref2VA fidelity and 0.815 SSIM with zero register spills.
Metrics below compare quantized output pixel-for-pixel against the 21 GB INT8 oracle at the same seed: PSNR (dB) measures pixel closeness (higher is closer; > 20 dB is a close match on diffusion video) and SSIM (0..1) measures structural similarity (higher is tighter facial and scene lock).
Workload · Rented RTX PRO 6000 (sm_120) |
INT8 DiT | NVFP4 DiT | Speedup | INT8 VRAM | NVFP4 VRAM | PSNR ↑ | SSIM ↑ |
|---|---|---|---|---|---|---|---|
Ref2VA crush (736×1312 · 73 f) |
19.56 s |
17.82 s |
1.10× |
24.0 GiB |
16.4 GiB (−7.6 GiB) |
21.58 dB |
0.853 |
Ref2VA steps-5s (736×1312 · 124 f) |
39.87 s |
36.64 s |
1.09× |
24.0 GiB |
16.4 GiB (−7.6 GiB) |
22.23 dB |
0.695 |
Ref2VA night car (1120×864 · 73 f) |
20.02 s |
18.21 s |
1.10× |
23.7 GiB |
16.2 GiB (−7.5 GiB) |
30.06 dB |
0.951 |
Ref2VA alpine ridge (1280×736 · 73 f) |
19.34 s |
17.45 s |
1.11× |
23.9 GiB |
16.4 GiB (−7.5 GiB) |
24.80 dB |
0.763 |
H3-Image 16.82 MP Ref (avg 4) |
9.12 s |
8.14 s |
1.12× |
21.8 GiB |
14.3 GiB (−7.5 GiB) |
14.79 dB |
0.713 |
H3-Image 16.82 MP Pure T2I |
8.23 s |
7.33 s |
1.12× |
21.6 GiB |
14.1 GiB (−7.5 GiB) |
18.58 dB |
0.824 |
Passing --quant dit=nvfp4a8 on the same 12.83 GB NVFP4 checkpoint switches activations to 8-bit MXFP8 at the same 14.1 to 16.4 GiB VRAM. That raises 4-clip Ref2VA fidelity from 24.67 to 25.43 dB PSNR (0.815 to 0.839 SSIM) and H3-Image Pure T2I from 18.58 to 20.50 dB PSNR (0.824 to 0.853 SSIM).
Passing --quant attn=fp4 on Blackwell replaces FP8 attention with micro-scaled NVFP4 m16n8k64 kernels for both Dense and Spark-H3 Sparse attention at 0 register spills and 0 MiB extra VRAM. Dense attention reaches 837.3 TFLOPS (trillion FP4 math ops per second, 1.44× over mma_fp8, 31.7 ms vs 45.6 ms at 56 heads × 30,433 tokens), and Spark sparse attention drops from 20.7 ms to 15.9 ms (1.30×).
Warm apples-to-apples Ref2VA crush (736×1312 · 73 f, dit=nvfp4, Pika :branch, RTX PRO 6000 Blackwell):
Attention Mode (dit=nvfp4) |
DiT Time | Speedup | Wall Time | Peak VRAM | PSNR vs fp8 ↑ |
SSIM vs fp8 ↑ |
|---|---|---|---|---|---|---|
Dense (--spark off) · attn=fp8 |
24.21 s |
1.00× |
30.11 s |
18.16 GiB |
— | — |
Dense (--spark off) · attn=fp4 |
20.03 s |
1.21× |
25.76 s |
18.16 GiB |
23.10 dB |
0.876 |
Spark (--spark on) · attn=fp8 |
19.60 s |
1.00× |
27.68 s |
18.17 GiB |
— | — |
Spark (--spark on) · attn=fp4 |
17.39 s |
1.13× |
23.14 s |
18.17 GiB |
22.94 dB |
0.875 |
On 60–64 GB workstations, the 27.14 GB INT8 Qwen3-VL 32B text encoder overflows the pinned-RAM budget alongside a DiT checkpoint and falls back to mmap_stream, turning prompt encoding into a multi-second bottleneck. Compressing Qwen3-VL 32B to 4-bit shrinks disk and host RAM by 42% to 46%, letting it stay pinned in host memory while matching the INT8 oracle's hidden states closely (> 0.9999 cosine similarity, where 1.0 is an exact match).
- All GPUs (
sm_86/sm_89/sm_120): Dropqwen3vl_32b_minimax_h3_int4.safetensorsintotext_encoders/.telaauto-selects it astext=w4a8, cutting prompt encode to0.50 son RTX 3090 and0.48 son RTX 4090 at0.999951cosine similarity (31.88 dBT2V parity vs INT8). - Blackwell (
sm_120/sm_121): Drop officialComfy-Org/MiniMax-H3qwen3vl_32b_minimax_h3_nvfp4_awq.safetensorsintotext_encoders/.telaloads it directly with zero conversion and auto-selectstext=nvfp4a8, reaching0.246 sreal-hardware encode (+77.4%faster than0.436 sINT8) at0.999904cosine similarity.
| Text Encoder Checkpoint | GPU Arch | Disk Size | Cosine vs INT8 ↑ | Pinned Encode | Uncached Render Example |
|---|---|---|---|---|---|
qwen3vl_32b_minimax_h3_int8_convrot.safetensors |
All | 27.14 GB |
1.000000 (oracle) |
0.436 s (PRO 6000) |
15.52 s 73f T2V / 23.67 s 73f Ref2VA (PRO 6000) |
qwen3vl_32b_minimax_h3_int4.safetensors |
sm_86 / 89 / 120 |
14.73 GB (−45.7%) |
0.999951 |
0.50 s (3090) / 0.48 s (4090) |
1.17 s still / 3.72 s 22f T2V (4090) |
qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors |
sm_120 / 121 |
15.69 GB (−42.2%) |
0.999904 |
0.246 s (+77.4%) |
5.69 s 22f T2V / 14.12 s 73f T2V / 22.25 s 73f Ref2VA (PRO 6000) |
Same-seed visual and speech parity against the 27.14 GB INT8 oracle, with zero spoken word errors across both 4-bit text encoders. Click any preview for the full HD MP4 with synchronized audio:
| INT8 Baseline (27.1 GB) | INT4 W4A8 (14.7 GB · All GPUs) | NVFP4-AWQ (15.7 GB · Blackwell) |
|---|---|---|
Cara Bed Whisper · 4.46 s · MP4 |
30.1 dB · 2.15× enc · MP4 |
27.6 dB · 1.88× enc · MP4 |
La Dama Espresso · 3.0 s · MP4 |
1.70× enc · MP4 |
1.72× enc · MP4 |
Turning on built-in Spark sparse attention adds a large extra speedup on top of the dense baseline, especially on long video where quadratic attention dominates. Wall Flicker measures frame-to-frame shimmer on static backgrounds (lower is steadier).
| Mode | DiT Size | crush 3 s DiT |
swap_00270 8.71 s DiT |
Wall Flicker ↓ | Cold Load (4090) |
|---|---|---|---|---|---|
| ComfyUI 0.45 INT8 Dense | 21.0 GB |
34.6 s |
— | — | 4.41 s |
tela dit=int8 + Spark |
21.0 GB |
27.9 s |
116.6 s |
0.599 |
1.81 s |
tela dit=w4a8 + Spark |
11.8 GB |
33.4 s |
132.5 s |
0.470 |
1.13 s |
All generated videos, stills, and character sheets below are AI-generated outputs produced by tela (excluding credited source reference footage and Leonardo da Vinci's public-domain painting).
Sfumato means "in the manner of smoke" in Leonardo da Vinci's painting method. We pull his public-domain Lady with an Ermine from 1489 into one studio character sheet, dama_sheet_final.png, and pass that single <Picture 1> into every swap, animation, and still below with zero subject LoRA training. Click any preview to open the full HD MP4 with audio or lossless PNG on sfumato-ai/tela-showcase.
Reading PSNR and SSIM below: Every quantized run is compared pixel-for-pixel against the 21 GB INT8 Oracle at the exact same seed. Higher PSNR means closer to INT8, with > 20 dB a close visual match on diffusion video and 23 to 26 dB nearly indistinguishable. SSIM runs from 0.0 to 1.0, with > 0.85 indicating tight facial and structural lock.
Every row uses identical dama_sheet_final.png, motion guide <Video 1>, prompt, seed, and forced 48 kHz guide audio. The INT8, W4A8, and 6 GB Stream columns were rendered on RTX 4090; the NVFP4 column was rendered on a rented NVIDIA RTX PRO 6000 (sm_120) with PSNR measured against the same-GPU RTX PRO 6000 INT8 oracle.
Opt-in CodecOPSD prunes reference tokens down to 18.9 s DiT and 25.0 s wall, or 1.94× faster than ComfyUI. Additional pure-Ref2VA scenes with generated 32 kHz BigVGAN audio: Candlelit Palazzo + Live Ermine in 24.5 s, and Rainy Shinjuku Walk in 26.4 s.
Pass repeatable --ref video1.mp4 --ref video2.mp4 flags to fuse up to 16 reference videos (<Video 1>, <Video 2>, ..., <Video K>) in a single Ref2VA render, with optional per-video :Xmp sizing and optional <Picture 1..N> character sheets. Multi-video renders default to --audio generate and inject each clip's soundtrack as <Audio 1..J>, letting MiniMax-H3 combine multiple speakers, languages, motions, and environments in one pass.
<Video 1> |
<Video 2> |
Output (click for MP4 with audio) |
|---|---|---|
Pure 2-Video · Cara English · 4.46 s · MP4 |
La Dama Café Italian · 3.04 s · MP4 |
16:9 Merged Café · 71.4 s RTX 4090Zero image sheets · both characters & languages · MP4 |
2-Video + Sheet · crushExpression & motion · 3.04 s · MP4 |
Night Car Scene & lighting · 3.07 s · MP4 |
La Dama Night Car · 53.4 s RTX 4090With dama_sheet_final.png · Italian speech · MP4 |
# Pure 2-video multi-character fusion with automatic dual-voice audio generation
tela render \
--checkpoint minimax-h3-ref2va-int4.safetensors --quant dit=w4a8 --quant vae-video-dec=int8 --spark on \
--lora pika_h3_flex_ref2va_v1_bf16.safetensors:1.0:branch \
--ref cara_input_v1.mp4:0.23mp --ref dama_espresso_input_v2.mp4:0.23mp \
--size 1312x736 --frames 107 --seed 1489 \
--prompt @cara_and_dama_cafe_prompt.txt -o cara_and_dama_cafe_out.mp4
# 2-video + character sheet (<Picture 1> identity + <Video 1> motion + <Video 2> scene & lighting)
tela render \
--checkpoint minimax-h3-ref2va-int4.safetensors --quant dit=w4a8 --quant vae-video-dec=int8 --spark on \
--lora pika_h3_flex_ref2va_v1_bf16.safetensors:1.0:branch \
--ref dama_sheet_final.png:0.92mp --ref crush_input_v1.mp4 --ref night_car_input_v2.mp4:0.23mp \
--frames 73 --seed 1489 \
--prompt @dama_crush_nightcar_prompt.txt -o dama_crush_nightcar_out.mp4Full-sequence attention grows quadratically in VRAM as clip length increases. tela runs overlapping temporal context windows (--window-frames 141) on MiniMax-H3's 5k+2 latent grid so peak VRAM stays flat at any duration, with || per-window story beats and three overlap merge modes (average, pin, and warmup:4:5). Click any preview for the full HD MP4 with audio:
--window-blend average (Parallel Joint) |
--window-blend pin (Sequential Lock + ||) |
--window-blend warmup:4:5 (Warm-Up + Joint Polish) |
|---|---|---|
15.1 s · 4 Windows ( 156.5 s RTX 4090)Seam jump 3.08 · Parallel averaging leaks motion backward · MP4 |
20.0 s · 5 Windows ( 15.5 GiB flat VRAM · RTX 3090)Locks prior tail frames for multi-beat continuity · MP4 |
15.1 s · 4 Windows ( 156.5 s · 0 extra steps)Seam jump 1.52 (−50.6%) · Clean Italian & motion · MP4 |
Flat-VRAM MultiDiffusion scaling measured on RTX 4090 at 0.92 MP:
| Duration | Frames | Windows | Peak VRAM | DiT Time | Scaling Note |
|---|---|---|---|---|---|
| 5.9 s | 141 | 1 | 17,425 MiB |
61.4 s |
Single-window baseline |
| 10.1 s | 243 | 2 | 17,423 MiB |
123.6 s |
18.3 s faster than full-sequence attention |
| 20.0 s | 481 | 5 | 17,423 MiB |
311.5 s |
−0.01% VRAM delta |
| 60.0 s | 1,433 | 14 | 17,423 MiB |
1.001× linear |
Flat O(1) VRAM, seam ratio 0.959× |
MiniMax-H3-Image renders native 3552×4736 stills in 6 PDD steps at 13.1 GiB peak VRAM on RTX 4090: 12.4 s DiT in INT8 or 16.0 s DiT in W4A8 (~22 s wall with --ref), plus 0.80 s decode with --image-vae auto. Ref2VA --frames 1 renders 4.09 MP stills in ~30 s wall. Dropping ostris_h3_image_vae_fp16.safetensors into ~/.tela/models/vae/ cuts the official 2D ViT VAE's 16 px patch seam excess by 85% to 100% at zero extra decode time, falling back automatically to minimax_h3_image_vae_fp16 if Ostris is absent.
Rows 1 to 4 pass one raw face crop, cara-face.png, via --ref with zero LoRA. Row 5 is pure T2I. Click any preview for the lossless PNG. The NVFP4 column was rendered on a rented NVIDIA RTX PRO 6000 (sm_120) in 7.3 to 8.2 s DiT + 0.74 s Ostris VAE decode at 14.1 to 14.3 GiB VRAM (−7.5 GiB vs INT8).
| Scene | Ref2VA 4 MP · W4A8 |
H3-Image 16.82 MP · INT8 |
H3-Image 16.82 MP · W4A8 |
H3-Image 16.82 MP · NVFP4 (RTX PRO 6000) |
|---|---|---|---|---|
| 1 · Retro Diner Cara ref |
4090 · 4.09 MP |
4090 · 16.82 MP Oracle Official VAE |
4090 · 15.10 dB · LPIPS 0.272Official VAE |
PRO 6000 · 14.46 dB · SSIM 0.737 |
| 2 · Matcha Café Cara ref |
4090 · 4.09 MP |
4090 · 16.82 MP Oracle Official VAE |
4090 · 18.09 dB · LPIPS 0.193Official VAE |
PRO 6000 · 17.68 dB · SSIM 0.831 |
| 3 · Golden Hallway Cara ref |
4090 · 4.09 MP |
4090 · 16.82 MP Oracle Official VAE |
4090 · 15.80 dB · LPIPS 0.367Official VAE |
PRO 6000 · 15.21 dB · SSIM 0.686 |
| 4 · Boutique Flash Cara ref |
4090 · 4.09 MP |
4090 · 16.82 MP Oracle Official VAE |
4090 · 14.26 dB · LPIPS 0.349Official VAE |
PRO 6000 · 11.81 dB · SSIM 0.598 |
| 5 · Golden Hallway Pure T2I |
4090 · 4.09 MP |
4090 · 16.82 MP Oracle |
4090 · 19.84 dB · LPIPS 0.195 |
PRO 6000 · 18.58 dB · SSIM 0.824 |
Image-to-Video + 32 kHz BigVGAN stereo audio animating 4 MP La Dama stills at 736×1024, 73 frames on RTX 4090 (13.4 s INT8 DiT). Across 5 warm Dense runs, ComfyUI 0.45 INT8 averages 26.64 s at 23.3 GiB VRAM, tela INT8 averages 20.78 s for 1.28× speedup, and tela W4A8 averages 23.28 s at 15.1 GiB VRAM, saving 35% memory.
| Input 4 MP Frame | INT8 Oracle · 21 GB | W4A8 · 11.8 GB |
|---|---|---|
1 · Milan Café · 16.82 MP |
Wall 19.6 s |
Wall 22.0 s · 21.64 dB |
2 · Tokyo Neon · 16.82 MP |
Wall 24.8 s |
Wall 22.2 s · 19.15 dB |
3 · Art Gallery Flash · 16.82 MP |
Wall 18.5 s |
Wall 21.0 s · 24.73 dB |
Audio-safe TeaCache step skipping via --step-cache tea --step-cache-thresh 0.30 pairs with --spark-topk 0.15 --spark-warmup 0.12 to skip 8 to 9 of 25 steps at zero extra VRAM while keeping 51/51 spoken words intact.
15.1 s single-pass UGC speech at 736×1312 and 362 frames, 50/50 resident in 11.78 GB FL2VA W4A8 on RTX 4090, including a Kohya RealismSlider 0.8 LoRA and 4-step pi-H3 DWD:
| W4A8 25-Step Base | W4A8 + Spark + Tea | + RealismSlider 0.8 LoRA |
4-Step pi-H3 DWD |
|---|---|---|---|
Wall 11m 56s · 1.00× |
Wall 7m 21s · 1.62× |
Wall 7m 37s · 1.57× |
Wall ~1m 51s · 0 VAE |
20.0 s and 25.0 s continuous single-pass speech at 576×1024, 481 and 597 frames, 50/50 resident in 11.78 GB FL2VA W4A8 with optional RIFLEx j=8 RoPE extrapolation:
Stanford pi-H3 1.5 in DWD or Video VAE mode: --dwd-adapter applies all 544 adapter tensors and bypasses the 2.4B Video VAE with a ~5.1 s DWD head while generating 32 kHz stereo audio across all runs. To decode through the full 2.4B Video VAE instead, pass either the standalone pi_h3_1_5_4step_adapter or any DWD adapter via --lora <adapter> --sampler piflow --steps 4 --shift 12/3 with no --dwd-adapter flag; tela automatically folds both the LoRA weights and the DiT weight overrides. On RTX 3090, reference PyTorch ComfyUI-piFlow 4-step DWD runs in 56.9 s; tela pi-H3 finishes 4-step in 33.1 s for 1.73× speedup, 2-step draft in 22.1 s, and 8-step HQ in 58.3 s.
| Scene · 3 s · 73 f · Audio | FL2VA + LightX2V 8-Step | pi-H3 2-Step DWD | pi-H3 4-Step DWD · 1.73× | pi-H3 8-Step DWD |
|---|---|---|---|---|
| 1 · Tokyo Alley | DiT 65.9 s |
DiT 13.9 s |
DiT 25.1 s |
DiT 50.4 s |
| 2 · Espresso | DiT 65.9 s |
DiT 13.9 s |
DiT 24.9 s |
DiT 50.5 s |
| 3 · Amalfi Cliffs | DiT 65.9 s |
DiT 14.2 s |
DiT 25.3 s |
DiT 50.5 s |
Pass --first-frame, --last-frame, or both on any FL2VA checkpoint to lock the opening frame, closing frame, or both endpoints while generating synchronized motion and 32 kHz stereo audio in between. Passing the same image to both flags encodes it once and produces a seamless loop. Canvas size is inferred automatically when --size is omitted.
Anchor PSNR and SSIM below measure how closely the rendered start or end frame matches the input PNG after Video VAE encode/decode (higher is closer; > 32 dB PSNR and > 0.91 SSIM confirm near-exact pixel and structural lock). All four clips were rendered at 736×1312 with FL2VA INT8 + LightX2V 8-step turbo.
Start Keyframe · --first-frame |
End Keyframe · --last-frame |
|---|---|
fl2va_dama_start.png · 736×1312 |
fl2va_dama_end.png · 736×1312 |
Implements Divide and Accelerate (DnA) (project page): caches reference-token KV across denoising steps and stacks directly on top of Spark-H3. Pass --ref-cache dna (or --ref-cache dna:0,3 for custom refresh steps), or --ref-cache auto to trigger automatically when reference tokens are >= 35% of the sequence.
Measured sequentially on RTX 3090 (Ref2VA INT8, 6-step Pika LoRA, --spark on, 736×1312, 73 frames, 50/50 resident):
| Scene | Ref Share | Default DiT | --ref-cache dna DiT |
DiT Speedup | Default Wall | --ref-cache dna Wall |
PSNR ↑ | SSIM ↑ |
|---|---|---|---|---|---|---|---|---|
Crush (0.23mp guide) |
21% |
74.34 s |
63.72 s |
1.17× |
110.7 s |
100.1 s |
21.14 dB |
0.847 |
Crush 1:1 (0.92mp guide) |
45% |
151.90 s |
104.41 s |
1.45× |
195.7 s |
154.8 s |
20.35 dB |
0.838 |
Bridge 1:1 (0.92mp guide) |
46% |
147.12 s |
100.06 s |
1.47× |
190.9 s |
150.0 s |
22.11 dB |
0.865 |
--preset viggle-remake runs Viggle Remake checkpoints in 6 Euler steps with forced guide audio, text-only 2 fps Qwen3-VL conditioning, and Spark-H3 enabled. Calibrated 4-bit drop-in checkpoints are hosted at sfumato-ai/Viggle-Remake-INT4 (11.78 GB universal W4A8, saving 9.1 GB VRAM with 36.99 dB edit and 30.07 dB swap parity vs INT8) and sfumato-ai/Viggle-Remake-NVFP4 (12.83 GB Blackwell). Leave --pins unset for unpinned character-sheet swaps, pass --refmod <name> to skip character-sheet PNG encoding entirely, or pass --pins 12,184 to lock painted keyframes and release them at step 4 via keyframe-until=0.9.
Passing --ref source.mp4:0.28mp lowers the guide video resolution while rendering output at --size 0.57mp, cutting total wall time by 27.5% on RTX 3090 compared to a 1:1 guide.
Pinned keyframe swaps and video edits run single-pass at 9.4 s (226 f) inside 24 GB VRAM with all 50 DiT blocks resident:
Measured on RTX 3090 (dit=int8, vae-video-dec=int8, Spark ON, 50/50 blocks resident, 90 frames):
| Scene | 480p (0.38 MP, 1:1 guide) |
0.57 MP (1:1 guide) |
0.57 MP (guide:0.28mp) |
Speedup vs 1:1 Guide |
|---|---|---|---|---|
Elon Musk (1024×576) |
55.9 s |
89.0 s |
64.5 s |
−27.5% |
La Dama · Brooklyn Bridge (576×1024) |
58.2 s |
92.1 s |
66.7 s |
−27.6% |
# 1. Character-sheet swap at 0.57 MP with calibrated 11.78 GB W4A8 (-27.5% wall time with guide:0.28mp)
tela render --preset viggle-remake \
--checkpoint viggle-remake-swap-int4.safetensors --quant dit=w4a8 \
--ref source.mp4:0.28mp --ref Musk_sheet.png --size 0.57mp --frames 90 --seed 104 \
--prompt @prompt_sheet_swap.txt -o musk_swap.mp4
# 2. Pinned keyframe swap (or swap --ref Musk_sheet.png for --refmod la_dama_1mp with 0 raw PNGs)
tela render --preset viggle-remake \
--checkpoint viggle-remake-swap-int4.safetensors --quant dit=w4a8 \
--ref source.mp4 --ref ref1.png --ref ref2.png --pins 12,184 --frames 226 --seed 0 \
--prompt @prompt_pineapple.txt -o pinned_swap.mp4
# 3. Video editing with viggle-remake-edit-int4 and official edit sigma knots
tela render --preset viggle-remake \
--checkpoint viggle-remake-edit-int4.safetensors --quant dit=w4a8 \
--knots 1.0,0.983607,0.96,0.923077,0.857143,0.705882,0.0 \
--ref edit_source.mp4 --ref edit_ref1.png --ref edit_ref2.png --pins 12,190 --frames 226 --seed 0 \
--prompt @prompt_edit_remove_turbines.txt -o edit_remove_turbines.mp4tela refmod encodes a character sheet, video clip, or voice sample through the 3D Video VAE once and saves the resulting latent grid as a compact .safetensors file in ~/.tela/models/refmods/. Every future render passes --refmod <name>[:strength[:copies]] at 0.0 ms of VAE reference encoding time. Because MiniMax-H3 normalizes spatial 3D RoPE by sqrt(H · W), one baked file works across both 16:9 widescreen and 9:16 vertical outputs, stacks with community ComfyUI-MiniMaxH3Mod v1–v5 RefMods, and drives multi-shot --shots storyboards with zero weight reloads. See the full guide in docs/refmod.md.
All four 1.0 MP clips below were rendered on RTX 4090 (dit=w4a8, --spark on, 50/50 resident, heap_parks=0, 0.0 ms VAE ref-encode) from the exact same 389 KB la_dama_1mp.safetensors baked once in 650.8 ms. Click any preview for the full 1.0 MP MP4 with 32 kHz stereo audio.
1 · Pure RefMod (16:9) |
2 · Video Inpaint + RefMod (9:16) |
3 · Stacked tela + ComfyUI v2 |
4 · 2-Shot Storyboard (--shots) |
|---|---|---|---|
1344×768 · 73 f · 24.4 s0.0 ms ref-encode |
864×1184 · 56 f · 24.3 s42.60 dB outside mask · Base |
1344×768 · 73 f · 33.5 sla_dama_1mp + vanellope:0.85 |
1344×768 · 146 f · 59.0 sVenice → Milan · 0 reloads |
# Bake once (650.8 ms -> 389 KB v4 file in ~/.tela/models/refmods/)
tela refmod --ref dama_sheet_final.png:1.0mp --name "La Dama (1.0 MP)" --concept character -o la_dama_1mp
# Reuse at 16:9, 9:16, stacked with ComfyUI-MiniMaxH3Mod, or inside --shots @storyboard.json
tela render --checkpoint minimax-h3-ref2va-int4.safetensors --quant dit=w4a8 --spark on \
--lora pika_h3_flex_ref2va_v1_bf16.safetensors:1.0:branch \
--refmod la_dama_1mp --refmod vanellope_example.safetensors:0.85 \
--size 1344x768 --frames 73 --audio generate --prompt "..." -o dama_vanellope_1mp_stack.mp4How inpainting works (--canvas + --mask): Instead of regenerating the entire frame, tela locks every untouched latent token at clean anchor 0.999 and denoises only the masked tokens. Along gray feather edges, Differential Diffusion blends noise levels smoothly so the edit joins the scene without a hard border. Everything outside the mask stays untouched (> 41–43 dB PSNR on H.264 video, right at the compression floor, and pixel-exact on stills) with zero DiT slowdown.
How --facefix works: In wide or full-body shots, a distant face gets only ~60–100 px of height, so eyes and identity turn soft. Passing --facefix finds the union bounding box of your face mask across all frames, crops it with context padding, upscales and re-renders only that crop (1.2–2.5× more pixels on the face, 3–7× faster DiT than re-rendering full-frame), and feathers it back onto the original video while keeping untouched background and original audio (--audio <base.mp4>).
--mask format specification: Pass a standard black-and-white or grayscale PNG or MP4. tela reads RGB luminance (0.299 R + 0.587 G + 0.114 B, scaled 0..1), not the PNG alpha channel:
- White (
255/1.0): edit / regenerate this region. - Black (
0/0.0): keep / lock untouched. - Gray (
1..254): soft feathered blend (automatically enables Differential Diffusion). - Inline modifiers:
--mask mask.png:invert:grow=8:feather=12flips black and white, expands the white region by 8 px, and softens the edge by 12 px.
Localized Video Inpainting · La Dama 1.0 MP (864×1184, 56 f, RTX 4090 · 24.3 s total, 42.60 dB outside mask):
Original (--canvas) |
Mask Overlay (:feather=16) |
Edited · Ermine → Ginger Kitten |
|---|---|---|
864×1184 · 56 f · Full MP4 |
6.8% of frame · white ermine path |
Total 24.3 s · 42.60 dB outside · Full MP4 |
Real-Video --facefix · Full-Body Clips With Small Distant Faces (RTX 3090, 56 f, dit=w4a8 + --refmod la_dama_1mp):
Sharpness below is measured by Laplacian variance inside the face mask (higher means crisper eyes, lashes, and facial detail). Outside-mask PSNR measures how closely untouched pixels match the input clip (higher is closer; > 38 dB looks visually identical).
Before (Ref2VA) |
cv-tools Face Mask |
After (--facefix) |
Zoom A/B (Left: Before · Right: --facefix) |
|---|---|---|---|
Sunlit Courtyard · 864×1088Full-frame DiT 72.3 s · 74–104 px face |
Binary mask · Overlay PNG |
Total 20.4 s · DiT 9.4 s (7.7×)41.85 dB outside · +10.3% sharper |
4× Zoom · MP4 · Contact PNG |
Shanghai Bund Night · 736×1312Full-frame DiT 76.0 s · audio kept |
Binary mask · Overlay PNG |
Total 22.2 s · DiT 10.4 s (7.3×)43.06 dB outside · +3.9% sharper |
3× Zoom · MP4 · Contact PNG |
# Localized video inpainting (locks untouched pixels, preserves base clip audio via --audio)
tela render --checkpoint minimax-h3-ref2va-int4.safetensors --quant dit=w4a8 --spark on \
--lora pika_h3_flex_ref2va_v1_bf16.safetensors:1.0:branch \
--canvas dama_cafe_1mp_base.mp4 --mask mask_ermine.png:feather=16 \
--refmod la_dama_1mp --denoise 1.0 --audio dama_cafe_1mp_base.mp4 --seed 42 \
--prompt "A fluffy ginger tabby kitten blinks on the marble cafe table beside the woman." \
-o dama_cafe_1mp_edit.mp4
# High-detail FaceFix crop-and-paste (auto-crops mask bbox, upscales, renders, feathers back)
tela render --checkpoint minimax-h3-ref2va-int4.safetensors --quant dit=w4a8 --spark on \
--lora pika_h3_flex_ref2va_v1_bf16.safetensors:1.0:branch \
--canvas base_swap.mp4 --mask face_mask_bw.mp4:feather=12 --facefix \
--refmod la_dama_1mp --denoise 0.65 --audio base_swap.mp4 --seed 42 \
--prompt "Close sharp portrait preserving her exact eyes, nose, lips, and natural skin texture." \
-o base_swap_facefix.mp4Prebuilt Linux and Windows releases ship as multi-arch fatbins for sm_86, sm_89, and sm_120. They require an NVIDIA driver supporting CUDA 12.8+ and ffmpeg and ffprobe on PATH.
# Download tela-linux-x86_64.tar.gz or tela-windows-x86_64.zip from GitHub Releases
tar -xzf tela-linux-x86_64.tar.gz -C ~/.local
export PATH="$HOME/.local/bin:$PATH"
tela doctorBuild from source (Linux & Windows)
Requires CUDA Toolkit 12.8+, CMake 3.28+, Ninja, and g++-13/g++-15 on Linux or MSVC 2022 on Windows:
git clone https://github.com/sfumato-ai/tela.git && cd tela
# Local GPU build (on Ubuntu 22.04 add -DCMAKE_CXX_COMPILER=g++-13 -DCMAKE_CUDA_HOST_COMPILER=g++-13)
cmake -S native -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=native
cmake --build build --parallel && cmake --install build --prefix ~/.local
# Optional CPU unit tests (no GPU required)
ctest --test-dir build -L cpu --output-on-failureFor portable release fatbins, replace -DCMAKE_CUDA_ARCHITECTURES=native with -DCMAKE_CUDA_ARCHITECTURES="86;89;120". On Windows, run the same commands from an x64 Native Tools Command Prompt for VS 2022.
tela resolves bare model filenames across ~/.tela/models (or $TELA_MODELS) first and falls back read-only to $COMFYUI_MODELS or ~/ComfyUI/models with zero symlinks. Point COMFYUI_MODELS at a models/ folder, a ComfyUI directory, or a Windows Portable root, or set COMFYUI_MODELS=off to disable fallback. Explicit paths like ./local.safetensors load directly without root search, --models <dir> isolates a single root, and writes such as tela refmod always land in $TELA_MODELS.
export TELA_MODELS="${TELA_MODELS:-$HOME/.tela/models}"
mkdir -p "$TELA_MODELS"/{diffusion_models,text_encoders,vae,loras,refmods}
# 1. Universal 4-bit Qwen3-VL 32B text encoder (14.73 GB, auto-selected on RTX 3090 / 4090 / 50xx)
huggingface-cli download sfumato-ai/MiniMax-H3-INT4 \
text_encoders/qwen3vl_32b_minimax_h3_int4.safetensors \
--local-dir "$TELA_MODELS"
# 1b. Optional Blackwell-only (sm_120/sm_121) 15.69 GB NVFP4-AWQ text encoder (auto-selected on Blackwell)
huggingface-cli download Comfy-Org/MiniMax-H3 \
text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors \
--local-dir "$TELA_MODELS"
# 2. Video VAE (INT8 convrot includes full encoder) + BigVGAN Audio VAE
huggingface-cli download Comfy-Org/MiniMax-H3 \
vae/minimax_h3_video_vae_int8_convrot.safetensors \
vae/minimax_h3_audio_vae_fp32.safetensors \
--local-dir "$TELA_MODELS"
# 3. Calibrated 11.8 GB Sfumato INT4/W4A8 DiT trio (universal sm_86/sm_89/sm_120/sm_121, 1.37 s load)
huggingface-cli download sfumato-ai/MiniMax-H3-INT4 \
dit/minimax-h3-ref2va-int4.safetensors \
dit/minimax-h3-fl2va-int4.safetensors \
dit/minimax-h3-image-int4.safetensors \
--local-dir /tmp/h3-dl
mv /tmp/h3-dl/dit/minimax-h3-*.safetensors "$TELA_MODELS/diffusion_models/"
# 3b. Optional: Blackwell-only (sm_120/sm_121) 12.8 GB NVFP4 trio (auto-selected on Blackwell)
huggingface-cli download sfumato-ai/MiniMax-H3-NVFP4 \
dit/minimax-h3-ref2va-nvfp4.safetensors \
dit/minimax-h3-fl2va-nvfp4.safetensors \
dit/minimax-h3-image-nvfp4.safetensors \
--local-dir /tmp/h3-nvfp4
mv /tmp/h3-nvfp4/dit/minimax-h3-*.safetensors "$TELA_MODELS/diffusion_models/"
# 4. Ostris 2D Image VAE (1.11 GB, default for all stills)
huggingface-cli download ostris/ostris_h3_image_vae \
ostris_h3_image_vae_fp16.safetensors \
--local-dir "$TELA_MODELS/vae"Prompting tip: For production
Ref2VAswaps and multi-reference videos, read the official MiniMax-H3 Ref2VA prompting guide and Base video prompting guide, and pass full six-section prompts via--prompt @prompt.txt. Complete templates are indocs/cli.md#prompting-minimax-h3.
# Native 16.82 MP still with zero-shot face reference
tela render \
--checkpoint minimax-h3-image-int4.safetensors --quant dit=w4a8 --lora none --image-vae auto \
--ref face.png:640x768 --size 3552x4736 --seed -1 \
--prompt "Candid 35mm direct-flash portrait of the woman from <Picture 1> in Milan." \
-o portrait_16mp.png
# Ref2VA character swap with guide motion and audio (auto-sizes from guide when --size is omitted)
tela render \
--checkpoint minimax-h3-ref2va-int4.safetensors --quant dit=w4a8 --quant vae-video-dec=int8 \
--lora pika_h3_flex_ref2va_v1_bf16.safetensors:1.0:branch \
--ref sheet.png:0.92mp --ref guide.mp4 --audio forced --seed 1489 \
--prompt "Replace the person in <Video 1> with the woman from <Picture 1>, matching motion and lighting." \
-o swap.mp4
# Blackwell (RTX 5090 / RTX PRO 6000 / DGX Spark): 16.82 MP still with NVFP4 (auto-selected on load)
tela render \
--checkpoint minimax-h3-image-nvfp4.safetensors --lora none --image-vae auto \
--ref face.png:640x768 --size 3552x4736 --seed 303 \
--prompt "Candid 35mm direct-flash portrait of the woman from <Picture 1> in Milan."
# FL2VA first/last-frame transition with synchronized audio (omit --last-frame for I2V, or pass the same file for a loop)
tela render \
--checkpoint minimax_h3_fl2va_pruned_int8_convrot.safetensors --quant dit=int8 --quant vae-video-dec=int8 --spark on \
--lora minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors:1.0 \
--sampler euler --cfg 1.0 --shift 6/3 \
--knots 1.0,0.976744,0.947368,0.909091,0.857143,0.782609,0.666667,0.461538,0.0 \
--first-frame start.png --last-frame end.png --frames 124 --audio generate --seed 42 \
--prompt "Smooth handheld transition as she raises the skincare bottle toward the camera." \
-o transition.mp4
# Blackwell: Ref2VA swap with 8-bit MXFP8 activations (dit=nvfp4a8) on the same 12.8 GB NVFP4 checkpoint
tela render \
--checkpoint minimax-h3-ref2va-nvfp4.safetensors --quant dit=nvfp4a8 --quant vae-video-dec=int8 \
--lora pika_h3_flex_ref2va_v1_bf16.safetensors:1.0:branch \
--ref sheet.png:0.92mp --ref guide.mp4 --audio forced --seed 1489 \
--prompt "Replace the person in <Video 1> with the woman from <Picture 1>, matching motion and lighting."
# Persistent OpenAI-compatible HTTP server (also powers the thin ComfyUI nodes in comfyui/)
tela serve \
--checkpoint minimax-h3-ref2va-int4.safetensors --quant dit=w4a8 --quant vae-video-dec=int8 \
--lora pika_h3_flex_ref2va_v1_bf16.safetensors:1.0:branch \
--listen 127.0.0.1:8765
# Synchronous image generation (/v1/images/generations)
curl -s -X POST http://127.0.0.1:8765/v1/images/generations \
-H "Content-Type: application/json" \
-d '{"prompt":"Sunlit Milanese cafe portrait, 35mm f/1.8","size":"736x1024","seed":42,"response_format":"b64_json"}'
# Async video render (/v1/videos -> poll -> download /content)
JOB_ID=$(curl -s -X POST http://127.0.0.1:8765/v1/videos \
-H "Content-Type: application/json" \
-d '{"prompt":"Ocean waves at golden hour","size":"736x1024","frames":73,"audio":"generate","seed":42}' | jq -r .id)
curl -s "http://127.0.0.1:8765/v1/videos/$JOB_ID/content" -o out.mp4For the full /v1/* API (/v1/models, /v1/images/edits, /free), see docs/cli.md. For zero-dependency ComfyUI nodes talking to tela serve, see comfyui/README.md.
- CLI Recipes, Context Windows, Server API, Flags & Env Vars
- Native RefMods & Storyboards Guide
- Thin ComfyUI Custom Nodes (
comfyui/) - Full-Hessian Calibration & Audio+Video Balancing
- 88 C++20 & CUDA Engineering Tricks
- Performance Profiling (
nsys,[tela:perf],perf_lint) - Development Guide
- Coding Style
| Checkpoint | Size | Precision | Calibration & Role |
|---|---|---|---|
minimax-h3-ref2va-int4.safetensors |
11.77 GB |
dit=w4a8 |
Full-Hessian HSVDQuant + Hadamard-GPTQ of Singularity v1.3 for Ref2VA and I2V |
minimax-h3-fl2va-int4.safetensors |
11.78 GB |
dit=w4a8 |
Audio+Video balanced Full-Hessian quant of FL2VA; stays 50/50 resident on 24 GB up to 25 s |
minimax-h3-image-int4.safetensors |
11.79 GB |
dit=w4a8 |
Native 8 to 16 MP T2I and --ref Full-Hessian quant; cuts Hessian error by 59.7% at 13.1 GiB peak VRAM |
minimax-h3-ref2va-nvfp4.safetensors |
12.83 GB |
dit=nvfp4 |
Blackwell (sm_120/sm_121) NVFP4 Full-Hessian Schur-Replay + rank-32 SVDQuant Ref2VA (24.67 dB mean) |
minimax-h3-fl2va-nvfp4.safetensors |
12.83 GB |
dit=nvfp4 |
Blackwell (sm_120/sm_121) NVFP4 Full-Hessian Schur-Replay + rank-32 SVDQuant FL2VA for T2V, first/last-frame, and speech |
minimax-h3-image-nvfp4.safetensors |
12.84 GB |
dit=nvfp4 |
Blackwell (sm_120/sm_121) NVFP4 Full-Hessian Schur-Replay + rank-32 SVDQuant H3-Image (7.3 to 8.2 s DiT at 16.82 MP) |
viggle-remake-swap-int4.safetensors |
11.78 GB |
dit=w4a8 |
Universal (sm_86/89/120) calibrated Viggle Remake swap (30.07 dB vs INT8, −9.1 GB VRAM) |
viggle-remake-edit-int4.safetensors |
11.78 GB |
dit=w4a8 |
Universal (sm_86/89/120) calibrated Viggle Remake video edit (36.99 dB vs INT8) |
viggle-remake-swap-nvfp4.safetensors |
12.83 GB |
dit=nvfp4 |
Blackwell (sm_120/sm_121) calibrated Viggle Remake swap |
viggle-remake-edit-nvfp4.safetensors |
12.83 GB |
dit=nvfp4 |
Blackwell (sm_120/sm_121) calibrated Viggle Remake video edit |
qwen3vl_32b_minimax_h3_int4.safetensors |
14.73 GB |
text=w4a8 |
Universal 4-bit Qwen3-VL 32B text encoder (0.999951 cos, 0.48–0.50 s pinned encode, auto-selected by default) |
qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors |
15.69 GB |
text=nvfp4a8 |
Official Comfy-Org Blackwell NVFP4-AWQ Qwen3-VL 32B (0.246 s encode +77.4%, 0.999904 cos, auto-selected on Blackwell) |
minimax_h3_fl2va_pruned_int8_convrot.safetensors |
21.0 GB |
dit=int8 |
Official FL2VA INT8 oracle for pure T2V, LightX2V 8-step turbo, and decoder-free pi-H3 1.5 |
Minimax-h3_Singularity_ref2va_Pruned_v1.3_int8.safetensors |
21.0 GB |
dit=int8 |
Ref2VA INT8 oracle for character swaps, I2V, and 25-step 4 to 16 MP stills |
viggle_remake_swap_pruned_int8_convrot.safetensors |
21.0 GB |
dit=int8 |
Official Viggle Remake 6-step character-sheet and pinned keyframe swap (--preset viggle-remake) |
viggle_remake_edit_pruned_int8_convrot.safetensors |
21.0 GB |
dit=int8 |
Official Viggle Remake 6-step pinned keyframe video editing (--preset viggle-remake + edit --knots) |
Audio tokens make up roughly 1% of MiniMax-H3's joint sequence, so video-only calibration misses 25× to 52× SwiGLU outliers in blocks.41..49.mlp.fc2 and hurts lip-sync. Balancing trace-normalized video and audio Hessians via H_bal = H_v/tr(H_v) + 0.15·H_a/tr(H_a) and ratio-capped h3-act-scales.safetensors cuts FL2VA audio Hessian error by 68.7%. Full methodology is in docs/calibration.md.
tela calibrates both INT4/W4A8 (sm_86/sm_89/sm_120/sm_121) and Blackwell NVFP4/NVFP4A8 (sm_120/sm_121, with rank-32 BF16 SVDQuant residuals) natively in C++ and CUDA with zero Python dependencies.
Bundled activation scales live in native/assets/ (h3-act-scales.safetensors for video/audio models and h3-image-act-scales.safetensors for MiniMax-H3-Image) and are selected automatically by checkpoint modality:
# Fast INT4/W4A8 (~30 s on RTX 4090)
tela quantize --in Minimax-h3_Singularity_ref2va_Pruned_v1.3_int8.safetensors -o my-ref2va-int4.safetensors
# Fast Blackwell NVFP4 with rank-32 BF16 SVDQuant (~19 s on RTX PRO 6000)
tela quantize --format nvfp4 --in minimax_h3_image_pruned_int8_convrot.safetensors -o my-image-nvfp4.safetensorsTo calibrate with exact empirical [K × K] activation Hessians H = (1/N) X^T X, run tela render --capture-hessians <dir> over a prompt list. Starter prompt sets ship in docs/calibration/video_audio_prompts.txt and docs/calibration/image_prompts.txt:
while IFS= read -r p; do
[[ -z "$p" || "$p" == \#* ]] && continue
tela render --checkpoint minimax_h3_image_pruned_int8_convrot.safetensors \
--capture-hessians ./calib_hessians --frames 1 --size 1024x1024 --prompt "$p" -o /tmp/calib.png
done < docs/calibration/image_prompts.txtCapture adds less than 1 GB of VRAM via a reusable GPU Gram arena and streams packed FP32 upper triangles directly to disk (20–30 GB for all 200 DiT layers). Repeated runs against the same directory accumulate seamlessly, and video and audio tokens are partitioned automatically into <dir>/video/ and <dir>/audio/.
Pass --hessians <dir> to tela quantize to run native zero-cuSOLVER GPU FP64 Cholesky, coupled Full-Hessian HSVDQuant, and Group-ActOrder Hadamard-GPTQ for INT4 or Schur-Replay 4/6 GPTQ for NVFP4:
# Full-Hessian INT4/W4A8
tela quantize --in Minimax-h3_Singularity_ref2va_Pruned_v1.3_int8.safetensors \
--hessians ./calib_hessians -o my-ref2va-full-hessian-int4.safetensors
# Full-Hessian Blackwell NVFP4 with rank-32 BF16 SVDQuant
tela quantize --format nvfp4 --in Minimax-h3_Singularity_ref2va_Pruned_v1.3_int8.safetensors \
--hessians ./calib_hessians -o my-ref2va-full-hessian-nvfp4.safetensors--hessians <dir> accepts either a flat directory containing block_00.bin..block_49.bin and manifest.json, or a captured root containing video/ and optional audio/, which are blended automatically with trace-normalized audio/video balance.
Everything in tela is written from scratch in C++20 and CUDA with zero register spills across all kernels, zero compiler warnings, zero scripts/perf_lint.py violations, and 85 ctest targets (36 cpu, 27 l0, 22 l1) registered from native/tests. For all 88 engineering techniques linked to exact file:line locations, see docs/tricks.md.
- Memory & zero-OOM streaming: 2 MiB hugepage-aligned pinned rings stream DiT blocks, Qwen3-VL, Video VAE, and
:refLoRAs at26.9 GB/son RTX 4090 and24.0 GB/son RTX 3090, fitting the 54B stack into 6 GB VRAM. A CUDA Driver VMM heap built oncuMemAddressReservereclaims12.69 GiBonPOST /freeand restores in473 ms, while an interval-colored single-allocation arena packs all 7 DiT phases into onecudaMalloc. - Quantization & tri-mode LoRA: Full-Hessian SVDQuant-style rank-32 residuals, QuaRot/SpinQuant rotations, and Group-ActOrder GPTQ run natively alongside
:fold,:branch, and:refLoRAs plus a zero-dependencytela quantizecalibrator. - Custom CUDA kernels: Native PTX
W4A8GEMM usingmma.m16n8k32.s32.s8.s8with 9-instruction SWARs4→s8unpack, mega-fusedAdaLN + Residual + Smooth + H_256 + Quant + lora_down, and L2-adaptive CTA swizzling acrosssm_86andsm_89. - Attention & caching: SageAttention2 FP8/INT8, FlashAttention-2, Spark-H3 Landmark-Tree block-sparse attention, H.264 CodecOPSD and PCRG reference-token pruning, audio-safe TeaCache, and MMSE-damped TaylorSeer.
- Codecs & terminal UX: seam-free 2D pixel-feathered ViT3D Video VAE decoding, native 24-layer FP16 2D Image VAE, decoder-free
SolH3DWDHeadmatching PyTorch at51.72 dB, halo-chunked BigVGAN/DAC audio, streamingmmapQwen3-VL 32B, and an inline Kitty Graphics HUD.
- Available now — Thin ComfyUI Nodes (
comfyui/): Zero-dependencyTelaImageRenderandTelaVideoRendernodes using Python stdliburllibonly, talking to a local or remotetela serveover OpenAI-compatible/v1/*endpoints. Symlinkcomfyui/intoComfyUI/custom_nodes/tela-comfyuiwith nopip install. - Coming soon — Native
ComfyUI-TelaC ABI Loader: Brings11.77 GBMiniMax-H3 quantized checkpoints directly into ComfyUI with nonvccand nolibtorch, via a prebuilt pure-CUDAlibtela_w4a4.so/tela_w4a4.dll(8 C ABI symbols, zero register spills, drop-inLoad MiniMax-H3 INT4 (Tela)node, nativeLoraLoaderandrgthreesupport).
| ComfyUI Loader · RTX 4090 · 3 s · 73 f · 0.50 MP + Pika LoRA | Model VRAM | Peak VRAM | PSNR vs INT8 | Unload Leak |
|---|---|---|---|---|
ComfyUI UNETLoader INT8 · Singularity v1.3 |
20.97 GB |
23.76 GB |
baseline | — |
ComfyUI-Tela W4A8 High Quality |
11.77 GB · −43.9% |
17.48 GB · −6.29 GB |
28.55 dB |
0 B |
Papers, Models & Tools Referenced
| Paper / Project | Reference | Usage in tela |
|---|---|---|
| MiniMax-H3 & H3-Image | MiniMaxAI/MiniMax-H3 · Comfy-Org/MiniMax-H3-Image | 50-block 20B Ref2VA/FL2VA/Image DiT, 2.4B ViT3D Video VAE, 2D Image VAE, BigVGAN Audio VAE |
| Ostris 2D Image VAE | ostris/ostris_h3_image_vae | Default --image-vae auto 2D FP16 decoder eliminating 16 px ViT patch seams at zero extra decode cost |
| HSVDQuant | arXiv:2610.11315 |
Coupled Hadamard + low-rank SVD quantization with g=256, r=32, T=3 alternating deflation |
| SVDQuant / Nunchaku | arXiv:2411.05007 |
Rank-32 BF16 residual branch absorbing activation outliers alongside INT4 and Blackwell NVFP4 GEMMs |
| GPTQ & Schur Replay | arXiv:2210.17323 · arXiv:2609.36654 |
Native C++ empirical Hessian H = E[XᵀX] error compensation (Group-ActOrder INT4 and 4/6-aware NVFP4) |
Four Over Six (4/6) |
arXiv:2512.02010 |
Activation-weighted Blackwell NVFP4 block-16 UE4M3 scale selection |
| SmoothQuant, AWQ & H-Scale | arXiv:2211.10438 · arXiv:2306.00978 · arXiv:2608.28113 |
Scale-invariant channel migration and diagonal second-order scale search inside tela quantize |
| QEffect | arXiv:2609.23536 |
Bitwise-exact static-shape CUDA Graph state and resource capture contracts (--cuda-graph) |
| QuaRot & SpinQuant | arXiv:2404.00456 · arXiv:2405.16406 |
Online Walsh-Hadamard H_256 and ConvRot channel rotations suppressing outliers before quantization |
| Spark-H3 & SpargeAttn | arXiv:2611.24256 · arXiv:2502.18137 |
Adaptive block-sparse attention with Landmark-Tree reblocking and Stage-2 PV-Skip |
| SageAttention & SageAttention2 | arXiv:2410.02367 · arXiv:2411.10958 |
Full-rate FP8 mma.m16n8k32.f16.e4m3 P·V on sm_89 and tile-median-centered INT8 P·V on sm_86 |
| FlashAttention-2 | arXiv:2307.08691 |
<48 KB SMEM online-softmax tiled dense attention and block-sparse Stage-2 kernels |
| TeaCache & TaylorSeer | arXiv:2411.19108 · arXiv:2503.06923 |
Audio-safe x0-space step skipping and MMSE-damped feature forecasting for 25-step Euler |
| RIFLEx | arXiv:2502.15894 |
Training-free intrinsic-frequency RoPE extrapolation tested on 20 s and 25 s continuous speech |
Decoding Without a Decoder · pi-H3 1.5 |
arXiv:2611.22287 · Lakonik/pi-H3 · Lakonik/ComfyUI-piFlow |
Native C++/CUDA 8-block SolH3DWDHead plus pi-H3 1.5 piflow schedule (max_raw_t=1.0, final_step_size_scale=0.5) bypassing the 2.4B Video VAE |
| MultiDiffusion | arXiv:2302.08113 |
Overlapping temporal context windows with pyramid blending for 10 s to 60 s+ constant-VRAM video |
| LCM & Rectified Flow / FlowMatch | arXiv:2310.04378 · arXiv:2209.03003 |
Distilled 6/8-step LCM sampler, 25-step FlowMatch Euler + CFG, dual-clock shifted sigma schedules |
| Qwen3-VL 32B | Qwen / Qwen3-VL | Bare-metal C++/CUDA streaming multimodal text/vision encoder with <Picture 1..N> KV prefix cache |
| BigVGAN | arXiv:2206.04658 |
Chunked native C++/CUDA audio neural vocoder producing 32 kHz stereo AAC output |
| Kitty Graphics Protocol | sw.kovidgoyal.net/kitty/graphics-protocol | Zero-dependency inline RGB24 terminal rendering using a=T,f=24 |
| Pika Flex & LightX2V Turbo LoRAs | Pika-Labs/Pika-H3-Flex · lightx2v/Minimax-h3-Turbo | 6-step Pika Ref2VA and 8-step LightX2V FL2VA distilled LoRAs |
| Viggle Remake | Viggle/Viggle-Remake | 6-step character-sheet swap, pinned keyframe swap, and video editing (--preset viggle-remake) |
| ComfyUI-MiniMaxH3Mod | Luisacaotica/ComfyUI-MiniMaxH3Mod | v1–v5 RefMod .safetensors schema and on-manifold blur weakening (tela refmod, --refmod) |
| Sfumato INT4, NVFP4 & Showcase | sfumato-ai/MiniMax-H3-INT4 · sfumato-ai/MiniMax-H3-NVFP4 · sfumato-ai/Viggle-Remake-INT4 · sfumato-ai/Viggle-Remake-NVFP4 · sfumato-ai/tela-showcase |
Pre-calibrated Full-Hessian INT4/W4A8 and Blackwell NVFP4 checkpoints, plus full-HD showcase media |
| Lady with an Ermine, c. 1489 | Leonardo da Vinci · Public Domain · Wikimedia Commons | Reference painting for zero-shot multi-modality verification |
Licensed under the Sfumato Source-Available Community License v1.0. See LICENSE for full terms and THIRD_PARTY_NOTICES.txt for third-party component notices. Free for personal use, academic and non-profit research, and organizations with less than $1,000,000 USD in annual gross revenue and less than $1,000,000 USD in total external funding. Commercial entities at or above $1M require a commercial license; contact francesco@sfumato.ai. Built by Sfumato AI at sfumato-ai/tela. MiniMax-H3 and MiniMax-H3-Image weights remain subject to their respective MiniMax Community License Agreements.






