FastFrames-S mobile MLX
An unofficial research derivative of Apple FastFrames-S, converted from revision
08b95d8bd4b77d09b56d732f998d000b0c6b8835 of the community BF16 MLX port.
The weights target the project's streaming Swift engine and the included Python reference.
The weights are provided for non-commercial scientific research. The default Q4 installation uses 6.79 GiB. Official Apple model · Upstream MLX port
| Component | Mobile representation |
|---|---|
| DiT | Q4 or Q8 affine linear weights (group size 64), or BF16 weights, with fused self-attention QKV |
| KV refiner | 8-bit affine linear weights, group size 64 |
| Causal pixel decoder | FP16 weights |
| umT5-XXL encoder | 8-bit affine projections and token embeddings, group size 64 |
The default token grid is 18 × 32, producing 512 × 288 frames. The engine encodes the prompt once and keeps a rolling attention cache. The first generation step yields one video frame and each subsequent step yields four. The model playback rate is 16 fps.
iPhone research app
Build the companion RTVideo Flutter app with Swift Package Manager for a physical iPhone using an iOS 17 or later deployment target.
Shared files are tokenizer.json, refiner.safetensors, decoder.safetensors and t5_encoder.safetensors.
| DiT | Configuration and weights | Total storage with shared files |
|---|---|---|
| Q4 (default) | config.json + dit.safetensors | 6.79 GiB |
| Q8 | config-q8.json + dit-q8.safetensors | 7.44 GiB |
| BF16 | config-bf16.json + dit-bf16.safetensors | 8.66 GiB |
The resolution control also changes how much recent history is available. The compact setting uses a 512 × 288 grid in pixels with a window of two latent steps. The native setting uses 832 × 480 and a window of four. Both keep a sink frame and generate 17 output frames.
DiT precision comparison
Swift/MLX on the same Mac, seed 3, 512 × 288, window 2, five latent steps per clip. The two prompts describe a red fox trotting through snow and a drone view of waves hitting cliffs at sunset. All runs used the same Q8 refiner, Q8 text encoder and FP16 decoder. PSNR is computed from the mean squared error across all 17 uncompressed RGB frames against the matching BF16 DiT run. Higher values indicate closer pixel agreement with that reference.
| DiT | Fox PSNR | Coast PSNR | Peak MLX allocation across the two runs |
|---|---|---|---|
| Q4 | 17.90 dB | 16.78 dB | 2.41 GiB |
| Q8 | 22.43 dB | 30.22 dB | 3.06 GiB |
| BF16 | reference | reference | 4.16 GiB |
At 832 × 480 the Q8 fox run peaked at 3.90 GiB with window 2 and 4.43 GiB with window 4. The five generation steps took 15.96 s and 16.20 s, respectively, excluding prompt encoding and file export. With the app's GIF preview code at 832 × 480 and window 4, peak MLX allocations on the Mac were 3.77 GiB (Q4), 4.42 GiB (Q8) and 5.64 GiB (BF16). All three produced 17 frames. Q8 sample at 832 × 480
Apple silicon reference
From this folder, use a Python environment with mlx, numpy and tokenizers. The Python
reference returns RGB uint8 frames. Choose the installed configuration with config_file.
from mengine import Engine
engine = Engine(".", capacity=3, t5_stream=True, config_file="config-q8.json")
engine.set_prompt("A red fox trotting through fresh snow in a pine forest, morning light")
engine.new_scene(3, sink=1, window=2)
frames, info = engine.step()
The Q4 sample uses the Swift engine on a Mac with the same prompt, seed and cache window for five steps (17 video frames). Peak MLX allocation was 2.40 GiB. Frame-wise PSNR against the Python reference ranged from 19.91 to 32.64 dB in this run. Sample clip
Citation
If you use this mobile derivative in research, please cite the original FastFrames paper. Apple model card and citation · Paper
@article{chou2026fastframes,
author = {Gene Chou and Guandao Yang and Fujun Luan and Lars Mescheder and Wei Dong and Stephan R. Richter and Vladlen Koltun},
title = {FastFrames: Video Generation at Interactive Latency},
journal = {arXiv preprint arXiv:2611.23226},
year = {2026}
}
Licenses and attribution
Apple Machine Learning Research Model is licensed under the Apple Machine Learning Research Model License Agreement.
The upstream port identifies the refiner and pixel decoder as Apple Machine Learning Research Model components for non-commercial research. The generator, umT5 encoder and tokenizer carry the Apache License 2.0. Both license texts accompany this derivative. Apple model license · Apache License