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-9b-SDNQ-4bit

Text-to-Image
Diffusers
Safetensors
Flux2KleinPipeline
colab
kaggle
jupyter
klein
9b
image_edit
text-generation-inference
sdnq
quantization
T4
notebook
batch_edit
16GB
LoRa
Model card Files Files and versions
xet
Community

Instructions to use codeShare/FLUX.2-klein-9b-SDNQ-4bit 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-4bit 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-4bit", 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-4bit
12.9 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 47 commits
codeShare's picture
codeShare
Update README.md
5b5558d verified 9 minutes ago
  • colab_notebooks
    Upload 🔑decrypt_images.ipynb about 2 hours ago
  • scheduler
    Direct upload of rebuilt_pipeline_temp contents 5 days ago
  • text_encoder
    Upload text_encoder component 5 days ago
  • tokenizer
    Direct upload of rebuilt_pipeline_temp contents 5 days ago
  • transformer
    Delete transformer/diffusion_pytorch_model.safetensors.index.json 5 days ago
  • vae
    Direct upload of rebuilt_pipeline_temp contents 5 days ago
  • .gitattributes
    1.63 kB
    Upload tokenizer component 5 days ago
  • README.md
    2.57 kB
    Update README.md 9 minutes ago
  • model_index.json
    446 Bytes
    Upload model_index.json 5 days ago