← 开源
xin1u

UltraFlash

⚡ Ultra Flash: Scaling Real-Time Streaming Video Generation to High Resolutions

ModelsVision modelsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
533
Star
1
Fork
1
贡献者
创建于 2026-05-30 · 更新于 2026-10-16 · 今日第 17576 名
主要开发者
xin1u

xin1u/UltraFlash 排名第 17,576,有 533 个星标。

同类别比较

xin1u/UltraFlash 排名第 17,576,此处有 8 个同类条目;IvanDrokin/torch-conv-kan 排名第 17,579。

同类别比较
名称排名指标
MIC-DKFZ/MedNeXt17,512
语言:
Python
星标数:
535
分叉数:
71
简介:
[MICCAI 2023] MedNeXt is a fully ConvNeXt architecture for 3D medical image segmentation.
NVlabs/Dancing2Music17,513
语言:
Python
星标数:
535
分叉数:
88
lturing/tacotronv2_wavernn_chinese17,525
语言:
Python
星标数:
535
分叉数:
132
简介:
tacotronV2 + wavernn 实现中文语音合成(Tensorflow + pytorch)
OpenBMB/DeepThinkVLA17,561
语言:
Python
星标数:
533
分叉数:
50
简介:
DeepThinkVLA: Enhancing Reasoning Capability of Vision-Language-Action Models
IvanDrokin/torch-conv-kan17,579
语言:
Python
星标数:
532
分叉数:
45
简介:
This project is dedicated to the implementation and research of Kolmogorov-Arnold convolutional networks. The repository includes implementations of 1D, 2D, and 3D convolutions with different kernels, ResNet-like and DenseNet-like models, training code based on accelerate/PyTorch, as well as scripts for experiments with CIFAR-10 and Tiny ImageNet.
mbzuai-oryx/XrayGPT17,616
语言:
Python
星标数:
531
分叉数:
62
简介:
[BIONLP@ACL 2024] XrayGPT: Chest Radiographs Summarization using Medical Vision-Language Models.
Ahmednull/L2CS-Net17,627
语言:
Python
星标数:
530
分叉数:
113
简介:
The official PyTorch implementation of L2CS-Net for gaze estimation and tracking
Huage001/PaintTransformer17,674
语言:
Python
星标数:
528
分叉数:
78
简介:
Officially unofficial re-implementation of paper: Paint Transformer: Feed Forward Neural Painting with Stroke Prediction, ICCV 2021.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Models
子类别Vision models
关键词CUDA programming, Inference optimization, Memory management, Video production
星标数533
分叉数1
贡献者1
创建日期2026-05-30
更新日期2026-10-16
1 天星标数0
排名17,576
上次排名6,990
排名变化-10,586
7 天星标排名19,283
上次 7 天星标排名19,255
7 天星标排名变化-28
总星标排名18,425
上次总星标排名18,378
总星标排名变化-47
README 摘录

⚡ Ultra Flash **Scaling Real-Time Streaming Video Generation to High Resolutions** **1K video at ~30 FPS · 2K video at ~18 FPS · single GPU** **Ultra Flash** is the first framework to achieve **real-time high-resolution streaming video generation**, producing **1K video at ~30 FPS** and **2K video at ~18 FPS** on a single GPU. It cascades three key components after a low-resolution streaming generator: 1. 🎯 **Architecture-Preserving T2V-to-TV2V SR Training** with AIGC-oriented degradation 2. 🪶 **Causal Streaming

Latent Upsampler** (~2M params, <5% overhead) 3. compile for SR DiT | | | False | FP8 quantization for SF DiT | | | True | Use Tiny Decoder for HR decoding (faster than Wan VAE) | | | | Path to decoder checkpoint | | | False | Use Ultra Decoder V3 (better texture, replaces Tiny Decoder) | | | | Path to V3 decoder checkpoint | | | 3 | SR DiT KV cache window length | | | 0. 0 | Noise injected into SR condition | | | False | Also save LR video output | | | False | Only generate LR video (skip SR cascade) | | | 4 | Denoising steps for subsequent

chunks (4=full) | | | False | Enable IQA-based adaptive cache refresh | | | False | Disable all DCM optimizations | Long video ( ) Inherits most arguments from the YAML config.

常见问题

记录了多少星标和分叉?

xin1u/UltraFlash 有 533 个星标和 1 个分叉。

仓库排名是多少?

xin1u/UltraFlash 排名第 17,576。

记录的语言和类别是什么?

xin1u/UltraFlash 有 533 个星标,语言为 Python,类别为 Models。

哪个仓库排名最接近?

xin1u/UltraFlash 与 IvanDrokin/torch-conv-kan 比较,后者排名第 17,579,有 532 个星标。

README

⚡ Ultra Flash

Scaling Real-Time Streaming Video Generation to High Resolutions

     

1K video at ~30 FPS  ·  2K video at ~18 FPS  ·  single GPU

Ultra Flash is the first framework to achieve real-time high-resolution streaming video generation, producing 1K video at ~30 FPS and 2K video at ~18 FPS on a single GPU. It cascades three key components after a low-resolution streaming generator:

  1. 🎯 Architecture-Preserving T2V-to-TV2V SR Training with AIGC-oriented degradation
  2. 🪶 Causal Streaming Latent Upsampler (~2M params, <5% overhead)
  3. 🚄 Cascaded Streaming Optimization (sparse distillation + DPO + dynamic cache management)

📰 News

  • Aug 2026 — Inference code and checkpoints released on GitHub and Hugging Face. 🎉

📋 TODO

  • ✅ Release inference code and checkpoints (short + long video)
  • ⬜ Release training code and configs

🔧 Requirements

  • NVIDIA GPU with 24+ GB memory (RTX 4090, H200, B200 tested)
  • Linux operating system
  • 64 GB RAM
  • Python 3.10+

🚀 Getting Started

1️⃣ Installation

conda create -n ultraflash python=3.10 -y
conda activate ultraflash
cd inference
pip install -r requirements.txt
pip install flash-attn --no-build-isolation

# Block Sparse Attention (CUDA kernel, required for SR DiT)
git clone https://github.com/mit-han-lab/Block-Sparse-Attention.git
cd Block-Sparse-Attention
pip install -e .
cd ..

python setup.py develop

2️⃣ Download Checkpoints

# Wan2.1-T2V-1.3B base model
huggingface-cli download Wan-AI/Wan2.1-T2V-1.3B --local-dir inference/wan_models/Wan2.1-T2V-1.3B

# Ultra Flash checkpoints (short video)
huggingface-cli download xin1u/UltraFlash --local-dir inference/checkpoints

# Ultra Flash checkpoints (long video, optional)
huggingface-cli download xin1u/UltraFlash-Long --local-dir inference_long/checkpoints

# Symlink shared checkpoints to avoid duplication (optional)
cd inference_long/checkpoints
ln -s ../../inference/checkpoints/sr_dit_sparse.pth .
ln -s ../../inference/checkpoints/latent_upsampler.pth .
ln -s ../../inference/checkpoints/tiny_decoder.pth .
ln -s ../../inference/checkpoints/ultra_decoder_v3.pth .
ln -s ../../inference/wan_models wan_models

The inference/checkpoints/ folder should contain:

File Description
self_forcing_dmd.pt Self-Forcing 4-step streaming generator
sr_dit_sparse.pth Sparse causal SR DiT (single-step)
latent_upsampler.pth Causal streaming latent upsampler
tiny_decoder.pth Tiny Decoder for high-resolution decoding
ultra_decoder_v3.pth (Optional) Ultra Decoder V3 — improved HR decoder with better texture fidelity

3️⃣ Quick Start

One-click inference (2K or 1K):

cd inference
bash inference.sh

Custom inference:

cd inference
python inference.py \
    --config_path configs/self_forcing_dmd_4step.yaml \
    --checkpoint_path checkpoints/self_forcing_dmd.pt \
    --data_path prompts/examples.txt \
    --output_folder outputs/ \
    --use_ema \
    --tiny_decoder \
    --torch_compile \
    --compile_sr_dit

LR-only mode (480P, for comparison):

cd inference
python inference.py \
    --config_path configs/self_forcing_dmd_4step.yaml \
    --checkpoint_path checkpoints/self_forcing_dmd.pt \
    --data_path prompts/examples.txt \
    --output_folder outputs_lr/ \
    --use_ema \
    --lr_only

🎬 Long Video Generation

The inference_long/ directory supports long video generation (~10 seconds, 120 latent frames) using LongLive with LoRA adapters and the same SR cascade pipeline.

Additional checkpoints for long video

The inference_long/checkpoints/ folder requires:

File Description
longlive_base.pt LongLive base generator (Self-Forcing + long video fine-tuning)
lora.pt LoRA adapter for long video coherence (rank 256)
sr_dit_sparse.pth Same as inference/ — can be symlinked
latent_upsampler.pth Same as inference/ — can be symlinked
tiny_decoder.pth Same as inference/ — can be symlinked

Run long video inference

cd inference_long
python inference_sr.py \
    --config_path configs/longlive_inference_sr.yaml \
    --use_sparse_sr \
    --tiny_decoder \
    --torch_compile \
    --compile_sr_dit

⚙️ Key Arguments

Short video (inference/inference.py)

Argument Default Description
--use_ema False Load EMA weights (recommended)
--num_output_frames 21 Number of latent frames (~5s video at 21 frames)
--num_samples 1 Number of samples per prompt
--seed 0 Random seed
--torch_compile False Enable torch.compile for SF DiT (~1.5x speedup)
--compile_sr_dit False Enable torch.compile for SR DiT
--fp8 False FP8 quantization for SF DiT
--tiny_decoder True Use Tiny Decoder for HR decoding (faster than Wan VAE)
--decoder_ckpt checkpoints/tiny_decoder.pth Path to decoder checkpoint
--ultra_decoder_v3 False Use Ultra Decoder V3 (better texture, replaces Tiny Decoder)
--ultra_decoder_v3_ckpt checkpoints/ultra_decoder_v3.pth Path to V3 decoder checkpoint
--sr_kv_len 3 SR DiT KV cache window length
--condition_noise_scale 0.0 Noise injected into SR condition
--save_lr_video False Also save LR video output
--lr_only False Only generate LR video (skip SR cascade)
--dcm_lr_steps_subsequent 4 Denoising steps for subsequent chunks (4=full)
--dcm_adaptive_refresh False Enable IQA-based adaptive cache refresh
--no_dcm False Disable all DCM optimizations

Long video (inference_long/inference_sr.py)

Inherits most arguments from the YAML config. Key CLI overrides:

Argument Default Description
--config_path (required) Path to YAML config (e.g. configs/longlive_inference_sr.yaml)
--use_sparse_sr False Use sparse attention for SR DiT (recommended)
--tiny_decoder False Use Tiny Decoder for HR decoding
--torch_compile False Compile SF DiT
--compile_sr_dit False Compile SR DiT
--fp8 False FP8 quantization for SF DiT
--fp8_sr False FP8 quantization for SR DiT

🧠 Dynamic Cache Management (DCM)

Ultra Flash introduces three inference-time optimizations:

Optimization Effect Quality Impact
(i) LR Step Reduction Saves 1 forward pass per chunk Negligible
(ii) Adaptive Cache Refresh Skips context rerun when quality is sufficient Negligible
(iii) SR Cache Adaptation Reduces SR KV cache memory over time Minimal

🏗️ Architecture

Text Prompt
    │
    ▼
┌─────────────────────────┐
│  Self-Forcing Generator  │  480P, 4 denoising steps, streaming
│  (Wan2.1-1.3B causal)    │
└───────────┬─────────────┘
            │ LR latents (16×60×104)
            ▼
┌─────────────────────────┐
│  Causal Latent Upsampler │  2× or 3× spatial upsampling in latent space
│  (~2M params, Conv2D)    │  Causal memory for temporal coherence
└───────────┬─────────────┘
            │ HR latents (16×120×208)
            ▼
┌─────────────────────────┐
│  Sparse SR DiT           │  Single-step denoising, block-sparse attention
│  (1.3B, causal)          │  Adaptive top-k with local window
└───────────┬─────────────┘
            │ Refined HR latents
            ▼
┌─────────────────────────┐
│  Tiny Decoder (HR)       │  Latent → Pixel (960×1664 or 1440×2496)
│  (Causal Memory Network) │  Sequential streaming mode
└───────────┬─────────────┘
            │
            ▼
       2K Video Output (~18 FPS)

🏋️ Training

Training code is coming soon. See the train/ directory for updates.


🤗 Acknowledgements

This work builds upon the following excellent open-source projects:

  • FlashVSR — Block-sparse attention for streaming video super-resolution
  • Self-Forcing — Real-time autoregressive video generation with self-rollout training
  • TAEHV — Tiny Autoencoder for high-resolution video decoding
  • Wan2.1 — Video DiT foundation model

We thank the authors for their outstanding contributions to the community.


📞 Contact

Please feel free to contact us if there is any question (luxion@mail.ustc.edu.cn).


📜 Citation

@inproceedings{luxury2026ultraflash,
  title={Ultra Flash: Scaling Real-Time Streaming Video Generation to High Resolutions},
  author={Huang, Jie and Fan, Zihao and Ma, Xiaoxiao and Li, Yuming and Zhuang, Jun-hao and Xue, Zeyue and Fu, Siming and Li, Haoran and Zhong, Mingchen and Zhang, Guohui and Ma, Shichen and Liu, Yijun and Shi, Jiaqi and Ma, Yanwen and Su, Yaofeng and Wang, Haoyu and Li, Yaowei and Zhang, Songchun and Jin, Weiyang and Bian, Yuxuan and Zhang, Shiyi and Xu, Haojun and Lu, Shuai and Han, Xin and Tang, Wei and Huang, Haoyang and Duan, Nan},
  booktitle={arXiv preprint},
  year={2026}
}

📄 License

This project is released under the Apache 2.0 License.

排名相邻
同类项目