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

codeShare
/
FLUX.2-klein-AIO-SDNQ-4bit-dynamic

Text-to-Image
Diffusers
Safetensors
English
Flux2KleinPipeline
flux
flux2-klein
quantization
sdnq
4-bit precision
dynamic-quantization
low-vram
google-colab
t4
batch-image-edit
background-removal
Model card Files Files and versions
xet
Community

Instructions to use codeShare/FLUX.2-klein-AIO-SDNQ-4bit-dynamic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use codeShare/FLUX.2-klein-AIO-SDNQ-4bit-dynamic with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("codeShare/FLUX.2-klein-AIO-SDNQ-4bit-dynamic", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
FLUX.2-klein-AIO-SDNQ-4bit-dynamic
Ctrl+K
Ctrl+K
  • 1 contributor
History: 105 commits
codeShare's picture
codeShare
Update README.md
9911dd2 verified 10 days ago
  • colab_notebooks
    Delete colab_notebooks/🔓encrypt_kaggle_dataset.ipynb 11 days ago
  • kaggle_notebooks
    Upload fg-bg-klein.ipynb 12 days ago
  • scheduler
    SDNQ 4-bit dynamic quantized FLUX.2-klein-4B (official repo, matches Disty0) 29 days ago
  • text_encoder
    Upload SDNQ Flux2 Klein fine-tuned transformer 28 days ago
  • tokenizer
    Upload SDNQ Flux2 Klein fine-tuned transformer 28 days ago
  • transformer
    Update transformer/config.json 27 days ago
  • vae
    Upload SDNQ Flux2 Klein fine-tuned transformer 28 days ago
  • .gitattributes
    1.58 kB
    SDNQ 4-bit dynamic quantized FLUX.2-klein-4B (official repo, matches Disty0) 29 days ago
  • README.md
    3.89 kB
    Update README.md 10 days ago
  • model_index.json
    509 Bytes
    Upload SDNQ Flux2 Klein fine-tuned transformer 28 days ago