A step-by-step guide on deploying multiple replicas of Llama 2 13B on a single Amazon SageMaker endpoint using the new ResourceRequirements object announced at re:Invent 2023. By deploying 8 replicas of Llama 13B on a p4d.24xlarge instance (8x A100 GPUs), throughput is significantly increased. The post covers environment setup, retrieving the Hugging Face LLM DLC, configuring hardware requirements per replica, deploying the model, and running load benchmarks. Benchmark results show the endpoint can handle 500 concurrent users at ~26 req/sec with 100% success rate, though latency grows under heavy load.

7m read timeFrom philschmid.de
Post cover image
Table of contents
1. Setup development environment2. Retrieve the new Hugging Face LLM DLC3. Configure Hardware requirements per replica4. Deploy Llama 2 to Amazon SageMaker5. Benchmark multi-replica endpoint6. Clean upConclusion
3 Impressions