AWS Builder Center

Run GLM 5.2 and other open-source LLM on AWS

Run Open weight models on AWS - GLM 5.2m Qwen, LLama and Deepseek

Open-weight models like GLM, Qwen, Llama, and DeepSeek are now good enough to do real work. The question I kept hearing was simple: "Great, but how do I actually run one on AWS without it becoming a two-week project?"
So I built a repo that answers it. Clone it, pick a model, run three commands, and you have a private model endpoint on your own AWS account that any tool can talk to. Here's the whole story, in plain terms, with the link at the end.

What you end up with

A private LLM running on your AWS account that speaks the same API as OpenAI and Anthropic. That last part matters: it means your existing tools (Codex CLI, Claude Code, or anything using the OpenAI SDK) work against it with zero code changes - you just point them at your endpoint instead of a vendor's.
Under the hood it's Kubernetes (EKS) running vLLM, the standard high-performance serving engine, on GPU instances. You don't have to know any of that to use it. The repo handles it.

Why run your own model at all?

Three honest reasons:
  1. Privacy and control. Your prompts and data never leave your account. For regulated data or source code, that alone can be the whole reason.
  1. Cost, at scale. If you're spending real money on a commercial API every month, a self-hosted open model can be several times cheaper per token - but only if you keep the GPU busy. More on that honestly below.
  1. Choice. You pick the model and the exact version, and you can fine-tune it. No waiting on a vendor's roadmap.
If none of those apply to you, a hosted API is probably cheaper and simpler. The repo says so too - no hype.

How it works: three commands

git clone git@ssh.gitlab.aws.dev:hkshah/run-open-models-on-aws.git && cd run-open-models-on-aws
cp .env.example .env

./scripts/choose-gpu.sh # pick your model + GPU (shows what fits and what it costs)
./scripts/00-preflight.sh # checks you can actually get a GPU BEFORE you spend anything
make up # builds the cluster, deploys the model, prints your endpoint
Then talk to it:  ./scripts/use-model.sh "hello" . Done with it?  make down  stops the bill.
Prefer not to touch a terminal at all? The repo doubles as a Claude Code plugin (and a Kiro plugin). Install it and just say "run GLM-5.2 on my AWS account for my team," and the agent walks the whole thing.



Does it actually work? Yes, and it's measured.

I didn't want to publish vibes, so the repo ships real numbers. Running GLM-5.2 (a 753-billion- parameter open model) on one 8-GPU H100 box:
  • ~5,400 tokens/second sustained, zero failed requests across the whole stress test.
  • In a blind quality test against Claude Sonnet 4.5 (an independent judge scored both without knowing which was which), GLM-5.2 scored 8.5 vs 8.2 - winning on agent tasks, retrieval, and following instructions. Sonnet still won on hard code generation.
  • Roughly 3-5x cheaper per token than a comparable commercial API - when the GPU stays busy.
GLM-5.2 and GLM-4.5-Air are fully tested. Qwen, Llama, and DeepSeek ship as ready-to-edit starting configs. Adding any other open model is a two-minute config file.



Try it

Everything - scripts, docs, the model registry, the GPU-capacity playbook, the benchmark and quality harnesses, and the Claude Code + Kiro plugins - is in one repo:
Start with the README, then  docs/SETUP.md . If you get stuck or want help scoping something for a customer, ping me - happy to walk through it.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article