Instructions to use akshan-main/tiny-ernie-image-modular-pipe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use akshan-main/tiny-ernie-image-modular-pipe with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("akshan-main/tiny-ernie-image-modular-pipe", 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
| { | |
| "activation_function": "gelu_new", | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "GPT2Model" | |
| ], | |
| "attn_pdrop": 0.1, | |
| "bos_token_id": 50256, | |
| "dtype": "float32", | |
| "embd_pdrop": 0.1, | |
| "eos_token_id": 50256, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-05, | |
| "model_type": "gpt2", | |
| "n_embd": 32, | |
| "n_head": 4, | |
| "n_inner": null, | |
| "n_layer": 2, | |
| "n_positions": 128, | |
| "pad_token_id": null, | |
| "reorder_and_upcast_attn": false, | |
| "resid_pdrop": 0.1, | |
| "scale_attn_by_inverse_layer_idx": false, | |
| "scale_attn_weights": true, | |
| "summary_activation": null, | |
| "summary_first_dropout": 0.1, | |
| "summary_proj_to_labels": true, | |
| "summary_type": "cls_index", | |
| "summary_use_proj": true, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.5.3", | |
| "use_cache": true, | |
| "vocab_size": 1000 | |
| } | |