{"repo":"bentoml/BentoLMDeploy","free":true,"listed":false,"github":"https://github.com/bentoml/BentoLMDeploy","clone":"git clone https://github.com/bentoml/BentoLMDeploy.git","description":"Self-host LLMs with LMDeploy and BentoML","language":"Python","stars":23,"topics":[],"license":null,"category":"self-hosted-apps","readme_excerpt":"Self-host LLMs with LMDeploy and BentoML This is a BentoML example project, showing you how to serve and deploy open-source Large Language Models (LLMs) using LMDeploy, a toolkit for compressing, deploying, and serving LLMs. See here for a full list of BentoML example projects. 💡 This example is served as a basis for advanced code customization, such as custom model, inference logic or LMDeploy options. For simple LLM hosting with OpenAI compatible endpoint without writing any code, see OpenLLM. Prerequisites - You have installed Python 3.8+ and pip . See the Python downloads page to learn more. - You have a basic understanding of key concepts in BentoML, such as Services. We recommend you read Quickstart first. - If you want to test the Service locally, you need a Nvidia GPU with at least 20G VRAM. - This example uses Llama 3 8B Instruct. Make sure you have gained access to the model. - (Optional) We recommend you create a virtual environment for dependency isolation for this project. See the Conda documentation or the Python documentation for details. Install dependencies Download the model Run the script to download Llama 3. Run the BentoML Service We have defined a BentoML Service in service.py . Run bentoml serve in your project directory to start the Service. The server is now active at http://localhost:3000. You can interact with it using the Swagger UI or in other different ways. CURL Python client Deploy to BentoCloud After the Service is ready, you can deploy the a","default_branch":null,"files":null,"tree":[],"storefront":"/r/bentoml","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bentoml/BentoLMDeploy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}