Hy-Nomas-Diffusers: How to Run Tencent's Interactive Video World Model
Hy-Nomas-Diffusers is Tencent Hunyuan's BF16 Diffusers release of its interactive video world model. This guide covers installation, the HyNomasModularPipeline example, the 54-block MMDiT and KV-cache design, camera control, Hy-Nomas-Bench, and the practical limits of four-step, 704 x 1280 generation.
View 1 referenceAllow the functional cookie to save your likes. Privacy details
What is Hy-Nomas-Diffusers?
Hy-Nomas-Diffusers is Tencent Hunyuan's BF16 Diffusers release of Hy-Nomas, a video world model that generates a scene segment by segment from text and camera instructions. A persistent KV cache carries context between segments, so later prompts extend the same world rather than starting a new clip. Its example outputs 704 × 1280 video at 24 FPS in four denoising steps.
This is the distilled conversion, not the native checkpoint. The repository ships BF16 Safetensors shards for the transformer, decoder, text encoder, tokenizer and scheduler, wired together by the HyNomasModularPipeline.
Source: Hugging Face model card
How do you install Hy-Nomas-Diffusers?
Running Hy-Nomas-Diffusers needs a diffusers build that carries the HyNomasModularPipeline, not just the latest stable release. The model card points to a feature branch and loads BF16 weights in Safetensors format. The commands below assume CUDA and a checkout of the model repository; Apple devices use the mps device instead.
pip install -e "diffusers[hy-nomas] @ git+https://github.com/jiaxiangc/diffusers.git@hy-nomas"
The generic quick-start line pip install -U diffusers transformers accelerate appears on the same page, but the README body specifically requires the branch that contains Hy-Nomas support. Optional FlashAttention 2, FlashAttention 3 and MagiAttention kernels are not included in that extra.
What does the example inference script do?
The example script generates two five-second segments in one call, passing each prompt as a JSON string. Structured prompts describe subjects, appearance, actions with timestamps, and changes between segments. At 24 FPS, num_frames=240 and segment_latent_lengths=[30, 30] cover ten seconds; num_inference_steps=4 is the distilled setting.
import json
import torch
from diffusers import HyNomasModularPipeline
from diffusers.utils import export_to_video
model_path = "/path/to/Hy-Nomas-Diffusers"
pipe = HyNomasModularPipeline.from_pretrained(model_path)
pipe.load_components(dtype=torch.bfloat16)
pipe.to(device="cuda", dtype=torch.bfloat16)
prompts = [
{
"Style": "Cinematic fantasy",
"perspective_view": "Third-person view",
"subject_list": [{
"subject_id": "fox",
"display_name": "a small orange fox",
"subject_attribute": "Orange fur, white chest, and a fluffy tail.",
}],
"segments": [{
"visual_description_long": "A small orange fox stands on a stone path in a luminous forest. Blue fireflies drift between the trees.",
"contained_actions": [{
"start_time": "00:00.000",
"end_time": "00:05.000",
"action_description": "The fox walks slowly along the path.",
}],
}],
},
{
"segments": [{
"description_change": "Glowing blue flowers open beside the path as the fox continues forward.",
"contained_actions": [{
"start_time": "00:00.000",
"end_time": "00:05.000",
"action_description": "The fox passes the flowers and looks around.",
}],
}],
},
]
videos = pipe(
prompt=[json.dumps(p) for p in prompts],
height=704,
width=1280,
num_frames=240,
segment_latent_lengths=[30, 30],
fps=24,
num_inference_steps=4,
generator=torch.Generator("cpu").manual_seed(42),
output="videos",
)
export_to_video(videos[0], "hy_nomas_video.mp4", fps=24, quality=None)
Action timestamps are relative to each segment's own start, which is why both segments use 00:00.000 to 00:05.000. The second prompt omits subject fields and changes only what should change, a pattern that mirrors the demo's multi-turn editing.
How does the architecture keep one world continuous?
Hy-Nomas-Diffusers runs a 54-block dual-stream MMDiT over compressed DCAE-V latents, conditions each new segment on text, camera extrinsics and cached attention keys/values, then decodes the result with a fine-tuned PixelUMM decoder. That split keeps the expensive diffusion in a small latent space and makes four-step sampling practical.
How do text and camera conditioning work?
The text encoder is the language-model part of Qwen2.5-VL-7B-Instruct: 3,584-dimensional hidden states pass through a two-layer token refiner into the DiT's 2,048-dimensional space. Camera control uses normalized 4 × 4 extrinsic matrices grouped over four frames and flattened to 64 dimensions. With per_chunk_camera_attn=true and camera_chunk_size=1, camera attention lines up with individual latent frames.
Why does the KV cache matter?
Attention across segments is causal, so generating the current segment never needs a future one. When generation moves to the next segment, the pipeline reuses the previous call's attention keys and values. This is what makes later instructions feel like edits to a continuing world instead of an unrelated new video.
What do DCAE-V latents and PixelUMM do?
DCAE-V f32t4c32 latents carry 32 channels, compress space 32× and time 4×. The DiT predicts flow velocity in that space with Euler ODE sampling. A fine-tuned PixelUMM decoder — 36 layers, 4,096 hidden size, 10-latent-frame temporal windows with 5-frame overlap — turns the latents into RGB video in one decoding step, separate from the four DiT denoising steps.
What is Hy-Nomas-Bench?
Hy-Nomas-Bench is the companion evaluation suite: four benchmark sets and 280 test cases covering multi-turn free-form text interaction, camera navigation, interleaved text and camera control, and spatial memory. It supplies structured prompts, interaction sequences, keyboard timelines and reference camera trajectories so continuous generation can be checked for controllability and consistency.
The dataset is published separately on Hugging Face. It is useful less as a leaderboard than as a checklist of the behaviours the model claims to support; readers planning their own prompts can map a use case against the four categories before committing to the pipeline.
What are the practical limits of Hy-Nomas-Diffusers?
Hy-Nomas-Diffusers is a distilled BF16 checkpoint, so the four-step, 704 × 1280 setting is an example rather than a guarantee on every GPU. Memory grows with resolution, segment length and cached history. The Diffusers pipeline accepts plain text but does not run the web demo's Nomas-PE prompt enhancer, and native quantized checkpoints are separate downloads.
Reference attention also needs extra kernels: the README shows enabling flash_varlen via pipe.transformer.enable_reference_attention(text_backend="flash_varlen", deterministic=True) after loading. Without them PyTorch SDPA is the default, which may not match the native implementation's behaviour.
Frequently asked questions about Hy-Nomas-Diffusers
These questions cover the decisions readers hit after the first run: hardware, prompt format, camera trajectories, video length and licensing. Answers follow the released model card, which is the primary source for configuration and states plainly what the Diffusers conversion does and does not include.
Is Hy-Nomas-Diffusers the same as the native Hy-Nomas model?
No. The native repository holds checkpoints, quantized variants, adapters and Nomas-PE assets. The Diffusers directory is a BF16 conversion of the distilled model, packaged for HyNomasModularPipeline. Consumers who need the native quantized deployments should use the original repository.
Can I write plain text prompts instead of structured JSON?
Yes. The pipeline accepts plain text or prepared structured prompts directly. The structured schema in the example gives finer control over subjects and timed actions, and matches how the demo formats instructions, but it is not mandatory for a basic run.
How do I generate a longer video?
Chain more segments and keep the KV cache between calls, as the two-segment example does. Each added segment raises memory use because history is retained. There is no published hard segment ceiling in the model card, so practical length is a hardware decision.
What license applies?
The model card lists Apache-2.0 for Hy-Nomas. Third-party components such as the Qwen text encoder keep their own licences, so check those separately before commercial use.
What should you take away from Hy-Nomas-Diffusers?
Hy-Nomas-Diffusers makes an interactive video world model loadable through Diffusers with a documented four-step recipe. Its value is continuity: cached attention lets one world grow across segments. Its constraints are equally real — current hardware, optional kernels, and a prompt format that rewards structure. Treat the example settings as a starting point, then measure on your own scenes.