Enhanced performance for Amazon Bedrock Custom Model Import
AWS•Blog post••by Nick McCarthy, Prashant Patel, Yashowardhan Shinde and Yanyan Zhang•AWS Artificial Intelligence Blog
You can now achieve significant performance improvements when using Amazon Bedrock Custom Model Import, with reduced end-to-end latency, faster time-to-first-token, and improved throughput through advanced PyTorch compilation and CUDA graph optimizations. With Amazon Bedrock Custom Model Import you can to bring your own foundation models to Amazon Bedrock for deployment and inference at scale. In this post, we introduce how to use the improvements in Amazon Bedrock Custom Model Import.
Bedrock Custom Model Import now caches compilation artifacts, which AWS says cuts time-to-first-token and end-to-end latency and raises throughput for imported models.
Who it is for
Teams serving their own models on Bedrock Custom Model Import that need faster scaling and lower latency.
Key points
AWS says the first instance of a model has a one-time initialization delay; later instances skip compilation.
Benchmarks cover Granite 20B code and Llama 3.1 8B at concurrency 1 to 32, single model copy, no auto-scaling.
Cached artifacts are checked with checksums and regenerated if corrupted.
AI:Loading LLM weights from FSx for Lustre straight into GPU memory via GPUDirect Storage cuts Llama 3.1 405B load time from about 18 minutes to 6.4 seconds in AWS's tests, with TurboQuant KV cache compression raising usable context.
AI:Shows how to run two 8 GiB GPU-memory-bounded Pods on one A10G GPU on Amazon EKS using NVIDIA Run:ai GPU Fractioning, with a custom AL2023 image and KAI Scheduler.
AI:SageMaker AI real-time endpoints now route each request to the instance holding the longest cached match for its prompt, using cache state the model container reports.