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
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: 33 commits
codeShare's picture
codeShare
Upload run_klein_edit_9b_colab.ipynb
9d9dedd verified 3 days ago
  • colab_notebooks
    Upload run_klein_edit_9b_colab.ipynb 3 days ago
  • scheduler
    Direct upload of rebuilt_pipeline_temp contents 3 days ago
  • text_encoder
    Upload text_encoder component 3 days ago
  • tokenizer
    Direct upload of rebuilt_pipeline_temp contents 3 days ago
  • transformer
    Delete transformer/diffusion_pytorch_model.safetensors.index.json 3 days ago
  • vae
    Direct upload of rebuilt_pipeline_temp contents 3 days ago
  • .gitattributes
    1.63 kB
    Upload tokenizer component 3 days ago
  • model_index.json
    446 Bytes
    Upload model_index.json 3 days ago