News for hackers. Stuff that matters.
Re:Ask HN: Small LM or API? by politelemon on Saturday April 04, 2026 @08:25AM (#47638434)
Depends on what you're using it for, a small model could be viable as long as you're willing to absorb the maintenence overheads of running and deploying your own inference. A simple API would be much more cost effective especially if there are scaling requirements and time constraints.
Re:Ask HN: Small LM or API? by ostefani on Saturday April 04, 2026 @09:00AM (#47638699)
Use for support chat bot. I see a lot of open source models. Not sure if it's worth it. Reply via API from LLM should be better?
Re:Ask HN: Small LM or API? by JaceDev on Saturday April 04, 2026 @08:46AM (#47638596)
tbh small lms are better if u
Re:Ask HN: Small LM or API? by ostefani on Saturday April 04, 2026 @09:00AM (#47638706)
But you need to host it? Small model will provide worse results?
Re:Ask HN: Small LM or API? by ok_computer_ on Saturday April 04, 2026 @09:16AM (#47638811)
Gemma 4 dropped two days ago and it's a pretty direct answer to this question. Google DeepMind built it explicitly for local deployment, the 26B MoE activates only 3.8B parameters during inference (so it runs at roughly 4B cost while hitting near-31B benchmark quality), and the smaller E4B variant runs fully offline on an 8GB laptop. The 31B Dense currently ranks third among all open models on the Arena AI leaderboard. The quality-per-parameter gap between local and cloud is closing faster than most people expected.

That said, "worth it" still depends heavily on your hardware. A 4070 Ti gets you a very different answer than a 3060.

Disclosure: I'm building localllm-advisor.com, free and client-side, which also helps answer these types of questions. It shows which models fit your GPU with quantization options and estimated tok/s, or which GPU you'd need to run a specific model. Relevant to the question so I'm mentioning it, but take it for what it is.

Re:Ask HN: Small LM or API? by ostefani on Sunday April 05, 2026 @01:36AM (#47646413)
I've just tried Gemma-4 26b. It's very good. I would say it's the best from what I tried so far. But I wouldn't say it runs at 4B cost. Thank you for sharing your resource :)
Re:Ask HN: Small LM or API? by Intelligent_Fox on Saturday April 04, 2026 @11:49AM (#47640092)
For most teams the answer depends less on the technical tradeoffs (latency, cost, privacy) and more on who will actually be operating and governing it.

If you have non-technical stakeholders managing the deployment or making decisions about AI use, API providers give you more guardrails and less operational surface area. Local LLMs require someone who understands the stack.

That said, the AI literacy gap on the business/governance side is real — teams where managers don't have AI foundations tend to get stuck on escalations. Programs like IAIDL (https://iaidl.org) address that side of the equation for non-technical colleagues. Reduces the "what is it actually doing" conversation overhead considerably.

Re:Ask HN: Small LM or API? by ostefani on Sunday April 05, 2026 @01:37AM (#47646421)
Thank you for sharing your thoughts about it :)