Developer runs Qwen inference across 5,600 AWS Lambda invocations—and pays 80× more
OtherPublished: Source: Hacker News (100+ points)
TL;DR:5-4B, across 5,600 AWS Lambda invocations, keeping each function within a 3 GB limit. 10 price of hosted Gemini Decision 1.

A developer split inference for H2O-Lightning, a fine-tune of Qwen3.5-4B, across 5,600 AWS Lambda invocations, keeping each function within a 3 GB limit. Reading a 4,000-token document took 17 seconds and cost $0.034, or $8.40 per million tokens—over 80 times the cited $0.10 price of hosted Gemini Decision 1. The experiment showed that the model could be partitioned across serverless CPU jobs, but the compute cost made the approach impractical compared with a GPU or hosted service.
Key points
- The 9.3 GB model was divided across 32 layers, each roughly 225 MB, and jobs were coordinated through S3.
- A single request triggered 5,600 Lambda invocations under the 3 GB per-function constraint.
- Processing 4,000 tokens took 17 seconds and cost $0.034, equivalent to $8.40 per million tokens.
- The author compared this with Gemini Decision 1 at $0.10 per million tokens.
Why it matters
The experiment gives developers a concrete cost benchmark for running small-model inference on serverless CPUs: distributing the workload is possible, but the networked, CPU-based approach was far costlier than the cited hosted alternative.
Companies and models mentioned
- AWS Lambda
- H2O-Lightning
- Qwen3.5-4B
- Gemini Decision 1
- Amazon S3