Instructions to use snake7gun/ERNIE-Image-Turbo-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use snake7gun/ERNIE-Image-Turbo-tiny with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("snake7gun/ERNIE-Image-Turbo-tiny", 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
File size: 1,431 Bytes
ac88559 960966c ac88559 960966c ac88559 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | {
"architectures": [
"Mistral3Model"
],
"dtype": "float32",
"image_token_index": 10,
"model_type": "mistral3",
"multimodal_projector_bias": false,
"projector_hidden_act": "gelu",
"spatial_merge_size": 2,
"text_config": {
"attention_dropout": 0.0,
"bos_token_id": 1,
"dtype": "float32",
"eos_token_id": 2,
"head_dim": 32,
"hidden_act": "silu",
"hidden_size": 64,
"initializer_range": 0.02,
"intermediate_size": 128,
"max_position_embeddings": 512,
"model_type": "mistral",
"num_attention_heads": 2,
"num_hidden_layers": 2,
"num_key_value_heads": 2,
"pad_token_id": null,
"rms_norm_eps": 1e-05,
"rope_parameters": {
"rope_theta": 10000.0,
"rope_type": "default"
},
"sliding_window": null,
"tie_word_embeddings": true,
"use_cache": true,
"vocab_size": 131072
},
"tie_word_embeddings": true,
"transformers_version": "5.2.0",
"vision_config": {
"attention_dropout": 0.0,
"dtype": "float32",
"head_dim": 16,
"hidden_act": "silu",
"hidden_size": 32,
"image_size": 28,
"initializer_range": 0.02,
"intermediate_size": 64,
"model_type": "pixtral",
"num_attention_heads": 2,
"num_channels": 3,
"num_hidden_layers": 2,
"patch_size": 14,
"rope_parameters": {
"rope_theta": 10000.0,
"rope_type": "default"
}
},
"vision_feature_layer": -1
} |