Serving Qwen across 5,600 Lambdas cost 80x more than a hosted model
Serving Qwen via AWS Lambdas for fun and 80x negative profit

Curious whether CPU-only AWS Lambdas could run LLM inference, Noah Lindner split a fine-tuned Qwen3.5-4B across 5,600 Lambda jobs, one per layer per token block, since the 9.3 GB model wouldn't fit in a 3 GB function. The math worked: a single request fanned out across 32 layers. But reading a 4,000-token document took 17 seconds and cost 3.4 cents, roughly $8.40 per million tokens versus $0.10 for Google's hosted decision model. The lesson: GPUs exist for a reason.
If it was 40x slower but 50% cheaper, that'd be interesting.
- catlifeonmars
I’m sure it’s still quite expensive but lambda can now access GPU instances via managed instances. I’d like to see the same thing implemented on some beefier GPU compute.
https://docs.aws.amazon.com/lambda/latest/dg/lambda-managed-...
- cebert
I love it when folks experiment and try random approaches like this to see if it would even work.
- enjoyyourlife
Needs to try Cloudflare Workers next