Giter VIP home page Giter VIP logo

llm-serve's Introduction

LLM Deployment Project

This project aims to deploy a Language Model (LLM) using Docker with NVIDIA GPU support. Below are the steps to set up and deploy the model.

Steps:

  1. Grant Docker Access to NVIDIA GPU:

  2. Configure Model:

    • Open constants.py and change the model name to specify the desired LLM to run. This allows flexibility in choosing different models for deployment.
  3. Set Hugging Face Access Token:

    • Create a .env file and set your Hugging Face access token. This token is required for accessing models from the Hugging Face Model Hub.
  4. Build Docker Image:

    • Run the command docker build -t <image_name> . to build the Docker image. This image will contain all necessary dependencies and configurations for deploying the LLM.
  5. Run Docker Container:

    • Launch the Docker container with NVIDIA runtime support using the command:
      docker run -p 8000:8000 --runtime=nvidia --gpus all <image_name>
      
    • Replace <image_name> with the name of the Docker image built in the previous step.
    • This command exposes port 8000 to interact with the deployed LLM.

Additional Notes:

  • Ensure Docker is properly installed on your system before proceeding.
  • Make sure NVIDIA GPU drivers are installed and up-to-date.
  • Verify that the Hugging Face access token is valid and correctly set in the .env file.
  • Run nvidia-smi to check whether GPU is being used or not

llm-serve's People

Contributors

neural-navigator avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.