Safetensors
nemotron_labs_diffusion_image
custom_code
gheinrich commited on
Commit
01d21aa
·
verified ·
1 Parent(s): 0ebbe7f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +63 -68
README.md CHANGED
@@ -6,7 +6,6 @@ license_link: LICENSE
6
 
7
  # Model Overview
8
 
9
-
10
  ## Description
11
 
12
  NL-Diffusion-Image introduces a new paradigm for high-resolution text-to-image generation via LLM based on masked discrete diffusion over tokenized image patches.
@@ -16,13 +15,13 @@ We finetune from [Nemotron-Labs-Diffusion](https://huggingface.co/nvidia/Nemotro
16
  * A token-editing mechanism that allows the model to revise already-unmasked tokens during inference.
17
  * Grouped Cross-Entropy (GCE) objective to handle large-vocabulary training efficiently.
18
 
19
- This model is ready for research or non-commercial evaluation.
20
-
21
 
22
  ![Teaser Image](assets/teaser.png)
 
23
  ### License/Terms of Use
24
 
25
- GOVERNING TERMS: Use of this model is governed by the [NVIDIA Open Source License Agreement](https://huggingface.co/nvidia/NL-Diffusion-Image/raw/main/LICENSE).
26
 
27
  ## Deployment Geography
28
 
@@ -30,7 +29,7 @@ Global
30
 
31
  ## Use Case
32
 
33
- This model is intended for text-to-image generation.
34
 
35
  ## Release Date
36
 
@@ -38,9 +37,9 @@ Hugging Face: 07/01/2026 via [HuggingFace](https://huggingface.co/nvidia/NL-Diff
38
 
39
  ## References
40
 
41
- * NL-Diffusion-Image Paper: Shufan Li et al., "Nemotron-Labs-Diffusion-Image: Advancing Masked Discrete Diffusion for High-Resolution Image Synthesis,".
42
- * Nemotron-Labs-Diffusion Paper: Yonggan Fu et al., "Nemotron-Labs-Diffusion: A Tri-Mode Language Model Unifying Autoregressive, Diffusion, and Self-Speculation Decoding".
43
- * Emu3.5 Paper: Emu3.5 team, "Emu3.5: Native Multimodal Models are World Learners".
44
 
45
  ## Model Architecture
46
 
@@ -51,20 +50,33 @@ Hugging Face: 07/01/2026 via [HuggingFace](https://huggingface.co/nvidia/NL-Diff
51
  We encode 16x16 image patches using a pretrained discrete tokenizer from Emu3.5, with a codebook size of 128k token IDs.
52
  We expand the Nemotron-Labs-Diffusion vocabulary with a corresponding number of randomly-initialized embeddings, and fine-tune the model on a dataset of image/caption pairs.
53
 
 
 
 
 
 
 
 
 
 
54
  ## Input
55
 
56
  **Input Type(s):** Text <br>
57
- **Input Format(s):** Characters <br>
 
58
  **Other Properties Related to Input:** Maximum prompt length is 900 tokens. <br>
59
 
60
  ## Output
61
 
62
  **Output Type(s):** Images <br>
63
  **Output Format:** Tensor (3xHxW) <br>
 
64
  **Other Properties Related to Output:** The output represents an RGB image. <br>
65
 
66
  ## Software Integration
67
 
 
 
68
  **Runtime Engine(s):**
69
  * PyTorch <br>
70
 
@@ -79,7 +91,7 @@ We expand the Nemotron-Labs-Diffusion vocabulary with a corresponding number of
79
  * NVIDIA Turing <br>
80
  * NVIDIA Volta <br>
81
 
82
- **[Preferred/Supported] Operating System(s):** <br>
83
  * Linux
84
  * Linux 4 Tegra
85
  * QNX
@@ -104,22 +116,26 @@ This AI model can be embedded as an Application Programming Interface (API) call
104
 
105
  **LAION-115M-Clean Recaptioned**
106
 
 
 
107
  **Data Modality:**
108
- * Multimodal (image, caption)
109
 
110
  **Image Training Data Size:**
111
  * 115M samples
112
 
113
  **Data Collection Method by dataset:**
114
- * Web scraping
115
 
116
  **Labeling Method by dataset:**
117
- * Subset of 8M images recaptioned using Qwen3-VL
118
 
119
  **MidJourney v6 520k Recaptioned**
120
 
 
 
121
  **Data Modality:**
122
- * Multimodal (image, caption)
123
 
124
  **Image Training Data Size:**
125
  * 520k samples
@@ -128,12 +144,14 @@ This AI model can be embedded as an Application Programming Interface (API) call
128
  * Automated
129
 
130
  **Labeling Method by dataset:**
131
- * Images recaptioned using Qwen3-VL
132
 
133
  **COYO700M Recaptioned**
134
 
 
 
135
  **Data Modality:**
136
- * Multimodal (image, caption)
137
 
138
  **Image Training Data Size:**
139
  * 700M samples
@@ -142,12 +160,12 @@ This AI model can be embedded as an Application Programming Interface (API) call
142
  * Automated
143
 
144
  **Labeling Method by dataset:**
145
- * Subset of 24M images recaptioned using Qwen3-VL
146
 
147
  **BLIP3o-60k Recaptioned**
148
 
149
  **Data Modality:**
150
- * Multimodal (image, caption)
151
 
152
  **Image Training Data Size:**
153
  * 520k samples
@@ -156,15 +174,20 @@ This AI model can be embedded as an Application Programming Interface (API) call
156
  * Automated
157
 
158
  **Labeling Method by dataset:**
159
- * Images recaptioned using Qwen3-VL
160
 
161
  ## Evaluation Datasets
162
 
163
  **ImageNet**
164
 
 
 
165
  **Link:**
166
  * [ImageNet](https://www.image-net.org/)
167
 
 
 
 
168
  **Data Collection:**
169
  * Automated
170
 
@@ -179,9 +202,14 @@ This AI model can be embedded as an Application Programming Interface (API) call
179
 
180
  **GenEval**
181
 
 
 
182
  **Link:**
183
  * [GenEval](https://github.com/djghosh13/geneval)
184
 
 
 
 
185
  **Data Collection:**
186
  * Manually-Collected
187
 
@@ -193,9 +221,14 @@ This AI model can be embedded as an Application Programming Interface (API) call
193
 
194
  **DPGBench**
195
 
 
 
196
  **Link:**
197
  * [DPGBench](https://github.com/TencentQQGYLab/ELLA)
198
 
 
 
 
199
  **Data Collection:**
200
  * Manually-Collected
201
 
@@ -207,9 +240,14 @@ This AI model can be embedded as an Application Programming Interface (API) call
207
 
208
  **MJHQ-30K**
209
 
 
 
210
  **Link:**
211
  * [MJHQ-30K](https://huggingface.co/datasets/playgroundai/MJHQ-30K/blob/main/README.md)
212
 
 
 
 
213
  **Data Collection:**
214
  * Manually-Collected
215
 
@@ -239,6 +277,10 @@ This AI model can be embedded as an Application Programming Interface (API) call
239
  <sup>*</sup> Finetuned on 6M synthetic data for better image quality
240
 
241
 
 
 
 
 
242
  ## Inference
243
 
244
  **Acceleration Engine:** TensorRT, TensorRT-LLM <br>
@@ -251,57 +293,10 @@ NVIDIA believes Trustworthy AI is a shared responsibility and we have establishe
251
 
252
  Please make sure you have proper rights and permissions for all input image and video content; if image or video includes people, personal health information, or intellectual property, the image or video generated will not blur or maintain proportions of image subjects included.
253
 
254
- For more detailed information on ethical considerations for this model, please see the Model Card++ Explainability, Bias, Safety & Security, and Privacy Subcards below.
255
 
256
  Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
257
 
258
- ### Bias
259
-
260
- Field | Response
261
- :---------------------------------------------------------------------------------------------------|:---------------
262
- Participation considerations from adversely impacted groups [protected classes](https://www.senate.ca.gov/content/protected-classes) in model design and testing: | None
263
- Measures taken to mitigate against unwanted bias: | None
264
- Bias Metric (If Measured): | None
265
-
266
- ### Explainability
267
-
268
- Field | Response
269
- :------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------
270
- Intended Task/Domain: | Text-to-image generation
271
- Model Type: | Masked Diffusion Model
272
- Intended Users: | Research
273
- Output: | Images
274
- Describe how the model works: | The model takes a caption as input and generated an image.
275
- Name the adversely impacted groups this has been tested to deliver comparable outcomes regardless of: | Not Applicable
276
- Technical Limitations: | The model generates images in a single resolution of 1024x1024 pixels.
277
- Verified to have met prescribed NVIDIA quality standards: | Yes
278
- Performance Metrics: | GenEVal, DPG, MJHQ.
279
- Potential Known Risks: | This model may not perform well on visual domains that are not represented in the training data. The generated images might fail to disambiguate differences in prompts that appear evident to humans. Domain-specific evaluation is required for the target application.
280
- Licensing: | [NVIDIA Open Source License](https://huggingface.co/nvidia/NL-Diffusion-Image/raw/main/LICENSE)
281
-
282
-
283
- ### Privacy
284
-
285
- Field | Response
286
- :----------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------
287
- Generatable or reverse engineerable personal data? | No
288
- Personal data used to create this model? | No
289
- How often is dataset reviewed? | Before Every Release
290
- Is there provenance for all datasets used in training? | Yes
291
- Does data labeling (annotation, metadata) comply with privacy laws? | Yes
292
- Is data compliant with data subject requests for data correction or removal, if such a request was made? | Yes
293
- Was data from user interactions with the AI model (e.g. user input and prompts) used to train the model? | No
294
- Applicable Privacy Policy | https://www.nvidia.com/en-us/about-nvidia/privacy-policy/
295
-
296
- ### Safety
297
-
298
- Field | Response
299
- :---------------------------------------------------|:----------------------------------
300
- Model Application Field(s): | Generation of images
301
- Describe the life critical impact (if present). | Not Applicable
302
- Use Case Restrictions: | Research/evaluation only, non-commercial applications.
303
- Model and dataset restrictions: | The Principle of least privilege (PoLP) is applied limiting access for dataset generation and model development. Restrictions enforce dataset access during training, and dataset license constraints adhered to.
304
-
305
 
306
  ## Quick Start
307
 
@@ -351,4 +346,4 @@ image = model.text_to_image(
351
  image.save("output.webp")
352
  ```
353
 
354
- See [demo_inference_release.py](demo_inference_release.py) for more details of inference arguments.
 
6
 
7
  # Model Overview
8
 
 
9
  ## Description
10
 
11
  NL-Diffusion-Image introduces a new paradigm for high-resolution text-to-image generation via LLM based on masked discrete diffusion over tokenized image patches.
 
15
  * A token-editing mechanism that allows the model to revise already-unmasked tokens during inference.
16
  * Grouped Cross-Entropy (GCE) objective to handle large-vocabulary training efficiently.
17
 
18
+ This model is for research and development only.
 
19
 
20
  ![Teaser Image](assets/teaser.png)
21
+
22
  ### License/Terms of Use
23
 
24
+ GOVERNING TERMS: Use of this model is governed by the [NVIDIA Open Source License Agreement](https://developer.download.nvidia.com/licenses/NVIDIA-OneWay-Noncommercial-License-22Mar2022.pdf?t=eyJscyI6ImdzZW8iLCJsc2QiOiJodHRwczovL3d3dy5nb29nbGUuY29tLyJ).
25
 
26
  ## Deployment Geography
27
 
 
29
 
30
  ## Use Case
31
 
32
+ This model is intended for individuals who would like to research and evaluate text-to-image generation.
33
 
34
  ## Release Date
35
 
 
37
 
38
  ## References
39
 
40
+ * [NL-Diffusion-Image Paper](https://arxiv.org/abs/2606.29814): Shufan Li et al., "Nemotron-Labs-Diffusion-Image: Advancing Masked Discrete Diffusion for High-Resolution Image Synthesis,".
41
+ * [Nemotron-Labs-Diffusion Paper](https://d1qx31qr3h6wln.cloudfront.net/publications/Nemotron_Diffusion_Tech_Report.pdf?VersionId=1tm4XZATEzGV7cs51XAf.xmWupU20vYW): Yonggan Fu et al., "Nemotron-Labs-Diffusion: A Tri-Mode Language Model Unifying Autoregressive, Diffusion, and Self-Speculation Decoding".
42
+ * [Emu3.5 Paper](https://arxiv.org/pdf/2510.26583): Emu3.5 team, "Emu3.5: Native Multimodal Models are World Learners".
43
 
44
  ## Model Architecture
45
 
 
50
  We encode 16x16 image patches using a pretrained discrete tokenizer from Emu3.5, with a codebook size of 128k token IDs.
51
  We expand the Nemotron-Labs-Diffusion vocabulary with a corresponding number of randomly-initialized embeddings, and fine-tune the model on a dataset of image/caption pairs.
52
 
53
+ ## Computational Load (Internal Only: For NVIDIA Models Only)
54
+
55
+ Estimated using `Compute ≈ 6ND`, with `N` the number of trained parameters (encoder + training-only decoder ≈ 1.45B) and `D` the number of patch tokens processed during training.
56
+ With 58B tokens for pre-training, 255B tokens for Supervised Fine Tuning, `D ≈ 3.1×10¹¹` tokens (image and text included).
57
+
58
+ **Cumulative Compute**: ≈ 1.5e22 FLOPS. <br>
59
+ **Estimated Energy**: ≈ 53000 kWh. <br>
60
+ **Estimated Emissions for Model Training**: ≈ 22.4 tCO2e. <br>
61
+
62
  ## Input
63
 
64
  **Input Type(s):** Text <br>
65
+ **Input Format(s):** Character Strings <br>
66
+ **Input Parameters:** One-dimensional (1D) <br>
67
  **Other Properties Related to Input:** Maximum prompt length is 900 tokens. <br>
68
 
69
  ## Output
70
 
71
  **Output Type(s):** Images <br>
72
  **Output Format:** Tensor (3xHxW) <br>
73
+ **Output Parameters:** Two-Dimensional (2D) <br>
74
  **Other Properties Related to Output:** The output represents an RGB image. <br>
75
 
76
  ## Software Integration
77
 
78
+ Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems. By leveraging NVIDIA’s hardware (e.g. GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions.
79
+
80
  **Runtime Engine(s):**
81
  * PyTorch <br>
82
 
 
91
  * NVIDIA Turing <br>
92
  * NVIDIA Volta <br>
93
 
94
+ **Supported Operating System(s):** <br>
95
  * Linux
96
  * Linux 4 Tegra
97
  * QNX
 
116
 
117
  **LAION-115M-Clean Recaptioned**
118
 
119
+ A large, filtered collection of diverse real-world web images - including people, animals, objects, scenes, artwork, products, documents, and memes - paired with high-quality synthetic text captions generated from the images.
120
+
121
  **Data Modality:**
122
+ * Multimodal (image, text)
123
 
124
  **Image Training Data Size:**
125
  * 115M samples
126
 
127
  **Data Collection Method by dataset:**
128
+ * Automated
129
 
130
  **Labeling Method by dataset:**
131
+ * Synthetic: Subset of 8M images recaptioned using Qwen3-VL
132
 
133
  **MidJourney v6 520k Recaptioned**
134
 
135
+ High-quality synthetic Midjourney v6 images from user prompts.
136
+
137
  **Data Modality:**
138
+ * Multimodal (image, text)
139
 
140
  **Image Training Data Size:**
141
  * 520k samples
 
144
  * Automated
145
 
146
  **Labeling Method by dataset:**
147
+ * Synthetic: Images recaptioned using Qwen3-VL
148
 
149
  **COYO700M Recaptioned**
150
 
151
+ Image–alt-text pairs from HTML pages.
152
+
153
  **Data Modality:**
154
+ * Multimodal (image, text)
155
 
156
  **Image Training Data Size:**
157
  * 700M samples
 
160
  * Automated
161
 
162
  **Labeling Method by dataset:**
163
+ * Synthetic: Subset of 24M images recaptioned using Qwen3-VL
164
 
165
  **BLIP3o-60k Recaptioned**
166
 
167
  **Data Modality:**
168
+ * Multimodal (image, text)
169
 
170
  **Image Training Data Size:**
171
  * 520k samples
 
174
  * Automated
175
 
176
  **Labeling Method by dataset:**
177
+ * Synthetic: Images recaptioned using Qwen3-VL
178
 
179
  ## Evaluation Datasets
180
 
181
  **ImageNet**
182
 
183
+ Labeled natural images of objects and scenes organized by WordNet categories.
184
+
185
  **Link:**
186
  * [ImageNet](https://www.image-net.org/)
187
 
188
+ **Data Modality:**
189
+ * Images
190
+
191
  **Data Collection:**
192
  * Automated
193
 
 
202
 
203
  **GenEval**
204
 
205
+ Prompts for testing objects, attributes, counts, colors, and spatial relations.
206
+
207
  **Link:**
208
  * [GenEval](https://github.com/djghosh13/geneval)
209
 
210
+ **Data Modality:**
211
+ * Text
212
+
213
  **Data Collection:**
214
  * Manually-Collected
215
 
 
221
 
222
  **DPGBench**
223
 
224
+ Dense prompts with multiple objects, attributes, and relationships.
225
+
226
  **Link:**
227
  * [DPGBench](https://github.com/TencentQQGYLab/ELLA)
228
 
229
+ **Data Modality:**
230
+ * Text
231
+
232
  **Data Collection:**
233
  * Manually-Collected
234
 
 
240
 
241
  **MJHQ-30K**
242
 
243
+ High-quality photorealistic Midjourney-style images used for aesthetic/FID evaluation.
244
+
245
  **Link:**
246
  * [MJHQ-30K](https://huggingface.co/datasets/playgroundai/MJHQ-30K/blob/main/README.md)
247
 
248
+ **Data Modality:**
249
+ * Multimodal (image, text)
250
+
251
  **Data Collection:**
252
  * Manually-Collected
253
 
 
277
  <sup>*</sup> Finetuned on 6M synthetic data for better image quality
278
 
279
 
280
+ ## Key Considerations
281
+
282
+ This model can generate synthetic images and may produce content that is inaccurate, offensive, or otherwise inappropriate. Users should implement robust safety guardrails — including content filtering, abuse monitoring, and access controls— to reduce the risk of harmful outputs. Users are responsible for ensuring that their use of the model complies with all applicable laws and regulations, and for regularly reviewing and updating their guardrails as risks evolve. For more information about the implementation of guardrails, please see the [Nemotron-3.5-Content-Safety Guardrail Model](https://huggingface.co/nvidia/Nemotron-3.5-Content-Safety).
283
+
284
  ## Inference
285
 
286
  **Acceleration Engine:** TensorRT, TensorRT-LLM <br>
 
293
 
294
  Please make sure you have proper rights and permissions for all input image and video content; if image or video includes people, personal health information, or intellectual property, the image or video generated will not blur or maintain proportions of image subjects included.
295
 
296
+ Users are responsible for model inputs and outputs. Users are responsible for ensuring safe integration of this model, including implementing guardrails as well as other safety mechanisms, prior to deployment.
297
 
298
  Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
 
301
  ## Quick Start
302
 
 
346
  image.save("output.webp")
347
  ```
348
 
349
+ See [demo_inference_release.py](demo_inference_release.py) for more details of inference arguments.