Skip to content

A template for delpoy AI server use django with tf_serving or triton_inference_serving

Notifications You must be signed in to change notification settings

Bobo-y/django_ai_server_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a server template for deploy AI model with django and tensorflow-serving or triton-server inference backbone, include object detection, classification, etc.

image

deploy demo

  1. clone this code

  2. start a triton server:

cd  model_server_demo/triton_server
docker build -t serving-triton:v0.0  .
docker run --runtime=nvidia -p 8000:8000 -p 8001:8001 -p 8002:8002 serving-triton:v0.0
  1. start a django server (you can move model_server_demo to other dir)
  you need change 'ENV TRITON_SERVING_HOST=serving-triton:8001' replace serving-triton by your local ip, such as TRITON_SERVING_HOST=0.0.0.0:8001
cd django_serving

docker build -t algorithms_serving:v0.0 .
docker run -d -p 8211:8211 algorithms_serving:v0.0
  1. test request

see in serving/tests/request.py

  1. more

you can use docker compose to manage algorithms_serving and triton_server

About

A template for delpoy AI server use django with tf_serving or triton_inference_serving

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published