An unofficial, read-only Hacker News reader.

Serving Qwen via AWS Lambdas for fun and 80x negative profit (opens external site)

138 points by octember 4 days ago | noahbuilt.it | 20 comments on HN

View full thread · View on Hacker News

Comment thread (4)

  1. Hey that’s pretty impressive even if it’s not economical.

    First thing that came to mind is that you’re using a 4B model. If you can get away with something half the size, I think the numbers will be more favorable.

    In order to do that you need an eval set, which you’ll want anyways if you care whether Jev or Open AI decisions or Gemini decisions are best for your problem.

    Another thing is, you’ll probably be crushed on cold start unless you deliberately keep your lambdas warm.

    Replies (1)
    1. All good points! I did pick somewhat randomly - would be interesting to sweep. But at least in 2026 it doesn't seem like these smaller models are holding up. Maybe there is a sweet spot but I'm skeptical

      For the eval set I took a sample from here: https://stanfordnlp.github.io/contract-nli/

      If it's done right, answers are 100% identical so it's easy to verify you didn't break it

      And yeah I kept them warm, pinging every function every 4 minutes

      Replies (1)
      1. 5600 functions, every 4 minutes? does the ping load the model?
        Replies (1)
        1. Not 5,600 functions, more like ~100 (a few per layer). 5,600 is invocations per read. The first ping loads the layer's weights, after that it's basically a no-op since the instance keeps them warm