Instructions to use pinecoresystems/Krea-2-Raw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use pinecoresystems/Krea-2-Raw with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("pinecoresystems/Krea-2-Raw", 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 Settings
- Draw Things
- DiffusionBee
Upload transformer/config.json with huggingface_hub
Browse files- transformer/config.json +25 -0
transformer/config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "Krea2Transformer2DModel",
|
| 3 |
+
"_diffusers_version": "0.39.0.dev0",
|
| 4 |
+
"attention_head_dim": 128,
|
| 5 |
+
"axes_dims_rope": [
|
| 6 |
+
32,
|
| 7 |
+
48,
|
| 8 |
+
48
|
| 9 |
+
],
|
| 10 |
+
"in_channels": 64,
|
| 11 |
+
"intermediate_size": 16384,
|
| 12 |
+
"norm_eps": 1e-05,
|
| 13 |
+
"num_attention_heads": 48,
|
| 14 |
+
"num_key_value_heads": 12,
|
| 15 |
+
"num_layers": 28,
|
| 16 |
+
"num_layerwise_text_blocks": 2,
|
| 17 |
+
"num_refiner_text_blocks": 2,
|
| 18 |
+
"num_text_layers": 12,
|
| 19 |
+
"rope_theta": 1000.0,
|
| 20 |
+
"text_hidden_dim": 2560,
|
| 21 |
+
"text_intermediate_size": 6912,
|
| 22 |
+
"text_num_attention_heads": 20,
|
| 23 |
+
"text_num_key_value_heads": 20,
|
| 24 |
+
"timestep_embed_dim": 256
|
| 25 |
+
}
|