Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
Flux2Pipeline
image-generation
image-editing
flux
Instructions to use siyarajput/FLUX.2-dev-Backup with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use siyarajput/FLUX.2-dev-Backup with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("siyarajput/FLUX.2-dev-Backup", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Diffusion Single File
How to use siyarajput/FLUX.2-dev-Backup with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Upload text_encoder/config.json with huggingface_hub
Browse files- text_encoder/config.json +48 -0
text_encoder/config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Mistral3ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"image_token_index": 10,
|
| 7 |
+
"model_type": "mistral3",
|
| 8 |
+
"multimodal_projector_bias": false,
|
| 9 |
+
"projector_hidden_act": "gelu",
|
| 10 |
+
"spatial_merge_size": 2,
|
| 11 |
+
"text_config": {
|
| 12 |
+
"attention_dropout": 0.0,
|
| 13 |
+
"dtype": "bfloat16",
|
| 14 |
+
"head_dim": 128,
|
| 15 |
+
"hidden_act": "silu",
|
| 16 |
+
"hidden_size": 5120,
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 32768,
|
| 19 |
+
"max_position_embeddings": 131072,
|
| 20 |
+
"model_type": "mistral",
|
| 21 |
+
"num_attention_heads": 32,
|
| 22 |
+
"num_hidden_layers": 40,
|
| 23 |
+
"num_key_value_heads": 8,
|
| 24 |
+
"rms_norm_eps": 1e-05,
|
| 25 |
+
"rope_theta": 1000000000.0,
|
| 26 |
+
"sliding_window": null,
|
| 27 |
+
"use_cache": true,
|
| 28 |
+
"vocab_size": 131072
|
| 29 |
+
},
|
| 30 |
+
"transformers_version": "4.57.1",
|
| 31 |
+
"vision_config": {
|
| 32 |
+
"attention_dropout": 0.0,
|
| 33 |
+
"dtype": "bfloat16",
|
| 34 |
+
"head_dim": 64,
|
| 35 |
+
"hidden_act": "silu",
|
| 36 |
+
"hidden_size": 1024,
|
| 37 |
+
"image_size": 1540,
|
| 38 |
+
"initializer_range": 0.02,
|
| 39 |
+
"intermediate_size": 4096,
|
| 40 |
+
"model_type": "pixtral",
|
| 41 |
+
"num_attention_heads": 16,
|
| 42 |
+
"num_channels": 3,
|
| 43 |
+
"num_hidden_layers": 24,
|
| 44 |
+
"patch_size": 14,
|
| 45 |
+
"rope_theta": 10000.0
|
| 46 |
+
},
|
| 47 |
+
"vision_feature_layer": -1
|
| 48 |
+
}
|