Instructions to use BLIP3o/BLIP3o-Model-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BLIP3o/BLIP3o-Model-8B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("BLIP3o/BLIP3o-Model-8B", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download diffusion-decoder/tokenizer/tokenizer_config.json from BLIP3o/BLIP3o-Model-8B: direct link, hf CLI and curl.
- Browser
- Download file 745 Bytes
-
https://huggingface.co/BLIP3o/BLIP3o-Model-8B/resolve/refs%2Fpr%2F3/diffusion-decoder/tokenizer/tokenizer_config.json
- Command line
-
hf download hf://BLIP3o/BLIP3o-Model-8B@refs/pr/3/diffusion-decoder/tokenizer/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/BLIP3o/BLIP3o-Model-8B/resolve/refs%2Fpr%2F3/diffusion-decoder/tokenizer/tokenizer_config.json
745 Bytes
| { | |
| "add_bos_token": true, | |
| "add_eos_token": false, | |
| "bos_token": { | |
| "__type": "AddedToken", | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": { | |
| "__type": "AddedToken", | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "legacy": true, | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": null, | |
| "sp_model_kwargs": {}, | |
| "tokenizer_class": "LlamaTokenizer", | |
| "unk_token": { | |
| "__type": "AddedToken", | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |