AI Cloud Architect

Accelerating LLM inference with post-training weight and activation using AWQ and GPTQ on Amazon SageMaker AI

AWSHow-to by Pranav Murthy and Dmitry SoldatkinAWS Artificial Intelligence Blog

Quantized models can be seamlessly deployed on Amazon SageMaker AI using a few lines of code. In this post, we explore why quantization matters—how it enables lower-cost inference, supports deployment on resource-constrained hardware, and reduces both the financial and environmental impact of modern LLMs, while preserving most of their original performance. We also take a deep dive into the principles behind PTQ and demonstrate how to quantize the model of your choice and deploy it on Amazon…

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A walkthrough of post-training quantization (AWQ and GPTQ) on SageMaker AI, with benchmarks showing lower GPU memory use and mostly lower latency for quantized Llama and Qwen models.

Who it is for

Teams serving open LLMs on SageMaker that need to cut GPU memory or inference cost and want to test quantized variants.

Key points

  • Benchmarks cover Llama-3.1-8B, Llama-3.3-70B and Qwen2.5-VL-7B on specific g5, g6e and p4 instance types.
  • Authors report 30%-70% less GPU memory after quantization; the tests were not fully optimized, so results are relative.

The same at other vendors