whatisgithub

What is raven?

mvp-ai-lab/raven — explained in plain English

Analysis updated 2026-05-18

33PythonAudience · researcherComplexity · 5/5Setup · hard

In one sentence

Research code for RAVEN, a method that keeps AI-generated streaming video from losing quality over long clips, plus a reinforcement learning technique that improves it further.

Mindmap

mindmap
  root((RAVEN))
    What it does
      Real time video generation
      Consistency over long clips
      Reinforcement learning boost
    Tech stack
      Python
      PyTorch
      CUDA
      Diffusers
    Use cases
      Reproduce paper results
      Train video models
      Benchmark with VBench
    Setup
      Conda environment
      GPU required
      Custom attention build
    Audience
      Researchers
      ML practitioners

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reproduce the RAVEN paper's results on streaming video generation.

USE CASE 2

Train or fine-tune a video diffusion model using the RAVEN or CM-GRPO methods.

USE CASE 3

Benchmark a video generation model against RAVEN using the VBench scoring pipeline.

USE CASE 4

Compare RAVEN against other vendored streaming video baselines under identical settings.

What is it built with?

PythonPyTorchCUDADiffusersTransformers

How does it compare?

mvp-ai-lab/raven410979729/scope-recallarahim3/mlx-dspark
Stars333333
LanguagePythonPythonPython
Setup difficultyhardmoderateeasy
Complexity5/53/53/5
Audienceresearcherdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires a high-end Nvidia GPU, a custom Conda environment, and building attention libraries from source.

So what is it?

RAVEN is the code release for a research paper from Imperial College London that tackles a specific problem in AI video generation: keeping quality steady when a model streams video in real time, chunk by chunk, instead of generating the whole clip at once. Streaming models predict each new chunk from the video they already generated, but during training they normally only see clean, ideal past chunks, while at actual run time those past chunks are a bit noisy and imperfect. That mismatch causes quality to drift the longer the video runs. RAVEN closes that gap by training the model on a mixed sequence of clean and noisy past states that better matches what it will actually see when it is generating video for real. The project also introduces a second technique called Consistency-model Group Relative Policy Optimization, or CM-GRPO, which applies reinforcement learning directly to the video generation process itself. Reinforcement learning is a method where a model improves by getting rewarded for good outputs and penalized for bad ones. The authors report that RAVEN outperforms other recent streaming video methods on quality, how well a video matches its text description, and how much motion it contains, and that CM-GRPO adds further improvement on top of RAVEN. This is a research codebase, not a polished app. Setup involves creating a specific Conda and Python environment, installing pinned versions of PyTorch, Transformers, and Diffusers, and building custom attention libraries from source, all targeting a high end Nvidia GPU. Users need to separately download the base model checkpoint and the released RAVEN weights before running anything. The repository includes training scripts, sampling scripts for generating video from prompts, and an evaluation pipeline using the VBench benchmark suite to score results, along with several other published methods vendored in for side by side comparison. This project is aimed at AI researchers and practitioners working on video generation who want to reproduce the paper's results, experiment with the training method, or benchmark their own models against RAVEN and other streaming video baselines. It is written in Python and requires substantial GPU hardware and machine learning experience to use.

Copy-paste prompts

Prompt 1
Explain how RAVEN keeps quality consistent in real-time streaming video generation compared to other methods.
Prompt 2
Walk me through setting up the Conda and Python environment needed to run RAVEN, including the GPU requirements.
Prompt 3
Explain what CM-GRPO does and how it applies reinforcement learning to video generation.
Prompt 4
Show me how to run the VBench evaluation pipeline on a folder of generated videos.

Frequently asked questions

What is raven?

Research code for RAVEN, a method that keeps AI-generated streaming video from losing quality over long clips, plus a reinforcement learning technique that improves it further.

What language is raven written in?

Mainly Python. The stack also includes Python, PyTorch, CUDA.

How hard is raven to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is raven for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.