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 token_constants.py from nvidia/NLD-Uni: direct link, hf CLI and curl.
- Browser
- Download file 130 Bytes
-
https://huggingface.co/nvidia/NLD-Uni/resolve/main/token_constants.py
- Command line
-
hf download hf://nvidia/NLD-Uni/token_constants.py
-
curl -L -o token_constants.py https://huggingface.co/nvidia/NLD-Uni/resolve/main/token_constants.py
130 Bytes
| IMAGE_TOKEN_INDEX = -200 | |
| IMAGE_PAD_TOKEN_INDEX = -500 | |
| DEFAULT_IMAGE_TOKEN = '<image>' | |
| DEFAULT_IMAGE_PAD_TOKEN = '<image_padding>' | |