Any-to-Any
Transformers
Safetensors
nlduni
feature-extraction
custom_code
image-text-to-text
text-to-image
image-to-image
Instructions to use nvidia/NLD-Uni with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/NLD-Uni with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nvidia/NLD-Uni", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download constants.py from nvidia/NLD-Uni: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/nvidia/NLD-Uni/resolve/main/constants.py
- Command line
-
hf download hf://nvidia/NLD-Uni/constants.py
-
curl -L -o constants.py https://huggingface.co/nvidia/NLD-Uni/resolve/main/constants.py
493 Bytes
| from __future__ import annotations | |
| class NemotronMinistralDLMConstant: | |
| reserve_id = 18 | |
| reserve_id_token = '<SPECIAL_18>' | |
| reserve_id_enc = 19 | |
| reserve_id_token_enc = '<SPECIAL_19>' | |
| mask_id = 100 | |
| mask_id_token = '<SPECIAL_100>' | |
| fim_id = 20 | |
| fim_id_token = '<SPECIAL_20>' | |
| eos_id = 11 | |
| eos_id_token = '<|im_end|>' | |
| gen_im_start_token = '<SPECIAL_21>' | |
| gen_im_end_token = '<SPECIAL_22>' | |
| und_im_pad_token = '<SPECIAL_23>' | |
| und_im_pad_token_id = 23 | |