Instructions to use rootlocalghost/ERNIE-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use rootlocalghost/ERNIE-Image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("rootlocalghost/ERNIE-Image", 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
- Local Apps
- Draw Things
- DiffusionBee
clone transformer/config.json
Browse files- transformer/config.json +20 -0
transformer/config.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "ErnieImageTransformer2DModel",
|
| 3 |
+
"_diffusers_version": "0.36.0",
|
| 4 |
+
"eps": 1e-06,
|
| 5 |
+
"ffn_hidden_size": 12288,
|
| 6 |
+
"hidden_size": 4096,
|
| 7 |
+
"in_channels": 128,
|
| 8 |
+
"num_attention_heads": 32,
|
| 9 |
+
"num_layers": 36,
|
| 10 |
+
"out_channels": 128,
|
| 11 |
+
"patch_size": 1,
|
| 12 |
+
"qk_layernorm": true,
|
| 13 |
+
"rope_axes_dim": [
|
| 14 |
+
32,
|
| 15 |
+
48,
|
| 16 |
+
48
|
| 17 |
+
],
|
| 18 |
+
"rope_theta": 256,
|
| 19 |
+
"text_in_dim": 3072
|
| 20 |
+
}
|