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
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")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?
Overview Β· Training Recipe Β· Evaluation & Findings Β· Repository Structure Β· Quick Start Β· Citation
Figure 1. Seven-Level Generalization Profile of VideoGym-LTX-2.3. 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 within familiar task patterns (56.34% In-Domain, 70.45% in the Single-Step Group) yet drops near 0% beyond familiar task patterns (0.59% Composition, 0.61% Cross-Task).
π Overview
VideoGym-LTX-2.3 is the official Epoch 10 full-parameter Diffusion Transformer (DiT) SFT model from VideoGym, trained on all 245,884 procedural visual reasoning videos across 246 tasks in VideoGym-Train starting from Lightricks/LTX-2.3 (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.
βοΈ 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.
| 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 (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 |
Exact training configurations are archived in training_config/ (parameters.json, config.yaml, and fsdp.yaml).
π 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 (3,220 questions across 6 levels) and VBVR-Pro Bench (500 questions):
1. Seven-Level Generalization Summary
| Generalization Level | Duration | Questions | LTXβ2.3 (Base) | VideoGymβLTXβ2.3 | SingleβStep | MultiβStep |
|---|---|---|---|---|---|---|
| Within Familiar Task Patterns | ||||||
| InβDomain | Fixed (81f) | 1,230 | 0.00% | 32.20% (396/1,230) | 47.58% | 14.39% |
| InβDomain | Ref. Length | 1,230 | 0.00% | 56.34% (693/1,230) | 70.45% | 40.00% |
| Text Prompt Paraphrase | Ref. Length | 1,230 | 0.00% | 52.60% (647/1,230) | 65.15% | 38.07% |
| Vision Prompt Paraphrase | Ref. Length | 165 | 0.00% | 28.48% (47/165) | 49.47% | 0.00% |
| Extrapolation | Ref. Length | 260 | 0.00% | 25.77% (67/260) | 52.00% | 1.48% |
| Beyond Familiar Task Patterns | ||||||
| Composition | Ref. Length | 170 | 0.00% | 0.59% (1/170) | 0.00% | 1.00% |
| CrossβTask | Ref. Length | 165 | 0.00% | 0.61% (1/165) | 0.87% | 0.00% |
| CrossβBenchmark (VBVRβPro Bench) | Ref. Length | 500 | 0.60% | 4.60% (23/500) | 6.87% | 0.00% |
2. Core Empirical Takeaways
- Pace fitting under preset frame budgets (
Fixed Lengthvs.Reference Length): Switching In-Domain evaluation fromReference LengthtoFixed Length(81frames, 5 s) drops overall accuracy by24.14percentage 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 retain90.76%(629/693) of solved In-Domain questions via frozen Gemma 3 representations, whereas redrawing visual symbols (Vision Prompt Paraphrase) collapses to0.00%(0/70) across all 14 Multi-Step Group tasks. - Scale & boundary limits (
Extrapolation): On5/5mastered source tasks,Scale Extrapolationretains80.00%(24/30) in the Single-Step Group yet collapses to0.00%in the Multi-Step Group (0/100overall;0/80at 20 questions/task). - Collapse beyond single familiar patterns (
Composition&Cross-Task): Even on Composition tasks where every constituent In-Domain task scores5/5(60.8%expected under independent rule execution), accuracy is1.67%(1/60;0/50Single-Step,1/10Multi-Step), matching the0.00%Composition and Cross-Task collapse observed in externalVBVR-Pro A14B(SFT) andVBVR-Pro 5B RLVR(SFT + RLVR) models.
View Figures 2β5: Visual analyses across Duration Sensitivity, Prompt Paraphrase, Extrapolation, and Composition
Figure 2. Epoch Scaling and Duration Sensitivity. Across Epochs 2β10, the Reference-vs-Fixed-Length gap widens to +24.1 pp while Composition and Cross-Task remain β€ 0.61%.
Figure 3. Prompt Paraphrase. Text rewrites preserve Multi-Step maze solving, whereas redrawn visual symbols trigger wall/gap violations across Multi-Step tasks.
Figure 4. Extrapolation. Single-Step Scale transfers cleanly, whereas Single-Step Mechanism replays training growth direction and Multi-Step Scale merges/drops objects.
Figure 5. Rule Composition Collapse. Despite 5/5 mastery on each constituent In-Domain task, composed rules drop one rule or corrupt state transitions.
ποΈ Repository Structure
Only the final Epoch 10 checkpoint is included in this release, formatted as a complete diffusers pipeline directory:
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
π Quick Start & Inference
1. Official Benchmark Rollouts (VideoGym Native ltx-core Backend)
To reproduce exact paper rollouts across OpenMOSS-Team/VideoGym-Test or VBVR-Pro Bench, install VideoGym (pip install -e '.[training]' plus Lightricks' ltx-core), download the model, and run inference.backends.ltx:
# 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-Diffuserscached locally, you can download only the fine-tuned Epoch 10transformer/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:
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.
π Citation
If you use VideoGym-LTX-2.3 in your research, please cite our paper:
@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 from Lightricks/LTX-2.3. Original training, inference, and evaluation code in VideoGym is licensed under Apache-2.0.
- Downloads last month
- -
Model tree for OpenMOSS-Team/VideoGym-LTX-2.3
Base model
Lightricks/LTX-2.3