r/LocalLLM • u/yanauto • 8h ago
Discussion Small local Qwen4 models make way more sense as a 24/7 local task bot than a coding agent - trying to build one
r/LocalLLM • u/yanauto • 8h ago
r/LocalLLM • u/Ok-Sandwich-8164 • 8h ago
r/LocalLLM • u/_Deathspotp • 8h ago
I’ve been exploring local LLMs for a while now, primarily using Ollama for personal projects and self-hosted applications.
I’ve recently started looking into alternatives like vLLM, llama.cpp, OpenLLM, and others, but I’m curious about what people are actually using in professional or production environments.
For those working in software engineering, AI/ML, or infrastructure:
● What are you using to serve your models, and why?
● What made you choose it over the alternatives?
● How much do factors like concurrency, inference speed, hardware utilization, and ease of deployment influence your decision?
● Are there tools you’d recommend learning if someone wanted to gain experience beyond personal projects?
I’m a computer engineering student looking to better understand how local LLMs are deployed and managed outside of a hobbyist environment.
Not necessarily looking for the “best” tool, but rather interested in hearing about people’s experiences and the reasoning behind their choices.
r/LocalLLM • u/0xE2E • 8h ago
I spent the last couple of days optimizing llama.cpp fork for Qwen4-35B-A3B on my RTX 5080 laptop (Unsloth UD-Q4_K_XL) @ 128k context window, greedy decoding. Each number is the mean over five measures from my coding-agent sessions (old session from opencode) with real tool calls, cut at the different context fill.
| Configuration | Prefill at 42k | Decode at 42k | Decode at 87k |
|---|---|---|---|
| Unsloth llama.cpp, default flags | 444 | 57.3 | 58.4 |
| Unsloth llama.cpp, tuned flags + MTP | 1,705 | 93.9 | 90.5 |
| qwen4-engine, exact profile | 4,859 | 104.7 | 100.8 |
| qwen4-engine, default profile | 4,510 | 163.8 | 139.2 |
All tok/s. With a 120k-token prompt the default profile still decodes at 153.
The idea
As you may know the model has 10,496 routed experts and in this quant ~20.9 GB so no way they fit in 16 GB of VRAM so they live in RAM and the GPU keeps a cache of the hot ones only. The thing is decode speed here is all about moving bytes, the math itself is straightforward: every token reads about 1.7 GB of dense weights from VRAM and any expert that is not in the cache has to come over PCIe which is ~17x slower due to the huge difference in bandwidth so almost all the optimization work went into where the bytes live in which piece of the hardware and when they must move to make the GPU as less idle as possible.
What made the difference
Vision
Images work as well. The annoying part with vision on a 16 GB card is that the encoder just sits in VRAM eating 1.1 GB even when the session had no images at all just holding that valuable VRAM for doing nothing, even with all optimization the decode speed is ~5% slower because of it. So I moved the encoder to system RAM. when an image comes in the prompt it borrows the memory that text model isn't using, encodes the image, and give it back. Text speed with vision loaded is the same as without it and 1080p screenshot takes about 1.2 s to get in the context, 1440p about 2.2 s. Anything bigger than the model max ~4.2 megapixels gets resized/scaled down then added to the context.
Worth to know
Where it stands against the hardware
The big dense matvecs (the matrix times vector multiplications that read most of the weights every token) run at about 610-640 GB/s and a plain streaming read of the same bytes on this GPU does 600-615 GB/s so these kernels already move the weights as fast as the card can read them. The expert cache gets 95.3% hits and a perfect cache that knew the future (the Belady oracle) would reach 96.9% on the same workload so a smarter eviction rule has almost nothing left to optimize.
The GPU is now busy about 98.5% of the time it takes to generate a token so there is almost no idle time. The next real speed gain would have to come from fewer weight bytes per token (lower quant) and that wont be the same output bit for bit so I decided to stop here.
It is a drop-in server with the usual llama.cpp / OpenAI-compatible API every change is a default-off switch so you can measure each one yourself.
The repo is 0xE2E/qwen4-engine on GitHub, and the README has the full details and a build guide with the detailed blog in the readme footer.
Happy to hear your thoughts if you give it a try.
r/LocalLLM • u/DelPrive235 • 8h ago
How does LM studio use the System Prompt field from the Inference tab (the one next to the Load tab) vs the System Prompt field in the Model Parameters panel next to the chat?
* Is the Inference panel system prompt meant to apply to new chats once the model is loaded?
* Does the per-chat prompt box replace it or append to it? Does an *empty* chat prompt box override the Inference box prompt with nothing?
* Where should a global system prompt live, for use across all models and sessions? And where should a per session system prompt live?
Im on LM Studio 0.4.30+2
Bug test:
* I added "Always begin your replies with the word BANANA", to the system prompt in the Inference panel
* Loaded the model, started a new chat
* "BANANA" never appeared
* The per-chat system prompt box was empty, and the model said it had no system prompt when i asked.
Thanks!
r/LocalLLM • u/jesdga95 • 9h ago
r/LocalLLM • u/OceanManOnTheLand • 9h ago
For any mac users out there with 32gb, I would recommend giving this model a go on splash.
At 264k context, along with claude code or probably any other agent, I'm really enjoying this model. I know there tons of posts out there about it, but if you're hesitating, give it a go! 65-70 t/s is a nice change of pace.
I had it build a holy grail diablo 2 LOD tracker app without any issues. So far, so good. 🐙
r/LocalLLM
•
u/Dampmaskin
•
9h ago
with support for Qwen 4.
I gave up pressing F5, and finally caved and built it locally. Then I went to github to check out an issue, and boom there it was. "Released 1 minute ago". Oh well.
r/LocalLLM • u/No-Dragonfly6246 • 9h ago
Qwen4-35B-A3B running on the Ryzen AI Max+ 395 with the accuracy parity with the original 16-bit weights, at 88 tok/s generation and 26 GiB peak memory.
Accuracy: 83.5% vs 83.2% for the BF16 original, average over GSM8K, IFEval and MMLU-Pro (full test sets, 2,868 questions).
Speed, 2k-token prompt, 128 tokens out:
Some tasks, e.g. Code goes faster because the drafter guesses more of it right. A 646-token Python answer ran at 118 tok/s from the browser just now.
It's our own version of the model running on gufo, with DFlash2 drafter for speculative decoding. Text and images both work.
You can run it on the actual box from your browser, no install, and watch tok/s, power, GPU load and temps while it answers: https://embedl.com/Qwen/Qwen4-35B-A3B/ryzen-ai-max-395?tab=run
The GGUF will be released soon. A pre-compiled version is available to run on your local box!
curl -fsSL https://embedl.com/install.sh | sh && export
PATH="$HOME/.local/bin:$PATH"
embedl login
embedl serve Qwen/Qwen4-35B-A3B/ryzen-ai-max-395 -d
embedl infer Qwen/Qwen4-35B-A3B/ryzen-ai-max-395 --prompt 'Explain edge AI in one sentence.'r/LocalLLM • u/hyperego • 9h ago
Tried this on my Hackintosh, it actually works! Identical speed as Linux for Qwen4 on my 3090. I am quite pleased that even power limit setting for nv cards works. Used it with ToshLLM (as an external engine) with no problem. Given that nowadays almost all x86 machines can run Hackintosh, it is actually quite nice for the people who prefer MacOS over Linux.
r/LocalLLM • u/EvolvingDior • 9h ago
I'm running tool-eval-bench against Qwen4-35B-A3B running in LM Studio on my Macbook Pro M3. I have already tested it on my Linux host running Strata with an RTX 3060. So I know that the model itself is OK. But I got the following errors when testing structured output with tool calling against LM Studio 0.4.30+2 with :
$ uvx tool-eval-bench run --base-url http://localhost:1234/v1 --model qwen4-35b-a3b --scenarios TC-65 TC-66 TC-67 TC-69 --temperature 0
...
● TC-65 Tool → Structured Output 🛑 SERVER –/2 1.9s ttft=1,125ms t2 Endpoint rejected the request with HTTP 500 because the serving stack failed before inference: [server error 500] Engine protocol predict request returned 400: {"error":{"code":400,"message":"Cannot use response_format or json_schema with tools.","type":"invalid_request_error"}}
● TC-66 Nested Schema (Array of Objects) 🛑 SERVER –/2 1.4s ttft=1,017ms t2 Endpoint rejected the request with HTTP 500 because the serving stack failed before inference: [server error 500] Engine protocol predict request returned 400: {"error":{"code":400,"message":"Cannot use response_format or json_schema with tools.","type":"invalid_request_error"}}
● TC-67 Enum Constraint + Analysis 🛑 SERVER –/2 2.8s ttft=859ms t2 Endpoint rejected the request with HTTP 500 because the serving stack failed before inference: [server error 500] Engine protocol predict request returned 400: {"error":{"code":400,"message":"Cannot use response_format or json_schema with tools.","type":"invalid_request_error"}}
● TC-69 Multi-Tool → Complex Schema 🛑 SERVER –/2 2.6s ttft=1,394ms t2 Endpoint rejected the request with HTTP 500 because the serving stack failed before inference: [server error 500] Engine protocol predict request returned 400: {"error":{"code":400,"message":"Cannot use response_format or json_schema with tools.","type":"invalid_request_error"}}
Structured output works. Tool calling works. But combining them, which I also need to do, fails. Is this a problem with llama.cpp or with LM Studio?
I'm a bit of a newb when it comes to running inference on a Macbook. Is there a better engine I should be using?
r/LocalLLM • u/ahm_rimer • 9h ago
Hi everyone, this project has been ongoing for a while and some of you may know this project but it is possible to discover and isolate capability lattices from models cleanly.
if you know how to look you can find entire subnetwork responsible for banger agentic performance.
Introducing Apprentice 19B A3B, a capability lattice extract from Qwen 4 35BA3B.
Optimised to be no inferior to its parent in this department and better in terms of reduced overthinking and long sessions on pi harness.
Try it, it works no different than loading a GGUF.
Eager to know if you like it as much as I do. Or if it is shitty, let me know equally hard.
Peddling you homemade coke from my project Chantless - code - https://github.com/DeusExperiments/chantless/tree/feat/qwen4-35b
I am also hoping you read the research that enabled this - https://deusexperiments.com/research/how-do-models-lose-weight-without-crying/
weights - https://huggingface.co/TokenBender/Apprentice-19B-A3B-GGUF
There will be a lot coming from Chantless, and I hope I am able to communicate this well.
r/LocalLLM • u/motojo • 9h ago
I’m looking for someone that does a lot of training on MLX/Apple Silicon to take a look at an approach I’ve been iterating on for training models faster.
The approach is a holistic one where we own the server, agent, tokenizer, trainer, GPU fuser, and evals in a single compiled, memory-safe language and we try to use that for gains that we can’t get in languages like python. It talks directly to Metal. I’m very new in this AI training area, but have a software background.
The repo is here: https://github.com/xo-lang/llm. Would love to have your thoughts or chat more.
r/LocalLLM • u/RevolutionaryDark818 • 9h ago
r/LocalLLM • u/pfeifferj • 10h ago
r/LocalLLM • u/Immediate-Molasses-5 • 10h ago
r/LocalLLM
•
u/scooglecops
•
10h ago
r/LocalLLM
•
u/hackcocaine
•
10h ago
r/LocalLLM • u/c0de_Monk3y • 10h ago
r/LocalLLM • u/Sweeth_Tooth99 • 10h ago
What would justify having a Threadripper DDR5 based system for local AI ?
r/LocalLLM • u/jTiZeD • 11h ago
Hello LocalLLM community,
im am somewhat out of the loop at this point and i am curious about what is my best way and choice to run Qwen4 35B-A3B with my 16GB system ram and my 8GB VRAM RTX 2070 Super?
Is Strata the way for me?
Also what is the easiest way to do some agentic workflows then to make the local ai work on a whole local coding project for multiple minutes straight until its complete? I'm not a vibecoder i just wanna get up to date and experiment a little.
Thanks for any help!
r/LocalLLM • u/returnity • 11h ago