Skip to content

filopedraz/llm-fastapi-docker-template

Repository files navigation

Serve an LLM using FastAPI and Docker

Blog post available at: https://dev.premai.io/blog/llm-fastapi-docker

Docker Commands

Build the Docker Image

docker build --file ./Dockerfile \
    --build-arg="MODEL_ID=tiiuae/falcon-7b-instruct" \
    --tag blog-post/chat-falcon-7b-instruct-gpu:latest \
    --tag blog-post/chat-falcon-7b-instruct-gpu:0.0.1 \
    .

Run the application using Docker

docker run --gpus all -p 8000:8000 blog-post/chat-falcon-7b-instruct-gpu:latest

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published