NewsCrawler.org

Serving Qwen on 5,600 AWS Lambdas costs over 80 times more than Gemini Decision 1

The post title beside a chart of 32 Lambda layers, each starting after the one above
Image: noahbuilt.it

The author, who had seen how well AWS Lambda[1] spreads CPU-bound work across many machines, tested whether self-hosted models could run inference on Lambdas. He picked H2O-Lightning, a fine-tune[2] of Qwen3.5-4B, because it is a small model built for decisions: it reads a document and picks one option in a single forward pass[3].

The whole model is 9.3 GB, above the 3 GB limit for one Lambda, but it has 32 layers of about 225 MB each, and one layer fits. Each job handles one layer for one block of tokens: it reads its inputs from S3, runs the layer, and writes the result back, so 5,600 jobs form a staircase 32 layers deep.

Reading a 4,000-token document took 17 seconds and cost 3.4 cents, or $8.40 per million tokens. Google sells a hosted decision model, Gemini Decision 1, at $0.10 per million tokens, so the same read would cost 0.04 cents there, and the author's setup is more than 80 times more expensive. The author concludes that he needs a GPU[4], because one layer over a few thousand tokens is a large matrix multiply, which GPUs are built for.

Product AWS Lambda aws.amazon.com

AWS Lambda is a serverless service from Amazon for running code without provisioning or managing servers; you pay only for compute time used.

Read the original noahbuilt.itDiscussion

Discussion

Most commenters liked the experiment for its own sake. One noted that Lambda can now use GPU instances through managed instances, while another suggested a model half the size and warned about cold starts unless the functions are kept warm. Someone also asked for the same test on Cloudflare Workers next.

Sources

  • noahbuilt.it

    Serving Qwen via AWS Lambdas for fun and 80x negative profit

    18 comments

  • KRGeekNews KO

    재미로 AWS Lambda에서 Qwen 서빙하기, 비용은 80배 넘게

    1 point1 comment

Published: First seen: Читать по-русски

Open as a page