Downloads · 30 days
1.2K
12% of all-time downloads
nvidia/Nemotron-Labs-Diffusion-VLM-8B
Nemotron-Labs-Diffusion-VLM-8B is a image-text-to-text model from nvidia. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as other.
<div align="center" style="line-height: 1;" <a href="https://d1qx31qr3h6wln.cloudfront.net/publications/NemotronDiffusionTechReport.pdf?VersionId=1tm4XZATEzGV7cs51XAf.xmWupU20vYW" target="blank" style="margin: 2px;" <…
Downloads · 30 days
1.2K
12% of all-time downloads
All-time downloads
9.8K
Public
Parameters
8.9B
17.9 GB on disk
Likes
36
Trending 4
Click a slice to open those files.
.safetensors17.8 GB · 100%
From the Hugging Face model README
Nemotron-Labs-Diffusion-VLM-8B is the vision-language extension of the Nemotron-Labs-Diffusion family. It pairs the same tri-mode language backbone (AR / diffusion / self-speculation, switchable by attention pattern) with a vision encoder, accepting interleaved image + text input and producing text output. The diffusion-based parallel decoding from the LM family carries over to VLM: the language head can draft a block in parallel and verify autoregressively against shared KV cache, retaining the family's decode-efficiency story while extending it to multimodal prompts.
<div align="center"> <img src="./assets/teaser.png" alt="An illustration of Tri-Mode LMs" width="500"> </div>spatial_merge_size=2.nvidia/Nemotron-Labs-Diffusion-8B (34 layers, 4096 hidden, 14336 intermediate); the model card structure and inference modes inherit from the LM line.Use of this model is governed by the NVIDIA Source Code License (NSCLv1).
transformers>=5.0.0
pillow
requests
opencv-python
import sys
import torch
from huggingface_hub import snapshot_download
from transformers import AutoModel, AutoTokenizer
repo_name = "nvidia/Nemotron-Labs-Diffusion-VLM-8B"
sys.path.insert(0, snapshot_download(repo_name))
from image_processing import process_messages
tokenizer = AutoTokenizer.from_pretrained(repo_name, trust_remote_code=True)
model = AutoModel.from_pretrained(repo_name, trust_remote_code=True).cuda().to(torch.bfloat16)
image_path = "path/to/your/image.jpg" # local file or http(s):// URL
messages = [{
"role": "user",
"content": [
{"type": "image_url", "image_url": {"url": image_path}},
{"type": "text", "text": "Describe this image."},
],
}]
batch = process_messages(tokenizer, messages, add_generation_prompt=True)
prompt_ids = batch["input_ids"].to("cuda")
pixel_values = batch["pixel_values"].to("cuda", dtype=torch.bfloat16)
out_ids, nfe = model.generate(
prompt_ids,
pixel_values=pixel_values,
image_sizes=batch["image_sizes"],
max_new_tokens=512, steps=512, block_length=32,
shift_logits=False, threshold=0.9,
eos_token_id=tokenizer.eos_token_id,
)
tokenized_out = tokenizer.batch_decode(out_ids[:, prompt_ids.shape[1]:], skip_special_tokens=True)
print(f"Model: {tokenized_out[0]}")
print(f"[Num Function Eval (NFE)={nfe}]")
NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse. For more detailed information on ethical considerations for this model, please see the bias, explainability, safety & security, and privacy subcards.
Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns here.
@techreport{fu2026nemotronlabsdiffusion,
title = {Nemotron-Labs-Diffusion: A Tri-Mode Language Model Unifying Autoregressive, Diffusion, and Self-Speculation Decoding},
author = {Yonggan Fu and Lexington Whalen and Abhinav Garg and Chengyue Wu and Maksim Khadkevich and Nicolai Oswald and Enze Xie and Daniel Egert and Sharath Turuvekere Sreenivas and Shizhe Diao and Chenhan Yu and Ye Yu and Weijia Chen and Sajad Norouzi and Jingyu Liu and Shiyi Lan and Ligeng Zhu and Jin Wang and Jindong Jiang and Morteza Mardani and Mehran Maghoumi and Song Han and Ante Jukic and Nima Tajbakhsh and Jan Kautz and Pavlo Molchanov},
institution = {NVIDIA},
year = {2026},
note = {Technical report}
}