stabilityai / sdxl-turbo-tensorrt

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: December 29 2023
text-to-image

Introduction of sdxl-turbo-tensorrt

Model Details of sdxl-turbo-tensorrt

SDXL-Turbo Tensorrt

Introduction

This repository hosts the TensorRT version of Stable Diffusion XL Turbo created in collaboration with NVIDIA . The optimized versions give substantial improvements in speed and efficiency.

SDXL-Turbo is a fast generative text-to-image model that can synthesize photorealistic images from a text prompt in a single network evaluation. A real-time demo is available here: http://clipdrop.co/stable-diffusion-turbo

Model Details
Model Description

SDXL-Turbo is a distilled version of SDXL 1.0 , trained for real-time synthesis.

  • Developed by: Stability AI
  • Model type: Generative text-to-image model
  • Model Description: This is a conversion of the SDXL Turbo
Performance
Timings for 4 steps at 512x512
Accelerator CLIP Unet VAE Total
A100 1.03 ms 79.31 ms 53.69.34 ms 138.57 ms
H100 0.78 ms 48.87 ms 30.35 ms 83.8 ms
Usage Example
  1. Following the setup instructions on launching a TensorRT NGC container.
git clone https://github.com/rajeevsrao/TensorRT.git
cd TensorRT
git checkout release/9.2
docker run --rm -it --gpus all -v $PWD:/workspace nvcr.io/nvidia/pytorch:23.11-py3 /bin/bash
  1. Download the SDXL-Turbo TensorRT files from this repo
git lfs install 
git clone https://huggingface.co/stabilityai/sdxl-turbo-tensorrt
cd sdxl-turbo-tensorrt
git lfs pull
cd ..
  1. Install libraries and requirements
cd demo/Diffusion
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
python3 -m pip install --pre --upgrade --extra-index-url https://pypi.nvidia.com tensorrt
  1. Perform TensorRT optimized inference:
  • SDXL Turbo

    Works best for 512x512 images and EulerA scheduler. The first invocation produces plan files in --engine-dir specific to the accelerator being run on and are reused for later invocations.

    python3 demo_txt2img_xl.py \
      ""Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"" \
      --version=xl-turbo \
      --onnx-dir /workspace/sdxl-turbo-tensorrt/ \
      --engine-dir /workspace/sdxl-turbo-tensorrt/engine \
      --denoising-steps 4 \
      --guidance-scale 0.0 \
      --seed 42 \
      --width 512 \
      --height 512
    

Runs of stabilityai sdxl-turbo-tensorrt on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About sdxl-turbo-tensorrt huggingface.co Model

More sdxl-turbo-tensorrt license Visit here:

https://choosealicense.com/licenses/sai-nc-community

sdxl-turbo-tensorrt huggingface.co

sdxl-turbo-tensorrt huggingface.co is an AI model on huggingface.co that provides sdxl-turbo-tensorrt's model effect (), which can be used instantly with this stabilityai sdxl-turbo-tensorrt model. huggingface.co supports a free trial of the sdxl-turbo-tensorrt model, and also provides paid use of the sdxl-turbo-tensorrt. Support call sdxl-turbo-tensorrt model through api, including Node.js, Python, http.

sdxl-turbo-tensorrt huggingface.co Url

https://huggingface.co/stabilityai/sdxl-turbo-tensorrt

stabilityai sdxl-turbo-tensorrt online free

sdxl-turbo-tensorrt huggingface.co is an online trial and call api platform, which integrates sdxl-turbo-tensorrt's modeling effects, including api services, and provides a free online trial of sdxl-turbo-tensorrt, you can try sdxl-turbo-tensorrt online for free by clicking the link below.

stabilityai sdxl-turbo-tensorrt online free url in huggingface.co:

https://huggingface.co/stabilityai/sdxl-turbo-tensorrt

sdxl-turbo-tensorrt install

sdxl-turbo-tensorrt is an open source model from GitHub that offers a free installation service, and any user can find sdxl-turbo-tensorrt on GitHub to install. At the same time, huggingface.co provides the effect of sdxl-turbo-tensorrt install, users can directly use sdxl-turbo-tensorrt installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

sdxl-turbo-tensorrt install url in huggingface.co:

https://huggingface.co/stabilityai/sdxl-turbo-tensorrt

Url of sdxl-turbo-tensorrt

sdxl-turbo-tensorrt huggingface.co Url

Provider of sdxl-turbo-tensorrt huggingface.co

stabilityai
ORGANIZATIONS

Other API from stabilityai

huggingface.co

Total runs: 181.2K
Run Growth: 47.7K
Growth Rate: 27.32%
Updated: August 04 2023
huggingface.co

Total runs: 121.5K
Run Growth: -14.5K
Growth Rate: -11.57%
Updated: July 10 2024
huggingface.co

Total runs: 33.4K
Run Growth: 3.5K
Growth Rate: 10.51%
Updated: August 09 2024
huggingface.co

Total runs: 376
Run Growth: -97.9K
Growth Rate: -26381.94%
Updated: August 03 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: July 10 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: April 14 2024