Instructions to use lijiang/Omni-Diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lijiang/Omni-Diffusion with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lijiang/Omni-Diffusion", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from lijiang/Omni-Diffusion: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/lijiang/Omni-Diffusion/resolve/f448f278361b1eb60fb376cc834e193faf4a73a1/special_tokens_map.json
- Command line
-
hf download hf://lijiang/Omni-Diffusion@f448f278361b1eb60fb376cc834e193faf4a73a1/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/lijiang/Omni-Diffusion/resolve/f448f278361b1eb60fb376cc834e193faf4a73a1/special_tokens_map.json
1.16 kB
| { | |
| "additional_special_tokens": [ | |
| "<|beginoftext|>", | |
| "<|mask|>", | |
| "<|begin_of_image|>", | |
| "<|end_of_image|>", | |
| "<|context_of_image|>", | |
| "<|begin_of_video|>", | |
| "<|end_of_video|>", | |
| "<|context_of_video|>", | |
| "<|begin_of_patch|>", | |
| "<|end_of_patch|>", | |
| "<|context_of_patch|>", | |
| "<|begin_of_quad|>", | |
| "<|end_of_quad|>", | |
| "<|begin_of_ref|>", | |
| "<|end_of_ref|>", | |
| "<|begin_of_box|>", | |
| "<|end_of_box|>", | |
| "<|image|>", | |
| "<|video|>", | |
| "<|begin_of_audio|>", | |
| "<|end_of_audio|>", | |
| "<|context_of_audio|>", | |
| "<|audio|>" | |
| ], | |
| "bos_token": { | |
| "content": "<|beginoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "mask_token": { | |
| "content": "<|mask|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |