← 开源
krea-ai

realtime-video

Krea Realtime 14B. An open-source realtime AI video model.

ModelsVision modelsPython
在 GitHub 打开
增长势头
+124 小时新增 Star+0.2%
590
Star
45
Fork
3
贡献者
创建于 2025-10-08 · 更新于 2026-10-15 · 今日第 6656 名
主要开发者
ErwannMillonasciidiegoapolinario

krea-ai/realtime-video 排名第 6,656,有 590 个星标。

同类别比较

krea-ai/realtime-video 排名第 6,656,此处有 8 个同类条目;Turoad/CLRNet 排名第 6,641。

同类别比较
名称排名指标
Eyeline-Labs/Vista4D6,613
语言:
Python
星标数:
608
分叉数:
47
简介:
Official code, models, and data for Vista4D: Video Reshooting with 4D Point Clouds (CVPR 2026 Highlight)
microsoft/mattersim6,626
语言:
Python
星标数:
604
分叉数:
98
简介:
MatterSim: A deep learning atomistic model across elements, temperatures and pressures.
NVlabs/GraspGen6,627
语言:
Python
星标数:
603
分叉数:
86
简介:
Official repo for GraspGen: A Diffusion-based Framework for 6-DOF Grasping
Turoad/CLRNet6,641
语言:
Python
星标数:
597
分叉数:
122
简介:
Pytorch implementation of our paper "CLRNet: Cross Layer Refinement Network for Lane Detection" (CVPR2022 Acceptance).
Liquid4All/liquid-audio6,694
语言:
Python
星标数:
575
分叉数:
99
简介:
Liquid Audio - Speech-to-Speech audio models by Liquid AI
dailenson/One-DM6,698
语言:
Python
星标数:
574
分叉数:
58
KlingAIResearch/UniVideo6,718
语言:
Python
星标数:
569
分叉数:
33
简介:
[ICLR 2026] UniVideo: Unified Understanding, Generation, and Editing for Videos
Knowledgator/GLiClass6,738
语言:
Python
星标数:
560
分叉数:
44
简介:
Generalist and Lightweight Model for Text Classification
关键参数与规格
关键参数与规格
参数值
语言Python
类别Models
子类别Vision models
关键词Inference optimization, Memory management, Text-to-video, Video production
星标数590
分叉数45
贡献者3
创建日期2025-10-08
更新日期2026-10-15
1 天星标数1
排名6,656
上次排名16,263
排名变化9,607
7 天星标排名19,217
上次 7 天星标排名19,188
7 天星标排名变化-29
总星标排名16,983
上次总星标排名16,993
总星标排名变化10
国家USA
README 摘录

Krea Realtime 14B **Real-time video generation with 14B parameter diffusion model** Distilled from Wan 2. 1 14B using the Self-Forcing distillation technique. **Self-Forcing** converts traditional video diffusion models into autoregressive models, enabling real-time video generation. This implementation is based on the Self-Forcing repository, starting from the LightX2V timestep distilled checkpoint. **📖 Technical Details:** For a deep dive into the Self-Forcing technique and scaling challenges, see the official blog post. Install Attention Backend **For NVIDIA B200

GPUs** (recommended): **For H100/RTX 5xxx and other GPUs**: **Note:** SageAttention 2++ and 3 have not been tested and may cause quality degradation. Access Demo **Health check:** **Web UI:** Open in your browser The demo interface ( ) allows you to: Enter prompts Adjust generation parameters Stream frames in real-time over WebSocket 4. Configuration Options - Disable for faster startup but slower inference - Path to custom config file Stop the server with . Basic Example Create a script to generate videos: Run Key

Details **Model loading:** Models are loaded lazily when . Reuse the returned models object for multiple calls to avoid reloading. **Output structure:** Frames are saved to . **Additional helpers:** Check for and utilities. 1 14B - Base text-to-video model LightX2V - Timestep distilled checkpoint For technical details on the Self-Forcing scaling and optimization process, see our blog post. 0 International License - see the LICENSE.

常见问题

记录了多少星标和分叉?

krea-ai/realtime-video 有 590 个星标和 45 个分叉。

仓库排名是多少?

krea-ai/realtime-video 排名第 6,656。

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

krea-ai/realtime-video 有 590 个星标,语言为 Python,类别为 Models。

哪个仓库排名最接近?

krea-ai/realtime-video 与 Turoad/CLRNet 比较,后者排名第 6,641,有 597 个星标。

README

Krea Realtime 14B

Real-time video generation with 14B parameter diffusion model

Distilled from Wan 2.1 14B using Self-Forcing technique


Overview

This repository contains inference code for Krea-Realtime-14B, a real-time video diffusion model distilled from Wan 2.1 14B using the Self-Forcing distillation technique.

Self-Forcing converts traditional video diffusion models into autoregressive models, enabling real-time video generation. Scaling this technique to 14B parameters—over 10× larger than the original work—required significant memory optimizations and engineering breakthroughs.

This implementation is based on the Self-Forcing repository, starting from the LightX2V timestep distilled checkpoint.

📖 Technical Details: For a deep dive into the Self-Forcing technique and scaling challenges, see the official blog post.

Performance

  • 11 fps text-to-video generation on NVIDIA B200 with 4 inference steps
  • Optimized KV cache management (up to 25GB per GPU)
  • Supports streaming and batch inference modes

Key Features

  • Real-time video generation with 14B parameters
  • WebSocket-based streaming server for live generation
  • Offline batch sampling for high-quality outputs
  • Multiple attention backends (Flash Attention 4, SageAttention)
  • Video-to-video transformation capabilities
  • Long-form video generation support

System Requirements

  • GPU: NVIDIA GPU with 40GB+ VRAM recommended
    • NVIDIA B200: 11 fps with 4 inference steps
    • H100, RTX 5xxx series also supported
  • OS: Linux (Ubuntu recommended)
  • Python: 3.11+
  • Storage: ~30GB for model checkpoints

Setup

1. Create Virtual Environment

uv sync

2. Install Attention Backend

For NVIDIA B200 GPUs (recommended):

uv pip install flash_attn --no-build-isolation

For H100/RTX 5xxx and other GPUs:

uv pip install libs/sageattention-2.2.1-cp311-cp311-linux_x86_64.whl
# Or alternatively:
bash install_sage.sh

Note: SageAttention 2++ and 3 have not been tested and may cause quality degradation.

3. Install FFmpeg

sudo apt update && sudo apt install ffmpeg

4. Download Model Checkpoints

# Base model
huggingface-cli download Wan-AI/Wan2.1-T2V-1.3B \
  --local-dir-use-symlinks False \
  --local-dir wan_models/Wan2.1-T2V-1.3B

# Krea Realtime model
huggingface-cli download krea/krea-realtime-video \
  krea-realtime-video-14b.safetensors \
  --local-dir checkpoints

Usage

Option 1: Real-time Server (release_server.py)

Launch a WebSocket server for real-time video generation with streaming output.

1. Configure Environment

export MODEL_FOLDER=wan_models
export CONFIG=configs/self_forcing_server_14b.yaml  # optional
export CUDA_VISIBLE_DEVICES=0
export DO_COMPILE=true  # Use torch.compile for better performance

2. Start Server

uvicorn release_server:app --host 0.0.0.0 --port 8000

3. Access Demo

  • Health check: curl http://localhost:8000/health
  • Web UI: Open http://localhost:8000/ in your browser
  • The demo interface (templates/release_demo.html) allows you to:
    • Enter prompts
    • Adjust generation parameters
    • Stream frames in real-time over WebSocket

4. Configuration Options

  • DO_COMPILE=false - Disable torch.compile for faster startup but slower inference
  • CONFIG - Path to custom config file

Stop the server with Ctrl+C.


Option 2: Offline Sampling (sample.py)

Generate videos offline without the WebSocket layer.

Basic Example

Create a script to generate videos:

# sample_run.py
from pathlib import Path
from release_server import GenerateParams
from sample import sample_videos

# Configure generation parameters
params = GenerateParams(
    prompt="",  # Will be overwritten per prompt
    width=832,
    height=480,
    num_blocks=9,
    seed=42,
    kv_cache_num_frames=3,
)

# Define prompts
prompts = [
    "A hyperrealistic close-up of ocean waves shimmering at sunset.",
    "A bustling neon-drenched alleyway with rain-soaked pavement.",
]

# Generate videos
sample_videos(
    prompts_list=prompts,
    config_path="configs/self_forcing_dmd_will_optims.yaml",
    output_dir="outputs/samples",
    params=params,
    save_videos=True,  # Requires ffmpeg
    fps=24,
)

Run

python sample_run.py

Key Details

  • Model loading: Models are loaded lazily when models=None. Reuse the returned models object for multiple calls to avoid reloading.
  • Output structure: Frames are saved to output_dir/prompt_XXX/. Videos (if save_videos=True) are saved as MP4 files.
  • Additional helpers: Check sample.py for create_grid() and sample_single_video() utilities.

Repository Structure

├── release_server.py          # WebSocket server for real-time generation
├── sample.py                  # Offline batch sampling
├── v2v.py                     # Video-to-video utilities
├── configs/                   # Configuration files
├── demo_utils/                # VAE and utility functions
├── model/                     # Model implementations
├── pipeline/                  # Inference pipelines
├── utils/                     # Helper utilities
├── wan/                       # Wan model components
└── templates/                 # Web UI templates

Credits

This work is based on:

For technical details on the Self-Forcing scaling and optimization process, see our blog post.


License

This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License - see the LICENSE.md file for details.


Citation

If you use this work, please cite:

@software{krea_realtime_14b,
  title={Krea Realtime 14B: Real-time Video Generation},
  author={Erwann Millon},
  year={2025},
  url={https://github.com/krea-ai/realtime-video}
}
排名相邻
同类项目