Local LLM agents
from Kkk2237pl@lemmy.world to programming@programming.dev on 28 May 10:09
https://lemmy.world/post/47446983

Has anyone tried in organization to use self hosted llm models for agentic programming?

Im curious if it makes any sense. My organization spends fortune on tokens from us companies. I want to recommend something…

#programming

threaded - newest

FishFace@piefed.social on 28 May 10:47 next collapse

As far as I understand, the only way to get anything resembling usable output for coding is with massive, expensive, labouriously hand-tuned models, not local ones.

Kkk2237pl@lemmy.world on 28 May 10:59 next collapse

I see that qwen 3.5 has pretty good performance and can be run on macbook with 64GB ram

Penta@lemmy.world on 28 May 11:14 next collapse

Qwen 3.6 is even better

SmoothLiquidation@lemmy.world on 28 May 14:36 collapse

I have played with qwen3-coder:30b for my hobby stuff running on my M5 max MacBook and it does alright. It is fast enough and I used ollama tools to let it request files. I haven’t used anything like Claude code to compare it to though, only a bit of the ChatGPT free tier stuff.

Jestzer@lemmy.world on 28 May 11:48 next collapse

^^^ This. Tragically, locally run LLMs don’t even hold a candle to “good” cloud-based LLMs like Claude Code.

irelephant@lemmy.dbzer0.com on 28 May 14:41 next collapse

Deepseek is pretty good the few times I tried it.

locuester@lemmy.zip on 28 May 15:38 collapse

Qwen 3.6 27B dense is really good. Very usable coding output

spectrums_coherence@piefed.social on 28 May 10:56 next collapse

If you just want to avoid U.S. company, you can try mistrialAI.

87Six@lemmy.zip on 28 May 11:42 next collapse

Models running within the constraints of a dev machine have no chance

If you want this, you need a company AI server with enough performance to support the entire team at once, and it will probably still be worse than using a cloud one. Though it MIGHT pay for itself in… A while

Kkk2237pl@lemmy.world on 28 May 11:49 next collapse

How about qwen 3.6 and MacBook with 64GB ram?

I thought about that AI server, but idk how to calculate how long it pay for itself…

87Six@lemmy.zip on 28 May 15:38 next collapse

I mean… RAM? Don’t you need mass VRAM for this kind of thing? Or are they shared on Mac?

idk how to calculate how long it pay for itself…

You don’t… Not in this industry. You guess and hope it goes in your favor.

No calculations matter if the market can jump or drop by 300% in a few months… And that applies to programming, hardware prices, AI subscription prices, regulations between countries when Trump is in office…

SeductiveTortoise@piefed.social on 28 May 16:54 collapse

Apple unified memory shares all over CPU, GPU and NPU, you can assign a lot of memory to run local models and there bandwidth is good, depending on the model.

AMD has something similar with their something something AI CPUs and they go up to 128GB at the moment. Apple can be way faster though. And you were able to buy a Mac Studio with 512GB back when RAM wasn’t worth more than unicorn pee. For… I guess 10k though.

87Six@lemmy.zip on 29 May 13:34 collapse

Apple unified memory shares

That’s cool asf.

Apple engineers with better leadership could change the fucking world… But instead they’re used to screw over their own user base.

If my GPU starts falling back to RAM my game fps drops to 1 lol.

PoY@lemmygrad.ml on 30 May 06:38 collapse

its shared sure, but the bandwidth is crap compared to a dedicated nvidia card. the performance will suffer, even though it allows you to run larger quants

87Six@lemmy.zip on 30 May 16:23 collapse

Oh…

MagicShel@lemmy.zip on 29 May 00:47 next collapse

I run this setup with 36GB (32+4). Local LLMs can be really effective BUT you are constrained by context size in a way you aren’t on cloud services.

Cline supports running a local model through lmstudio but my experience feeding it any significant tasks is it just can’t handle reading and holding the contexts to build components for enterprise scale applications.

I use Claude to write a lot of utility one-off scripts. With a maximum window of 1M tokens I can hit 30+% context just writing Python scripts. API contracts, development standards, existing reusable modules, and sometimes reading the code/documentation of the services I’m going to be calling.

My MacBook can’t handle 300k token contexts. 30k seems doable. I should see how it handles my utility script folder…

Anyway that’s still no Claude but if you need a cheaper model and you can afford for developers to spend time on it before ultimately deciding they need to spend for Claude or Codex or Gemini, then rubbing a local model on a beefy MacBook is 100% an option.

Stepping up from there to building a locally hosted LLM is probably the worst of all worlds. It will be a beefy CapEx, prone to saturation by all the users, and you will most likely still have to punt the hardest jobs to cloud AI. It can certainly be done and done well, but the best example I know runs on $250-500k worth of hardware (to service a pretty big number of users to be fair).

DaTingGoBrrr@lemmy.ml on 29 May 07:01 collapse

I am running qwen 3.5 locally using llama.cpp on 8gb of VRAM and 16 gigs of RAM. It works well enough with a 4B to 9B parameter model along with quantization and MTP. More optimizations are on the way with turboquant and possibly other tech.

It’s just there to assist me, not do all the work, so I am happy as long as I can self host it.

I can’t say how well my specs would work in a professional setting but for personal use a MacBook should be sufficient in my opinion.

Venat0r@lemmy.world on 28 May 12:06 collapse

it MIGHT pay for itself in… A while

considering all the cloud ones are currently running at a loss, and hardware prices are way inflated: I doubt that.

87Six@lemmy.zip on 28 May 14:11 collapse

If you think long term as a company that uses AI that’s the way to go anyway, your own AI server.

But alas, nobody cares about the long term, because the cunts at the top of the AI stack always make sure to make things so volatile that the little guy can never survive past the short term.

The solution? Oh just pay the big corporations to be dependent on them and not build your own thing. Surely that will help.

You have to realize, that by your own words, AI subscription prices will skyrocket eventually. So the cost analysis of your own AI server has to take that into account too, not just the current prices and current upfront cost.

eager_eagle@lemmy.world on 28 May 12:07 next collapse

Qwen 3.6 and gemma4 models are the only ones usable for agentic prog sessions that I and my employer run locally. It’s less stable and slower than third-party services, even on much better hardware (as it’s with my employer). The best way is to go with a provider hosting deepseek flash/pro if your privacy policy allows though. It’s going to be hard to beat their price.

onlinepersona@programming.dev on 28 May 16:12 next collapse

I thought those didn’t support tool calling. Has that changed?

eager_eagle@lemmy.world on 28 May 17:47 collapse

they do

adhdsergio@lemmy.world on 28 May 19:37 collapse

How many concurrent users and what hardware if i may ask?

eager_eagle@lemmy.world on 28 May 19:49 collapse

it’s an h100, I think, no idea about how many users

in my personal setup i use quantized versions on a 3080, which is not great, so I still lean a lot on APIs

mesamunefire@piefed.social on 28 May 13:09 next collapse

Ive played around with a couple, mostly from hugging face. Some of the minimal modelsvare halfway decent at SQL and some specific ones are good with templates and html. You cam string them up for agentic work without issue. I found the performance worse than generation tools for the same software tasks. It was neat to try though.

HelloRoot@lemy.lol on 28 May 13:20 next collapse

GLM is pretty good in mg experience, the company I currently freelance at runs it locally (in house server room) for compliance reasons. But it needs very beefy hardware.

eleijeep@piefed.social on 28 May 13:52 next collapse

My organization spends fortune on tokens

Perhaps recommend that they spend the money on hiring competent staff instead.

adhdsergio@lemmy.world on 28 May 19:32 collapse

Do you realistically think that’s gonna work?

noxypaws@pawb.social on 29 May 00:19 collapse

no, there’s no possible way that hiring professional software engineers will result in software engineering being performed.

/s

adhdsergio@lemmy.world on 29 May 05:30 collapse

Well WE know that, sure

Auster@thebrainbin.org on 29 May 06:19 next collapse

Even commercial, service-based LLMs demand a great effort of quality control, with their hallucinations and all. With local ones being mid in comparison from my experience, my suggestion would be that if your company does try implementing any, they should make sure to at least pay a nice extra to the QA folks.

PoY@lemmygrad.ml on 30 May 06:36 next collapse

our CEO has been buying new hires desktop gaming machines for this reason… currently they don’t have squat for graphics cards but once the rug is pulled from the cloud model pricing he said he’ll spend the $10k per machine to put a 96gb vram card in peoples’ machines to run shit locally

nark3d@thelemmy.club on 30 May 09:01 collapse

There’s a useful split lurking in this. For narrow agentic work like retrieval over internal docs, structured classification, test scaffolding, deterministic refactor passes, a self-hosted 30B-class model can be fine and the inference economics work out at team scale. For multi-step planning and the harder agent loops, the frontier gap still shows up in the number of retries and the time-to-correct-answer.

The honest test is to pick the prompt category that’s costing you the most and benchmark something like Qwen 2.5 Coder 32B or DeepSeek V3 against whatever you’re paying for now. If the gap is small you’ve found your candidate. If it isn’t, you’ve at least costed the gap accurately rather than guessing at it.

The two costs people underestimate are the GPU box (plus a second one for the eval/staging path) and the maintenance overhead. Model picks go stale fast and someone on the team has to own that, or you end up shipping a Llama 3.1 stack into 2026 because nobody rebuilt the harness for whatever’s current.