# lllyasviel/FramePack

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/lllyasviel-framepack).**

16,629 stars · 1,645 forks · Python · apache-2.0

## Links

- GitHub: https://github.com/lllyasviel/FramePack
- awesome-repositories: https://awesome-repositories.com/repository/lllyasviel-framepack.md

## Description

FramePack is a neural video synthesis engine and generation framework designed to produce long, temporally consistent video sequences. It functions as a diffusion model optimizer, providing a suite of techniques to manage the computational demands of high-parameter video models while maintaining visual stability during extended generation tasks.

The system distinguishes itself through a hierarchical approach to frame prediction, which plans distant anchor frames before filling in intermediate content to prevent cumulative temporal drift. By utilizing constant-length context compression and tokenized history discretization, the framework aligns training distributions with inference patterns, allowing for the generation of thousands of frames while maintaining consistent performance on consumer hardware.

The toolkit covers a broad range of capabilities for both training and inference, including distributed batch parallelism for large-scale model optimization and iterative autoregressive generation for progressive video extension. It also incorporates intermediate state caching and quantization to minimize latency and balance computational resource usage during the diffusion process.

## Tags

### Artificial Intelligence & ML

- [Video Generation](https://awesome-repositories.com/f/artificial-intelligence-ml/video-generation.md) — Provides a comprehensive framework for training and deploying large-scale models capable of generating long, temporally consistent video sequences.
- [Optimization Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/diffusion-visual-models/generative-ai-models/diffusion-models/optimization-frameworks.md) — Provides a suite of optimization techniques including caching and quantization to accelerate diffusion-based video generation on consumer hardware.
- [Long-form Generation](https://awesome-repositories.com/f/artificial-intelligence-ml/video-generation/video-clip-generators/long-form-generation.md) — Generates thousands of frames by compressing input contexts to maintain performance on consumer hardware. ([source](https://lllyasviel.github.io/frame_pack_gitpage/))
- [Autoregressive Synthesis Engines](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/diffusion-visual-models/generative-ai-tasks/video-to-video-synthesis/autoregressive-synthesis-engines.md) — Implements a neural engine that uses autoregressive processing and context compression to generate temporally consistent long-form video sequences.
- [Generation Stabilization](https://awesome-repositories.com/f/artificial-intelligence-ml/video-generation/generation-stabilization.md) — Stabilizes video generation by planning anchor frames and discretizing history to prevent drift. ([source](https://lllyasviel.github.io/frame_pack_gitpage/p1/))
- [Autoregressive Models](https://awesome-repositories.com/f/artificial-intelligence-ml/autoregressive-models.md) — Uses autoregressive generation to predict subsequent video frames incrementally.
- [Context Compression](https://awesome-repositories.com/f/artificial-intelligence-ml/context-compression.md) — Implements context compression to maintain memory efficiency during long-form video generation.
- [Distributed Training](https://awesome-repositories.com/f/artificial-intelligence-ml/distributed-training-frameworks/distributed-training.md) — Enables distributed training of high-parameter video generation models.
- [Large-Scale Model Training](https://awesome-repositories.com/f/artificial-intelligence-ml/large-scale-model-training.md) — Facilitates large-scale training of high-parameter video models across distributed clusters. ([source](https://lllyasviel.github.io/frame_pack_gitpage/))
- [Inference Optimizations](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-optimization-and-inference/serving-and-runtime/inference-optimizations.md) — Optimizes video inference performance using caching and quantization techniques.
- [Progressive Generation](https://awesome-repositories.com/f/artificial-intelligence-ml/video-generation/progressive-generation.md) — Extends video length incrementally through iterative processing of neural network layers. ([source](https://github.com/lllyasviel/FramePack#readme))
- [Inference Latency Optimizers](https://awesome-repositories.com/f/artificial-intelligence-ml/inference-latency-optimizers.md) — Optimizes inference latency through intermediate state caching. ([source](https://lllyasviel.github.io/frame_pack_gitpage/))

### Data & Databases

- [Diffusion Acceleration Caches](https://awesome-repositories.com/f/data-databases/data-engineering-infrastructure/caching-performance/caching-strategies/query-result-caching/method-result-caches/intermediate-output-caching/diffusion-acceleration-caches.md) — Caches intermediate diffusion states to reduce latency and redundant computations during frame generation.
- [Temporal Stability Constraints](https://awesome-repositories.com/f/data-databases/data-processing-pipelines/stream-processing-systems/stream-processing/frame-based/temporal-stability-constraints.md) — Ensures temporal stability in video generation through anchor frame planning. ([source](https://lllyasviel.github.io/frame_pack_gitpage/p1))
- [Anchor Frame Prediction](https://awesome-repositories.com/f/data-databases/tabular-data-frameworks/tabular-predictive-models/recursive-prediction-generators/anchor-frame-prediction.md) — Implements hierarchical anchor frame prediction to prevent temporal drift and ensure visual stability.

### Education & Learning Resources

- [Computational Performance Optimization](https://awesome-repositories.com/f/education-learning-resources/educational-resources/systems-applied-computing/machine-learning-education/computational-performance-optimization.md) — Balances output quality and resource usage through caching and quantization. ([source](https://github.com/lllyasviel/FramePack#readme))

### Scientific & Mathematical Computing

- [Temporal Discretization](https://awesome-repositories.com/f/scientific-mathematical-computing/data-discretization/temporal-discretization.md) — Discretizes historical data into tokens to align training distributions with inference patterns.

### Graphics & Multimedia

- [Duration Configuration](https://awesome-repositories.com/f/graphics-multimedia/video-production/video-editing/duration-configuration.md) — Allows users to specify target video duration for automated segment calculation. ([source](https://github.com/lllyasviel/FramePack/blob/main/README.md))
