Skip to content

Aquish-Lee/cookiecutter-pytorch-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cookiecutter-pytorch-fastapi

基于Pytorch的 脚手架项目

按规范添加推理函数即可实现Celery+FastAPI+Gunicorn+Nginx+Supervisor+Docker的快速部署

Requirements

  • Python >= 3.6 with pip installed

Quickstart

Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.4.0 or higher):

# Install On Ubuntu
    apt-get install cookiecutter
# Install On Centos with snapd (Not recommended)
    yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    yum install snapd
    systemctl enable --now snapd.socket
    ln -s /var/lib/snapd/snap /snap
    snap install cookiecutter --edge

Point cookiecutter to this GitHub repository to automatically download and generate your project

cookiecutter https://github.com/Aquish-Lee/cookiecutter-pytorch-fastapi

View the README.md of your new project for instructions on next steps

Resources

This project has six key dependencies:

Dependency Name Documentation Description
Pytorch https://pytorch.org/ An open source machine learning framework
Celery https://docs.celeryproject.org/en/stable/ Distributed Task Queue
FastAPI https://fastapi.tiangolo.com FastAPI framework, high performance, easy to learn, fast to code, ready for production
Gunicorn https://gunicorn.org/ A Python WSGI HTTP Server for UNIX with pre-fork worker model
Nginx https://www.nginx.com/ An HTTP and reverse proxy server, Support load balancer and HTTP cache
Supervisor http://supervisord.org/ A client/server system, support monitor and control a number of processes on UNIX-like operating systems

About

基于Pytorch的脚手架项目,Celery+FastAPI+Gunicorn+Nginx+Supervisor实现服务部署,支持Docker发布

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published