Image-to-Video
Diffusers
Safetensors
English
LTX2Pipeline
text-to-video
image-text-to-video
visual-reasoning
ltx-2
ltx-2-3
ltx-video
sft
videogym
Instructions to use OpenMOSS-Team/VideoGym-LTX-2.3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OpenMOSS-Team/VideoGym-LTX-2.3 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OpenMOSS-Team/VideoGym-LTX-2.3", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from OpenMOSS-Team/VideoGym-LTX-2.3: direct link, hf CLI and curl.
- Browser
- Download file 18.1 kB
-
https://huggingface.co/OpenMOSS-Team/VideoGym-LTX-2.3/resolve/main/README.md
- Command line
-
hf download hf://OpenMOSS-Team/VideoGym-LTX-2.3/README.md
-
curl -L -o README.md https://huggingface.co/OpenMOSS-Team/VideoGym-LTX-2.3/resolve/main/README.md
18.1 kB
| library_name: diffusers | |
| pipeline_tag: image-to-video | |
| base_model: | |
| - Lightricks/LTX-2.3 | |
| - diffusers/LTX-2.3-Diffusers | |
| datasets: | |
| - OpenMOSS-Team/VideoGym-Train | |
| - OpenMOSS-Team/VideoGym-Test | |
| language: | |
| - en | |
| license: other | |
| license_name: ltx-video-2-open-source-license | |
| license_link: https://huggingface.co/Lightricks/LTX-2.3/blob/main/LICENSE | |
| tags: | |
| - diffusers | |
| - safetensors | |
| - image-to-video | |
| - text-to-video | |
| - image-text-to-video | |
| - visual-reasoning | |
| - ltx-2 | |
| - ltx-2-3 | |
| - ltx-video | |
| - sft | |
| - videogym | |
| <div align="center"> | |
| # VideoGym-LTX-2.3: Full-DiT Post-Trained 22B Video Model for Visual Reasoning Studies | |
| ### Official Model Checkpoint of *Can Video Generation Models Really Learn to Reason?* | |
| <p align="center"> | |
| <img src="https://img.shields.io/badge/arXiv-Paper_(Coming_Soon)-B31B1B?style=flat-square&logo=arxiv&logoColor=white" alt="arXiv Paper"> | |
| <a href="https://videogym.github.io/VideoGym/"><img src="https://img.shields.io/badge/Project-Website-2E5AA8?style=flat-square" alt="Project Website"></a> | |
| <a href="https://github.com/VideoGym/VideoGym"><img src="https://img.shields.io/badge/GitHub-VideoGym-181717?style=flat-square&logo=github&logoColor=white" alt="GitHub Code"></a> | |
| <br> | |
| <a href="https://huggingface.co/datasets/OpenMOSS-Team/VideoGym-Train"><img src="https://img.shields.io/badge/%F0%9F%A4%97_Dataset-VideoGym--Train-D99B26?style=flat-square" alt="VideoGym-Train"></a> | |
| <a href="https://huggingface.co/datasets/OpenMOSS-Team/VideoGym-Test"><img src="https://img.shields.io/badge/%F0%9F%A4%97_Benchmark-VideoGym--Test-D99B26?style=flat-square" alt="VideoGym-Test"></a> | |
| <a href="https://huggingface.co/OpenMOSS-Team/VideoGym-LTX-2.3"><img src="https://img.shields.io/badge/%F0%9F%A4%97_Model-VideoGym--LTX--2.3-D99B26?style=flat-square" alt="VideoGym-LTX-2.3"></a> | |
| <a href="https://huggingface.co/Lightricks/LTX-2.3/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-LTX_Video_2-4B5563?style=flat-square" alt="License: LTX Video 2"></a> | |
| </p> | |
| [**Overview**](#overview) · [**Training Recipe**](#recipe) · [**Evaluation & Findings**](#results) · [**Repository Structure**](#structure) · [**Quick Start**](#quick-start) · [**Citation**](#citation) | |
| </div> | |
| --- | |
| <p> | |
| <img src="assets/figures/fig1_generalization.png" alt="VideoGym seven-level generalization framework and pass-rate curves across Single-Step Group, Multi-Step Group, Overall, and Base Models" width="100%"> | |
| <sub><b>Figure 1. Seven-Level Generalization Profile of VideoGym-LTX-2.3.</b> Starting from 0.00% pass@1 on base LTX-2.3, 10-epoch full-DiT post-training on 245,884 VideoGym-Train videos yields strong gains <i>within familiar task patterns</i> (56.34% In-Domain, 70.45% in the Single-Step Group) yet drops near 0% <i>beyond familiar task patterns</i> (0.59% Composition, 0.61% Cross-Task).</sub> | |
| </p> | |
| <a id="overview"></a> | |
| ## 🔎 Overview | |
| **VideoGym-LTX-2.3** is the official **Epoch 10** full-parameter Diffusion Transformer (DiT) SFT model from [**VideoGym**](https://github.com/VideoGym/VideoGym), trained on all **245,884** procedural visual reasoning videos across **246 tasks** in [**VideoGym-Train**](https://huggingface.co/datasets/OpenMOSS-Team/VideoGym-Train) starting from [`Lightricks/LTX-2.3`](https://huggingface.co/Lightricks/LTX-2.3) ([`diffusers/LTX-2.3-Diffusers`](https://huggingface.co/diffusers/LTX-2.3-Diffusers)). | |
| This repository releases the final **Epoch 10** model in a self-contained **Hugging Face `diffusers` pipeline layout** (`LTX2Pipeline` / `LTX2ImageToVideoPipeline`), directly compatible with both `VideoGym`'s native `ltx-core` evaluation backend (`python -m inference.backends.ltx`) and `diffusers`. | |
| <a id="recipe"></a> | |
| ## ⚙️ Architecture & Post-Training Recipe | |
| `VideoGym-LTX-2.3` updates all 48 joint audio-video DiT blocks (`LTX2VideoTransformer3DModel`, ~22B backbone) in `bfloat16` while keeping the Gemma 3 text encoder, multimodal text connectors, Video VAE, Audio VAE, and vocoder frozen. Because `VideoGym` tasks are silent visual reasoning trajectories, first-frame conditioning is applied with probability `1.0` and audio reconstruction loss is disabled. | |
| <div style="overflow-x: auto;"> | |
| | Hyperparameter | Value | | |
| | :--- | :--- | | |
| | **Base Backbone** | `Lightricks/LTX-2.3` (`diffusers/LTX-2.3-Diffusers`, 48-layer DiT) | | |
| | **Trainable Module** | Full DiT (`transformer`, 4,186 tensors, ~38.0 GB in `bfloat16`); encoders & VAEs frozen | | |
| | **Training Dataset** | [`OpenMOSS-Team/VideoGym-Train`](https://huggingface.co/datasets/OpenMOSS-Team/VideoGym-Train) (245,884 videos, 246 tasks, 11 families) | | |
| | **Published Checkpoint** | **Epoch 10** (`76,840` optimizer steps; `7,684` steps/epoch) | | |
| | **Hardware & Sharding** | 32 × NVIDIA H200 GPUs (4 nodes × 8 GPUs), PyTorch FSDP (`FULL_SHARD`, `bf16`) | | |
| | **Batch & Optimizer** | Global batch size `32` (`1` per GPU), AdamW, grad clip norm `1.0`, seed `42` | | |
| | **Learning Rate** | `1.0e-5` → `1.0e-6` (`linear` scheduler) | | |
| | **Spatial & Temporal Grid** | `768×512` native canvas (`512×512` centered puzzle padded with black borders) at `24 FPS` (delivered at `512×512`, `16 FPS`) | | |
| | **Temporal Buckets** | 28 `8k+1` native frame buckets: `25, 33, 41, ..., 233, 241` frames | | |
| | **Inference Guidance** | 30 Euler steps, CFG `3.0`, STG `1.0` (block `28`), guidance rescale `0.7`, empty negative prompt | | |
| </div> | |
| Exact training configurations are archived in [`training_config/`](training_config/) (`parameters.json`, `config.yaml`, and `fsdp.yaml`). | |
| <a id="results"></a> | |
| ## 📊 Evaluation Results & Key Findings | |
| Evaluated at pass@1 without external LLM/VLM prompt rewriting under deterministic frame-by-frame **full-video verification** on [**VideoGym-Test**](https://huggingface.co/datasets/OpenMOSS-Team/VideoGym-Test) (3,220 questions across 6 levels) and `VBVR-Pro Bench` (500 questions): | |
| ### 1. Seven-Level Generalization Summary | |
| <div style="overflow-x: auto;"> | |
| <table> | |
| <thead> | |
| <tr> | |
| <th align="left">Generalization Level</th> | |
| <th align="left">Duration</th> | |
| <th align="right">Questions</th> | |
| <th align="right">LTX‑2.3 (Base)</th> | |
| <th align="right">VideoGym‑LTX‑2.3</th> | |
| <th align="right">Single‑Step</th> | |
| <th align="right">Multi‑Step</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <td colspan="7" align="left"><b>Within Familiar Task Patterns</b></td> | |
| </tr> | |
| <tr> | |
| <td>In‑Domain</td> | |
| <td>Fixed (81f)</td> | |
| <td align="right">1,230</td> | |
| <td align="right">0.00%</td> | |
| <td align="right">32.20% (396/1,230)</td> | |
| <td align="right">47.58%</td> | |
| <td align="right">14.39%</td> | |
| </tr> | |
| <tr> | |
| <td><b>In‑Domain</b></td> | |
| <td><b>Ref. Length</b></td> | |
| <td align="right">1,230</td> | |
| <td align="right">0.00%</td> | |
| <td align="right"><b>56.34% (693/1,230)</b></td> | |
| <td align="right"><b>70.45%</b></td> | |
| <td align="right"><b>40.00%</b></td> | |
| </tr> | |
| <tr> | |
| <td>Text Prompt Paraphrase</td> | |
| <td>Ref. Length</td> | |
| <td align="right">1,230</td> | |
| <td align="right">0.00%</td> | |
| <td align="right">52.60% (647/1,230)</td> | |
| <td align="right">65.15%</td> | |
| <td align="right">38.07%</td> | |
| </tr> | |
| <tr> | |
| <td>Vision Prompt Paraphrase</td> | |
| <td>Ref. Length</td> | |
| <td align="right">165</td> | |
| <td align="right">0.00%</td> | |
| <td align="right">28.48% (47/165)</td> | |
| <td align="right">49.47%</td> | |
| <td align="right"><b>0.00%</b></td> | |
| </tr> | |
| <tr> | |
| <td>Extrapolation</td> | |
| <td>Ref. Length</td> | |
| <td align="right">260</td> | |
| <td align="right">0.00%</td> | |
| <td align="right">25.77% (67/260)</td> | |
| <td align="right">52.00%</td> | |
| <td align="right"><b>1.48%</b></td> | |
| </tr> | |
| <tr> | |
| <td colspan="7" align="left"><b>Beyond Familiar Task Patterns</b></td> | |
| </tr> | |
| <tr> | |
| <td><b>Composition</b></td> | |
| <td>Ref. Length</td> | |
| <td align="right">170</td> | |
| <td align="right">0.00%</td> | |
| <td align="right"><b>0.59% (1/170)</b></td> | |
| <td align="right"><b>0.00%</b></td> | |
| <td align="right"><b>1.00%</b></td> | |
| </tr> | |
| <tr> | |
| <td><b>Cross‑Task</b></td> | |
| <td>Ref. Length</td> | |
| <td align="right">165</td> | |
| <td align="right">0.00%</td> | |
| <td align="right"><b>0.61% (1/165)</b></td> | |
| <td align="right"><b>0.87%</b></td> | |
| <td align="right"><b>0.00%</b></td> | |
| </tr> | |
| <tr> | |
| <td><b>Cross‑Benchmark</b> (VBVR‑Pro Bench)</td> | |
| <td>Ref. Length</td> | |
| <td align="right">500</td> | |
| <td align="right">0.60%</td> | |
| <td align="right"><b>4.60% (23/500)</b></td> | |
| <td align="right">6.87%</td> | |
| <td align="right"><b>0.00%</b></td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| ### 2. Core Empirical Takeaways | |
| - **Pace fitting under preset frame budgets (`Fixed Length` vs. `Reference Length`):** Switching In-Domain evaluation from `Reference Length` to `Fixed Length` (`81` frames, 5 s) drops overall accuracy by `24.14` percentage points (`56.34%` → `32.20%`), inducing illegal multi-object shortcuts when 81 frames is shorter than the natural trajectory and post-solution over-painting when 81 frames is longer. | |
| - **Text robustness vs. visual symbol fragility (`Prompt Paraphrase`):** Synonymous text rewrites retain `90.76%` (`629/693`) of solved In-Domain questions via frozen Gemma 3 representations, whereas redrawing visual symbols (`Vision Prompt Paraphrase`) collapses to **`0.00%` (`0/70`)** across all 14 Multi-Step Group tasks. | |
| - **Scale & boundary limits (`Extrapolation`):** On `5/5` mastered source tasks, `Scale Extrapolation` retains `80.00%` (`24/30`) in the Single-Step Group yet collapses to **`0.00%` in the Multi-Step Group** (`0/100` overall; `0/80` at 20 questions/task). | |
| - **Collapse beyond single familiar patterns (`Composition` & `Cross-Task`):** Even on Composition tasks where every constituent In-Domain task scores `5/5` (`60.8%` expected under independent rule execution), accuracy is **`1.67%` (`1/60`; `0/50` Single-Step, `1/10` Multi-Step)**, matching the `0.00%` Composition and Cross-Task collapse observed in external `VBVR-Pro A14B` (SFT) and `VBVR-Pro 5B RLVR` (SFT + RLVR) models. | |
| <details> | |
| <summary><b>View Figures 2–5: Visual analyses across Duration Sensitivity, Prompt Paraphrase, Extrapolation, and Composition</b></summary> | |
| <br> | |
| <p> | |
| <img src="assets/figures/fig3_duration.png" alt="Epoch scaling and Fixed Length vs Reference Length duration sensitivity" width="100%"> | |
| <sub><b>Figure 2. Epoch Scaling and Duration Sensitivity.</b> Across Epochs 2–10, the Reference-vs-Fixed-Length gap widens to +24.1 pp while Composition and Cross-Task remain ≤ 0.61%.</sub> | |
| </p> | |
| <p> | |
| <img src="assets/figures/fig4_paraphrase.png" alt="Text Prompt Paraphrase vs Vision Prompt Paraphrase rollouts" width="100%"> | |
| <sub><b>Figure 3. Prompt Paraphrase.</b> Text rewrites preserve Multi-Step maze solving, whereas redrawn visual symbols trigger wall/gap violations across Multi-Step tasks.</sub> | |
| </p> | |
| <p> | |
| <img src="assets/figures/fig5_extrapolation.png" alt="Scale and Mechanism Extrapolation rollouts" width="100%"> | |
| <sub><b>Figure 4. Extrapolation.</b> Single-Step Scale transfers cleanly, whereas Single-Step Mechanism replays training growth direction and Multi-Step Scale merges/drops objects.</sub> | |
| </p> | |
| <p> | |
| <img src="assets/figures/fig6_composition.png" alt="Serial Multi-Step and Joint Single-Step Composition rollouts" width="100%"> | |
| <sub><b>Figure 5. Rule Composition Collapse.</b> Despite 5/5 mastery on each constituent In-Domain task, composed rules drop one rule or corrupt state transitions.</sub> | |
| </p> | |
| </details> | |
| <a id="structure"></a> | |
| ## 🗂️ Repository Structure | |
| Only the final **Epoch 10** checkpoint is included in this release, formatted as a complete `diffusers` pipeline directory: | |
| ```text | |
| VideoGym-LTX-2.3/ | |
| ├── README.md Model card and usage guide | |
| ├── model_index.json Diffusers LTX2Pipeline component manifest | |
| ├── transformer/ Epoch 10 full-DiT weights (8 bfloat16 safetensors shards + config.json) | |
| ├── text_encoder/ Frozen Gemma 3 text encoder (11 shards) | |
| ├── connectors/ Frozen LTX2TextConnectors (2 shards) | |
| ├── vae/ Frozen AutoencoderKLLTX2Video | |
| ├── audio_vae/ Frozen AutoencoderKLLTX2Audio | |
| ├── vocoder/ Frozen LTX2VocoderWithBWE | |
| ├── tokenizer/ GemmaTokenizerFast | |
| ├── processor/ Multimodal processor configuration | |
| ├── scheduler/ FlowMatchEulerDiscreteScheduler | |
| ├── training_config/ Official training hyperparameters (parameters.json, config.yaml, fsdp.yaml) | |
| └── assets/figures/ Evaluation and qualitative figures | |
| ``` | |
| <a id="quick-start"></a> | |
| ## 🚀 Quick Start & Inference | |
| ### 1. Official Benchmark Rollouts (`VideoGym` Native `ltx-core` Backend) | |
| To reproduce exact paper rollouts across [`OpenMOSS-Team/VideoGym-Test`](https://huggingface.co/datasets/OpenMOSS-Team/VideoGym-Test) or `VBVR-Pro Bench`, install [`VideoGym`](https://github.com/VideoGym/VideoGym) (`pip install -e '.[training]'` plus Lightricks' `ltx-core`), download the model, and run `inference.backends.ltx`: | |
| ```bash | |
| # 1. Download complete model repository (~96 GB including frozen Gemma 3 & VAEs) | |
| hf download OpenMOSS-Team/VideoGym-LTX-2.3 --local-dir models/VideoGym-LTX-2.3 | |
| # 2. Download VideoGym-Test CLI benchmark packages | |
| hf download OpenMOSS-Team/VideoGym-Test \ | |
| --repo-type dataset --exclude "data/*" --local-dir datasets/videogym-test | |
| # 3. Generate pass@1 Reference Length rollouts (or replace --reference-timing with --frames 81 for Fixed Length) | |
| python -m inference.backends.ltx \ | |
| --inputs datasets/videogym-test/in-domain/model_inputs.jsonl \ | |
| --reference-timing datasets/videogym-test/in-domain/reference-timing.jsonl \ | |
| --model-path models/VideoGym-LTX-2.3 \ | |
| --output-root outputs/rollouts/in-domain/reference-length \ | |
| --shards 8 --shard-index 0 --device cuda:0 | |
| ``` | |
| > **Tip (36 GB DiT-only download):** If you already have [`diffusers/LTX-2.3-Diffusers`](https://huggingface.co/diffusers/LTX-2.3-Diffusers) cached locally, you can download only the fine-tuned Epoch 10 `transformer/` directory (`hf download OpenMOSS-Team/VideoGym-LTX-2.3 --include "transformer/*" --local-dir models/VideoGym-LTX-2.3-DiT`) and pass `--model-path <path-to-LTX-2.3-Diffusers> --checkpoint models/VideoGym-LTX-2.3-DiT/transformer`. | |
| ### 2. Standalone Python Generation with `diffusers` | |
| `VideoGym-LTX-2.3` encodes `512×512` puzzle images centered on a `768×512` black canvas (`128` px left/right padding) at `24 FPS` (`8k + 1` native frames, e.g., `129` frames at `24 FPS` for an `81`-frame `16 FPS` rollout) with empty negative prompt and prompt enhancement disabled: | |
| ```python | |
| import numpy as np | |
| import torch | |
| from PIL import Image | |
| from diffusers import LTX2ImageToVideoPipeline | |
| from diffusers.pipelines.ltx2.export_utils import encode_video | |
| pipe = LTX2ImageToVideoPipeline.from_pretrained( | |
| "OpenMOSS-Team/VideoGym-LTX-2.3", | |
| torch_dtype=torch.bfloat16, | |
| ).to("cuda") | |
| # Pad a 512x512 VideoGym puzzle image onto the centered 768x512 native canvas | |
| puzzle = Image.open("input.png").convert("RGB").resize((512, 512)) | |
| canvas = np.zeros((512, 768, 3), dtype=np.uint8) | |
| canvas[:, 128:640] = np.asarray(puzzle) | |
| video, _ = pipe( | |
| image=Image.fromarray(canvas), | |
| prompt=open("prompt.txt").read().strip(), | |
| negative_prompt="", | |
| width=768, | |
| height=512, | |
| num_frames=129, # 8k + 1 native frames at 24 FPS (maps to 81 frames at 16 FPS) | |
| frame_rate=24.0, | |
| num_inference_steps=30, | |
| guidance_scale=3.0, | |
| stg_scale=1.0, | |
| modality_scale=1.0, | |
| guidance_rescale=0.7, | |
| spatio_temporal_guidance_blocks=[28], | |
| enable_prompt_enhancement=False, | |
| max_sequence_length=1024, | |
| generator=torch.Generator(device="cuda").manual_seed(10), | |
| output_type="np", | |
| return_dict=False, | |
| ) | |
| # Crop back to the central 512x512 puzzle region and subsample to 16 FPS | |
| cropped = video[0][:, :, 128:640, :] | |
| indices = np.minimum(80, np.floor(np.arange(129) * 16 / 24 + 0.5).astype(int)) | |
| delivery_indices = [int(np.flatnonzero(indices == i)[0]) for i in range(81)] | |
| encode_video(cropped[delivery_indices], fps=16.0, output_path="prediction.mp4") | |
| ``` | |
| ## ⚖️ Intended Use & Limitations | |
| `VideoGym-LTX-2.3` is released as a scientific research artifact for studying post-training dynamics, full-video verification, and generalization boundaries in video generation models. As demonstrated in our paper, while `VideoGym-LTX-2.3` solves many familiar-pattern visual tasks accurately, it relies on learned trajectory templates rather than composable rule reasoning and should not be deployed as a general-purpose planner or safety-critical solver. | |
| <a id="citation"></a> | |
| ## 📝 Citation | |
| If you use **VideoGym-LTX-2.3** in your research, please cite our paper: | |
| ```bibtex | |
| @article{chen2026videogym, | |
| title={Can Video Generation Models Really Learn to Reason?}, | |
| author={Chen, Hongji and Tong, Jingqi and Li, Hangcheng and Li, Mingzhe and Mou, Yurong and Yang, Yongzhuo and Zhang, Haowei and Wang, Zile and Xie, Zhide and Qiu, Shenling and Chen, Ke and Hu, Xiaomeng and Li, Chenglin and Dou, Shihan and Deng, Hokin and Zheng, Yining and Ho, Tsung-Yi and Zhao, Jun and Chen, Xinchi}, | |
| journal={arXiv preprint}, | |
| year={2026} | |
| } | |
| ``` | |
| ## 📄 License | |
| Model weights inherit the upstream [LTX Video 2 Open Source License](https://huggingface.co/Lightricks/LTX-2.3/blob/main/LICENSE) from `Lightricks/LTX-2.3`. Original training, inference, and evaluation code in [`VideoGym`](https://github.com/VideoGym/VideoGym) is licensed under [Apache-2.0](https://github.com/VideoGym/VideoGym/blob/main/LICENSE). | |