Skip to content
NewA calmer, faster ZeroHour

Qwen fine-tune split across 5,600 AWS Lambdas costs 80x hosted inference

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

Hacker News · AIby octember ()3 min read
AI summary · x-ai/grok-4.7Summaries by Vani AI

A 4,000-token read of H2O-Lightning took 17 seconds and $8.40 per million tokens versus $0.10 for Gemini Decision 1.

A developer at Bevyl split H2O-Lightning, a fine-tune of Qwen3.5-4B, across AWS Lambda functions under a 3 GB limit. The 9.3 GB model has 32 layers of about 225 MB, so each layer ran as a separate job that read and wrote tensors in S3. One request used 5,600 invocations and finished a roughly 4,000-token document in 17 seconds at 3.4 cents, or $8.40 per million tokens. The author compares that with Google's hosted Gemini Decision 1 at $0.10 per million tokens and concludes CPU Lambdas are not cheaper than a GPU.

Unconfirmed: Cost and latency figures are the author's own measurements, not an independent benchmark.

Key facts
  • The model is 9.3 GB and does not fit in one 3 GB Lambda.
  • Each of 32 layers is about 225 MB and ran as its own job.
  • About 92% of the work parallelized and 8% stayed serial.
  • The author says the same read costs 0.04 cents on Gemini Decision 1.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

3 min read at noahbuilt.it

In my work at Bevyl 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.

Hacker News · AI

By octember · noahbuilt.it

Read the full article at Hacker News · AI

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.