Text-to-Video
theNded patricejaton commited on
Commit
aa099ef
·
0 Parent(s):

Public release

Browse files

Co-authored-by: patricejaton <patricejaton@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/fastframes_demo.mp4 filter=lfs diff=lfs merge=lfs -text
37
+ assets/fastframes_demo_preview.gif filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Disclaimer: IMPORTANT: This Apple Machine Learning Research Model is
2
+ specifically developed and released by Apple Inc. ("Apple") for the sole purpose
3
+ of scientific research of artificial intelligence and machine-learning
4
+ technology. “Apple Machine Learning Research Model” means the model, including
5
+ but not limited to algorithms, formulas, trained model weights, parameters,
6
+ configurations, checkpoints, and any related materials (including
7
+ documentation).
8
+
9
+ This Apple Machine Learning Research Model is provided to You by
10
+ Apple in consideration of your agreement to the following terms, and your use,
11
+ modification, creation of Model Derivatives, and or redistribution of the Apple
12
+ Machine Learning Research Model constitutes acceptance of this Agreement. If You
13
+ do not agree with these terms, please do not use, modify, create Model
14
+ Derivatives of, or distribute this Apple Machine Learning Research Model or
15
+ Model Derivatives.
16
+
17
+ * License Scope: In consideration of your agreement to abide by the following
18
+ terms, and subject to these terms, Apple hereby grants you a personal,
19
+ non-exclusive, worldwide, non-transferable, royalty-free, revocable, and
20
+ limited license, to use, copy, modify, distribute, and create Model
21
+ Derivatives (defined below) of the Apple Machine Learning Research Model
22
+ exclusively for Research Purposes. You agree that any Model Derivatives You
23
+ may create or that may be created for You will be limited to Research Purposes
24
+ as well. “Research Purposes” means non-commercial scientific research and
25
+ academic development activities, such as experimentation, analysis, testing
26
+ conducted by You with the sole intent to advance scientific knowledge and
27
+ research. “Research Purposes” does not include any commercial exploitation,
28
+ product development or use in any commercial product or service.
29
+
30
+ * Distribution of Apple Machine Learning Research Model and Model Derivatives:
31
+ If you choose to redistribute Apple Machine Learning Research Model or its
32
+ Model Derivatives, you must provide a copy of this Agreement to such third
33
+ party, and ensure that the following attribution notice be provided: “Apple
34
+ Machine Learning Research Model is licensed under the Apple Machine Learning
35
+ Research Model License Agreement.” Additionally, all Model Derivatives must
36
+ clearly be identified as such, including disclosure of modifications and
37
+ changes made to the Apple Machine Learning Research Model. The name,
38
+ trademarks, service marks or logos of Apple may not be used to endorse or
39
+ promote Model Derivatives or the relationship between You and Apple. “Model
40
+ Derivatives” means any models or any other artifacts created by modifications,
41
+ improvements, adaptations, alterations to the architecture, algorithm or
42
+ training processes of the Apple Machine Learning Research Model, or by any
43
+ retraining, fine-tuning of the Apple Machine Learning Research Model.
44
+
45
+ * No Other License: Except as expressly stated in this notice, no other rights
46
+ or licenses, express or implied, are granted by Apple herein, including but
47
+ not limited to any patent, trademark, and similar intellectual property rights
48
+ worldwide that may be infringed by the Apple Machine Learning Research Model,
49
+ the Model Derivatives or by other works in which the Apple Machine Learning
50
+ Research Model may be incorporated.
51
+
52
+ * Compliance with Laws: Your use of Apple Machine Learning Research Model must
53
+ be in compliance with all applicable laws and regulations.
54
+
55
+ * Term and Termination: The term of this Agreement will begin upon your
56
+ acceptance of this Agreement or use of the Apple Machine Learning Research
57
+ Model and will continue until terminated in accordance with the following
58
+ terms. Apple may terminate this Agreement at any time if You are in breach of
59
+ any term or condition of this Agreement. Upon termination of this Agreement,
60
+ You must cease to use all Apple Machine Learning Research Models and Model
61
+ Derivatives and permanently delete any copy thereof. Sections 3, 6 and 7 will
62
+ survive termination.
63
+
64
+ * Disclaimer and Limitation of Liability: This Apple Machine Learning Research
65
+ Model and any outputs generated by the Apple Machine Learning Research Model
66
+ are provided on an “AS IS” basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
67
+ IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
68
+ NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,
69
+ REGARDING THE APPLE MACHINE LEARNING RESEARCH MODEL OR OUTPUTS GENERATED BY
70
+ THE APPLE MACHINE LEARNING RESEARCH MODEL. You are solely responsible for
71
+ determining the appropriateness of using or redistributing the Apple Machine
72
+ Learning Research Model and any outputs of the Apple Machine Learning Research
73
+ Model and assume any risks associated with Your use of the Apple Machine
74
+ Learning Research Model and any output and results. IN NO EVENT SHALL APPLE BE
75
+ LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
76
+ IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF
77
+ THE APPLE MACHINE LEARNING RESEARCH MODEL AND ANY OUTPUTS OF THE APPLE MACHINE
78
+ LEARNING RESEARCH MODEL, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT,
79
+ TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS
80
+ BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
81
+
82
+ * Governing Law: This Agreement will be governed by and construed under the laws
83
+ of the State of California without regard to its choice of law principles. The
84
+ Convention on Contracts for the International Sale of Goods shall not apply to
85
+ the Agreement except that the arbitration clause and any arbitration hereunder
86
+ shall be governed by the Federal Arbitration Act, Chapters 1 and 2. 
87
+
88
+ Copyright (C) 2026 Apple Inc. All Rights Reserved.
README.md ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apple-amlr
3
+ pipeline_tag: text-to-video
4
+ base_model:
5
+ - Wan-AI/Wan2.1-T2V-1.3B
6
+ - zhuhz22/Causal-Forcing
7
+ ---
8
+ # FastFrames: Video Generation at Interactive Latency
9
+
10
+ [![Project Page](https://img.shields.io/badge/Project-Page-green)](https://apple-aiml-research.github.io/ml-fastframes/)
11
+ [![arXiv](https://img.shields.io/badge/arXiv-2611.23226-b31b1b.svg)](https://arxiv.org/abs/2611.23226)
12
+ [![FastFrames-S](https://img.shields.io/badge/%F0%9F%A4%97_Model-FastFrames--S-yellow)](https://huggingface.co/apple/FastFrames-S)
13
+ [![FastFrames-L](https://img.shields.io/badge/%F0%9F%A4%97_Model-FastFrames--L-yellow)](https://huggingface.co/apple/FastFrames-L)
14
+
15
+ This repository contains the official implementation of *FastFrames: Video Generation at
16
+ Interactive Latency*. We release [FastFrames-S](https://huggingface.co/apple/FastFrames-S)
17
+ (1.3B) and [FastFrames-L](https://huggingface.co/apple/FastFrames-L) (14B). Both are
18
+ autoregressive, two-step video diffusion models that generate 480p video at interactive
19
+ latency. We also release an optimized version of LingBot 1.3B that is 16x faster than the
20
+ official model and allows fluid camera-conditioned control.
21
+
22
+ - [Latency profiling](#latency-profiling)
23
+ - [Interactive demo with LingBot](#interactive-demo-with-lingbot)
24
+ - [T2V generation](#t2v-generation)
25
+ - [VBench evaluation](#vbench-evaluation)
26
+ - [Training](#training)
27
+ - [Citation](#citation)
28
+
29
+ [![FastFrames demo: LingBot camera control with and without FastFrames optimizations](assets/fastframes_demo_preview.gif)](assets/fastframes_demo.mp4)
30
+
31
+ ## Installation
32
+
33
+ Linux x86-64 with an NVIDIA GPU and a CUDA 12.8-compatible driver. From the repository root:
34
+
35
+ ```bash
36
+ uv sync
37
+ ```
38
+
39
+ Download FastFrames and third-party weights using the [checkpoint guide](https://github.com/apple-aiml-research/ml-fastframes/blob/main/docs/installation.md#checkpoints).
40
+
41
+ ## Latency Profiling
42
+
43
+ ```bash
44
+ uv run python evaluation/latency/benchmark.py ff-s
45
+ uv run python evaluation/latency/benchmark.py ff-l --gpus 8
46
+ ```
47
+
48
+ Example component timings for **FastFrames-S, 1 GPU, 480p**, with a full KV cache.
49
+
50
+ | Component | Calls | Latency per call | Total latency |
51
+ |---|---:|---:|---:|
52
+ | DiT evaluation, t=1000 | 1 | 16.1 ms | 16.1 ms |
53
+ | DiT evaluation, t=833 | 1 | 16.2 ms | 16.2 ms |
54
+ | KV refinement | 1 | 2.2 ms | 2.2 ms |
55
+ | Pixel decoder | 1 | 0.9 ms | 0.9 ms |
56
+ | **Total** | | | **35.4 ms** (paper: 36 ms) |
57
+
58
+ See the [profiling guide](https://github.com/apple-aiml-research/ml-fastframes/blob/main/docs/inference.md#profiling) for details and baselines.
59
+
60
+ ## Interactive Demo with LingBot
61
+
62
+ Complete the [demo setup](https://github.com/apple-aiml-research/ml-fastframes/blob/main/docs/lingbot.md#interactive-demo-13b), then launch one of:
63
+
64
+ ```bash
65
+ CUDA_VISIBLE_DEVICES=0 uv run --extra lingbot --extra demo python apps/lingbot/demo.py --gpus 1
66
+ CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 uv run --extra lingbot --extra demo python apps/lingbot/demo.py --gpus 8
67
+ ```
68
+
69
+ and open `http://localhost:8000`.
70
+
71
+ ## T2V Generation
72
+
73
+ ```bash
74
+ uv run python scripts/generate.py --model ff-s --checkpoint-dir checkpoints \
75
+ --prompt "A corgi surfing a wave at sunset" --seed 0 --output outputs/corgi.mp4
76
+ ```
77
+
78
+ Outputs 832 × 480 video, 81 frames at 16 fps. Use `--model ff-l` for FastFrames-L.
79
+
80
+ To generate the videos on our project page (20+ videos):
81
+
82
+ ```bash
83
+ uv run python scripts/generate_project_page.py --model ff-s --output-dir outputs/project_page/ff-s
84
+ uv run python scripts/generate_project_page.py --model ff-l --output-dir outputs/project_page/ff-l
85
+ ```
86
+
87
+ See the [generation guide](https://github.com/apple-aiml-research/ml-fastframes/blob/main/docs/inference.md#generation) for details.
88
+
89
+ ## VBench Evaluation
90
+
91
+ Follow the [evaluation guide](https://github.com/apple-aiml-research/ml-fastframes/blob/main/docs/inference.md#evaluation) to reproduce Table 1's
92
+ Quality / Semantic / Total scores.
93
+
94
+ ## Training
95
+
96
+ ### [Causal Forcing++ -> FastFrames-S](https://github.com/apple-aiml-research/ml-fastframes/blob/main/docs/training.md#causal-forcing---fastframes-s)
97
+
98
+ FastFrames-S keeps the two-step frame-wise Causal Forcing++ generator frozen and trains the
99
+ networks around it.
100
+
101
+ ### [Wan2.1-14B -> FastFrames-L](https://github.com/apple-aiml-research/ml-fastframes/blob/main/docs/training.md#wan21-14b---fastframes-l)
102
+
103
+ We first distill Wan2.1-14B into a two-step causal model following the Causal Forcing++ recipe,
104
+ then train its pixel decoder and KV refinement network as for FastFrames-S. We release all
105
+ checkpoints: 1) a causal teacher trained on latents generated by Wan2.1-14B; 2) the
106
+ consistency-distilled model; 3) the DMD-distilled model; 4) the final generator, pixel decoder
107
+ and KV refinement network.
108
+
109
+ ## Citation
110
+
111
+ If you find this work useful in your research, please cite:
112
+
113
+ ```bibtex
114
+ @article{chou2026fastframes,
115
+ title = {FastFrames: Video Generation at Interactive Latency},
116
+ author = {Chou, Gene and Yang, Guandao and Luan, Fujun and Mescheder, Lars and
117
+ Dong, Wei and Richter, Stephan R. and Koltun, Vladlen},
118
+ journal = {arXiv preprint arXiv:2611.23226},
119
+ year = {2026}
120
+ }
121
+ ```
122
+
123
+ ## License and Acknowledgments
124
+
125
+ LingBot-World v2 code and weights follow their upstream [CC BY-NC-SA 4.0 license](https://github.com/apple-aiml-research/ml-fastframes/blob/main/LICENSE_LINGBOT).
126
+ All other FastFrames code is licensed under the [Apple Sample Code License](https://github.com/apple-aiml-research/ml-fastframes/blob/main/LICENSE).
127
+ Also see [ACKNOWLEDGEMENTS](https://github.com/apple-aiml-research/ml-fastframes/blob/main/ACKNOWLEDGEMENTS) for third-party code.
128
+
129
+ We thank the authors of [Wan2.1](https://github.com/Wan-Video/Wan2.1),
130
+ [Self-Forcing](https://github.com/guandeh17/Self-Forcing), and
131
+ [Causal Forcing++](https://github.com/thu-ml/Causal-Forcing) for releasing their code, on which the
132
+ FastFrames code and models build.
SHA256SUMS ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 336494078be07c3630d5547bf2f848ebbc158ebc069f1265d895a35c162b5293 LICENSE
2
+ ea092fb70f9689283eff7f210c7a7433d7a6524ef5d6ed05eec2e76abad30e15 README.md
3
+ a6f82eab359202cb84542abcc181fd964269f696eadecc7a1a58cf251c2474fb assets/fastframes_demo.mp4
4
+ 7d02600636e42f013c1d71842d602f4ce1c24daf02c0e9acee5f91a471cac8c7 assets/fastframes_demo_preview.gif
5
+ b4f36d00effd78a60435526dcc2b1a0e6bbed0f09621ee8ab4019460769a7bbb fastframes-s/kv_refiner.safetensors
6
+ 815682581f6376d2cdacc60568facf1bd979112091e4157fb6c00ae946b89b32 fastframes-s/pixel_decoder.safetensors
7
+ 75660bc938995698805d654fedc06096d2b7c98abc0bacec742bd05f6915fb90 lingbot-1.3b/kv_refiner.safetensors
8
+ 9d06388bb5c3df33e06c3f75415d6bedaecc85a7579a7880421047491192cbfb lingbot-1.3b/pixel_decoder.safetensors
assets/fastframes_demo.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6f82eab359202cb84542abcc181fd964269f696eadecc7a1a58cf251c2474fb
3
+ size 16745606
assets/fastframes_demo_preview.gif ADDED

Git LFS Details

  • SHA256: 7d02600636e42f013c1d71842d602f4ce1c24daf02c0e9acee5f91a471cac8c7
  • Pointer size: 132 Bytes
  • Size of remote file: 3.24 MB
fastframes-s/kv_refiner.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4f36d00effd78a60435526dcc2b1a0e6bbed0f09621ee8ab4019460769a7bbb
3
+ size 692418448
fastframes-s/pixel_decoder.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:815682581f6376d2cdacc60568facf1bd979112091e4157fb6c00ae946b89b32
3
+ size 255494944
lingbot-1.3b/kv_refiner.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75660bc938995698805d654fedc06096d2b7c98abc0bacec742bd05f6915fb90
3
+ size 692418448
lingbot-1.3b/pixel_decoder.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d06388bb5c3df33e06c3f75415d6bedaecc85a7579a7880421047491192cbfb
3
+ size 127748904