← Back to blog

Turing GPUs Break vLLM on EC2 G5g — Here's the Fix

EC2 G5g Turing GPU won't work with vLLM? Missing PyTorch ARM kernel is the culprit. Get the fix for cheap GPU LLM hosting today.

Turing GPUs Break vLLM on EC2 G5g — Here's the Fix

Running a large language model on Amazon's G5g instances looks like a bargain on paper: an ARM-based Graviton2 CPU paired with an NVIDIA T4G GPU, priced well below the mainstream x86 GPU boxes. Then the model refuses to load, and the error message — no kernel image is available for execution on the device — tells a story about hardware compatibility that AWS's pricing page does not.

This is a specific, avoidable trap. The hardware works fine. The software stack that ships by default does not know the hardware exists.

The problem in one sentence

The GPU inside a G5g instance is an NVIDIA T4G, which uses the Turing architecture (compute capability 7.5, or sm_75 in NVIDIA's shorthand). The standard PyTorch build for ARM chips does not include the machine code for that GPU. So the moment vLLM asks the GPU to run a kernel, there is nothing there to run.

Think of it like shipping a car engine without the specific bracket that bolts it to your chassis. The engine is perfect. The car is fine. But nothing connects, and it never turns over.

Why this happens: the aarch64 wheel gap

For years, ARM-on-Linux was a second-class citizen in the GPU world. As the PyTorch team documented, until recently pip install torch on an aarch64 (ARM) Linux machine would quietly pull the CPU-only wheel — "there simply was no GPU wheel for aarch64 published to the default PyPI index." You could install everything, run your setup script, see zero errors, and only discover at inference time that the GPU was never in the picture.

That specific gap closed in PyTorch 2.11.0, when pip install torch on aarch64 finally started pulling a CUDA-enabled wheel by default — confirmed live by NVIDIA's Piotr Bialecki. Good news, but it does not solve the G5g problem, and here is the catch.

According to the dev.to walkthrough on running Gemma on G5g, the PyPI aarch64 wheels are "Built for 9.0 / 10.0 / 12.0" — meaning Hopper, Blackwell, and the newest data-center chips. They do not include sm_75. The default wheel now talks to a GPU, just not the one G5g actually ships. vLLM fails outright with the "no kernel image" error.

Put simply: the ARM GPU ecosystem skipped straight to the newest silicon and left Turing — a chip AWS still rents by the hour — behind.

Turing is a recurring casualty, not a one-off

This is not unique to ARM. Turing's compute capability 7.5 sits just below the sm_80 line where a lot of modern GPU code sets its floor. The vLLM issue tracker is full of the fallout:

  • AWQ quantization flatly does not support Turing. Issue #1063 shows the build dying with Feature '.m16n8k16' requires .target sm_80 or higher — the fast quantization math simply requires a newer GPU.
  • The broader vLLM compatibility matrix confirms vLLM needs compute capability 7.0 or higher to run at all, and that hardware-accelerated FP8 is limited to Hopper and Ada. On Turing, FP8 falls back to a weight-only path through Marlin kernels — it works, but you do not get the native speedups.

The pattern across the tracker is consistent: architecture mismatches surface as cryptic build or load errors — Unsupported gpu architecture 'compute_90' in issue #8665, the same class of failure in issue #803 on an RTX 4090. The common thread is that the compiled kernels and the physical GPU disagree about what instructions exist.

Key takeaway for business: "cheap GPU instance" and "supported GPU instance" are different purchases. The T4G on G5g is a 2018-era architecture. Any stack that assumes a modern data-center GPU will need special handling, and that handling costs engineering hours you should budget for before you commit to the instance type.

What actually works: the one maintained ARM64 stack

There is exactly one supported path, and it is worth knowing precisely because the alternatives are dead ends.

The AWS ARM64 GPU PyTorch DLAMI (Deep Learning AMI) is, per the dev.to source, "the only maintained aarch64 stack that still carries sm_75." It ships PyTorch builds spanning versions 2.2 through 2.12, and — critically — those builds compile in Turing support alongside the newer architectures. For example, torch 2.7.0+cu128 in the DLAMI targets sm_75, sm_90, sm_100, sm_120; torch 2.12.0+cu132 adds even more. Turing is on the list. That is the whole ballgame.

Contrast that with the options that look plausible but fail:

Option Status Why it fails
PyPI pip install torch (aarch64) Installs, then crashes No sm_75 in the wheel
vllm/vllm-openai ARM64 Docker Does not exist "Never had it" — no ARM64 image
nvcr.io/nvidia/pytorch ARM64 Abandoned ARM64 support dropped after release 24.10
drikster80/vllm-aarch64 Frozen Stuck on vLLM 0.6.1, last touched Sept 2024 — far too old for a current model
AWS ARM64 GPU DLAMI Works Still carries sm_75

The DLAMI is not turnkey either. The dev.to walkthrough lists the manual steps: add the cuda-toolkit-13-2 package from the sbsa repo and install a Rust toolchain (neither ships in the image), then build vLLM v0.27.2rc0 or newer from source with TORCH_CUDA_ARCH_LIST=7.5 and the use_existing_torch.py helper so the build reuses the DLAMI's Turing-aware PyTorch instead of downloading the broken PyPI one. A further step patches the Triton attention kernel to fit Turing's smaller shared-memory budget, and the model is served with --dtype float16 and --kv-cache-dtype auto.

Real numbers: the minimum viable versions are concrete — vLLM 0.27.2rc0 built from source, PyTorch from the DLAMI (2.2–2.12), CUDA toolkit 13.2 from the sbsa repo, and float16 precision. Skip any one of those and you are back to a crash.

The trade-off, stated honestly

Honest take: G5g is a genuine cost play, but it is not a beginner-friendly one. The savings on the instance come at the price of a from-source build, a kernel patch, and a stack you have to assemble by hand. That is a fixed, one-time engineering cost. If your team can absorb a day or two of infrastructure setup and then bake the result into an AMI or container image, the per-hour savings compound across every hour the box runs. If you need a model serving traffic this afternoon, a supported x86 GPU instance with a stock vLLM Docker image is the calmer choice.

Two more caveats worth pricing in:

  • Turing leaves performance on the table. No native FP8, and quantization schemes like AWQ are off the table entirely. For memory-bound serving that can matter; benchmark your actual model before assuming the cheaper instance is cheaper per token.
  • Static KV cache is the classic budget-killer regardless of instance. As the vLLM in production guide puts it, "static KV cache allocation will OOM your GPU long before billing teaches you the same lesson." On a 16 GB T4G, --gpu-memory-utilization is not a suggestion — it is your operating budget. Get it wrong and the box crashes under load.

Here is what we recommend

  1. Decide with eyes open. Choose G5g only if the ARM + Turing cost advantage is large enough to justify a bespoke build. Do the math on your real serving hours, not the sticker price.
  2. Never trust a silent install on aarch64. The default wheel installs cleanly and still fails at runtime. Verify the GPU is actually engaged before you ship anything — a five-minute smoke test saves a production incident.
  3. Build once, snapshot forever. The moment your DLAMI-based build works, capture it as a custom AMI or image. The pain is a one-time tax; do not pay it on every deploy.
  4. Set your memory budget before your first load. Tune --gpu-memory-utilization deliberately on the 16 GB T4G rather than discovering the ceiling in production.

Frequently Asked Questions

What is the minimum vLLM version required to run on EC2 G5g instances?

You need vLLM v0.27.2rc0 or newer, built from source with TORCH_CUDA_ARCH_LIST=7.5. Older pre-built images will not include Turing (sm_75) kernels. The abandoned drikster80/vllm-aarch64 image is stuck on vLLM 0.6.1 and is too old for current models.

What binary versions are compatible with the Graviton2 + NVIDIA T4G combination?

Use the AWS ARM64 GPU PyTorch DLAMI, which carries PyTorch 2.2 through 2.12 compiled with sm_75 support. Add CUDA toolkit 13.2 from the sbsa repo and a Rust toolchain manually, then serve with --dtype float16. The stock PyPI aarch64 torch wheel does not work — it omits Turing.

How do I resolve shared memory limitations when running LLMs on G5g?

Turing GPUs have a smaller shared-memory budget than newer architectures. The documented fix is to patch the Triton attention kernel so it fits within Turing's limits, and to serve in float16 with --kv-cache-dtype auto to keep memory pressure manageable on the 16 GB T4G.

Are the cost savings of G5g worth it versus a standard GPU instance?

G5g's ARM + Turing pairing is cheaper per hour, but you pay a one-time engineering cost to build the stack from source. It pays off for steady, long-running workloads you can bake into a reusable AMI. For quick deployments or workloads that need native FP8/AWQ, a supported x86 GPU instance is more economical once engineering time is counted.

This article is based on publicly available sources and may contain inaccuracies.

Related articles

✦SqueezeAI
  1. The aarch64 PyTorch wheel gap is a two-stage trap: the old problem was CPU-only wheels on ARM (fixed in PyTorch 2.11.0), but the new GPU-enabled wheels target sm_90/100/120 only — so pip install succeeds silently, yet the T4G (sm_75) is still unreachable at inference time.
  2. Turing (sm_75) sits below the sm_80 floor that most current GPU kernel code requires, making G5g incompatibility a pattern across the ecosystem — AWQ quantization fails on it outright, independent of the ARM issue.

Powered by B1KEY