Views
No views yet
mlx.nn.quantize()| PyTorch MPS (BF16) | MLX Q4 (Video-only) | MLX FP16 (Video-only) | |
|---|---|---|---|
| Stage 1 (8 steps, half-res) | 66.7s | 51.1s | 51.2s |
| Stage 2 (3 steps, full-res) | 157.9s | 101.3s | 101.3s |
| Total denoising | 264.0s | 154.3s | 152.5s |
| Speedup | 1.0x | 1.7x | 1.7x |
| Peak memory | >60 GB | 29.9 GB | 34.2 GB |
| Model size | 46 GB | 11 GB | 39 GB |
1from mlx_ltx.pipeline import DistilledPipeline, save_video
2
3pipeline = DistilledPipeline("path/to/mlx-weights-q4")
4video = pipeline(
5 prompt="A cat surfing on ocean waves at sunset",
6 height=576, width=1024, num_frames=121,
7 seed=42,
8)
9save_video(video, "output.mp4", fps=24.0)