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
      • Hardware
      • 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-2bit

Text-to-Image
Diffusers
Safetensors
Flux2KleinPipeline
8-bit precision
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", torch_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 Settings
  • Draw Things
  • DiffusionBee
FLUX.2-klein-9b-SDNQ-2bit
10.8 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 33 commits
codeShare's picture
codeShare
Upload run_klein_edit_9b_colab.ipynb
e45b196 verified 3 months ago
  • colab_notebooks
    Upload run_klein_edit_9b_colab.ipynb 3 months ago
  • scheduler
    Upload scheduler component 3 months ago
  • text_encoder
    Delete text_encoder/model.safetensors.index.json 3 months ago
  • tokenizer
    Upload tokenizer component 3 months ago
  • transformer
    Delete transformer/diffusion_pytorch_model.safetensors.index.json 3 months ago
  • vae
    Upload vae component 3 months ago
  • .gitattributes
    1.57 kB
    Upload tokenizer component 3 months ago
  • model_index.json
    446 Bytes
    Upload model_index.json 3 months ago