Remix.run Logo
▲ Serving Qwen via AWS Lambdas for fun and 80x negative profit(noahbuilt.it)
59 points by octember 5 hours ago | 10 comments
▲catlifeonmars 4 hours ago | parent | next [-]

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-...

▲octember 4 hours ago | parent [-]

God damn it, nerd sniped again. ill be back

▲geophph 3 hours ago | parent [-]

Hell yeah

▲cebert 4 hours ago | parent | prev | next [-]

I love it when folks experiment and try random approaches like this to see if it would even work.

▲octember 4 hours ago | parent [-]

LOL thank you. Learn by doing

▲hizlikovboy27 an hour ago | parent | prev | next [-]

I love this madness. Its serves as an answer to that "what if?" question you have been harboring all this time. Im looking forward to seeing your new experiments with AWS Lambda documentation :)

▲enjoyyourlife an hour ago | parent | prev | next [-]

Needs to try Cloudflare Workers next

▲janalsncm 3 hours ago | parent | prev | next [-]

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.

▲octember 3 hours ago | parent [-]

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

▲jdw64 4 hours ago | parent | prev [-]

>I need a GPU Who wouldn’t need a GPU? We all need one.