Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

argmaxinc
/
mlx-FLUX.1-schnell

Text-to-Image
DiffusionKit
MLX
English
image-generation
flux
Model card Files Files and versions
xet
Community
3

Instructions to use argmaxinc/mlx-FLUX.1-schnell with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • DiffusionKit

    How to use argmaxinc/mlx-FLUX.1-schnell with DiffusionKit:

    # Pipeline for Flux
    from diffusionkit.mlx import FluxPipeline
    
    pipeline = FluxPipeline(
      shift=1.0,
      model_version=argmaxinc/mlx-FLUX.1-schnell,
      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 with MLX:

    # Download the model from the Hub
    pip install huggingface_hub[hf_xet]
    
    huggingface-cli download --local-dir mlx-FLUX.1-schnell argmaxinc/mlx-FLUX.1-schnell
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
mlx-FLUX.1-schnell
24.1 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 10 commits
ZachNagengast's picture
ZachNagengast
Update README.md
3e96c55 verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    928 Bytes
    Update README.md almost 2 years ago
  • ae.safetensors
    335 MB
    xet
    Upload ae.safetensors almost 2 years ago
  • config.json
    30 Bytes
    Create config.json almost 2 years ago
  • flux-schnell.safetensors
    23.8 GB
    xet
    Upload flux-schnell.safetensors almost 2 years ago
  • flux_on_mac.png
    871 kB
    Upload flux_on_mac.png almost 2 years ago