Step-by-step guide to deploying Mixtral 8x7B (a 45B parameter Sparse Mixture-of-Experts model) on Amazon SageMaker using the Hugging Face LLM Deep Learning Container powered by Text Generation Inference (TGI). Covers environment setup, retrieving the DLC container URI, hardware requirements (ml.g5.48xlarge or p4d.24xlarge with 100GB+ GPU memory), endpoint deployment, running inference with streaming support via a Gradio demo, and cleanup.

5m read timeFrom philschmid.de
Post cover image
Table of contents
1. Setup development environment2. Retrieve the new Hugging Face LLM DLC3. Hardware requirements4. Deploy Mixtral 8x7B to Amazon SageMaker5. Run inference and chat with the model6. Clean up