/ Модель

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

Лицензия
Apache 2.0
Опубликована
22 июл 2026

Self_Gradient_Forcing

Генерация видеоТекст → видео

Self Gradient Forcing — исследовательский метод генерации длинных видео из текста с экстраполяцией от короткого обучающего контекста к видео длительностью в несколько минут.

10скачиваний за 30 дней9лайковвеса обновлены12 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Self Gradient Forcing (SGF) — исследовательская система для генерации и экстраполяции длинных видео из текстовых запросов, представленная авторами из Joy Future Academy и JD. Метод восстанавливает путь градиента контекста для причинной памяти, создаваемой самой моделью, с помощью двухпроходного повторного воспроизведения ограниченной длины.

Модель предназначена для создания видео длительностью до нескольких минут, сохраняя согласованность персонажей, композиции и временной динамики. Обучение рассчитано на контекстное окно видео около 5 секунд; в README описан вывод примерно 240 секунд видео при 16 кадрах в секунду. Доступны варианты framewise и chunkwise, а веса используют базовые модели Wan2.1 T2V 1.3B и 14B и контрольные точки инициализации Causal-Forcing. Для вывода предусмотрена инфраструктура PyTorch; многокарточный запуск использует до восьми GPU.

Репозиторий опубликован с лицензией Apache-2.0. Это исследовательский выпуск с кодом обучения и вывода; качество генерации и требования к аппаратным ресурсам зависят от выбранного варианта и конфигурации.

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

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

Ограничения

Для вывода требуются базовые модели Wan2.1 и контрольные точки Causal-Forcing; README описывает запуск на GPU и использование до восьми GPU при их наличии. В карточке не приведены количественные оценки качества или сравнение с альтернативными методами.

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

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

Открыть на Hugging Face

⚡ Self Gradient Forcing

Native Long Video Extrapolation

⭐ If Self Gradient Forcing is useful for your research, please consider starring this repository.

🔥 News

  • 2026-07-23: Paper, model checkpoints, inference scripts, and training code are publicly released.

🧠 Method Overview

Self Gradient Forcing (SGF) recovers the missing context-gradient path for self-generated causal memory through a bounded two-pass replay, enabling models trained with only a 5-second window to extrapolate to minute-scale videos with stronger identity, layout, and temporal stability.

🛠️ Installation

The environment follows the Causal-Forcing setup.

conda create -n self_gradient_forcing python=3.10 -y
conda activate self_gradient_forcing

pip install -r requirements.txt
pip install flash-attn --no-build-isolation
python setup.py develop

⬇️ Download Weights

bash scripts/download_weights.sh

The script uses the Hugging Face CLI command hf by default. Set HF_CLI=huggingface-cli if your environment still uses the older command name.

It downloads:

  • Wan base models to wan_models/Wan2.1-T2V-1.3B and wan_models/Wan2.1-T2V-14B.
  • All Causal-Forcing initialization checkpoints under checkpoints/init/framewise/ and checkpoints/init/chunkwise/: ar_diffusion.pt, causal_cd.pt, and causal_ode.pt.
  • Released SGF inference checkpoints to checkpoints/framewise/ar/model.pt and checkpoints/chunkwise/ar/model.pt.
  • The training prompt list to prompts/vidprom_filtered_extended.txt.

🚀 Inference

The default prompt file is prompts/test_prompt.txt with 8 prompts. The launcher uses 8 GPUs when at least 8 GPUs are visible; otherwise it falls back to single-GPU serial inference. By default it generates 963 latent frames, which decode to about 240 seconds of video at 16 fps. The inference script takes the release setting name (framewise or chunkwise) and selects the matching config and checkpoint automatically:

  • framewise config: configs/self_gradient_forcing_framewise.yaml
  • chunkwise config: configs/self_gradient_forcing_chunkwise.yaml

The long-video KV-cache geometry is set in scripts/infer_self_gradient_forcing.sh. Framewise defaults to KV_CACHE_SINK=4, KV_CACHE_FIFO_FRAMES=16, and KV_CACHE_CURRENT_FRAMES=1, so the actual --kv_cache_max_frames passed to inference.py is 4 + 16 + 1 = 21. Chunkwise defaults to KV_CACHE_SINK=3, KV_CACHE_FIFO_FRAMES=6, and KV_CACHE_CURRENT_FRAMES=3, so --kv_cache_max_frames is 12.

Framewise

bash scripts/infer_self_gradient_forcing.sh framewise

This uses:

configs/self_gradient_forcing_framewise.yaml
checkpoints/framewise/ar/model.pt

Chunkwise

bash scripts/infer_self_gradient_forcing.sh chunkwise

This uses:

configs/self_gradient_forcing_chunkwise.yaml
checkpoints/chunkwise/ar/model.pt

Custom checkpoint or prompt file

bash scripts/infer_self_gradient_forcing.sh \
  framewise \
  checkpoints/framewise/ar/model.pt \
  prompts/test_prompt.txt

Useful overrides:

NUM_OUTPUT_FRAMES=963 SEED=42 OUTPUT_ROOT=outputs/demo \
  bash scripts/infer_self_gradient_forcing.sh framewise

For trained checkpoints, pass the release setting first and the produced logs/.../checkpoint_model_*/model.pt path as the second argument. The script uses EMA weights by default; set USE_EMA=0 if you explicitly want the non-EMA generator weights.

🏋️ Training

Framewise SGF

bash scripts/train_self_gradient_forcing_framewise.sh

Equivalent explicit form:

bash scripts/train_self_gradient_forcing_framewise.sh \
  configs/self_gradient_forcing_framewise.yaml \
  logs/sgf_framewise

Chunkwise SGF

bash scripts/train_self_gradient_forcing_chunkwise.sh

Equivalent explicit form:

bash scripts/train_self_gradient_forcing_chunkwise.sh \
  configs/self_gradient_forcing_chunkwise.yaml \
  logs/sgf_chunkwise

The launchers accept [config.yaml] [logdir] [extra train.py args...], matching the multi-node launcher convention used by the reference training scripts. They support single-node and multi-node training. For multi-node jobs, run the same command on every node within the gather window. The scripts auto-register nodes through .rendezvous/ on the shared filesystem and launch static torchrun with an IP master address.

Useful overrides:

GATHER_WINDOW=90 NUM_GPUS=8 MASTER_PORT=29501 ENABLE_WANDB=1 \
  bash scripts/train_self_gradient_forcing_framewise.sh logs/sgf_framewise

NNODES=2 NODE_RANK=0 MASTER_ADDR=10.0.0.1 NUM_GPUS=8 \
  bash scripts/train_self_gradient_forcing_chunkwise.sh logs/sgf_chunkwise

🙏 Acknowledgements

This implementation builds on the Wan video model ecosystem and follows the installation conventions of thu-ml/Causal-Forcing. We thank the open-source community for the infrastructure that made this release possible.

📮 Contact

For questions, please contact Junhao Zhuang at zhuangjh23@tsinghua.org.cn.

📜 License

This project is released under the Apache-2.0 license.

📜 Citation

@article{zhuang2026self,
  title={Self Gradient Forcing: Native Long Video Extrapolation},
  author={Zhuang, Junhao and Zhang, Shiyi and Bian, Yuxuan and Li, Yaowei and Luo, Yawen and Liu, Yijun and Jin, Weiyang and Zhang, Songchun and He, Xianglong and Zhang, Xuying and others},
  journal={arXiv preprint arXiv:2607.20368},
  year={2026}
}

@article{su2026sgf+,
  title={SGF+: Decoupling Gradient Flows for Autoregressive Video Generation},
  author={Su, Zihan and Zhuang, Junhao and Li, Yaowei and Lu, Siwen and Li, Haoran and Li, Lingen and Wu, Haoyu and Jin, Weiyang and Zhang, Songchun and Huang, Haoyang and others},
  journal={arXiv preprint arXiv:2610.10429},
  year={2026}
}

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

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

GPU в ailist

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

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

Генеративная модель выложена не в формате diffusers.

Ревизия весов
ffaf490

0 моделей