AI NewsInfrastructureReported

Noah Lindner ran Qwen on 5,600 Lambdas and paid 80 times Gemini

Noah Lindner split a 4-billion-parameter Qwen fine-tune across 5,600 AWS Lambdas and read a 4,000-token document in 17 seconds. The bill was 80 times Gemini.

AI News

Editorial2 min read

LinkedInX
Diagram of a 32-layer language model split across AWS Lambdas as a staircase

Why it mattersThe idea that CPU bursts on Lambda are cheap enough to serve a model falls apart at any real scale. GPUs still win on dollars per token.

Noah Lindner wanted to know the cost of running a small language model with no GPU and no server. His answer: 5,600 AWS Lambda invocations per request, 17 seconds per document, and a bill 80 times higher than a hosted model. The write-up reached the Hacker News front page with 77 points.

The model is H2O-Lightning, a fine-tune of Qwen3.5-4B. The full weights are 9.3 GB. AWS Lambda has a 3 GB memory limit, so one Lambda cannot hold the model. Lindner split it by layer instead. Each of the model's 32 layers is about 225 MB, which fits.

The staircase

A language model processes tokens one block at a time. Each layer needs the output of the layer above it. Lindner writes that his jobs run like a staircase 32 layers deep. Each layer starts one step after the layer above. Each job waits on the layer above for the same block, and on its own previous block.

For a 4,000-token document split into blocks, this produces 5,600 Lambda invocations in one request. Reading the document takes 17 seconds end to end.

The numbers

Lindner reports that his system costs 8.40 US dollars per million tokens. Google's Gemini Decision 1 is 10 cents per million tokens for the same job. His version is 80 times more expensive than the hosted one.

The parallelism looks good on paper: 92 percent of the work parallelises, 8 percent is serial. The ceiling is the cost of a vCPU-hour. Lindner's conclusion: "CPU still costs dollars, there's no arbitrage here."

Why he did it

Lindner was testing an idea from Remotion, the video renderer, which uses Lambdas to parallelise frame rendering. Frames do not depend on each other, so Lambda works well there. Language-model layers do depend on each other, so the pattern breaks even when the maths parallelises. The dependency chain is what adds the serial 8 percent.

The experiment is also a demonstration that the engineering is doable. Fitting a 9.3 GB model into 3 GB slots is a trick no off-the-shelf serving stack supports. Lindner shows it can be made to run. The question he settles is whether the cost is worth it. For this model, on this hardware, the answer is clearly no.

What the piece does not claim

Lindner does not measure accuracy or output quality against the base model. He does not test larger documents or batched requests. He does not break the 8.40 dollars down by Lambda invocation time versus memory. The 10 cent Gemini price is a hosted-model list rate rather than a measured latency comparison.

Source

Reported byNoah Built It

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project