• Stars
    star
    119
  • Rank 296,130 (Top 6 %)
  • Language
    Jupyter Notebook
  • License
    Apache License 2.0
  • Created about 2 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Deploy stable diffusion model with onnx/tenorrt + tritonserver

stable-diffusion-tritonserver

Please checkout branch v2 for converting new models

Please checkout branch v3 for converting models to TensorRT for fastest inference

Download models

# clone this repo
git clone https://github.com/kamalkraj/stable-diffusion-tritonserver.git
cd stable-diffusion-tritonserver
# clone model repo from huggingface
git lfs install
git clone https://huggingface.co/kamalkraj/stable-diffusion-v1-4-onnx

Unzip the model weights

cd stable-diffusion-v1-4-onnx
tar -xvzf models.tar.gz

Triton Inference Server

Build

docker build -t tritonserver .

Run

docker run -it --rm --gpus all -p8000:8000 -p8001:8001 -p8002:8002 --shm-size 16384m   \
-v $PWD/stable-diffusion-v1-4-onnx/models:/models tritonserver \
tritonserver --model-repository /models/

Inference

Install tritonclient and run the notebook for inference.

pip install "tritonclient[http]"

Credits

More Repositories

1

BERT-NER

Pytorch-Named-Entity-Recognition-with-BERT
Python
1,199
star
2

BERT-SQuAD

SQuAD Question Answering Using BERT, PyTorch
Python
396
star
3

Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs

Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs
Python
357
star
4

BERT-NER-TF

Named Entity Recognition with BERT using TensorFlow 2.0
Python
213
star
5

ALBERT-TF2.0

ALBERT model Pretraining and Fine Tuning using TF2.0
Python
199
star
6

Vision-Transformer

Vision Transformer using TensorFlow 2.0
Python
95
star
7

DATA-SCIENCE-BOWL-2018

DATA-SCIENCE-BOWL-2018 Find the nuclei in divergent images to advance medical discovery
Jupyter Notebook
90
star
8

e5-mistral-7b-instruct

Finetune mistral-7b-instruct for sentence embeddings
Python
65
star
9

minGPT-TF

A minimal TF2 re-implementation of the OpenAI GPT training
Jupyter Notebook
55
star
10

BioELECTRA

BioELECTRA
51
star
11

Swin-Transformer-Serve

Deploy Swin Transformer using TorchServe
Python
26
star
12

TAPAS-TF2

End-to-end neural table-text understanding models.
Python
8
star
13

Malayalam-News-Classifier

Python
7
star
14

BioGPT-HF

Jupyter Notebook
5
star
15

Tapas-Tutorial

Jupyter Notebook
3
star
16

Summarizer

Python
2
star
17

pytorch-tutorial

Jupyter Notebook
2
star
18

Redis-Stack-Bitnami-Helm-Chart

Redis Stack Server Helm Chart
Mustache
1
star
19

librispeech_100_jax

Python
1
star
20

Tensorflow-Paper-Implementation

Python
1
star
21

BioNLP-Corpus

Python
1
star
22

dlrm-jax

Python
1
star
23

S4-Standalone

Python
1
star
24

Multilingual-Complex-Named-Entity-Recognition

Python
1
star
25

git-actions-python

Python
1
star
26

NLI4CT

Jupyter Notebook
1
star
27

BioSimCSE

1
star