Skip to content

Demo of wav2vec2 deploy as API with FastAPI + Docker

Notifications You must be signed in to change notification settings

t-panu/wav2vec2Docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

How to create simple API service for Wav2Vec2 model using FastAPI + Docker

This documentation demonstrates how to achieve an API service for a deep learning model. Which is rely on Hugging Face's Transformer library to load the processor and model. Let's get started!

Prerequisite

We must install all of the following on the host machine to create API with docker and enable the GPU.

  • Docker Select your OS and following the instruction.
  • Docker Compose follow the instruction.
  • Nvidia Drivers Select your GPU and OS specification in the drop-down menu. Then download and install it following by instructions. But in case Windows OS + WSL2 with Ubuntu installed. You must install the Nvidia driver on your Windows system only. Don't install it in WSL2 because WSL2 basically sees the Nvidia driver in Windows.
  • NVIDIA Container Toolkit Follow this documentation (But you can skip that setting up docker because we already installed that.)

About

Demo of wav2vec2 deploy as API with FastAPI + Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published