Instructions to use BLIP3o/BLIP3o-Model-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BLIP3o/BLIP3o-Model-4B 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-4B", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,6 +24,7 @@ snapshot_download(
|
|
| 24 |
)
|
| 25 |
```
|
| 26 |
|
|
|
|
| 27 |
You can use gradio demo: https://github.com/JiuhaiChen/BLIP3o/tree/main/gradio
|
| 28 |
|
| 29 |
```python
|
|
|
|
| 24 |
)
|
| 25 |
```
|
| 26 |
|
| 27 |
+
|
| 28 |
You can use gradio demo: https://github.com/JiuhaiChen/BLIP3o/tree/main/gradio
|
| 29 |
|
| 30 |
```python
|