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-4bit-quantized

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

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]
    
    huggingface-cli download --local-dir mlx-FLUX.1-schnell-4bit-quantized argmaxinc/mlx-FLUX.1-schnell-4bit-quantized
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
mlx-FLUX.1-schnell-4bit-quantized
7.03 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 9 commits
ZachNagengast's picture
ZachNagengast
ardaibis's picture
ardaibis
update model version (#4)
fc7110b verified over 1 year ago
  • .DS_Store
    6.15 kB
    update readme (#3) over 1 year ago
  • .gitattributes
    1.57 kB
    Upload FLUX VAE weights almost 2 years ago
  • README.md
    1.13 kB
    update model version (#4) over 1 year ago
  • ae.safetensors
    335 MB
    xet
    Upload ae.safetensors almost 2 years ago
  • config.json
    45 Bytes
    Create config.json almost 2 years ago
  • flux-schnell-4bit-quantized.safetensors
    6.69 GB
    xet
    Upload FLUX MMDiT quantized weights almost 2 years ago
  • flux_on_mac.png
    887 kB
    update readme (#3) over 1 year ago