Skip to content

Build Not yet confirmed elsewhere1 publisher 2 min read Published

Fitting 6.155 GB of Gemma 4 weights lands you on AWS's only Arm GPU family

The cheap fractional-GPU tiers top out at 3 GB of device memory, so the weights pick the instance and hand you a Graviton2 host with a 2018 Turing card. The interesting cost is the toolchain, not the hourly rate.

The Engineer · Build desk

Send a correction

Illustration accompanying Fitting 6.155 GB of Gemma 4 weights lands you on AWS's only Arm GPU family
Generated illustration

What happened

  • A dev.to walkthrough serves Google's instruction-tuned google/gemma-4-E2B-it on an AWS G5g instance, which pairs a Graviton2 Arm host with an NVIDIA T4G and is the only Arm-based GPU family AWS rents.
  • Priced in us-east-1 on Linux on-demand against the Pricing API on 2026-08-28, g5g.xlarge at $0.4200 is the floor for a whole NVIDIA GPU, with g4dn.xlarge next at $0.5260.
  • The two cheaper GPU instances cannot hold the model: g6f.large at $0.2020 is an eighth of a GPU with 3 GB against 6.155 GB of weights, and g4ad.xlarge at $0.3785 carries an AMD card.
  • The rig resolves its image at launch from the arm64 OSS NVIDIA driver SSM parameter, because AWS also ships ARM64 DLAMIs built for Graviton CPU inference that boot perfectly and have no GPU.

Why it matters

  • What it limits constraint A 3 GB slice cannot hold a 6.155 GB checkpoint at any hourly rate, so device memory selects the instance type and price only breaks ties among the boxes that fit.
  • What it costs cost Buying a fractional-GPU instance large enough to hold the weights costs about 1.7x this rig per hour, which means the discount tier is cheap mainly for models you are not serving.
  • What's now possible capability Because the control plane's 105 tests run fully offline with every cloud and network boundary mocked, the operator can validate the whole launch path before a single GPU-hour is billed.
  • Who's exposed exposure With no inbound SSH rule and no private key, the entire administrative surface collapses onto IAM and SSM Run Command, and anything running on the instance can read its metadata.

The pip story is the good news on this axis. On NVIDIA hardware JAX's wheels bring the CUDA libraries with them, so there is nothing to build [13]. Everything above that layer is where the aarch64 tax shows up. The engine in this rig is the repo's own Gemma 4 port, driven by a JAX generation loop behind an OpenAI-compatible FastAPI server under systemd [14]. Writing your own decode loop is a real line item, and it is roughly what you pay for a pairing the guide describes as one almost nothing in the ML ecosystem targets [4].

The Hugging Face token, incidentally, is written to Secrets Manager under the path `vllm/hf-token` [17], which on a pure-JAX rig reads like a fossil of the attempt before this one.

Then the memory budget. The T4G reports 15,360 MiB of device memory rather than the nominal 16 GB, and the guide says to budget against the measured number [11]. The weights are 6.155 GB [6]. Read as decimal gigabytes, that is about 5,869 MiB resident, leaving roughly 9,491 MiB for KV cache, activations and XLA scratch [24]. Read it as GiB instead and about 430 MiB of that goes away [24]. Workable, and not roomy, and the T4G has no fp8 [3], so the usual lever for buying cache space back with a smaller numeric format is absent.

Now read the default. The rig runs `g5g.2xlarge` at 1 GPU, 8 vCPU and 16 GiB, and that instance type is hardcoded into the MCP server's environment block [10][16]. The guide's own note that the first fitting fractional instance, `g6f.4xlarge` at $0.9500, is 1.7x this rig [7] puts the configuration you actually launch at about $0.56 an hour [23], which is around 6% above the $0.5260 `g4dn.xlarge` that the family undercuts on paper [25]. It is a bigger box than the `g5g.xlarge` that sets the floor, so this is not a like-for-like comparison. It does mean $0.4200 is the family's entry price and not the rig's.

For the price table to be your price table, three things have to hold. The same region and the same on-demand basis, since the guide's launch example passes `spot=True` [21]. G instance vCPU quota in us-east-1, because the default wants 8 vCPU and the tooling checks the limit before launching rather than after a failure [22]. And a subnet, security group and instance profile you already own, because the rig requires all three explicitly and will not create them for you [19].

What to watch

  • The /latest/ SSM AMI parameter moves, so whether a relaunch months from now lands the same image decides if this deployment is reproducible.
  • Spot capacity and spot pricing for G5g in us-east-1, since the guide's own launch example asks for spot and that changes every hourly figure.
  • Measured tokens per second on the T4G, because dollars per hour only becomes dollars per token once throughput is published.

Clarity's read

What the record supports and how the coverage leans. The claims behind it follow.

Reality

Evidence48
Adoption14
Hype gap−14
Incentives42
Confidence41
Why these scores

Claim ledger

Ranked by verification strength, evidence, and original report placement.

  1. [1]

    The project aims to serve a modern open model on the cheapest whole CUDA GPU AWS will rent, and to measure honestly what that costs.

    Reported SupportedView cited source
  2. [2]

    G5g instances pair an AWS Graviton2 (64-bit Arm) processor with NVIDIA T4G Tensor Core GPUs, and G5g is the only Arm-based GPU family AWS offers.

    Reported SupportedView cited source
  3. [3]

    The T4G is a Turing chip from 2018 with no bfloat16 and no fp8.

    Reported SupportedView cited source

Get this ledger inside ChatGPT. Ask about any of our stories and the answer brings its figure, each claim’s verdict and the sources. Free, no account.

Add to ChatGPTAdd to Claude

Sources

1 independent publisher whose own reporting we read for this story.

  1. dev.to

    1 article · August 28, 2026

    Pure JAX on G5g: Serving Gemma 4 on Graviton and a T4G

Share your take

Let Clarity write the post for you.

Signed-in readers get a short post drafted on this story in the register they choose — narrative, analytical, or a direct position — editable to the last word before it goes anywhere. The share buttons at the top of this story work without an account.

Topics and entities

Follow any of these and your For You feed starts watching them — no settings page required.

Topics

  • Keyless instance administrationFollow
  • MCP-driven infrastructure toolingFollow
  • Small open-model deploymentFollow
  • GPU instance cost floorsFollow
  • Arm plus CUDA inferenceFollow
  • JAX serving stacksFollow
Loading related stories