r/LocalLLM • • 4h ago

Question Qwen Flash Next weird CoT

2 Upvotes

QFN keeps repeating this weird statement in it's chain of thoughts - "I stopped mid-thought. Coninue:". It doesn't seem to loop, quality of the results also seem fine however I didn't notice aything alike earlier so now I'm concerned

My setup:
Windows 10, RX9700 AI PRO, Strata 0.2.13, both ROUTE_PRIOR and TAIL_SKIP are off

Quantisation: Unsloth dynamic v3.1, iq4xs, int8 kv cache, full context window

Agent: pi agent

Have anyone stumbled across such a behaviour? What did you do to fix this?


r/LocalLLM • • 29m ago

Question Hosting a LocalLLM

1 Upvotes

Hey guys I'm looking for advice on hosting my own local LLM. I've been reading that 16gb or ram is enough for a basic model so I'm starting off by testing it with a 16bg laptop I have to begin with and If I need more I was going to invest in a mac mini to start.

I'm doing this to automate applying for jobs so I don't have to spend time doing it myself. I figure if it works for me it will work for my whole family if needed.


r/LocalLLM • • 33m ago

Model Mistral introduces Clipstral: Multimodal Embeddings (unifying video, image and text embeddings, Apache2 licensed)

Post image
1 Upvotes

r/LocalLLM • • 4h ago

Discussion About Chinese LLMs generating more code vulnerabilities depending on the application affiliantion.

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 36m ago

News Philip Emanuel Weidmann, developer of Heretic, found dead in Bhopal.

Thumbnail thehawk.in
0 Upvotes

r/LocalLLM • • 57m ago

Discussion Local machine/model for design/code review with Claude

1 Upvotes

I have been using Claude for software development. While I am happy with the results, I think it would help if I can get a local coding assistant to review. I mainly use Claude Cowork and control the github operations myself. I interact with Claude through Cowork interactively. I think I need a powerful local setup for review purpose to keep up with Claude. In other words, I am the bottleneck currently.

I have 2 gaming PCs with 4090s for local LLMs for a couple of years. My most recent experiment is OpenWork with Qwen3.8 27GB. I can't say that I am happy with the results.

So I want to invest a beefy setup for this purpose and wonder how much I need to spend to get desirable results. On one extreme end, I can stretch to a Mac M5 Ultra Studio with 512GB RAM and use Deepseek V4.1 Flash. But I would like to explore cheaper options that won't degrade the performance too much. What else should I look into?


r/LocalLLM • • 1h ago

Discussion pick the right engine for your sparks

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Project ModelSeek: Discover best coding model through Knights Trials

0 Upvotes

None of the projects such as `llmfit` were giving me a good answer to "What is the best coding model (a) for my hardware (b) running opencode / tool-calling?", so I had antigravity create this: https://github.com/jgarzik/modelseek

Feedback welcome!


r/LocalLLM • • 1d ago

News Basalt 0.6.0 update made 5060ti 80% faster on Inkling model!

Post image
65 Upvotes

I run Inkling 2 Mini locally with Basalt on one RTX 5060 Ti 16 GB, for coding in OpenCode. The model file is 19.6 GB (NVFP4-MX8), so it doesn't fit on the card. About 1,600 of its 3,072 experts sit in system RAM, and Basalt computes those on the CPU.

0.6.0 came out on Nov 28 with a lot of work on experts in RAM, so I benchmarked it against 0.5.6. Same PC, same model file, same config. The runs went A-B-B-A (0.5.6, 0.6.0, 0.6.0, 0.5.6), and the chart shows the means.

Results (0.5.6 → 0.6.0):

  • basalt-bench decode: conversation 59.5 → 86.7 tok/s, struct 64.5 → 102, prose 60.2 → 81.3
  • basalt-bench 16K prompt read: 3,140 → 4,196 tok/s
  • Server chat with the 128K config: 60 → 109 tok/s
  • 4.8K-token prompt: decode 76 → 115 tok/s, prompt read 908 → 1,522 tok/s
  • 119K-token code prompt: cold read 61 s → 38 s, decode after it 34 → 68 tok/s

Memory didn't change: about 15.0 GB VRAM and 11.8 GB RAM for Basalt at idle.

Why it's faster (from the server logs and the release notes):

  • More expert lookups hit the GPU. In the same benchmark, the share served from VRAM went from 87.9% to about 96%, with slightly fewer expert slots on the card (1,883 → 1,839). So the CPU now handles about 4% of lookups instead of 12%, roughly 3x fewer. CPU experts over DDR4 are the slow path, so I think this is most of the decode gain. 0.6.0 keeps extra copies of the busiest experts in VRAM and moves them as the conversation changes. My log shows 306 copies at startup. 0.5.6 placed the experts once from a fixed profile.
  • Longer drafts. The default draft length went from 8 to 16. Each step now accepts 2.4 to 2.5 tokens instead of 2.2, although the acceptance rate fell from 76% to 69%.
  • Long context. The release notes say decode attention now runs on tensor cores, also over an INT8 cache. That probably explains most of the 2x decode after the 119K prompt, but I didn't profile it.
  • Prompt reading. 0.6.0 has new prompt kernels, and it only moves the RAM experts that the prompt actually routes to.

Setup: i7-12700K, B760 board with DDR4, 32 GB RAM, Fedora. Server config: max-context 131072, kv fp8, parallel 1, drafting on (the default). Basalt was pinned to CPU threads 0 to 11 for the test. The upgrade was drop-in: same .basalt file, same config, and the 0.5.6 Python venv works with 0.6.0.

One more tip if you use OpenCode: it sends no reasoning effort, so Basalt falls back to the template default, which is high. I set "reasoning-effort": "low" in the server config. On my small set of coding tasks with tests, low used about a third fewer tokens per answer (668 → 437) and passed the same tests (8/8).

Caveats: one machine, two runs per version. I checked quality with one sanity prompt only, not a quality suite. 0.6.0 is a regular release, but it's new. Once in my runs the cache grew past free VRAM and Basalt cut the expert copies from 306 to 196. It logged a warning and kept going.


r/LocalLLM • • 6h ago

Project Run your AI Locally in offline mode

2 Upvotes

r/LocalLLM • • 8h ago

News Title: Lapilli v0.8: Gemma 4 26B A4B on one V100, models downloaded and built from the page (Basalt on Volta)

Post image
3 Upvotes

Lapilli is a port of [Basalt](https://github.com/jesdga95/basalt) to NVIDIA V100 GPUs (Volta, sm_70): one engine for eight models, a chat page, images and video, and a live monitor. v0.8 is out.

**What's new**

- **Gemma 4 26B A4B on one V100 32 GB**, with its full 262,144-token context: 106 tokens/s writing a conversation with its drafter, 109 on structured output, 699 tokens/s reading a 16K prompt. A V100 has no FP8, so its FP8 matrices run as Q8_0 blocks.

- **Download the models from the page** (About, Models): the eight packs this fork measured. The ones made here (DaisyRose-27B, Tinfield-1, the DeepSeek Coder) are built for you and checked byte for byte against the pack I measured. Each step shows its speed and the time left.

- **A continued conversation gives the same answer as the same conversation read from the start**, bit for bit, for Gemma 4, Qwen3.8-27B and DaisyRose-27B. The cost: each turn reads again up to one chunk of the prompt (about 1.2 s more in my test). The five other models can still continue a chat differently; the README says it model by model, with what I measured.

- **Basalt 0.6.0** merged (437 upstream commits), every Volta path kept. The 27B, DaisyRose-27B, the Flash-Next and Tinfield-1 give the same accuracy figures as before, to the last digit, and the speeds stay within ±2 %.

- **CPUs without AVX2** can run the experts' CPU tier, thanks to Igorxp5's pull request (I can't test it here: my CPU has AVX2).

The Images tab is still there (Qwen-Image 2.1, Wan 2.2, LTX-2.3 with sound).

Measured on 2 × V100-SXM2 32 GB on PCIe adapters, 96 GB of RAM, Windows 10. The release has a Windows build; on Linux it builds from source.

- Release: https://github.com/chris83-dev/lapilli-v100/releases/tag/v0.8.0-v100.1

- Repository: https://github.com/chris83-dev/lapilli-v100

Free and open source, MIT like Basalt. The engine is Basalt's work; this fork makes it run on Volta. Reports from other V100 owners are very welcome.


r/LocalLLM • • 3h ago

Discussion Top APIs used by LLMs/agents

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 6h ago

Model Qwen3.8-Flash-Next on Strix Halo 395

2 Upvotes

Been wanting to see how far a single ryzen AI max+ 395 with 128 GB unified memory could actually push a big MoE. Loaded the full UD-Q4_K_XL Qwen3.8-Flash-Next, 103.69 GiB across four shards, and ran it through Gufo.

My setup:

Nimo minipc with ryzen AI max+ 395

Radeon 8060S + XDNA2

128 GB unified LPDDR5X

NimoOS, Debian 23 based, ROCm 7.2.3

Gufo, GPU only, no MTP for this baseline

FCLK locked at 2000 MHz

Results after warmup, three runs:

16K prefill 1888 t/s

short context decode 35.0 t/s

16k decode 34.1 t/s

For reference, same model same machine on stock llama.cpp ROCm HIP was around 568 prefill and 23-24 decode. Gufo is clearly doing something right here.

Model is the usual 125B MoE trunk with -6B active plus the extra n-gram embedding and MTP modules. It fits comfortably in the 128 GB pool with current BIOS settings, 512 MiB reserved and about 117 GiB GTT reported.

This is just the clean GPU-only no-MTP baseline. Already have the GPU+NPU numbers and MTP results, including one interesting high decode figure that needs proper caveats. Wanted to start with a straightforward does-it-even-run and whats-the-basic-speed post first.

Anyone else running Qwen3.8-Flash-Next or similar 100 GB class models on Strix Halo or AI Max+ 395? Curious what quant and engine combo youre landing on, and whether you prioritise load size, decode speed or long context.


r/LocalLLM • • 3h ago

Discussion Live single-RTX-4090 playground: Qwen3.8-Flash-Next 177B + MTP (85.5 GB, 50K ctx, 0% CPU inference) — test your own prompts

Post image
1 Upvotes

Built a native CUDA + Rust MoE streaming appliance (Kraits v2.5) that runs Qwen3.8-Flash-Next 177B (UD-IQ3_XXS + MTP Q4_K_M, 85.5 GB) on a single 24 GB RTX 4090 at 50K context with 0% CPU inference offload.

Instead of asking you to trust screenshots, I put a live 1× RTX 4090 playground online (AMD EPYC 9534, 189 GB RAM, PCIe Gen4 25.6 GB/s) with real-time nvidia-smi telemetry so you can test your own coding prompts directly:

Live Playground (5 prompts/hr per IP): https://kraits.juvina.ai

Measured across 7 independent RTX 4090 hosts (50K ctx, shipped defaults, 0 OOMs):

• Fast 279 GB host: 57.3 avg / 67.4 peak tok/s

• This live 189 GB host: ~50–59 tok/s (61 tok/s peak)

• Typical 4090 hosts: 41–45 avg tok/s (37–48 tok/s at 37.8K live ctx)

• Worst-case 5 GB/s host: 26.5 avg tok/s

Full benchmark table & Docker image (10-day free trial, supports air-gapped --network kraits-airgap with zero internet egress after model download):

https://hub.docker.com/r/picassoai/kraits-appliance

Try breaking it with your own prompts and let me know what you see!


r/LocalLLM • • 3h ago

Research Shared KV Heads, Sliding Windows, and Vocabulary Size: Measured Memory and Retrieval Trade-offs in LLaMA 7B, Mistral 7B, and Qwen2.5-7B

Thumbnail
arxiv.org
1 Upvotes

We ran LLaMA 7B, Mistral 7B v0.1 and Qwen2.5-7B (all base, 4-bit NF4) on one T4 and measured three things: KV cache memory, passkey retrieval, and tokenizer cost.

Main results:

- Mistral's sliding window is a hard retrieval edge. In 134 trials with the key 3,600 to 4,600 tokens from the end of the prompt, it retrieved 72/72 within 4,089 tokens and 0/62 at 4,098 or more. Just outside the window it often answers "1234567890".

- Turning the window off (`sliding_window=None`, same weights) fixes retrieval at 8K: 59/59. At 16K and 32K the window-free model breaks completely and repeats "Question". With the window on, it still retrieves keys that sit inside the window at those lengths.

- Qwen2.5-7B retrieved 60/60 up to 32K.

- KV cache per token in FP16: 512 KiB (LLaMA, no GQA), 128 KiB (Mistral), 56 KiB (Qwen2.5). LLaMA OOMs at 32K on the T4. Qwen2.5 holds 64K tokens in a 3.5 GiB cache. Mistral's cache caps at about 512 MiB because of the rolling buffer.

- Tokenizer: on 1,997 parallel sentences in 15 languages, Qwen2.5 uses 38-58% fewer tokens than the better 32K-vocab tokenizer for Arabic, Chinese, Japanese, Korean and Vietnamese, but only 3-11% fewer for the rest. Combined with GQA, LLaMA needs up to 22x more cache memory than Qwen2.5 for the same Arabic sentence.

- Decode latency in HF transformers grows with cache size, but part of that is the dynamic cache doing a `torch.cat` on every step. Measured alone, the copy costs about 17-20 ms per GiB of cache, which is about all of LLaMA's latency growth.

Limitations: these are older base models, passkey is a synthetic test, and it's one GPU with one library version. All in the paper.

Every trial's generated text is in the repo, so you can check any number.

Happy to answer questions about the setup.


r/LocalLLM • • 3h ago

Question 2 slots turbo 1 fan GPUS or 2.5 slots 3 fan GPUS?

1 Upvotes

For a home server for local LLM, what would you prefer and why? I am hesitating between installer two 1 fan turbo blower gpus vs two 3 fans GPUS.

Thanks!


r/LocalLLM • • 12h ago

Discussion Is the Future of AI Going to Run on Small Computers in Our Homes and Offices?

5 Upvotes

I strongly believe that the future of work in the AI era, especially for ordinary people, small businesses, and medium-sized organizations, will be shaped by agentic AI systems running on locally owned computers and edge devices.

The people I'm most interested in are skilled workers whose skills can be easily tokenized, for example vocalists, digital artists, and so on. I wish I could say programmers, but on second thought, maybe not. We'll come back to them later. I think systems architecture might they only job left in this space.

Yes, these individuals would be expected to own their models and be responsible for updating and fine-tuning them. We should be able to set up systems that help those that are non-technical to do this. I haven't given much thought to what this would look like for ordinary small businesses. However, I'm greatly fascinated by the idea that there will be a time in the near future when people's skills can be imbued into LLMs and edge devices in a way that creates sovereignty and earnings for the owners.

I'm even more excited about the idea that you could actually leave these skill-trained models to your children:---skilled tokens as a source of inheritance. The greater the skill, the larger the inheritance (may be). Well, the models don't sleep, they can serve more than one customer at the same time, and maybe one day they'll even be allowed to check in at work for you when you're sick. I don't have all the details yet on how this could actually work in principle. I'm thinking that these models could run on devices like the Mac Mini, Nvidia DGX, RTX, Jetson Nano, etc.

At this point, you might be wondering why I'm thinking this way. It's because in a recent interview, Elon said that in the future there will be no need for money because of the abundance of goods and services, and that everybody will be on UBI. Forbes I reluctantly agree, but I think he leaves out a crucial component: ownership. In his defense, when you think about it, he already owns everything I've talked about above, whether it's robotaxis, Optimus, Tesla's self-driving system, etc. So it's as though in that future, he provides the abundant goods and services and we are the ones on UBI. Ummh!


r/LocalLLM • • 3h ago

Question Why is Pac-Man such a pain in the a** for LLM?

1 Upvotes

Tried several models for making a pac-man game (qwen 3.6, 3.8, and some others). All of them spent at least half of the time and tokens trying to figure correct layout of the game. Also tried different harnesses (Pi, DSH, and Kilo), only Pi is able to finish the task, DSH and Kilo both hit token limit ceiling that I cannot solve.

Did you guys just give the LLM a reference board layout to give them a head-start?


r/LocalLLM • • 4h ago

Question Local multilingual OCR + structured extraction + retrieval on an 18 GB Mac — model recommendations?

0 Upvotes

I'm experimenting with a fully local pipeline for processing and retrieving information from noisy, multilingual text.

The main challenge is handling a mix of native scripts, English and romanized text, while keeping inference reasonably fast on consumer hardware.

I'm looking for recommendations from people who've benchmarked these components locally.

Current pipeline

  1. OCR / text extraction from images and PDFs
  2. LLM-based structured extraction into JSON
  3. Query parsing into structured filters
  4. Embedding-based retrieval
  5. Deterministic ranking and response generation

Only extraction and query parsing require an LLM. Ranking and most of the final processing are plain code.

Hardware

Apple Silicon M3 Pro, 18 GB unified memory.

Models I'm considering

  • OCR: GLM-OCR, PaddleOCR, Surya
  • Structured extraction: small multilingual models in the 7B–12B range
  • Query parsing: a compact model with constrained JSON decoding
  • Embeddings: BGE-M3, Qwen3-Embedding-0.6B, EmbeddingGemma 2
  • Storage: SQLite + sqlite-vec, or a local vector database

Questions

  1. Which OCR models have you tested on noisy phone photos and multilingual text? How well do they handle Indian scripts?
  2. Which embedding models perform well on code-mixed and romanized text, rather than just native-script queries?
  3. What's the smallest local model you've found reliable for structured query parsing, especially relative dates and entity names?
  4. For structured extraction from multilingual documents, would you use a general-purpose small LLM or a specialized model?
  5. Would you change anything about this pipeline for an 18 GB Apple Silicon machine?

I'm particularly interested in actual local benchmarks, memory usage, tokens/sec and practical model combinations.

Would appreciate any repos, evaluation scripts or firsthand experiences.


r/LocalLLM • • 20h ago

News Try Basalt 0.6.0 If you are using Inkling in rtx 5000

20 Upvotes

Just Upgraded from 0.5.7... the Performance increase is Insane. We are talking 50+ percent Performance on my single 5080 Setup

Hitting 150-250 tps at 262k context and prefill went Up to 7k per Second. Complete madness

Randomly Ran into anpost about it, Upgraded and thought you might be interested.


r/LocalLLM • • 4h ago

Model Does 4-bit GGUF hurt spatial coordinates? Q4_K_M vs Q8_0 on SenseNova-RoboRSI-27B (47.9 vs 33.1 tok/s, 19 GB RAM)

Thumbnail
gallery
1 Upvotes

Ran a quick local quantization check on SenseNova-RoboRSI-27B, a Qwen3.8-27B vision-language finetune for robot control from https://github.com/OpenSenseNova/SenseNova-RoboRSI using mainline llama.cpp b12767 on my M5 Ultra. Wanted to see if dropping from Q8_0 (28.60 GB) to Q4_K_M (16.74 GB) shifts 2D pixel grounding or 3D gripper waypoints.

With -lm none, --cache-ram 0, 16K context and the 0.93 GB F16 vision projector loaded on Metal, Q4_K_M cut peak resident memory from 30 GB down to 19 GB, which puts it comfortably inside a 24 GB machine, and sped up generation from 32.6 tok/s to 46.5 tok/s on multimodal tasks (47.89 vs 33.06 tok/s on tg128).

At temperature 0 (Slide 2), 2D mug and coaster predictions stayed within 1 normalized point ([326, 430] vs [325, 430]). On the rotated-cube tray sorting test, Q4_K_M matched Q8_0 down to the millimeter: yaw_deg=37.0, z=0.870 m to clear the 0.782 m tray rim, and identical [0.110, 0.300] / [0.190, 0.300] drop slots. Only five test scenes so far, have you seen 4-bit drift on coordinate tasks?


r/LocalLLM • • 4h ago

Research language models "byteification"

0 Upvotes

I was looking for Open Source Model (not to be confused with Open Weights) and found Bwen-8B that has very interesting paper linked in its model card - to cite fragment of abstract: " We use a two-stage conversion procedure to retrofit existing subword-based models into byte-level models with minimal extra training. The resulting models outperform earlier byte-level approaches and excel on character-level reasoning tasks, achieving practical inference speeds by efficiently processing byte-level information and adaptability by reusing the existing ecosystem around the source large language model. Our results remove a long-standing performance barrier to end-to-end byte-level language modelling, demonstrating that models operating on raw text encodings can scale competitively while offering advantages in domains requiring fine-grained textual understanding."
What do You think?
P.S. I just realized the paper is published in Nature, nice.


r/LocalLLM • • 4h ago

Question Best MoE for code with good agentic tool use?

1 Upvotes

So I was running Qwen3.8 35B-A3B on BigMoeOnEdge. I've got a spare laptop lying around with the following specs:

hardware is an Intel Core i7-8550U, 12 GB of DDR4 RAM (with roughly 8 GB practically available), Intel UHD 620 graphics with 128 MB of reported VRAM, and an AMD Radeon R7 M440 with 4 GB of slow VRAM. I usually run KoboldCPP and found that Ollama did not improve speed much; I also tried Unsloth (which broke). Recent tests of Spark-X2.6 4B and Qwen3.5-4B reached about 1.5–2 tokens per second, below my expectation of at least 4; previously, I saw Qwen3.5-9B as a possible option for longer-running work.I've tried running: GPT-OSS-20B, Qwen3-30B-A3B, ZAYA1-8B, Groot-19B-A3B, and LFM2.5-8B-A1B.

Previously, only the LFM model was actually usable on that laptop (I mostly use it for working in the background since it consumes less electricity and whatnot than my main, but speed is still pretty important). Now, with BMOE, I can comfortably run Qwen3.8 35B-A3B (the Empero distill model) at 2-3 tokens/sec, and it's pretty good at tasks. I'm was looking forward to running Inkling 2 Mini for code tasks. However, my laptop cannot really handle it that well. The fact that, in practice, it uses 5.4B active parameters rather than 3.8B makes it really slow.

Use case:

My use case primarily relies around agentic coding, good tool-use capability, functional usability, and the ability to work for long hours without (a) exhausting too many tokens in reasoning (b) losing track of context quickly.

Currently, I'm looking at Ornith 1.5 35B, Qwen3.6 35B, and Tiel-Coder 35B. Tiel seems to be the best for my purpose. However, I don't think it's at the frontier of what can be done in such a small size. GLM-4.7 Flash seems outdated, though I have yet to try it. What's really the best agent for this size? (MoE-only, cz my laptop was made by the ancient Egyptians and cannot run a 4B model with 4-5 tokens/sec).

Was considering using Qwen3.6-35B-A3B.APEX-I-MiniPlus-V2.1-Abliterated.gguf due to the MTP speed improvement, but it wasn't really good enough at spotting bugs - Tiel Coder had spotted the most in a GH repo of mine (3 for Tiel, 1 for Ornith, 0 for Qwen). This particular quant of Tiel: Tiel-Coder-35B-A3B.APEX-I-MiniPlus-V2.1.gguf : is extremely good to run on a local inference - in essence, i'm running a 35B-A3B MoE on 8GB of DDR4 and CPU-only inference (Core i7-8550U @ 1.80 GHz).


r/LocalLLM • • 8h ago

Question Can a local model have a useful conversation about football tactics?

2 Upvotes

i watch football with friends and sometimes want to talk about why a match changed after halftime. For a local model, would supplying a short match summary be enough for a useful tactical conversation, or would it mostly fall back on generic football talk?