/ Модель

Характеристики

Лицензия
Своя лицензия
Архитектура
maliang · dense
Базовая модель
Wan2.2-TI2V-5B
Библиотека
diffsynth
Опубликована
26 ноя 2026

MaLiang

Видео из изображенияИзображение, текст → видео3 профессии
55скачиваний за 30 дней1лайквеса обновлены27 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

MaLiang продолжает игровой мир в видео по начальному кадру и числовым картам состояния сцены в реальном времени.

MaLiang — исследовательская разработка Zhiyang Deng, Shushan Xu и Yeying Jin из Tencent, National University of Singapore и Nanyang Technological University для генерации игровых миров в реальном времени. Это дообученная и дистиллированная версия Wan2.2-TI2V-5B: модель получает начальный кадр и числовую карту сцены, где каждый пиксель обозначен целочисленным классом, и генерирует продолжение видео с учётом игрового состояния. В карте кодируются элементы окружения, части персонажей и эффекты атак; визуальный энкодер для этой числовой карты не используется.

В репозитории опубликованы пять контрольных точек в формате bf16 safetensors с разрешением 832×480. Основная контрольная точка — причинная четырёхшаговая модель, дистиллированная в три этапа; авторы сообщают о потоковой генерации со скоростью 22 кадра в секунду на одном GPU. Для запуска также требуется базовая модель Wan2.2-TI2V-5B, достаточная GPU-память для DiT на 5 млрд параметров и подготовленные начальный кадр и карты классов. Модель рассчитана на игровые сценарии с заданным словарём классов и не является универсальным генератором игровых миров. Лицензия указана как other; конкретные условия в предоставленной карточке не описаны.

Сценарии применения

  • потоковая генерация игрового видео по карте состояния сцены
  • визуализация изменений игрового мира после действий игрока
  • создание продолжений видео по начальному игровому кадру
  • прототипирование интерактивных игровых миров с управлением через классы пикселей

Ограничения

Для работы нужны базовая модель Wan2.2-TI2V-5B, GPU с достаточной памятью и входные карты, построенные в соответствии с ограниченным словарём игровых классов. В карточке указана лицензия other, но конкретные условия использования не приведены.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

MaLiang: Painting Playable Game Worlds from Numbers

Zhiyang Deng1,2,*, Shushan Xu1,3,*, Yeying Jin1,2,♢

1Tencent, 2National University of Singapore, 3Nanyang Technological University

*Equal contribution · ♢Corresponding author and project leader

Project Page Code Data License

A game hands a video model one integer per pixel, and the model paints the world, live.

Highlights

  • Numerical proxy — the game rasterises its state (terrain, buildings, vegetation, the player's and the boss's body parts, attack effects) into one uint8 class id per pixel. No render pass and no visual encoder.
  • Native numerical conditioning — a 9.4M-parameter class-pooling encoder turns each 4×4 block into class shares that are added to the patch embedding of Wan2.2-TI2V-5B.
  • Real time — a three-stage distillation (teacher forcing → consistency distillation → DMD) gives a causal four-step student that streams at 22 frames per second on one GPU.
  • Numerical canvas — anything a game rule writes into the map is painted in the next step, and one map can be replayed from any first frame to give a new world.

What is here

RepositoryContentSize
15y6u87/MaLiang (this repo)the five checkpoints of the paper and models.sha2565 × 10 GB
15y6u87/MaLiang-Datathe raw game recordings the model is trained on: RGB, integer class map, whitebox, condition image, actions and per-frame metadata; 256 runs, 1,228,800 frames, 21.3 h482 GB
YeyingLab/MaLiangtraining, distillation, inference and evaluation code

Checkpoints

All checkpoints are bf16 safetensors, vocab=parts_fx, 832×480.

FileRoleUsed by
fxcond_v1_stage3_ema_step500.safetensorsDeployed causal student, 4 steps (stage-3 DMD, EMA, step 500); the real-time model of the papergcdistill/eval_rollout.py, sample_user.py
sft_fxcond_v1_step-10667.safetensorsBidirectional teacher, 10,667 SFT steps; the starting point and the DMD teacher of the distillationsample.py, distillation stages 1 and 3
abl_color_vae_step-5000.safetensorsInterface ablation ①: colour-coded video encoded by the Wan VAEexperiments/abl/
abl_color_light_step-5000.safetensorsInterface ablation ②: colour-coded video through a light encoder of the same cost as oursexperiments/abl/
abl_v3_ids_step-5000.safetensorsInterface ablation ③/④: integer map, step-5000 snapshot of the teacher run (same budget as ① and ②)experiments/abl/

Integer map vocabulary (parts_fx)

Seven static scene classes (sky/background, terrain, paving, architecture, rock, vegetation, prop), the body parts of the player and of the boss, four boss attack-effect classes (light and heavy attacks of two bosses), and 255 for unknown. The exact table is in the code (code/gc25d/model.py).

Quick start

pip install -U huggingface_hub
hf download 15y6u87/MaLiang --local-dir models
cd models && sha256sum -c models.sha256 && cd ..

Install the code as described in the GitHub README, download Wan-AI/Wan2.2-TI2V-5B into models/Wan2.2-TI2V-5B, then render your own first frame and integer maps with the real-time student:

python code/gc25d/sample_user.py \
  --ckpt models/fxcond_v1_stage3_ema_step500.safetensors \
  --first_frame first.png --ids ids.npz --prompts prompts.json \
  --out outputs/user_demo --name demo --steps 50

ids.npz holds a uint8 array of shape [81, 480, 832] in the parts_fx vocabulary; --export_clip <clip_id> exports a prepared clip's first frame, maps and prompts as a template. A long streaming rollout on held-out clips:

python code/gc25d/gcdistill/eval_rollout.py \
  --ckpt models/fxcond_v1_stage3_ema_step500.safetensors \
  --data_root data/gc25d_v10_fxcond --text_table assets/text_table_gc25d.pt \
  --n_clips 10 --chain_cells 241 --vae tae --out outputs/deploy_eval

Reproducing the model

  1. Data: download 15y6u87/MaLiang-Data to data/recordings, then build the training cache with code/gc25d/prep_v10.py (VAE latents, integer maps and metadata per 81-frame clip; see the code README → Data).
  2. Base model: Wan-AI/Wan2.2-TI2V-5B.
  3. Teacher: scripts/train_sft.sh, 10,667 steps, global batch 16, lr=1e-5, cond_lr=1e-4 → sft_fxcond_v1_step-10667.
  4. Distillation: gcdistill/run_stage{1,2,3}.sh: teacher forcing 8,000 steps → consistency distillation 8,000 steps → DMD 500 steps → fxcond_v1_stage3_ema_step500.
  5. Evaluation: the 100-clip test manifest and the metric scripts are in experiments/.

Hardware

The teacher is trained with DeepSpeed ZeRO-2 on 8 GPUs; distillation stage 3 uses FSDP. Inference runs on one GPU with room for the 5B DiT in bf16. With the TAEHV decoder and a 17-cell KV window the four-step student streams in real time on one GPU.

Licence

The checkpoints are released for research use only. The code in YeyingLab/MaLiang is Apache-2.0. The base model Wan2.2-TI2V-5B and the third-party components used by the code keep their own licences. The training data is also for research use only; see 15y6u87/MaLiang-Data.

Citation

@misc{maliang2026,
  title  = {MaLiang: Painting Playable Game Worlds from Numbers},
  author = {Deng, Zhiyang and Xu, Shushan and Jin, Yeying},
  year   = {2026},
  url    = {https://github.com/YeyingLab/MaLiang}
}

The arXiv entry will be added once the paper is public.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · diffsynth

Нельзя запустить

Модели «картинка → видео» пока не запускаются: нужен ввод изображения для diffusion.

Ревизия весов
51ef915

0 моделей