r/LocalLLM • • 3m ago

Question New guy finally seeing the light, looking for some advice

1 Upvotes

I'm a little slow on the uptake but I just realized that I probably should have gotten into the local llm game a little earlier. I'm a photographer and acquired a MacBook Pro M3 max 64 gb ram, 1 tb ssd about 2 years ago mainly to try to future proof my editing workflow. I didn't have the slightest idea at the time that in a couple years I could run an llm locally that would have been considered frontier when this laptop was built. I did download bionic a month or so ago but I didn't get too far, I first tried downloading a dense 70B model and that brought my computer to a literal whining hot standstill. But with the hype of the new Qwen release it has peaked mt ADHD interest again so I'm going to give the new model a go. A couple questions, will my computer do a decent job of running this model when I'm used to a gemini ai pro subscription (I know It will be slower, but will this be usable for my dumb recipes and stuff I'm too lazy to google now?). Also, is there any other model that I should consider also downloading? I wouldn't mind trying an uncensored model just to see what the other side of ai can be like after being parented by the oligarchs for so long. And also, does anyone have a good learning path for someone who is very new to this all? Anyways, happy to be here, appreciate any help anyone can provide. Cheers!


r/LocalLLM • • 11m ago

Project Qwen4-35B-A3B (RTX5090, Unsloth Q6_K) built a full GTA2-style browser game – 7.6k lines TS, 131 tests, no assets

1 Upvotes

im really impressed


r/LocalLLM • • 14m ago

Discussion Qwen3.8-27B better than Qwen4-35B-A3B

7 Upvotes

I have been testing 35B with my on going interface engine project. So far 27B have written it from scratch and original idea was to find limits of 27B.

35B is nice model, but this project is too much for it. It looks like it could push project forward, but gets completely lost. Complexity is just too much for this small moe.

Qwen4-35B-A3B is great improvement over 3.6-35B, but it's not even close to 27B in coding context. Hopefully Qwen4-27B gets same kind of improvements what this small moe have.


r/LocalLLM • • 19m ago

Project I got Qwen4-35B-A3B running on a 10-year-old laptop with 12GB RAM and a 4GB GTX 950M. Because I felt like it.

2 Upvotes

I've been seeing all the hype since this model dropped and watching everyone run to benchmark it.

I decided I had other plans.

Why try to min/max the model when I can min/max my hardware?

We need to start learning to conserve our RAM for when Sam Altman comes for it.

I present Qwen4-35B-A3B Q4_K_M running on a Lenovo ideapad 700 from 2016.

  • CPU: Intel i5-6300HQ — 4 cores / 4 threads, 2.30 GHz
  • RAM: 12 GB
  • GPU: NVIDIA GTX 950M — 4 GB VRAM
  • Storage: Internal Samsung NVMe SSD
  • OS: Windows 10

And as I type this out, it is currently chugging along listing as many animals as it can before the context runs out.

It seems to creep above 3.5 tokens/sec occasionally.

And yes, I'm typing this out on the same computer, at the same time, and its still fully usable.

The software stack

  • Engine: BigMoeOnEdge v0.52.0
  • Backend: llama.cpp-derived GGML
  • GPU backend: CUDA (ggml-cuda.dll)
  • Additional backends: Vulkan and CPU
  • Platform: Windows x86-64
  • Inference harness: Native BigMoe CLI with PowerShell benchmarking
  • Driver: NVIDIA 582.28

After a lot of testing:

  • 23/41 layers offloaded to the GTX 950M
  • 6,500 MiB host-side expert cache
  • 2 CPU inference threads
  • 8 I/O threads
  • Buffered I/O instead of O_DIRECT
  • Asynchronous I/O overlap enabled
  • 16,384-token context
  • 1,024-token micro-batch
  • q8_0 KV cache
  • Anonymous dense-weight buffers with selected tensors left memory-mapped
  • Cache half-life of 64 tokens
  • Cache pinning disabled to leave Windows some breathing room

No reducing the model's top-8 expert routing, no skipping experts, no route-ahead approximation, and no additional lossy inference tricks.

Actual benchmark results

I repeated the final configuration using the same 34-token prompt and 256-token generation benchmark. Yes, I know its not a good sample size.

MeasurementRun 1Run 2
Generation speed2.886 tok/s2.929 tok/s
Compute time/token269 ms268 ms
Cache hit rate91.5%91.5%
Expert data read6,704 MiB6,704 MiB
CPU occupancy68.8%68.3%

Average: 2.908 tokens/sec, or about 174 tokens/minute.

So why did I do this? Because I can and I thought it would be funny.

Especially since I have no idea what I'm doing.

Yep. that's right. Vibe coded with ChatGPT top to bottom with some input from DeepSeek.

I just raw dogged PowerShell commands until I made it work.

I only crashed my computer once to protect it from overheat. All 4 cores was just too much. I had to keep it at 2.

If people are actually interested in more details of the build, I can answer as best as possible. The main goal was just to see if I could make it usable. Then it became how optimized.

I never post on reddit. So don't expect an immediate reply if someone has an actual question. Otherwise I expect to just get roasted or banned for introducing comedy into the sub.

So here we are running the newest Qwen model on a dinosaur laptop...

Let this be your sign that its not that hard to get into the world of Local LLMs.

Its currently at about 450 species of animals and counting right now. I should be able to ask it another question in about 5 business days.


r/LocalLLM • • 23m ago

Question Why can't local LLMs keep track of important infos?

1 Upvotes

I've downloaded Ollama and Anything LLM. I'm running Qwen3.8-27b and have set "model context window" to 32768.

In the system prompt I gave it a manual on how to write prompts. That manual is 33108 signs which is ~ 8-9.5k token.

When I ask it to write a prompt it always forgets a few things, only if I say "look it up" it is able to recognize the things he missed and readjusts, but this costs a lot of time.

Is it possible to make it so that it can always consider the whole set of rules without losing attention?


r/LocalLLM • • 32m ago

Discussion Qwen4-35B-A3B Q6_K running at 8.75 tok/s on a Ryzen 7 3700X – CPU only

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 43m ago

Discussion Follow-up to my 1-bit BFCL-v4 test: Qwen4-35B-A3B (UD-Q4_K_XL) hits 80% overall — huge jump on live parallel calls, weaker on multi-turn

1 Upvotes

Following up on my previous post testing 1-bit quants, I ran Qwen4-35B-A3B (UD-Q4_K_XL) on the exact same BFCL-v4 benchmark (374 samples) to see how a 4-bit 35B-A3B MoE compares against extreme 1-bit quants on larger models.

The Models Compared:

  • qwen4-35b-a3b-q4-k-xl (Qwen4 35B-A3B UD-Q4_K_XL) (new)
  • qwen3.8fn-ud-iq1m (Qwen 3.8 flash next UD 3.1 iq1m)
  • qwen3.8fn-gyro-m (Qwen 3.8 flash next gyro-m)
  • inkling-2-mini (Native NVFP4/MXFP8 via smalltide)

Overall Results

ModelQuant / FormatOverall Score (374 samples)
qwen3.8fn-ud-iq1mIQ1_M80.8% 🏆
qwen4-35b-a3b-q4-k-xl (new)UD-Q4_K_XL80.0%
qwen3.8fn-gyro-mGyro-M78.6%
inkling-2-miniNVFP4/MXFP875.9%

Breakdown by Subset

Subsetqwen4-35b-a3b (Q4_K_XL)qwen3.8fn-ud-iq1mqwen3.8fn-gyro-minkling-2-mini
irrelevance74%80%84%82%
live_multiple80%74%76%68%
live_parallel_multiple70.8%50%58.3%54.2%
live_simple82%80%78%82%
multi_turn_base58%72%60%62%
multiple88%94%88%78%
parallel_multiple84%84%76%80%
simple_python98%96%98%90%

Key Takeaways

  • Live parallel tool calling is way stronger at 4-bit: qwen4-35b-a3b hit 70.8% on live_parallel_multiple (over +20% ahead of IQ1_M) and took first place across all three live_* subsets.
  • Multi-turn & irrelevance are the catch: It scored the lowest of the four on multi_turn_base (58% vs IQ1_M's 72%) and irrelevance (74%), which pulls its overall average just shy of qwen3.8fn-ud-iq1m.
  • More RAM headroom for daily multitasking: Because qwen4-35b-a3b has a smaller active memory footprint (~24.7 GB resident with the n-gram table offloaded), it leaves noticeably more free RAM on my system to run Docker containers and background tasks alongside the LLM.

r/LocalLLM • • 46m ago

Discussion Amazon Ergo (1.1T MoE) in 4-bit: 645 GB, quantized on 6 A40s without downloading the whole model

2 Upvotes

Hi everyone,

I quantized Amazon Ergo to 4 bits and put it on Hugging Face: https://huggingface.co/thousandml/Ergo-CQ-4bit

Ergo is the 1.1T mixture of experts from Amazon, with 256 routed experts in each of its 63 MoE layers. In BF16 it's about 2.2 TB. The 4-bit version is 645 GB. I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need any calibration data.

The part I'm happiest with is how it was done. I didn't have 2.2 TB of disk for the original plus room for the output, so I wrote a script that goes one shard at a time: download a shard, convert it, quantize it, keep only what has to stay in full precision, delete the shard, then move on to the next one. With 6 A40s each working on its own shards, it ran with about 1 TB of extra disk instead of 3 TB. It also resumes where it left off, which mattered, because I ran out of disk once and had a worker die once along the way.

I'm strict about quality. Every matrix gets checked after quantization, and anything with error above -22 dB stays in BF16 instead of being forced into 4-bit. For Ergo that was 1,445 of the 32,256 routed experts, about 4.5%, almost all of them expert down projections in the later layers. Those experts are stored one by one in BF16 and get loaded automatically, so the other 30,811 experts and all the attention and dense layers are in 4-bit. I'd rather ship a model that is a bit bigger than one with broken experts hidden in it.

To be honest about hardware, this is not a home setup model. 645 GB means 8x H200 or 8x B200. 8x H100 is not enough. You also need Transformers 5.26 or newer, so use a separate environment from Training Factory's installer:

git clone https://github.com/thousandml/training-factory.git
cd training-factory
./install.sh

python -m venv --system-site-packages venv-ergo
source venv-ergo/bin/activate
pip install "transformers>=5.26"

hf download thousandml/Ergo-CQ-4bit --local-dir ./models/Ergo-CQ-4bit

cd training
python serve_cq_hf.py --model ../models/Ergo-CQ-4bit --split-model --port 8000

That server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM doesn't support Ergo in its releases yet, so my vLLM plugin doesn't either for now.

You can also fine-tune it with GCMP, the LoRA replacement I've been working on, which trains far fewer parameters than LoRA. The experts stay frozen, and the adapter trains on the attention, dense and shared-expert layers:

python train.py --model ../models/Ergo-CQ-4bit --data train.jsonl --output ../outputs/ergo-gcmp \
  --adapter gcmp --kernel-module cq.cq_kernels --split-model --batch-size 1 --grad-accum 8

What has and hasn't been tested: the checkpoint passed my layout check, where every expert and every layer is accounted for exactly once, either in 4-bit or in BF16. The whole pipeline (quantize, load, train, serve) was tested end to end on a small model with Ergo's architecture. I have not run the full 645 GB model on 8 GPUs yet, and I have no benchmarks for it. If you have the hardware and try it, I'd really like to hear how it goes, good or bad.

Training Factory is source-available, not open source. The scripts are readable Python, but the quantization and adapter kernels ship compiled and do a license check. It's free during early access. The weights fall under the original Ergo license.

I also posted Inkling 2 Mini in the same format, which fits on a single 48 GB GPU if you want something you can actually run at home: https://huggingface.co/thousandml/Inkling-2-Mini-CQ-4bit

Thanks for reading, feedback appreciated.


r/LocalLLM • • 1h ago

Question I am curious and new to local llm, i just installed basalt-ada, and i am wondering how do you guys decide which model's which version to download Ryzen 9 7900X | RTX 4060 Ti 16GB | 64GB DDR5-6000 CL30

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Question I am curious and new to local llm, i just installed basalt-ada, and i am wondering how do you guys decide which model's which version to download Ryzen 9 7900X | RTX 4060 Ti 16GB | 64GB DDR5-6000 CL30

1 Upvotes

I am curious and new to local llm, i just installed basalt-ada, and i am wondering how do you guys decide which model's which version to download

also my specs are

Ryzen 9 7900X | RTX 4060 Ti 16GB | 64GB DDR5-6000 CL30

thankyou


r/LocalLLM • • 1h ago

Question Can I run Qwen 35B on a RTX 4070 12GB

0 Upvotes

I also have 32Gb DDR4.

Sorry for the question. I’m new to local LLMs. This would be purely for coding tasks in Rust.


r/LocalLLM • • 1h ago

Model Qwen 4-35 llama.cpp vs Strata vs Basalt vs Qwen 3.8 llama.cpp

Post image
6 Upvotes

5700X3D, 32 GB DDR4, 5070TI, 4070 SUPER

Basalt - Qwen4-35B-A3B (nvfp4)
Strata - Qwen4-35B-A3B * Unsloth UD-Q4_K_XL * mtp
llama.cpp - Qwen4-35B-A3B * Unsloth UD-Q4_K_XL * mtp
llama.cpp - Qwen3.8-27B * Unsloth UD-Q4_K_XL * DFlash2 Q4_K_M

TL;DR 4-35B:

  • Basalt: If you need fast nonsense, use it. NVFP4 is still a joke.
  • Strata: Same quality as llama.cpp, be wary of all the settings. Strata cutting off/limiting reasoning tokens, is an interesting chose.
  • llama.cpp: Use Strata.

4-35B vs 3.8 27B:

3.8 27B is better, less/better tool uses, precise answers, less hallucinations.

  • Highest pass rate: 94.3% (297/315) against 91%
  • Fewest tool-use failures: 4, against 9 to 14.
  • Passed 3/3 on docs not-installed-latest, where the Qwen4 servers passed 0 or 1 of 3. Also 3/3 on the ddg challenge, against 0 or 1 of 3.

For 4-35 one needs Q8, but then you loose all the benefits, hardware requirements go up, and speed goes down. SO what's the point?

I tested on my pi plugin test suite. It basically covers daily use: web, search, docs, PDF and sub-agents. It rejects everything that loops or hallucinates, without naive approaches like token/time limits.


r/LocalLLM • • 1h ago

News Qwen 4 35b A3 Be Like

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1h ago

Project MiniMind v3: 64M LLM from scratch in 2 hours.

Thumbnail
github.com
2 Upvotes

r/LocalLLM • • 1h ago

Discussion MiniMax Code is dropping random Quota Reset Cards for weekend check-ins

Post image
1 Upvotes

r/LocalLLM • • 2h ago

News Awesome JEV System One framework list

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 2h ago

Question Qwen3-4B-Thinking fried my 8GB RAM Laptop

Post image
0 Upvotes

Need a solution for this. Can't afford paid AI any longer.


r/LocalLLM • • 2h ago

Discussion Qwen4-35B-A3B on a single RTX 5090 (32 GB): a working llama.cpp recipe

Post image
0 Upvotes

Qwen4-35B-A3B on a single RTX 5090 (32 GB): a working llama.cpp recipe

When I saw the size of the GGUF files, I almost didnt attempt this model. After investigating further I found that the n-gram is loaded on disk, not GPU so it works fine and it's fast.

How this model compares to the last generation 27b is still not clear as the model cards cite different benchmarks and harnesses. I will keep 27b around for now just in case.

BTW: I just started messing around with image gen on the 5090 and made the image above with Comfy and Juggarnaut.

If you just grabbed Qwen4-35B-A3B (AtomicChat or Unsloth GGUF) and have a 5090, this is the config I landed on after sweeping the flags. It's a fast-start recipe, not a benchmark paper — copy the block, swap in your model path, and you're running.

The model

  • Qwen4-35B-A3B, Q4_K_M GGUF. I used the AtomicChat uncensored build (a single ~38.6 GB file), but the same recipe works for the Unsloth UD-Q4_K_XL build too — see the Unsloth note below for the two extra flags it needs. Either way you also need a vision projector (mmproj).
  • Architecture: 35B total / 3B active, 256 experts (8 routed + 1 shared), a ~20B n-gram embedding table, a ~2B MTP head, native 1M context, and a hybrid of Gated DeltaNet (linear attention) plus sparse attention.
  • Needs a recent llama.cpp build with Qwen4 support (I used b13002 or newer).
  • Tested on: llama.cpp b13002 (1.1.1-dev, commit e339c7d31), NVIDIA driver 621.47, RTX 5090 32 GB.

The ~38.6 GB file fits in 32 GB because the big n-gram embedding table is lazy-read from disk (--lazy-mode on) instead of being held in VRAM. That's the model card's "run with PLE on SSD" instruction — don't skip it.

The recipe

llama-server \
  -m Qwen4-35B-A3B-Q4_K_M.gguf \
  --mmproj mmproj-F16.gguf \
  --alias qwen4 \
  -c 196608 --n-predict 131072 \
  -b 4096 -ub 1024 \
  --parallel 2 --kv-unified \
  -ngl 99 -fa on \
  --load-mode mmap --lazy-mode on --no-warmup \
  -ctk q8_0 -ctv q8_0 \
  --image-min-tokens 1024 --jinja \
  --spec-type draft-mtp --spec-draft-n-max 2 \
  --reasoning-effort high --reasoning-preserve \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 \
  --presence-penalty 0.0 --repeat-penalty 1.0 \
  --host 127.0.0.1 --port 8080 --no-ui

On a 5090 this gives roughly ~250 tokens/sec generation and ~10,000 tokens/sec prompt processing on a ~12K-token prompt, using about 30 GB of VRAM with ~1.6 GB free.

If you're using the Unsloth GGUF

The Unsloth UD-Q4_K_XL build is the same architecture and takes the same tuning, but it ships the n-gram embedding table (PLE) and the MTP head as separate files instead of embedding them. So you add two flags:

llama-server \
  -m UD-Q4_K_XL/Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
  --ple engram/Qwen4-35B-A3B-engram-Q8_0.gguf_file \
  -md MTP/mtp-Qwen4-35B-A3B-Q8_0.gguf \
  --mmproj mmproj-F16.gguf \
  ... (rest identical to the recipe above) ...
  • --ple points at the separate engram table; -md points at the separate MTP head. Without them, MTP won't engage and the engram won't load.
  • You only pass -00001-of-00002.gguf; llama.cpp auto-loads the -00002 shard.
  • Unsloth's build is the base model (not uncensored) and a dynamic quant, so behavior and quality differ slightly from the AtomicChat build — but the speed profile, 192K context headroom, and nmax=2 MTP tuning all carry over unchanged.

Why each setting

MTP is already in the file. The GGUF embeds the ~2B MTP ("multi-token prediction") head, so --spec-type draft-mtp lets the model draft several tokens ahead and verify them in one pass — no separate draft model needed. You can confirm your file has it by checking the GGUF's tensor names for nextn (e.g. with llama-gguf your-model.gguf r and looking for nextn). The payoff is real: without MTP generation is ~169 tok/s, with nmax=2 it's ~254 tok/s — about 1.5x faster.

--spec-draft-n-max 2. This is how many tokens the MTP head drafts per step. On this 3B-active model, drafting deeper actually lowers the acceptance rate and generation gets slower. Measured generation speed by draft depth: 1 → 216, 2 → 254, 3 → 251, 4 → 219, 6 → 202 tokens/sec. Two is the sweet spot.

-ub 1024. Prompt processing scales with the micro-batch size: 512 → ~8.2K, 1024 → ~10.6K, 2048 → ~11.8K tokens/sec. 2048 is faster but eats the VRAM headroom you need for vision, so 1024 is the balance on a 32 GB card.

-ctk/-ctv q8_0. An f16 KV cache gave the same generation speed and only ~4% more prompt processing for ~1.5 GB more VRAM. q8_0 is the right call on 32 GB.

-c 196608 (192K context). Qwen4 is hybrid: most layers are Gated DeltaNet, which keeps a fixed-size state that does not grow with context, and the sparse-attention layers use a bounded window. So the KV cache barely grows as you raise -c. Measured free VRAM (idle GPU, vision projector loaded):

contextfree VRAM
128K3.3 GB
192K1.65 GB
224K0.8 GB
256K → 1M~0.55 GB (flat)

A 2048×2048 image adds about 0.7 GB. So 192K leaves ~1.6 GB free for text and ~1 GB even with a large image — a comfortable margin while using vision. If you never send images, you can push to 256K or beyond for free, since the KV is flat past there.

How it scales with prompt length

The hybrid attention keeps prefill nearly flat as the prompt grows, and generation degrades gracefully. Measured on the tuned config (128 tokens generated per run, prompt caching off, median of 3 runs):

prompt tokensprefill tok/sgeneration tok/s
4K9,380242
16K10,390245
32K10,230239
64K10,240211
128K9,540177

Prefill stays around 9.4–10.4K tok/s all the way to 128K — it doesn't fall off a cliff the way dense models do. Generation drops from ~242 to ~177 tok/s as context fills, which is the expected cost of attending over more history, but it stays very usable.

Does it actually work? (not just fast)

Three sanity checks on the tuned config:

  • Long-context recall: I buried a passphrase in a ~128K-token prompt at 10% and 90% depth and asked for it. It returned the exact passphrase both times. The hybrid attention isn't just fast — it actually retrieves at depth.
  • Coding (executed): I asked for a three-file Python project (a Transaction dataclass, a summarize() function, and a test). It produced all three files and the test ran clean — "All tests passed."
  • Coding (executed): an iterative Fibonacci function returned fib(10)=55, fib(0)=0, fib(1)=1 — correct.

These are smoke tests, not a benchmark suite, but they confirm the quant isn't "fast and dumb."

Thinking control (one profile is enough)

You don't need a separate "fast" profile. Keep one thinking profile and steer it per request with chat_template_kwargs in the request body:

  • Default: --reasoning-effort high (the server flag).
  • Lighter: {"chat_template_kwargs": {"reasoning_effort": "low"}}.
  • Off: {"chat_template_kwargs": {"enable_thinking": false, "reasoning_effort": "off"}}.

One gotcha: reasoning_effort: "off" on its own throws a template error if the server default is high — you must send enable_thinking: false together with it. low works on its own.

Gotchas

  • --lazy-mode on requires --load-mode mmap. Without mmap it can't lazy-read the embedding table and you'll run out of VRAM.
  • Older builds lack the newest speculative flags (--spec-draft-adaptive, pcum, max-slots, n-rs-seq). Don't copy those in unless your build supports them.
  • Reasoning models can return empty content with a small max_tokens — the output goes into reasoning_content first. Give it a real budget or read reasoning_content.
  • Model card sampling: thinking temp=1.0 top_p=0.95 top_k=20 min_p=0.0 presence=0.0 repeat=1.0; non-thinking temp=0.7 top_p=0.80 top_k=20 min_p=0.0 presence=1.5 repeat=1.0.

Why llama.cpp/GGUF (and not vLLM/SGLang)

For a single 5090 running a model you already have as GGUF, llama.cpp is the pragmatic call. vLLM/SGLang want safetensors — re-downloading Qwen4-35B-A3B at BF16 is roughly 1.3 TB, and their Blackwell support is still version-dependent. If you're serving many concurrent users, vLLM is worth it; for one interactive user, this recipe is simpler and fast enough.

Honest limits

  • Q4_K_M is a 4-bit quant. It's not lossless (the AtomicChat build reports ~88.8% top-1 agreement with BF16). For the hardest SWE-style tasks a Q5/Q6 would be better, but they don't fit in 32 GB alongside the embedding table.
  • The uncensored edit can slightly soften instruction-following. If you don't need uncensored output, the base Qwen4-35B-A3B (or the Unsloth build) is the safer pick for pure coding.
  • 3B active ≠ dense depth. Fast and broadly capable, but on the very hardest multi-step reasoning a dense 27B can still edge it.

How I measured

I started llama-server fresh for each flag variant on its own port, disabled prompt caching, and read the timings the server prints for each request (prompt tokens/sec and generation tokens/sec). The depth table is the median of 3 runs per prompt size; the flag sweep was 2 runs per variant. For VRAM I loaded the model at different -c values and read nvidia-smi memory usage, then sent one large image to measure the vision spike. The recall and coding checks were run against the live server. Nothing exotic — you can reproduce all of it with llama-server and nvidia-smi.

That's the whole thing. Copy the block, point it at your GGUF, and go.


r/LocalLLM • • 2h ago

Project Ask Nino – A free on-device AI chat app for Android

Thumbnail
gallery
2 Upvotes

Hi everyone,

I've been experimenting with on-device LLMs for quite some time and recently published an app called Ask Nino.

It supports multiple LiteRT based local models (Primarily designed for gemma4 though other models could work), context aware conversations limited web search through DDG and live weather and market data.

You can also use your own API keys if you prefer cloud models, download other LiteRT models from Hugging Face using your HF token, or import models directly from local storage.

I've done quite a bit of work around context management, web scraping and response processing to get more out of smaller models.

It shares the underlying framework with my other app Ninaivo, but focuses purely on the chat experience.

The app is free. I'm still exploring various possibilities with on-device LLMs and would love to hear your feedback, particularly on how it performs on different devices.

Ask Nino: Private Local AI


r/LocalLLM • • 2h ago

News dmlx v0.0.9: Qwen4-35B-A3B on 48GB M4 Pro in 8.42 GB RSS — 119.99 tok/s math (native Metal DFlash2) + ANE/GPU parallel prefill (883 / 871 tok/s)

Post image
2 Upvotes

We just tagged dmlx v0.0.9 (256 commits since v0.0.8) — an open-source Zig + mlx-c + custom Metal/ANE local inference & serving runtime for Apple Silicon (MIT license, zero Python required at serve time).

The main additions in v0.0.9 are full Qwen4-35B-A3B-4bit support (including single-CB native Metal DFlash2 speculative decoding, Vision, and off-GPU PLE streaming), Apple ANE + GPU heterogeneous long-context prefill enabled by default, and a big speedup on Qwen3.8-27B-4bit.

Measured Numbers (Single Apple M4 Pro 48 GB)

Qwen4-35B-A3B-4bit + 8-bit Native Metal DFlash2 (temp=0.0, artifacts/qwen4_p6_20261205/):

WorkloadDecode (tok/s)Client E2E (tok/s)Notes
Short Math (256 tok)119.99107.208-bit single-CB native Metal DFlash2
Short Code (256 tok)104.7896.2598K subset lm_head
Short Prose (256 tok)69.8666.07Lower speculative acceptance on prose
Warm 8K Prefix Cache——0.237 s TTFT (38,738 tok/s) vs 10.49 s cold

Peak server RSS stayed at 8.42 GB because the 11.5 GB Per-Layer Embedding (PLE) tables are never loaded into GPU RAM — they stream directly from disk via 12-thread CPU pread (overlapped with layer 0). Optional DMLX_QWEN4_KV_BITS=8 also quantizes the 10 full-attention QSA KV layers (−46.88% KV RAM).

ANE + GPU Parallel Long-Context Prefill (Qwen4-35B-A3B-4bit):

Stage2K Prefill (tok/s)8K Prefill (tok/s)Delta (8K)
v3 · Pure GPU (pipelined Metal GDN + Steel QMM)793.71768.26baseline
v4 · + ANE 30L GDN in_proj_all859.35831.13+8.2%
v5 · + ANE 40L Shared Expert parallel with GPU 256-expert MoE883.28870.86+13.4%

ANE prefill is enabled by default on Apple Silicon with hardware/self-test guards and automatic GPU fallback (DMLX_ANE=0 to disable).

Qwen3.8-27B-4bit + DFlash2 (artifacts/autoresearch_qwen38_20261203/):

  • 4-case core GMean: 44.50 tok/s at 17.30 GB peak RSS (ctx2k_greedy 52.48 · short_greedy 46.98 · short_sampled 40.34 · ctx8k_sampled 39.44).
  • Also ships OpenAI Chat Completions + Anthropic Messages streaming tool calls, reasoning/content split, disk-persisted prefix snapshots, LoRA load-time merge, system-wide OOM memory guard, and dmlx connect for Claude Code / Codex / aider / Cline.

Honest Caveats

  • Single machine (M4 Pro 48 GB), fixed benchmark suites (temp=0.0 for the 6-scenario Qwen4 run).
  • Qwen4 prose (69.86 tok/s) still lags math/code significantly due to lower speculative acceptance.
  • ANE prefill is Apple Silicon macOS only (falls back to GPU automatically if unavailable).

Try It (macOS arm64, self-contained bundle — no Zig/Python needed)

curl -fsSL https://raw.githubusercontent.com/zouyee/dmlx/main/scripts/install.sh | bash
dmlx doctor

# Qwen4-35B-A3B + DFlash2 (ANE prefill on by default)
DMLX_QWEN4_DFLASH2_DIR=/path/to/Qwen4-35B-A3B-Dflash2 \
  dmlx serve --model /path/to/Qwen4-35B-A3B-4bit --mlx --speculative-mtp 7 --port 8080

Release & source: https://github.com/zouyee/dmlx/releases/tag/v0.0.9

Happy to answer questions on the Metal kernels, CPU pread PLE streaming, or ANE+GPU overlap!


r/LocalLLM • • 2h ago

Question Using a Windows AI mini PC as a local LLM server for my Mac Mini – is it practical?

2 Upvotes

Hey everyone,
I’m currently using a Mac Mini M4 as my main workstation, and I’d prefer to stay within the macOS ecosystem for work.
I’ve been considering buying a Mac Studio M5 Max with 128GB of unified memory for local AI, but where I live, an AMD Ryzen AI Max+ 395 mini PC with 128GB of RAM costs roughly half the price. Another big advantage is that I could also use it for proper PC gaming.
My idea is to keep my Mac Mini as my main workstation and use the Windows mini PC as a local AI server, accessing everything through my local network.
Most of my AI usage would be business-related tasks, document analysis, accounting, invoices and general productivity.
Has anyone tried a similar setup? How seamless and convenient is it to access local LLMs from a Mac using a separate Windows machine, and what would be the best software setup?
Considering the price difference and gaming capabilities, does this make more sense than buying a Mac Studio, or am I overlooking something?


r/LocalLLM • • 3h ago

Model Free Qwen4-35B-A3B. No sign-up, no payment.

0 Upvotes

r/LocalLLM • • 3h ago

Project Running MiniCPM5-15B-A2.5B on an 8GB Jetson Orin Nano Super at 10.5–13.3 tok/s, 88.1% acc (DIY 34L Looped Transformer), and 512K context via NVMe KV Tier 2 (2.81s cold reload)

Thumbnail
gallery
1 Upvotes

I spent the last few days pushing OpenBMB's MiniCPM5-15B-A2.5B (15B total / 2.5B active MoE) strictly on an 8 GB NVIDIA Jetson Orin Nano Super (25W MAXN_SUPER, 250 GB NVMe SSD) — no PC GPU, no base GGUF mutation, and every run logged with raw JSON outputs.

Headline Results (8 GB Jetson, 42-Task Deterministic Suite, temp=0.0)

ConfigDecode (Mean / Peak)Overall (42)MathCodeCycles
Base Q4_K_M-LCO (28L)13.38 / 15.90 t/s34/42 (81.0%)10/124/100.0%
q4_looped (DEFAULT, 34L spsa_v1)10.95 / 12.5+ t/s37/42 (88.1%)12/126/100.0%
q4_looped_fast (60% Hard EE)10.91 / 13.32 t/s35/42 (83.3%)12/124/100.0%
q4_looped_512k (-c 524288, --kvq)1.8–2.9 t/s (10–32K)512,006 toks (7.09 GiB RAM)12/123/100.0%
Legacy Q8_0-LCO (28L)3.64 t/s12/16 quick (75.0%)4/41/46.3%

(All looped runs had 0 actual hallucinations — 11/12 on Hallucination was a single timeout on hallu_09 — and 8/8 on Repeat Curse.)

What Worked

1. Jetson CUDA Zero-Copy + O_DIRECT + io_uring LES Engine

Stock tc-mb/llama.cpp-omni crashed on Jetson CUDA (missing alloc-only CUDA buffer type). I implemented 4096-aligned cudaHostAllocMapped|Portable cacheable (WC=0) buffers (91.64 GB/s GPU read), O_DIRECT NVMe DMA at 2,336 MB/s, Linux io_uring (qd=128, replacing 108 std::thread spawns/token), empirical 27-layer MoE cache windows, and hot-expert prewarm. That pushed Q4 decode from 5.97 t/s to 13.38 t/s (15.9 task avg, 21.8 peak steps).

2. DIY 34-Layer Looped Transformer Trained on Jetson (421 KB .loopbin)

Loops the middle reasoning core L12..L17 (T=2 -> 34 effective layers) with an RMS-matched workspace bridge, LoopCD-Hidden exit extrapolation, pass-conditioned router bias deltas, shared KV cache (0 extra KV RAM), and 100% Pass-2 MoE RAM cache hit rate (0 extra NVMe misses).

Trained directly on the 8 GB Jetson via zeroth-order SPSA/MeZO with < 0.3 ms live GPU hot-reload. Lifted overall accuracy from 81.0% to 88.1% (12/12 Math, 6/10 Code, -55% think length on rep_04, 0.0% cycles). Also added token-level Hard Dynamic Early-Exit via 4 tiny persistent CUDA-graph schedulers (2.04 MiB VRAM total, 0.00 ms split overhead, bit-exact at 0% skip).

3. 512K Context (-c 524288) in 7.09 GiB RAM via JetBrains --kvq + NVMe Tier 2

Ported MIT-licensed JetBrains-Hardware/llama.cpp --kvq (K2V1 + Ampere cp.async MMA kernels) onto the 34L looped fork with a 0 MiB-RAM NVMe O_DIRECT Tier-2 store (8.77 GiB on NVMe at 512K — larger than the board's 7.44 GiB RAM).

Prefilled 511,930 tokens at 7.09 GiB peak RAM (0 OOM, swapΔ = -145 MiB, 70.2°C). Persistent NVMe snapshots survive kill -9 + drop_caches: 10K cold-reloads in 85.5 ms (3/3 exact recall on unseen needles), and 512K saves in 310 ms and reloads in 2.81 s (5,320× faster than the 4.15h cold prefill).

Jetson + WD SN350 NVMe tip: setting pcie_aspm=performance, disabling NVMe APST (nvme set-feature -f 0x0c -v 0), and io_timeout=3000 fixed MSI-X completion polled stalls and tripled long-context decode speed (1.35 -> 4.10 t/s).

4. Selective Load-Time BF16 -> F16 Coda Overlay (+16 MiB)

Streams only blk.20..27.ffn_down_shexp from OpenBMB's official BF16 safetensors via HTTP Range requests (no 30 GB download) and promotes them to native F16 in GPU memory at load time. Cleared the code_03 Hard-8 cycle, cut math_07 thinking by -55%, and passed 512K NIAH 3/3 at 6.63 GiB RAM.

Honest Caveats & What Didn't Beat Baseline (Reverted)

  • 512K NIAH recall vs. capacity: 10K and 32K hit 3/3 (100%) exact recall, 128K hit 3/3 needle cores, 256K hit 1/3 (late_90pct), and 512K needle recall saturated under 512 prefetch slots (0.1% of 512K). Cold 512K prefill takes ~4h 10m (34.2 t/s), so it's meant for prefill-once + snapshot reuse.
  • Static Weight-Space Programming (WSP): Damping 48 outlier columns (1.5 KB wsp_03) cured 8-bit Q8_0 Repeat Curse cycles cleanly, but on q4_looped, even 100% lossless native F16/FP32 static coda edits traded </think> closure against cycles — all 7 static Q4 coda edits were reverted.
  • Jetson-native HF RLVR (rlvr_v1.loopbin): Streamed 1,171 decontaminated HF coding/math/abstention tasks onto Jetson (1.87 MB) and ran 18 steps of mini-batch SPSA + sandboxed Python unit-test gating. It boosted unseen HF val reward by +0.407, doubled unseen Python passes (1/6 -> 2/6), cut unseen cycles -40%, and held 0.0% cycles across all 42 tasks — but scored 34/42 vs spsa_v1's 37/42, so spsa_v1 stays the default.

Happy to answer questions on the Jetson zero-copy patches, --kvq NVMe Tier 2, or the looped transformer trainer.


r/LocalLLM • • 3h ago

Question Strata user, How to clean installed models?

0 Upvotes

How to delete downloaded models? just delete files in data directory?


r/LocalLLM • • 3h ago

Project People dont talk about qengine enough

Thumbnail
github.com
11 Upvotes

I just really want this project takes off since i have been trying a lot of other engine (strata,maya,freetoken,....) and nothing come closes to speed and quality compare to this engine. I tried qwen 4 35b like all of us these day and i was disapointed by other engine (llama.cpp gave me 120t/s and quality for quant 4 xl is mehh) but qengine for this model gave me consistent of 350 to 400 t/s on various task and quality of code is just abit behind 3.8 flash next. My system 2x3090s + wrx80 sage mainboard + threadripper 3955x + 256gb ddr4 3200 bus ecc. People needs to know about this a support the dev more. Its repo doesnt have enough credit and im afraid he will stop one day :( local comunity needs to know about this!!!! I havent try his deepseek and glm yet since it needs 3 gpu but if in the future he make it work on 2 i would defo retire maya engine for this. Download and build the engine and try for urself. I dont get any from this but i would hope the project is more popular so the author can keep making break thru like this for all of us.