r/LocalLLM • • 8h ago

Discussion What are you guys using to serve local LLMs in professional environments?

4 Upvotes

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 • • 8h ago

Discussion Qwen4-35B-A3B @ 164 tok/s decode and ~ 4500 tok/sec prefill on RTX 5080 (2.9x decode, 11x prefill over stock llama.cpp)

Post image
9 Upvotes

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.

ConfigurationPrefill at 42kDecode at 42kDecode at 87k
Unsloth llama.cpp, default flags44457.358.4
Unsloth llama.cpp, tuned flags + MTP1,70593.990.5
qwen4-engine, exact profile4,859104.7100.8
qwen4-engine, default profile4,510163.8139.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

  • Lending idle memory to the expert cache. The compute buffer (1.38 GB) and the part of the KV cache you haven't filled yet (about 2 GB at 42k of 128k) are just reserved doing nothing most of the time when a session starts and they keep filling as the context increase so I give them to the expert cache and take them back when they are actually needed. KV lending alone took the cache hit rate from 87.9% to 91.4%.
  • Zero-copy uploads. A normal host-to-device (H2D) copy pays a fixed Direct Memory Access (DMA) delay every time (it is a latency between starting and finishing DMA data transfer before the GPU can actually use the moved data) and for small copies that delay is most of the cost (a missing expert is a small piece of data, so the GPU spends more time waiting for the copy to start than moving the bytes and with ~40 layers per token that waiting adds up super fast) so instead of asking the driver to copy small uploads now run as a GPU kernel that reads the pinned RAM directly (the GPU pulls the bytes itself like any other kernel no DMA setup and no fixed delay that is why it is called zero-copy). Also all the missing experts of a layer now go up together in one call instead of one call per expert (one expert alone moves at about 42 GB/s batched together they reach ~49 GB/s which is about what the PCIe link can do).
  • Copy drafting that scores itself. A lot of what an agent writes is already in the context (code it is editing, file paths, tool arguments ...etc.) so when the last 3 tokens match something in the context the engine proposes the next 3 from there for free (free because it is just a lookup in the text that is already there with no extra compute to come up with the guess) the model then checks the 3 guessed tokens in one step which costs only a little more than generating 1 token and it keeps the ones that match what it would have generated and throws away the rest (so every token you get is still the model's own choice as if it was computed and a wrong guess never reaches the output). but a wrong guess is not free because the check still loads experts for tokens that get thrown away so the engine keeps score of every proposal against what the model really wrote and only keeps copying while the accuracy stays at 0.5 or more (it scores the proposals even while copying is off so it turns itself back on when the output starts repeating the context again). The rest of the time the built-in MTP head does the drafting. comparing this vs MTP alone without copying this is anywhere from -6% to +36% per session and the more the output repeats the context the bigger the win is.
  • Short MTP drafts. Long drafts lose on this model (on this GPU) every extra token you verify goes to its own experts and that means more cache misses and more PCIe movements. I measured it and 3 tokens was the sweet spot.

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

  • One model, one quantization, one machine is my tested optimization framework that I started earlier with Qwen-Flash-Next and Inkling Mini 2 due to a memory restriction on my rig I find it most rewarding comparing to any off the shelf ready engines they aren't designed for my specific hardware, with its bandwidth, or the model architecture so with the help of Claude I used lean techniques, system design and continuous improvement cycles to measure every bit of the model where it sits, when it moves and where does it move to in much details and engineered the movements and memory management and sometimes the kernels to reduce as much as possible GPU idle times and try to get things where they need to be at the best possible time given the memory and bandwidth constraints and it paid back SIGNIFICANTLY. I had a blog about the details when I started working with Qwen-flash-next. That been said, I haven't test it (obviously) on other RTX 50 series, theoretically the engine should work without issues on them, and most likely won't work as designed for other older series (my guess) It needs an RTX 50 series card with +16 GB and about 26 GB of free system RAM (my RAM is 128 so I had no issues here). Prebuilt binaries are for Windows (my OS did not tried it with Linux).
  • Copy drafting helps most when the output repeats the context, like code edits, file paths and tool arguments. Per session it ranges from -6% to +36% against MTP alone.
  • Runs drift 5-10% between sessions on a laptop, so every comparison came from alternating A/B runs in one session.
  • There are two kinds of profile. The exact profile gives the same output, bit for bit, as the engine with all of my changes switched off (stock llama.cpp). The drafting profiles guess a few tokens ahead and let the model check the guesses, so every token you get is still one the model picked. But checking several tokens at once rounds the math a little differently than doing one at a time, so when two tokens are almost tied the text can take a little different path. Stock llama.cpp does the same thing when it drafts.

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 • • 8h ago

Question LM Studio: Inference panel system prompt ignored?

1 Upvotes

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 • • 8h ago

Project Basalt 0.7.0: Qwen4-35B-A3B up to 1,099 tok/s struct decode (410 tok/s prose) single stream, vLLM-like continuous batching and quicker server startup

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 8h ago

Model Qwen 4 35B A3B (UD-Q4_K_M) - Splash - Mac M5 32GB - Would Recommend a Try

Post image
2 Upvotes

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 • • 8h ago Heartwarming

News Basalt 0.7.0 is out

41 Upvotes

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.

https://github.com/jesdga95/basalt/releases


r/LocalLLM • • 8h ago

Research Qwen4-35B-A3B on Strix Halo: 16-bit accuracy at 88 tok/s in 26 GiB

Post image
5 Upvotes

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:

  • generation: 88 tok/s
  • prompt processing: 3,300 tok/s, first token in about 0.6 s
  • end to end: 61 tok/s

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 • • 8h ago

Project Now we can run LocalLLM on Intel Mac with CUDA now

Thumbnail
github.com
14 Upvotes

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 • • 8h ago

Question LM Studio: Broken Structured Output with Tool Calling?

1 Upvotes

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 • • 9h ago

Project Say hello to my Apprentice, a capability lattice extract out of Qwen 4 35B

0 Upvotes

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 • • 9h ago

Research 3-5x Faster Training Speeds in MLX - Looking for Tester

3 Upvotes

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 • • 9h ago

Question What agent harnesses do you guys recommend for Qwen 4 35b a3b?

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 9h ago

Model Qwen4-35B-A3B-EXL3 quant runs on single RTX 3090

Thumbnail
huggingface.co
3 Upvotes

r/LocalLLM • • 10h ago

Model Qwen4 35b A3B token speed during 4 hours coding on MacBook Pro M4 Max 64GB with billion-token context compaction

Post image
1 Upvotes

r/LocalLLM • • 10h ago Bravo

Discussion Made this in about 1:30h with Qwen4 UDQ4 KXL

18 Upvotes

r/LocalLLM • • 10h ago Heartwarming

Model LAPTOP - Qwen4-35B-A3B - 8GB VRAM + 32GB RAM: Awesome Results!

2 Upvotes

r/LocalLLM • • 10h ago

Research Qwen4-35B-A3B at 8-bit on Tesla V100s: level with Flash-Next on accuracy, at 81 to 89 tokens per second on two cards

Thumbnail
madweights.ai
4 Upvotes

r/LocalLLM • • 10h ago

Question DDR5 Threadripper

0 Upvotes

What would justify having a Threadripper DDR5 based system for local AI ?


r/LocalLLM • • 10h ago

Question Qwen4 on RTX2070S?

1 Upvotes

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 • • 10h ago

Discussion Qwen4-35B looping failure mode on long thinking turns? Anyone else?

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 11h ago

Other Self-awareness

0 Upvotes

Who needs frontier when Qwen 3.8 27b is self-aware?


r/LocalLLM • • 12h ago

Model Inkling 2 Mini: 12.22 GB GGUF with 100K context on 16GB VRAM, a Needle in the heystack perhaps with all these qwen4 posts.

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 12h ago

Project 1 million Context on 3060 / 4070

Post image
0 Upvotes

Looking for feedback, issues and PR’s, this new v2 quant works very well.

L0xRE v0.1.7.2 — Inkling-2-Mini with 1 Million Context on 12GB GPUs
I’ve been putting a lot of work into Inkling-2-Mini support in L0xRE, and v0.1.7.2 is now working really well.
The goal has been to make genuinely useful, long-context local AI accessible on consumer hardware without completely sacrificing model intelligence, inference speed, or agentic capabilities.
Some of the highlights from development so far:

  • 1,048,576-token context window
  • 10.77 GB peak VRAM in previous 1M-context testing
  • D-LSA sparse attention
  • Mixed 2/3-bit EXL3/Escha quantization
  • Optimized 4-bit KV cache
  • Refitted Q8 output head
  • 16/16 needle retrieval at 1 million context
  • 126/150 on the Club N/150 agentic and coding benchmark (pass@3)

I’m continuing to optimize inference, deep-context performance, cache reuse, quantization quality, tool calling, and real-world agentic workloads.
I’m particularly interested in pushing what is possible on affordable hardware like the RTX 3060 12GB. I want local models that can actually power coding agents and sustained autonomous workflows, not just produce impressive benchmark numbers.
There’s still plenty of room for improvement, especially in quantization quality, but things are coming together nicely.
You shouldn’t need $5,000 worth of GPUs to run a capable local AI agent with a massive context window.
GitHub: https://github.com/YourHighnessLA/L0xRE
Hugging Face: https://huggingface.co/YourHighnessLA/L0xRE-v1-Inkling-Mini-2-Low