2026-11-26 15:37 UTC

Developer splits Qwen fine-tune across 5,600 Lambda invocations; reports 17-second reads at high cost

state: seedheat: lowuncertainty: mediumrelevance: mediumserverless-inference llm-serving inference-costNoah LindnerAWS

What is this?

On November 14, 2026, developer Noah Lindner published an experiment running H2O-Lightning, a fine-tune of Qwen3.5-4B, across AWS Lambda. With a 3 GB per-function limit and a 9.3 GB model, he split computation across layers and token blocks; he reports 5,600 Lambda invocations for one request. His reported result: reading about 4,000 tokens took 17 seconds and cost 3.4 cents, or $8.40 per million tokens. He compares this with Google’s hosted Gemini Decision 1 at $0.10 per million tokens. These are Lindner’s figures and comparison; the supplied sources provide no independent verification or broader benchmark.

Why it matters

The experiment is a useful boundary test for serverless AI: ordinary cloud functions can be coordinated to run a model too large for one function, but splitting inference across thousands of invocations does not make it practical or cheap in this example. It illustrates both the accessibility of model engineering and the importance of hardware suited to matrix-heavy inference. The result is an individual experiment, not evidence that serverless inference generally has these costs or performance.

Current assessment

New evidence is Lindner’s first-person account, published November 14 and also surfaced through Hacker News on November 25. He says he used AWS Lambda functions capped at 3 GB, with a roughly 9.3 GB H2O-Lightning/Qwen3.5-4B model divided into 32 layers; jobs read inputs from and write results to S3, with dependencies between layers and token blocks. He reports 5,600 invocations, 17 seconds to process roughly 4,000 tokens, and a cost of $0.034 for that read ($8.40 per million tokens). The $0.10-per-million hosted Gemini Decision 1 figure is his cited comparison, not an independently normalized comparison in the supplied evidence. The experiment demonstrates technical feasibility under this particular design, not practical serving performance. It concerns reading a document with a decision-oriented model, not necessarily general autoregressive text generation. No independent replication, Lambda cost breakdown, or evidence of adoption is supplied. Lindner’s own takeaway is that GPU hardware is needed for this workload; the practical implication is that serverless CPU fan-out can enable experimentation but may incur substantial latency and cost when sequential model computation and data movement dominate.

Measured heat

now 0 pts/hpeak 15 pts/hcomments 0/hpeers p21momentum: steady2 platformsage 314h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-13 13:00⭐ origin echo-reconstructedLindner describes distributing model-layer computation across 5,600 AWS Lambda invocations and reports 17-second latency for about 4,000 tok
Noah Lindner on blog (echo) · attributed from hn.story.50638070
—
11-25 03:28first on hacker news · published · +278.5hServing Qwen via AWS Lambdas for fun and 80x negative profit
octember
—
11-25 03:28amplified on hacker news 👑hn.story.50638070
octember
peak 118 · 18 comments · 100% of case engagement
11-25 04:21our radar first saw it · +279.4hdiscovery anchor: hn.story.50638070—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnServing Qwen via AWS Lambdas for fun and 80x negative profit
Retrieved article excerpt

Open article · Retrieved 2026-11-25T04:21:54.930372+00:00

[← Writing](https://noahbuilt.it/writing)

# Serving Qwen via 5,600 Lambdas for fun and 80x negative profit

November 14, 2026

## Who needs a GPU?

In my work at [Bevyl](https://www.bevyl.ai) I was really impressed by the performance and cost characteristics of AWS Lambdas. They can massively distribute and fan out CPU-bound work, which is amazing for things like ffmpeg on long videos.

So I was curious if it was possible to run inference on self-hosted models using Lambdas. It was a random idea built on a hunch, and I like to prove such ideas right or wrong by building. In this case I was very wrong, but it was a good lesson!

I picked [H2O-Lightning](https://huggingface.co/h2oai/h2o-lightning-4b), a fine-tune of Qwen3.5-4B, because I wanted a small model built for decisions. I figured if this architecture had any legs, only doing decision models (a single forward pass) is the move. A decision model reads a document and answers a question about it by picking one option.

## Fanning out

So the trick, if it's possible, would be fanning out. I was inspired how Remotion uses massively parallelized Lambdas to render videos.

I wanted to prove this was possible to do, so I kept a constraint of a 3 GB limit for Lambdas. The whole model is 9.3 GB, so it does not fit in one. But it has 32 layers of about 225 MB each, and one layer fits. That gave me one Lambda job per layer per block of tokens.

Think of the Lambda as a simple idempotent API. A job reads inputs from S3, does the math, and writes one object back.

```
x = load(f"{doc}/{layer - 1}/{block}")
memory = load(f"{doc}/{layer}/{block - 1}")

y, memory = model.layers[layer](x, memory)

s3.put_object(
    Key=f"{doc}/{layer}/{block}",
    Body=pack(y, memory),
)
```

Each job waits on the layer above for the same block and on its own previous block. Each layer starts one step after the layer above it, like a staircase 32 layers deep.

92% of the work parallelizes, 8% is serial

hoped it couldbe done hereactually done herelayer 1layer 2layer 3layer 4layer 5waiting its turntime

Parallel but not.

I'm proud of the win: splitting a model call across 5,600 Lambdas is kinda wild.

One request, 32 layers, 5,600 Lambda invocations

Lambda job that has to run in orderLambda job that can run any timePoint at a job to follow its block.

0 s5 s10 s15 sseconds after the read startslayer 1layer 8layer 16layer 24layer 32

Win: the math worked; I had split a model call into 5,600 Lambda invocations.  
Fail: 17 seconds to read ~4k tokens.

## The bill

If it was 40x slower but 50% cheaper, that'd be interesting.

Reading a 4,000-token document takes 17 seconds and costs 3.4 cents. That works out to $8.40 per million tokens. Google sells a hosted decision model, [Gemini Decision 1](https://ai.google.dev/gemini-api/docs/pricing), for $0.10 per million tokens, so the same read costs 0.04 cents there. Mine is more than 80 times more expensive.

More than 80 times the price of a hosted decision model

$0.10$1$10dollars per million tokens readtarget: comparable pricingGemini Decision 1, hosted$0.10mine, on Lambda$8.40

## Takeaways

### Model engineering is not so hard in 2026!

I'm a [dumb application developer](https://noahbuilt.it), but I was able to play with model layers and transformers API pretty easily! With good devex, it feels like open models are just another API at this point.

### I need a GPU

Learned this the hard way but a very powerful lesson! One layer over a few thousand tokens is a big matrix multiply, which is what GPUs are built for. My goal was to learn anyway so it's a good lesson.

### Freedom ain't free

CPU still costs dollars, there's no arbitrage here.
octember11818
🟧 echo.blog ⭐Lindner describes distributing model-layer computation across 5,600 AWS Lambda invocations and reports 17-second latency for about 4,000 tokNoah Lindner——

Interpretation history

Decision trace