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

unsloth
/
Z-Image-Turbo-unsloth-bnb-4bit

Text-to-Image
Diffusers
Safetensors
English
ZImagePipeline
unsloth
4bit
quantized
bitsandbytes
8-bit precision
Model card Files Files and versions
xet
Community

Instructions to use unsloth/Z-Image-Turbo-unsloth-bnb-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use unsloth/Z-Image-Turbo-unsloth-bnb-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("unsloth/Z-Image-Turbo-unsloth-bnb-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 Settings
  • Draw Things
  • DiffusionBee
  • Unsloth Studio

    How to use unsloth/Z-Image-Turbo-unsloth-bnb-4bit with Unsloth Studio:

    Install Unsloth Studio (macOS, Linux, WSL)
    curl -fsSL https://unsloth.ai/install.sh | sh
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for unsloth/Z-Image-Turbo-unsloth-bnb-4bit to start chatting
    Install Unsloth Studio (Windows)
    irm https://unsloth.ai/install.ps1 | iex
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for unsloth/Z-Image-Turbo-unsloth-bnb-4bit to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for unsloth/Z-Image-Turbo-unsloth-bnb-4bit to start chatting
    Load model with FastModel
    pip install unsloth
    from unsloth import FastModel
    model, tokenizer = FastModel.from_pretrained(
        model_name="unsloth/Z-Image-Turbo-unsloth-bnb-4bit",
        max_seq_length=2048,
    )
Z-Image-Turbo-unsloth-bnb-4bit
6.82 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 17 commits
shimmyshimmer's picture
shimmyshimmer
Update with example script
46c1698 verified 7 months ago
  • assets
    Upload assets/showcase_rendering.png with huggingface_hub 7 months ago
  • scheduler
    Upload bitsandbytes 4bit diffusers Z Image Turbo 7 months ago
  • text_encoder
    Upload bitsandbytes 4bit diffusers Z Image Turbo 7 months ago
  • tokenizer
    Upload bitsandbytes 4bit diffusers Z Image Turbo 7 months ago
  • transformer
    Upload bitsandbytes 4bit diffusers Z Image Turbo 7 months ago
  • vae
    Upload bitsandbytes 4bit diffusers Z Image Turbo 7 months ago
  • .gitattributes
    2.19 kB
    Upload .gitattributes with huggingface_hub 7 months ago
  • README.md
    15.9 kB
    Update with example script 7 months ago
  • model_index.json
    457 Bytes
    Upload bitsandbytes 4bit diffusers Z Image Turbo 7 months ago