Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

codeShare
/
FLUX.2-klein-9b-SDNQ-2bit

Text-to-Image
Diffusers
Safetensors
Flux2KleinPipeline
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Diffusers

    How to use codeShare/FLUX.2-klein-9b-SDNQ-2bit 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-9b-SDNQ-2bit", 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-9b-SDNQ-2bit / text_encoder
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
codeShare's picture
codeShare
Delete text_encoder/model.safetensors.index.json
c9417d6 verified 2 days ago
  • config.json
    15.4 kB
    Upload text_encoder component 2 days ago
  • generation_config.json
    141 Bytes
    Upload text_encoder folder with SDNQ weights 3 days ago
  • model.safetensors
    5.96 GB
    xet
    Upload text_encoder component 2 days ago