Kandinsky 6.0 Lite-distill 5s — MLX
Video with synchronized audio on Apple Silicon: weights of
kandinskylab/Kandinsky-6.0-Lite-distill-5s-Diffusers
(revision 4c487e8b) converted for MLX, with a native pipeline:
github.com/vladislav-vasilenko/kandinsky6-mlx.
This is an independent community port, not an official release. All credit for the model goes to Kandinsky Lab; see the technical report.
Is it worth using?
The port is correct and useful, but the gain is moderate. Compared with the standard weights in diffusers on Torch MPS, on an Apple M3 Max with 48 GB:
| Question | Result | Evidence |
|---|---|---|
| Same output? | In float32, yes: frames at 96 dB or more against diffusers. In bf16, it drifts as much as Torch bf16 does | Verification |
| Faster with 50 steps (Lite-5s)? | Yes, about 10–12%, at 432×256 | tested, 10 pairs |
| Faster with 10 steps (this model)? | No demonstrated difference at 432×256: MLX denoises faster and decodes slower | tested, 10 pairs |
| Faster at 864×480? | 935 s against 1024 s, this model | 3 runs each, not tested |
| Faster prompt encoding? | 0.45 s against 1.5 s, warm | 5 runs each |
| Works without tuning? | MLX yes. Torch MPS's default passed 43 GiB here and was stopped; it needs a lower PYTORCH_MPS_HIGH_WATERMARK_RATIO | 1 run |
| Less memory? | Not at 13–15 GiB, where tuned Torch MPS is about 10% faster. Lower down, MLX ran at 7.8 GiB, and Torch MPS has not completed a run below 13 GiB | Memory |
Worth it if you run many steps on a Mac, want it to work without tuning, or have to stay below about 13 GiB. Not proven yet: a Mac with less memory has not been tested, and such a Mac's chip will also be slower. If you already run a tuned Torch MPS setup with this distilled model and have the memory, you will gain little.
Works: text-to-video and image-to-video with audio, prompt to MP4 in one command, 432×256 and 864×480. All components are compared with diffusers on real weights: see Verification.
Video examples: Torch MPS vs MLX
Times under each pair are one cold run of that clip, loading included. Loading is not like for like (MLX defers part of it), so for comparing speed use the speed benchmark, which has repeated runs.
Standard weights in diffusers on Torch MPS vs this repository in MLX · same prompts, text embeddings, noise and seed · 432×256 · 25 frames · 24 FPS · 10 PiFlow steps · bf16 DiT · audio.
The clips show the same scene and differ in details: both sides run the DiT in bf16, and over 10 distilled steps its rounding differences grow differently in each (peak signal-to-noise between the pairs: 23.5–40.7 dB). Against a float32 reference, MLX bf16 drifts no more than Torch bf16: see Verification.
Fox in the snow
Generation time, one cold run: Torch MPS 39 s (load 10, denoise 16, video 12, audio 0.3) · MLX 28 s (load 1, denoise 13, video 13, audio 0.5)
A red fox runs through fresh snow at dawn, slow motion. <AUDCAP>Crunching snow, distant crows.<ENDAUDCAP>
Fashion film
Generation time, one cold run: Torch MPS 38 s (load 10, denoise 16, video 12, audio 0.3) · MLX 28 s (load 1, denoise 13, video 13, audio 0.5)
Cinematic live-action fashion film, natural skin texture, restrained color grading, realistic cloth physics. An adult woman, about 28 years old, stands in a circular stone courtyard. She wears a deep emerald coat and a cream silk scarf. Archways and foreground columns establish clear depth. Warm late-afternoon side light; stable exposure and soft moving highlights. The camera makes a small, smooth 15-degree clockwise arc; keep her face centered. Do not attempt a full circle in one second. Initial state: The woman faces the camera, both feet planted; hair tied loosely; scarf rests on her right shoulder. One uninterrupted shot, about 1 seconds. From 0 to 0.35 seconds: Start from a frontal three-quarter view. The camera begins its arc, a near column slides slowly across the background. From 0.35 to 1 seconds: Continue the arc smoothly. She turns her eyes toward the lens and the scarf lifts slightly, then begins to settle. Same face and outfit throughout. <AUDCAP>Quiet courtyard air and a soft breeze. A brief silk rustle; no dialogue or music.<ENDAUDCAP>
Retrofuturist tram
Generation time, one cold run: Torch MPS 37 s (load 10, denoise 16, video 11, audio 0.3) · MLX 28 s (load 1, denoise 13, video 13, audio 0.5)
Surreal retrofuturist dark comedy, 1970s science-fiction cinema, tactile practical creature effects, worn brass, painted miniatures, muted teal and amber, subtle film grain. A rain-wet tram stop in an imaginary industrial city. An original pear-shaped, blue-skinned commuter with tiny spectacles and a tan raincoat waits beside a brass ticket machine. He has two arms and two legs. Overcast daylight mixed with warm tungsten light in the ticket machine. A short, slow push-in, without changing the view angle. Initial state: The commuter holds one paper ticket. The ticket slot is shut. Steam drifts behind the stop. One uninterrupted shot, about 1 seconds. From 0 to 0.4 seconds: The brass ticket slot clicks open. The commuter freezes and raises one eyebrow. From 0.4 to 1 seconds: A small mechanical tongue briefly taps the edge of his ticket, then retracts. The commuter blinks in deadpan disbelief. <AUDCAP>One dry metallic click over quiet rain. A soft rubbery squeak and a tiny bell; no speech.<ENDAUDCAP>
Biomechanical flower
Generation time, one cold run: Torch MPS 37 s (load 10, denoise 16, video 11, audio 0.3) · MLX 28 s (load 1, denoise 13, video 13, audio 0.5)
Tactile miniature science-fiction film, stop-motion-inspired creature design with smooth motion, copper mechanisms and translucent botanical tissue, detailed macro photography. An original small flower made of copper ribs and translucent pale-blue petals grows from a cracked ceramic pot on a workbench. The background is an unfocused greenhouse. Soft green backlight through glass with a warm practical lamp on the workbench. A tiny sideways camera slide creating gentle foreground parallax. Initial state: One closed flower bud; a drop of water hangs from a copper leaf. One uninterrupted shot, about 1 seconds. From 0 to 0.5 seconds: The bud quivers and the first pair of petals separates. From 0.5 to 1 seconds: The petals open a little farther and release one small puff of glowing pollen. The pot and bench stay fixed. <AUDCAP>A quiet metallic tick. A soft pneumatic puff and a delicate chime; no voice.<ENDAUDCAP>
Scandinavian room
Generation time, one cold run: Torch MPS 37 s (load 10, denoise 16, video 11, audio 0.3) · MLX 28 s (load 1, denoise 13, video 13, audio 0.5)
Photorealistic Scandinavian furniture commercial, clean geometric composition, natural materials, restrained palette. An empty sunlit room with white walls, a pale oak floor and one large window. The room is unoccupied. Soft stable morning light from the left window. Completely locked-off wide shot. Initial state: One unbranded flat-pack cardboard box in the center of the room. No other furniture. One uninterrupted shot, about 1 seconds. From 0 to 0.3 seconds: The sealed cardboard box begins to tremble gently. From 0.3 to 1 seconds: Its top flaps pop open and the first pair of wooden bed rails rises a short distance above the box. The rest stays packed. <AUDCAP>A low brief cardboard rattle. A soft pop and two wooden clacks. The room is otherwise quiet.<ENDAUDCAP>
Image to video
The video starts from the input image, with the Fashion film and Retrofuturist tram prompts.
Generation time, one cold run: Torch MPS 40 s (load 9, denoise 19, video 11, audio 0.3) · MLX 30 s (load 1, denoise 15, video 13, audio 0.5)
Generation time, one cold run: Torch MPS 40 s (load 9, denoise 19, video 11, audio 0.3) · MLX 30 s (load 1, denoise 15, video 13, audio 0.5)
Frame comparison
Frame 12 (0.5 s) of the text-to-video and image-to-video clips above. Left: Torch MPS. Right: MLX. Click for full size.
5 seconds at 864×480
864×480 · 121 frames · 24 FPS · 10 steps · audio · seed 42 · current float32 rule. These are single cold runs, some with other work on the Mac, so a clip's time is not a speed comparison. The benchmark's 935 s (MLX) and 1024 s (Torch MPS) were measured with the earlier float32 rule and are being measured again.
Retrofuturist tram, Torch MPS vs MLX
Generation time, one cold run: Torch MPS 1043 s (load 10, denoise 808, video 224, audio 0.8) · MLX 995 s (load 0, denoise 756, video 236, audio 1.8)
Surreal retrofuturist dark comedy, 1970s science-fiction cinema, tactile practical creature effects, worn brass, painted miniatures, muted teal and amber, subtle film grain. A rain-wet tram stop in an imaginary industrial city. An original pear-shaped, blue-skinned commuter with tiny spectacles and a tan raincoat waits beside a brass ticket machine. He has two arms and two legs. Overcast daylight mixed with warm tungsten light in the ticket machine. Track slowly left by about one metre as the action unfolds; preserve the same subject and scale. Initial state: The commuter holds one paper ticket. The ticket slot is shut. Steam drifts behind the stop. One uninterrupted shot, about 5 seconds. From 0 to 1 seconds: The commuter inserts the ticket halfway into the slot. From 1 to 2.8 seconds: A small mechanical tongue takes the ticket, curls it into a neat tube, and pushes it back out. The creature watches without moving his feet. From 2.8 to 4.2 seconds: The commuter cautiously takes the rolled ticket with the same hand and tilts his head. A tram headlamp slides into the far background. From 4.2 to 5 seconds: Hold his puzzled expression as the slot closes with exaggerated politeness. Maintain tactile material detail and a coherent street. <AUDCAP>Rain, faint tram rails humming. A wet rubber squeak followed by delicate brass clicks. A distant tram approaches and rings once. One final click; quiet rain, no narration.<ENDAUDCAP>
Fox in the snow, Torch MPS vs MLX
Generation time, one cold run: Torch MPS 1058 s (load 11, denoise 819, video 227, audio 0.9) · MLX 1009 s (load 1, denoise 758, video 248, audio 1.8)
A red fox runs through fresh snow at dawn, slow motion. <AUDCAP>Crunching snow, distant crows.<ENDAUDCAP>
Fashion film, Torch MPS vs MLX, current float32 rule
Generation time, one cold run: Torch MPS 1043 s (load 11, denoise 807, video 224, audio 0.9) · MLX 967 s (load 0, denoise 744, video 221, audio 1.6)
Cinematic live-action fashion film, natural skin texture, restrained color grading, realistic cloth physics. An adult woman, about 28 years old, stands in a circular stone courtyard. She wears a deep emerald coat and a cream silk scarf. Archways and foreground columns establish clear depth. Warm late-afternoon side light; stable exposure and soft moving highlights. The camera performs a smooth approximately 160-degree clockwise orbit from a front three-quarter view to a rear three-quarter view. Keep the woman centered at the same scale; archways pass with strong parallax. Initial state: The woman faces the camera, both feet planted; hair tied loosely; scarf rests on her right shoulder. One uninterrupted shot, about 5 seconds. From 0 to 1 seconds: Establish her face and emerald coat. The camera starts moving; a foreground column passes along the edge. From 1 to 3.6 seconds: The camera continues around her right side. She slowly turns her head to follow the lens, while a single gust pulls her scarf outward. Her body remains planted. From 3.6 to 5 seconds: Arrive at the rear three-quarter view. The scarf settles onto her shoulder and the camera eases to a stop; preserve her silhouette and clothing. <AUDCAP>Soft courtyard ambience. One gentle gust, silk fluttering, distant birds. The breeze fades; no speech or soundtrack.<ENDAUDCAP>
Gymnast, Torch MPS vs MLX
Generation time, one cold run: Torch MPS 1036 s (load 11, denoise 799, video 225, audio 0.9) · MLX 1048 s (load 1, denoise 747, video 298, audio 2.0)
Wide angle shot of a gymnast acrobat performing a complex tumbling pass on a spring floor. High jump, double backflip with a twist in the air. Real-time physics: realistic hair physics, clothes moving with wind resistance, accurate gravity suspension at the peak of the jump, and a heavy, stable landing with a slight shockwave compression on the floor mats. Photorealistic, 35mm lens, high frame rate.
More 5-second clips, MLX only
Same settings as above. There is no Torch MPS version of these clips. The flower and room prompts were written for 1 s clips and were not rewritten for 5 s, so each shows only that short action stretched over 5 s.
Race driver
MLX: race_driver MP4
Generation time, one cold run: 973 s (denoise 738, video 232, audio 1.6) · peak memory 35.9 GiB
High-speed motorsport film, handheld documentary realism, low camera, strong motion blur, late afternoon sun, dust and heat haze. A race driver in a plain white helmet and red fireproof suit drives an unbranded open-wheel red race car on a desert circuit. The camera is mounted low on the track edge, then whips to follow the car through a fast left corner; preserve the same car and driver. Initial state: The car approaches from far down the straight, front wheels straight, the driver's hands high on the wheel. One uninterrupted shot, about 5 seconds. From 0 to 1.5 seconds: The car rushes toward the camera, growing fast, the air shimmering behind it. From 1.5 to 3 seconds: The driver brakes hard and turns in; the front tyres lock for a moment and smoke, and the car leans into the corner. From 3 to 4.2 seconds: The camera whips left as the car passes very close, throwing dust and small stones across the lens. From 4.2 to 5 seconds: The car accelerates away along the straight, its rear wing shaking as the dust settles. Maintain sharp mechanical detail on the car and a coherent track. <AUDCAP>A rising high-revving engine, a sharp downshift and screeching tyres. A violent whoosh as the car passes, stones pattering, then the engine fading into the distance. No music, no narration.<ENDAUDCAP>
Skydive, first person
MLX: skydive_pov MP4
Generation time, one cold run: 1078 s (denoise 744, video 331, audio 2.4) · peak memory 36.2 GiB
First-person point of view, wide-angle action camera on a helmet, photorealistic, bright high-altitude sunlight, scattered white clouds, slight lens distortion, natural camera shake. A skydiver jumps from the open side door of a small plane high above green fields and a winding river. Only the skydiver's own gloved hands and forearms in a blue jumpsuit are ever visible; the camera is the skydiver's eyes. Initial state: The view looks out through the open door. Both gloved hands grip the door frame, and the ground lies far below. One uninterrupted shot, about 5 seconds. From 0 to 1.2 seconds: The hands push off the door frame and the view tips forward over the edge. From 1.2 to 2.8 seconds: The plane's white tail swings past overhead and falls away, while the horizon rolls and steadies. From 2.8 to 4.2 seconds: The arms spread wide into a stable fall, sleeves rippling hard in the wind, and the fields below slowly grow larger. From 4.2 to 5 seconds: The view falls through a thin wisp of cloud and comes out into clear air. Maintain one continuous first-person view, a coherent landscape and consistent hands. <AUDCAP>A propeller plane's engine and rattling door, then a sudden rush of roaring wind that overwhelms everything, fabric flapping violently. No music, no narration.<ENDAUDCAP>
Golden eagle
MLX: golden_eagle_pov MP4
Generation time, one cold run: 1053 s (denoise 735, video 315, audio 2.2) · peak memory 36.3 GiB
Prompt by @higgsfield_ai. It asks for the eagle's point of view; the model shows the bird from the front.
POV flight from a golden eagle soaring over vast mountainous steppe landscapes. Camera locked to the eagle’s head with clean, precise tracking — stable forward motion, no jitter. The eagle actively flaps its wings, powerful wingbeats transitioning into smooth gliding. Wings and feathers visible at the frame edges, moving naturally in rhythm. Strong ground parallax below: winding rivers, open valleys, rocky peaks. Bright late-afternoon light, crisp air, subtle lens flare. Ultra-wide cinematic perspective, natural motion blur from speed only, realistic flight physics, continuous shot, no cuts.
Neon rain dancer
MLX: neon_rain_dancer MP4
Generation time, one cold run: 959 s (denoise 731, video 225, audio 1.6) · peak memory 35.8 GiB
Prompt adapted from @CaliraVal. The woman mostly stands while the camera pulls back, instead of dancing in the rain.
A cinematic ultra-realistic 4K music video scene of a beautiful young woman in a neon-lit nightclub and rainy retro city at night. Vibrant pink, purple, blue, and teal neon lighting creates a dreamy cyberpunk atmosphere. The woman has long wet dark hair, glowing natural makeup, and wears a stylish white top with a dark skirt and black heels. Emotional slow-motion shots of her dancing freely in heavy rain on wet reflective streets, surrounded by colorful neon signs, vintage American cars, retro diners, and blurred nightclub crowds. Smooth cinematic camera tracking, soft bokeh lights, realistic rain effects, glossy pavement reflections, dramatic Hollywood-style lighting, shallow depth of field, sensual emotional mood, highly detailed skin texture, cinematic storytelling, shot on a 35mm film look with premium color grading.
Contortionist
MLX: contortionist_handstand MP4
Generation time, one cold run: 1009 s (denoise 754, video 252, audio 1.9) · peak memory 36.3 GiB
A failure worth seeing: a second head appears during the backbend.
Close-up steady shot of a professional contortionist acrobat doing a handstand on a small wooden blocks platform. She slowly transitions into a deep backbend, her feet touching her head. The camera captures the shifting weight on her hands, micro-movements of fingers for balance, and intense muscle strain in her back and shoulders. Flawless anatomy, no warping, sharp focus, cinematic lighting
Biomechanical flower
MLX: mechanical_bloom MP4
Generation time, one cold run: 1034 s (denoise 755, video 275, audio 2.0) · peak memory 36.3 GiB
Tactile miniature science-fiction film, stop-motion-inspired creature design with smooth motion, copper mechanisms and translucent botanical tissue, detailed macro photography. An original small flower made of copper ribs and translucent pale-blue petals grows from a cracked ceramic pot on a workbench. The background is an unfocused greenhouse. Soft green backlight through glass with a warm practical lamp on the workbench. A tiny sideways camera slide creating gentle foreground parallax. Initial state: One closed flower bud; a drop of water hangs from a copper leaf. One uninterrupted shot, about 1 seconds. From 0 to 0.5 seconds: The bud quivers and the first pair of petals separates. From 0.5 to 1 seconds: The petals open a little farther and release one small puff of glowing pollen. The pot and bench stay fixed. <AUDCAP>A quiet metallic tick. A soft pneumatic puff and a delicate chime; no voice.<ENDAUDCAP>
Scandinavian room
MLX: room_assembly MP4
Generation time, one cold run: 986 s (denoise 739, video 244, audio 1.6) · peak memory 35.8 GiB
Photorealistic Scandinavian furniture commercial, clean geometric composition, natural materials, restrained palette. An empty sunlit room with white walls, a pale oak floor and one large window. The room is unoccupied. Soft stable morning light from the left window. Completely locked-off wide shot. Initial state: One unbranded flat-pack cardboard box in the center of the room. No other furniture. One uninterrupted shot, about 1 seconds. From 0 to 0.3 seconds: The sealed cardboard box begins to tremble gently. From 0.3 to 1 seconds: Its top flaps pop open and the first pair of wooden bed rails rises a short distance above the box. The rest stays packed. <AUDCAP>A low brief cardboard rattle. A soft pop and two wooden clacks. The room is otherwise quiet.<ENDAUDCAP>
Speed and memory
Apple M3 Max, 40-core GPU, 48 GB, macOS 27.0.1, AC power · MLX 0.32.4 · PyTorch 2.15.0, diffusers 0.42.1.
Both sides use the same inputs, VAE tiling on and the DiT freed before decoding.
Torch MPS runs with PYTORCH_MPS_HIGH_WATERMARK_RATIO=1.0; at its default of 1.7 it passed 43 GiB on this 48 GB Mac
and the benchmark's memory guard stopped it. The speed tables use 1.0, whose peak is mostly cache: see Memory.
Status. Speed at 432×256 is final apart from a few repeated rounds; it comes from independent processes in a random order, paired by seed. Memory has its own page, linked below. Method and commands: BENCHMARK.md.
Time: Torch MPS vs MLX
Total time without loading, in seconds: 432×256, 25 frames, 10 paired processes. Cold is the first generation in a fresh process; warm is a later one in the same process.
| Model and mode | Run | Torch MPS, s | MLX, s | Torch time / MLX time (95% CI) | Result |
|---|---|---|---|---|---|
| Lite-5s, 50 steps + CFG, text-to-video | cold | 168.9 | 147.0 | 1.13 (1.12–1.15) | MLX about 12% faster |
| warm | 167.6 | 146.5 | 1.11 (1.07–1.15) | MLX about 10% faster | |
| Lite-5s, 50 steps + CFG, image-to-video | cold | 192.0 | 168.0 | 1.13 (1.11–1.16) | MLX about 12% faster |
| warm | 192.6 | 171.2 | 1.12 (1.07–1.16) | MLX about 10% faster | |
| Lite-distill, 10 steps, text-to-video | cold | 28.0 | 26.6 | 0.99 (0.92–1.08) | no demonstrated difference |
| warm | 26.6 | 27.4 | 0.95 (0.88–1.02) | no demonstrated difference | |
| Lite-distill, 10 steps, image-to-video | cold | 30.0 | 28.7 | 1.01 (0.94–1.09) | no demonstrated difference |
| warm | 29.8 | 28.8 | 0.97 (0.89–1.06) | no demonstrated difference |
Seconds are medians. The ratio above 1 means MLX is faster; it is the geometric mean of the paired runs, so unlike the medians it includes MLX's occasional slow video decodes (below). Each ratio is tested with an exact sign-flip test, Holm-corrected over the 8 tests: p = 0.016 for the four MLX results, and p above 0.05 for the others. A claim needs p < 0.05, an interval excluding 1, and at least a 5% difference.
How long each clip took, stage by stage, and why 5 s at 864×480 takes so much longer: speed benchmark. At that size a clip takes about 16–17 minutes on both sides here, against about half a minute at 432×256. Each pair above shows its own times.
Memory
Full tables, causes and open questions: memory benchmark. Peak physical footprint at 432×256; total time without loading.
| Implementation | Setting | Peak, GiB | Total, s | Runs |
|---|---|---|---|---|
| Torch MPS | watermark 1.0 | 38.9 | 28.0 | 10 |
| Torch MPS | watermark 0.35 | 14.9 | 27.7 | 3 |
| Torch MPS | watermark 0.3, media after denoising | 13.4 | 28.4 + 2 to load media | 3 (2 timed) |
| Torch MPS | watermark 0.25 | out of memory | – | 6 |
| MLX | default, earlier float32 rule | 35.9 | 26.2 | 5 |
| MLX | cache limit 8 GiB | 15.4 | 31.5 | 5 |
| MLX | cache limit 4 GiB | 11.2 | 32.1 | 5 |
| MLX | cache limit 1 GiB | 8.6 | 33.8 | 5 |
| MLX | cache limit 0 | 7.8 | 39.6 | 5 |
- Default peaks are mostly cache, on both sides. For Torch MPS, lowering the watermark costs almost no time; set
PYTORCH_MPS_HIGH_WATERMARK_RATIOlower than our 1.0 if you run it. - Around 13–15 GiB Torch MPS is about 10–13% faster at this size. Below that only MLX has been measured, at 11.2, 8.6 and 7.8 GiB. Torch MPS ran out of memory at every limit of 9.36 GiB and below; limits between 9.36 and 11.2 GiB have not been tried.
- The gap in loading and denoising came from the loading order, not the frameworks: with the same order the difference is 1–2 GiB, and in Torch's favour when media components load after denoising.
- The port now follows diffusers' float32 rule, instead of keeping all modulation layers in float32. Denoising's peak falls by 1 GiB and its time is unchanged, with no clear loss in quality over 6 seeds and no new download. The lowest setting went from 8.9 to 7.8 GiB: comparison. The speed tables were measured with the earlier rule and are being measured again.
- Part of Torch's footprint may come from this benchmark's own loader: see the same page.
- bf16 can change details and sounds, on Torch MPS too. If fidelity matters, especially for audio,
--dtype float32matches the float32 reference, for 3–13% more time at 432×256 and about 13.7 GiB instead of 7–9 GiB in denoising: speed page. - In MLX, limit the cache with
--cache-limit-gib.
Settings for less memory
Cache and memory limits meant for smaller Macs. They ran on this M3 Max, so the times do not predict a smaller chip, and no smaller Mac has been tested. Prompt encoding is not included: see below.
| Memory of the target Mac | Cache limit, GiB | Memory limit, GiB | 432×256, s (5 runs) | Memory, GiB | 864×480, s (1 run) | Memory, GiB |
|---|---|---|---|---|---|---|
| 48 GB | 16 | 32 | 31.2 | 22.6 | 1023 | 24.9 |
| 32 GB | 8 | 22 | 31.5 | 15.7 | 1051 | 16.5 |
| 24 GB | 4 | 16 | 32.3 | 11.7 | 1083 | 12.8 |
| 16 GB | 1 | 10 | 33.5 | 7.8 | 1111 | 11.0 |
The 432×256 columns use the current float32 rule. The 864×480 columns still use the earlier rule, are one run each, and are being measured again.
Prompt encoding
Warm encode of the 238-token Smoke prompt, median over independent processes, with the text encoders loaded (about 3–10 s cold). The encoders are freed before the DiT loads.
| Implementation | Seconds | Memory, GiB | Processes |
|---|---|---|---|
| MLX, Qwen bf16 + CLIP | 0.45 | 14.6 | 5 |
| MLX, Qwen 8-bit + CLIP | 0.46 | 11.6 | 5 |
| Torch MPS, Qwen bf16 + CLIP | 1.51 | 18.5 | 5 |
Torch pads the prompt to 1153 tokens as the diffusers pipeline does; MLX runs the real tokens only, with the same result for them.
Quick start
macOS on Apple Silicon, Python 3.11+, uv. About 25 GB of disk. Tested on 48 GB only.
git clone https://github.com/vladislav-vasilenko/kandinsky6-mlx && cd kandinsky6-mlx
uv sync --extra text
# This repository: DiT, video VAE, audio VAE, vocoder (8.5 GB)
uv run hf download VVladTech/Kandinsky-6.0-Lite-distill-5s-MLX --exclude "examples/*" --local-dir weights/lite-distill
# Text encoders from the original repository: Qwen2.5-VL-7B (15.5 GB), CLIP-L, tokenizers
uv run hf download kandinskylab/Kandinsky-6.0-Lite-distill-5s-Diffusers --revision 4c487e8b4aeeb9059e5a77905aa2ddb59ec28f81 \
--include "text_encoder/*" "tokenizer/*" "text_encoder_2/*" "tokenizer_2/*" --local-dir weights/lite-distill-text
Text to video, 1 s at 432×256:
uv run --extra text python scripts/generate.py --weights weights/lite-distill --preset smoke --seed 42 --out fox.mp4 \
--prompt "A red fox runs through fresh snow at dawn, slow motion. <AUDCAP>Crunching snow, distant crows.<ENDAUDCAP>"
Image to video, and 5 s at 864×480:
uv run --extra text python scripts/generate.py --weights weights/lite-distill --preset smoke --image input.png \
--prompt "..." --out from_image.mp4
uv run --extra text python scripts/generate.py --weights weights/lite-distill --preset baseline --prompt "..." --out long.mp4
Lower memory: add --cache-limit-gib 0 (or 4) and --qwen-bits 8. Options: python scripts/generate.py --help.
From Python:
from kandinsky6_mlx.pipelines.export import write_mp4
from kandinsky6_mlx.pipelines.t2v import Kandinsky6Pipeline
from kandinsky6_mlx.text.encode import TextEncoders
text = TextEncoders.from_files("weights/lite-distill-text").encode_prompt("A red fox ... <AUDCAP>...<ENDAUDCAP>")
pipe = Kandinsky6Pipeline.from_converted("weights/lite-distill")
out = pipe(text, height=256, width=432, num_frames=25, seed=42)
write_mp4("fox.mp4", out.frames[0], out.frame_rate, out.audio[0], out.sample_rate)
Prompts work best with the structure Kandinsky 6 expects: style, scene, lighting, camera, initial state, timed actions, and
sound inside <AUDCAP>…<ENDAUDCAP>. The seed drives NumPy noise, so it does not reproduce a diffusers or ComfyUI run with
the same seed.
Verification
Every component is compared with the PyTorch reference (diffusers==0.42.1) on the real weights. Full reports:
reports/.
| Component | Check | Result |
|---|---|---|
| Whole pipeline, float32 DiT | 10 steps vs diffusers from the same noise, 4 seeds | latents rel_l2 ≤ 7.2e-5, frames ≥ 96.6 dB, audio ≥ 84.2 dB |
| Whole pipeline, bf16 DiT | vs the float32 reference, relative to Torch bf16 | rel_l2 within 1.49× of Torch bf16's drift; frames 27–46 dB, Torch 27–37 dB |
| Image to video | 4 cases, float32 and bf16 | float32: rel_l2 ≤ 1.1e-5, frames ≥ 110 dB; bf16: step cosine ≥ 0.9996, frames 42–50 dB |
| DiT, bf16 | every block and final outputs, measured with the earlier float32 rule | 0.56–1.12× Torch bf16's error, cosine ≥ 0.99997 per block |
| Video VAE decoder, float32 | 25 frames | 121.7 dB |
| Tiled VAE decoding | first 29 of 121 frames at 864×480 | 130.4 dB. The whole clip's reference needs 40 GB and has not been recorded |
| VAE encoder and image preprocessing | fixed images | preprocessing bit-identical to diffusers; encoder rel_l2 ≤ 1e-3 |
| Audio VAE + vocoder, float32 | waveform | SNR 92.9 dB |
| Qwen2.5-VL (mlx-vlm), float32 | hidden states, 5 prompts | rel_l2 ≤ 2.3e-5 |
| Qwen2.5-VL, bf16 | same | rel_l2 within 1.17× of Torch bf16's drift; token cosine ≥ 0.9985 (Torch: 0.9984) |
| CLIP-L, float32 | pooled output | rel_l2 3.9e-6 |
| PiFlow scheduler | 10 steps | bit-identical |
Files
| File | Tensors | Dtypes | Size | SHA-256 |
|---|---|---|---|---|
transformer/model.safetensors | 2399 | 1976 BF16, 423 F32 | 5.94 GiB | 62a3dba4a4187f56e525997f0270b282e3787f735879b0bc3cd316dbc4579fee |
vae/model.safetensors | 248 | F32 | 0.92 GiB | c90f898a5284ed365630f02d099247b6c0ae79ab6c93d16c0fbcbb109c693d12 |
audio_vae/model.safetensors | 59 | F32 | 1.14 GiB | ad3869e1145db1e5ce2f657c909ede6586278655e00960f58f9507b0b2d890a3 |
vocoder/model.safetensors | 667 | F32 | 0.46 GiB | 7d903ad9b4c3d80cef04b5fbcca30568e3c6485102b32493e4f9dec0ae09f388 |
The conversion moves convolution weights to MLX's channels-last layouts and drops the duplicate vocoder stored inside the
original audio_vae. Each tensor keeps its stored dtype. As in diffusers, the DiT's time embeddings and modulation run in
float32. Each folder keeps the original config.json and a conversion.json with source hashes. examples/ holds the clips,
posters and prompts.json. Text encoders are not included: text_encoder/ of the original repository is the unmodified
Qwen2.5-VL-7B-Instruct, and text_encoder_2/ is CLIP-L.
Quality and limits
- Tested on one machine, an M3 Max with 48 GB. Smaller Macs are untested, including the memory settings above.
- The measurements used a single-file copy of Qwen2.5-VL, checked against the original
text_encoder/shards (all 729 tensors' names, shapes and dtypes, and their bytes in part). The quick start's download of the shards has not itself been run. - Visual checks cover a handful of prompts. No perceptual metric, such as VBench, has been run.
- Image-to-video is verified at 432×256. At 864×480 with tiling, diffusers would also encode the image in tiles; this port encodes it in one pass, so results there can differ.
- The non-distilled Lite-5s (FlowMatch, guidance, 50 steps) runs in the same pipeline and is verified, but its weights are not in this repository. Pro models are untested.
License
MIT, as the original model. The separately downloaded Qwen2.5-VL-7B-Instruct: Apache 2.0.
Citation
Please cite the original work:
@misc{kandinsky2026kandinsky60videofoundation,
title={Kandinsky 6.0 Video: Foundation Models for Synchronized Video and Audio Generation},
author={Team Kandinsky and Julia Agafonova and Bulat Akhmatov and Mikhail Aksyutin and Grigorii Alekseenko and Anastasia Aliaskina and Olga Androsova and Vladimir Arkhipkin and Anna Averchenkova and Alexander Belykh and Serafima Bocharova and Sofiya Bogakovskaya and Anton Bukashkin and Mark Bulygin and Kirill Buzygin and Irina Cheremnykh and Kirill Chernyshev and Mikhail Chernyshov and Vladimir Chernyy and David Chikovani and Georgy Daniltsev and Denis Dimitrov and Anna Dmitrienko and Vladimir Dokholyan and Sergey Emelyanov and Dmitry Ermilov and Georgii Fedorov and Polina Gavrilova and Nikolai Gerasimenko and Aleksandr Gordeev and Andrey Inozemtsev and Andrei Ivaniuta and Alexander Ivanov and Mikhail Karaev and Anastasiia Kargapoltseva and Ivan Kirillov and Nikita Kiselev and Valeria Kobenko and Yury Kolabushin and Denis Koposov and Anatoly Korobov and Vladimir Korviakov and Kirill Kozlov and Denis Krzhivokolskiy and Konstantin Kuklev and Alexander Kunitsyn and Sergey Kuzin and Vladislav Lakhtionov and Alexey Letunovskiy and Maxim Litvinov and Alexander Lyulkov and Georgy Makarov and Kirill Malakhov and Egor Malykh and Mikhail Mamaev and Dmitrii Mikhailov and Polina Mikhailova and Ivan Mikheev and Elizaveta Muromtseva and Nikolai Nazarkin and Tatiana Nikulina and Lev Novitskiy and Stanislav Onuchin and Nikita Osterov and Denis Parkhomenko and Anatoliy Parpara and Vladimir Polovnikov and Konstantin Reznikov and Azat Saginbaev and Nikita Samsonov and Alexander Sentsov and Nikita Shaimov and Artem Sherstyuk and Andrey Shutkin and Egor Silvestrov and Bulat Suleimanov and Matvey Suprunov and Sergey Taranov and Irina Tolstykh and Tatiana Trofimuk and Ilya Trushkin and Aleksandra Tsybina and Olga Varlashina and Viacheslav Vasilev and Ilya Vasiliev and Eugeny Vilisov and Sergey Yakubson and Konstantin Zakharov},
year={2026},
eprint={2610.05608},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2610.05608},
}