Instructions to use SceneWorks/flux2-dev-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SceneWorks/flux2-dev-mlx with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("SceneWorks/flux2-dev-mlx", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - MLX
How to use SceneWorks/flux2-dev-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download SceneWorks/flux2-dev-mlx --local-dir flux2-dev-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Draw Things
- DiffusionBee
- Atomic Chat
Download bf16/tokenizer/processor_config.json from SceneWorks/flux2-dev-mlx: direct link, hf CLI and curl.
- Browser
- Download file 189 Bytes
-
https://huggingface.co/SceneWorks/flux2-dev-mlx/resolve/6bd8d3df7779ffbcb4e08ce7afd1bf354b17c4fa/bf16/tokenizer/processor_config.json
- Command line
-
hf download hf://SceneWorks/flux2-dev-mlx@6bd8d3df7779ffbcb4e08ce7afd1bf354b17c4fa/bf16/tokenizer/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/SceneWorks/flux2-dev-mlx/resolve/6bd8d3df7779ffbcb4e08ce7afd1bf354b17c4fa/bf16/tokenizer/processor_config.json
189 Bytes
| { | |
| "image_break_token": "[IMG_BREAK]", | |
| "image_end_token": "[IMG_END]", | |
| "image_token": "[IMG]", | |
| "patch_size": 14, | |
| "processor_class": "PixtralProcessor", | |
| "spatial_merge_size": 2 | |
| } | |