AWS Lambda layer-by-layer inference works, but costs 80x a hosted model
What happened
On November 25 a Hacker News post covered a developer running a fine-tuned Qwen3.5-4B model, H2O-Lightning, on AWS Lambda. One model call became 5,600 Lambda calls, each capped at 3 GB of memory, passing data between the model's 32 layers through S3. Inference finished, but reading a 4,000-token document took 17 seconds and cost 3.4 cents, about $8.40 per million tokens, over 80x a hosted model.
Written by AI from the coverage · updated 3 days ago
Coverage
Follow the reports to see the story from different sides.
- Hacker News front pageServing Qwen via AWS Lambdas for fun and 80x negative profit
开发者用AWS Lambdas运行Qwen3.5-4B的微调模型H2O-Lightning,将一次模型调用拆成5,600次Lambda调用,成功完成推理。实验限制每个Lambda使用3 GB内存,通过S3传递模型32层之间的数据,读取4,000 token文档耗时17秒、成本3.4 cents,折合$8.40 per million tokens。
Heat over time
Heat now 3·Comparable peak 10(Nov 25 13:00)·Comparable change over 24 hours -51%
The trend only compares accounts observed without gaps, so its range may be smaller than the current heat. Hover or tap the chart for each hour; the left and right arrow keys step through it.