/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Wan2.1-T2V-1.3B-Diffusers
Опубликована
17 ноя 2026

speed

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

Квантованные варианты Wan2.1 и CogVideoX предназначены для ускоренной генерации видео по текстовым запросам на GPU NVIDIA Blackwell.

0скачиваний за 30 дней0лайковвеса обновлены23 ноя 2026

Бенчмарки

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

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

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

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

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

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

LiqunMa/speed — набор посттренировочно квантованных трансформеров GRID для генерации видео по тексту, подготовленный автором репозитория на основе Wan2.1-T2V-1.3B и CogVideoX-2B. Для линейных слоёв используются варианты W2A4 с 2-битным кодированием весов и 4-битными активациями, а для Wan2.1 также W4A4. В репозитории представлены веса в формате safetensors; часть вариантов хранит декодированные значения NVFP4, а отдельный trellis-вариант позволяет компактнее размещать 2-битные веса и декодировать их перед GEMM.

Модели предназначены для генерации коротких видео из текстовых запросов и для сравнения скорости и использования памяти с вариантами BF16. Остальные компоненты базовых моделей, включая текстовый энкодер и VAE, остаются в BF16. Запуск бенчмарка рассчитан на GPU NVIDIA Blackwell и требует совместимого FlashInfer GEMM-бэкенда; README также описывает медленный режим эмуляции для проверки численной реализации. Лицензия репозитория — Apache-2.0.

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

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

Ограничения

Бенчмарк рассчитан на NVIDIA Blackwell, требует драйвер версии не ниже 570 и рабочего FlashInfer GEMM-бэкенда; хранение базовых моделей требует около 40 ГБ диска. Квантованы линейные слои трансформеров, тогда как текстовый энкодер, VAE и некоторые другие веса остаются в BF16.

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

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

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

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

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

Открыть на Hugging Face

GRID W2A4 (NVFP4) for Wan2.1-T2V-1.3B and CogVideoX-2B, with GRID W4A4 for Wan2.1

Post-training quantized transformers with 2-bit weights and 4-bit activations (W2A4) from GRID, packaged so that every quantized linear layer runs as an NVFP4 GEMM on Blackwell tensor cores, together with a one-click benchmark of speed and GPU memory against the BF16 model.

Contents

PathContent
wan2.1-t2v-1.3b/grid_nvfp4.safetensors, config.json300 quantized linear layers of the Wan2.1-T2V-1.3B transformer
cogvideox-2b/grid_nvfp4.safetensors, config.json180 quantized linear layers of the CogVideoX-2B transformer
wan2.1-t2v-1.3b-w4a4/grid_nvfp4.safetensors, config.jsonGRID W4A4 of Wan2.1-T2V-1.3B (4-bit trellis code on the same E2M1 grid, same file format)
<model>/grid_trellis.safetensorsthe same weights as 2-bit trellis symbols + E4M3 scales (2.28 bits per weight, see below)
grid_nvfp4.pyruntime: replaces the linear layers of a diffusers transformer
bench.pyspeed and memory of BF16, GRID (NVFP4 weights), GRID-2bit (trellis weights) and GRID-W4A4 (Wan2.1)
setup_env.sh, run_bench.shenvironment (.venv) and one-click benchmark

The other weights (embeddings, adaLN modulation of CogVideoX, output projection, text encoder, VAE) are the BF16 weights of the base models, downloaded from the HuggingFace hub at run time.

Format

For a layer with weight W [out, in], GRID rotates the input with a randomized Hadamard transform R and stores W R as w_gs * w_sf * c: c an FP4 E2M1 value, w_sf an FP8 E4M3 scale per 16 inputs, w_gs an FP32 scale per tensor. These are the values of the GRID 2-bit trellis code (one E4M3 scale per 32 weights, written for both 16-blocks). Activations are quantized to NVFP4 at run time with a static FP32 tensor scale a_gs.

KeyTypeContent
<layer>.w_fp4uint8 [out, in/2]E2M1 codes, element 2j in the low nibble (bit 3: sign; bits 0-2: index into 0, .5, 1, 1.5, 2, 3, 4, 6)
<layer>.w_sffloat8_e4m3fn [out, in/16]block scales, row-major
<layer>.w_gs, <layer>.a_gsfloat32weight and activation tensor scales
<layer>.biasbfloat16 [out]bias
rot_signs.<n>int8 [n]random signs of the rotation of input dimension n (block size: largest power of two dividing n)

With classifier-free guidance, both passes of a step run in one batch (Wan2.1: patched pipeline; CogVideoX: as released), and the conditional input of a layer is quantized as its difference from the unconditional input (inter-branch difference); config.json lists the layers where this is off (Wan2.1 cross-attention K/V).

The 2-bit trellis code is not decoded inside the GEMM here: the file stores the decoded E2M1 values, so the weights take 4.5 bits per weight in memory. The numerics are those of the paper.

grid_trellis.safetensors stores the weights at 2.28 bits per weight: per layer w_sym (uint8 [tiles, 64], the 2-bit symbols of each 16x16 tile, four per byte), w_sf (float8_e4m3fn [out, in/32]), and w_exc / w_exc_fp4 (about 0.8% of the tiles, whose E2M1 codes are stored directly). Decoding it gives exactly the E2M1 values of grid_nvfp4.safetensors (checked for every layer of both models). The grid-2bit variant of the benchmark keeps only this file on the GPU and decodes each layer to NVFP4 operands right before its GEMM (decode_trellis in grid_nvfp4.py, PyTorch ops: about 0.12 s for all 300 layers of Wan2.1 on an H200), so the decoding time is part of the measured step time and only one decoded layer exists at a time.

Benchmark (RTX 5090 or another Blackwell GPU)

bash run_bench.sh                 # first run: creates .venv (PyTorch 2.9 + CUDA 12.8, diffusers 0.39, FlashInfer)
bash run_bench.sh --runs 5        # more runs
bash run_bench.sh --models wan2.1-t2v-1.3b --save_video

Variants: bf16, grid (NVFP4 weights resident, 4.5 bits per weight), grid-2bit (2-bit trellis weights resident, 2.28 bits per weight) and, for Wan2.1 only, grid-w4a4 (GRID W4A4, NVFP4 weights resident). Select with --variants, e.g. bash run_bench.sh --variants bf16,grid-2bit.

GRID W4A4 uses a 4-bit trellis code (4.25 bits per weight). It is stored like the grid variant, as decoded E2M1 values with E4M3 scales (4.5 bits per weight), so its GEMMs and speed are those of grid; only the weights differ. A 4-bit trellis file would save 0.25 bits per weight and is not included.

Requirements: NVIDIA driver >= 570, python >= 3.10, about 40 GB of disk for the base models. Each model is measured with its default sampling (Wan2.1: 480x832, 81 frames; CogVideoX: 480x720, 49 frames; 50 steps) on one prompt. The text encoder runs once and is removed before the measurement. Results in results/summary.md:

ColumnMeaning
DiT weightsparameters and buffers of the transformer
s / stepmedian time of one denoising step with both CFG passes
speedupBF16 s/step divided by the s/step of the variant
totalthe whole pipeline call including VAE decoding
peak denoise / avg denoisemaximum and mean allocated GPU memory during the denoising steps
peak totalmaximum allocated GPU memory including VAE decoding

When GRID is loaded, grid_nvfp4.self_test checks the FP4 packing and scale layout of FlashInfer and compares one FP4 GEMM with a reference; the benchmark stops if no FlashInfer GEMM backend (cutlass, cudnn, trtllm) passes. --backend emu runs the same numerics with dequantized BF16 weights on any GPU (slow; for checking only).

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

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

GPU в ailist

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

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

Не удалось определить, чем загружать веса модели (нет library_name и architectures).

Ревизия весов
8aa4051

0 моделей