Instructions to use argmaxinc/mlx-FLUX.1-schnell-4bit-quantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- DiffusionKit
How to use argmaxinc/mlx-FLUX.1-schnell-4bit-quantized with DiffusionKit:
# Pipeline for Flux from diffusionkit.mlx import FluxPipeline pipeline = FluxPipeline( shift=1.0, model_version="argmaxinc/mlx-FLUX.1-schnell-4bit-quantized", low_memory_mode=True, a16=True, w16=True, )
# Image Generation HEIGHT = 512 WIDTH = 512 NUM_STEPS = 4 CFG_WEIGHT = 0 image, _ = pipeline.generate_image( "a photo of a cat", cfg_weight=CFG_WEIGHT, num_steps=NUM_STEPS, latent_size=(HEIGHT // 8, WIDTH // 8), )
- MLX
How to use argmaxinc/mlx-FLUX.1-schnell-4bit-quantized with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download argmaxinc/mlx-FLUX.1-schnell-4bit-quantized --local-dir mlx-FLUX.1-schnell-4bit-quantized
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download flux_on_mac.png from argmaxinc/mlx-FLUX.1-schnell-4bit-quantized: direct link, hf CLI and curl.
- Browser
- Download file 887 kB
-
https://huggingface.co/argmaxinc/mlx-FLUX.1-schnell-4bit-quantized/resolve/main/flux_on_mac.png
- Command line
-
hf download hf://argmaxinc/mlx-FLUX.1-schnell-4bit-quantized/flux_on_mac.png
-
curl -L -o flux_on_mac.png https://huggingface.co/argmaxinc/mlx-FLUX.1-schnell-4bit-quantized/resolve/main/flux_on_mac.png
887 kB
