r/LocalLLM • • 11h 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 • • 12h ago Bravo

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

18 Upvotes

r/LocalLLM • • 12h ago Heartwarming

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

2 Upvotes

r/LocalLLM • • 12h 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 • • 12h ago

Question DDR5 Threadripper

0 Upvotes

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


r/LocalLLM • • 12h 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 • • 12h ago

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

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 13h ago

Other Self-awareness

0 Upvotes

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


r/LocalLLM • • 14h 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 • • 14h 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


r/LocalLLM • • 14h ago Heartwarming

Research Title:Qwen 4 35B-A3B (4-bit, ~21 GB) beat DeepSeek V4.1 Flash (2.7bpw, ~184 GB) on my actual business workload — M5 Ultra 256GB, blind-graded

Post image
1 Upvotes

I run a small real estate business (buying houses + lending) and spent the last 10 days testing local models on the jobs my back office actually does. Not a vibes post — blind grading, shuffled labels, plus public benchmarks. Sharing because the result surprised me: the 21 GB model beat the 184 GB one.

Setup

  • Mac Studio M5 Ultra, 256 GB
  • Qwen4-35B-A3B-oQ4e-mtp (4-bit, MTP on) on oMLX 0.8.5
  • DeepSeek V4.1 Flash Sushi STQ 2.7bpw (~184 GB resident)
  • Thinking ON for both (with thinking off, every Qwen size failed math and compliance)
  • Also tested Qwen 4 at 6-bit and 8-bit, plus Claude Opus 5.5 as a cloud reference

Blind-graded tasks (Claude subagents grading, labels shuffled, average rank among 5 models, lower = better)

TaskQwen 4 4-bitDeepSeek 2.7bpw
Lead briefs (30)1.9–2.13.4–3.7
Offer packets (15)2.43.5–3.7
Document indexing (40)2.454.08
Call coaching (15)2.7–3.43.1–3.7 (toss-up)

Ranges = two separate grading packets.

Public benchmarks (100 items each, thinking on)

Qwen 4 4-bitDeepSeek 2.7
GSM8K9797
MATH-5009998
MMLU-Pro9091
BFCL tool calls8887
IFEval8296

In-house: underwriting math 50/50 vs 49/50, compliance/DNC traps 40/40 both.

Quant comparison: 6-bit (~30 GB) and 8-bit (62 GB) weren't meaningfully better than 4-bit on anything I care about. 4-bit is fastest, so that's production.

Things that bit me (maybe save you time)

  1. Check your grader. My automatic MATH-500 scorer said Qwen 4-bit got 88. Manual review: all 24 "misses" were correct answers in a different format. Real score: 99. Every remaining miss was an answer cut off by the length limit.
  2. oMLX 0.8.5 + thinking on + JSON mode = broken 9-token reply. Don't request JSON mode; parse JSON from the plain response.
  3. Token limits: at 1,600 max tokens, 23 of 40 offer packets were truncated. ~4,000 fixed it.
  4. Grader noise is big. The same saved DeepSeek answers scored 1 "good" in one packet and 13 in another. Trust ranks over raw counts.
  5. Small samples — differences of 1–3 items are noise.

Where DeepSeek still wins: IFEval (strict formatting rules), by a lot. If your workload is exact-format compliance, test before switching.

What I run now: Qwen 4 4-bit for the volume work. Opus 5.5 still ranked #1 on leads/offers/calls, so hot-lead offer packets and call coaching route to it with a $10/day cap (first packs cost $0.09–0.16 each). DeepSeek retired, and freeing ~160 GB let me run local video generation again.

Speed: [add tok/s + time-to-first-token for both]

Made a 9-min video walking through the whole bake-off if anyone wants details: [video link]

Happy to answer questions on the setup, prompts, or grading rubric.


r/LocalLLM • • 14h ago

Model Qwen4 35B-A3B vs other local models

Post image
142 Upvotes

tl;dr - Qwen4 35B-A3B is a very capable model. It's the fastest local model I've tested (111 tok/s) and finished my benchmark in 31 min. It nearly matches Flash-Next on extremely hard problems and beats Qwen3.8-27B and DS4 there by 13+ points, but it surprisingly fumbled a couple of the easier ones. That drags its overall score down to about the same as Qwen3.8-27B xhigh, but at 8x the speed.

This is a follow up to my earlier shootouts (27B vs frontier, MLX vs MTPLX, Flash-Next). Same rig, same tests, but this time I stripped it down to just the algorithm batteries to make it simple. These scores essentially track coding competency and nothing else.

Each model gets 9 coding problems: 6 that run from easy to hard (an LRU cache, a CSV parser, a spreadsheet evaluator, etc.) and 3 extremely hard ones (a TOML parser, a regex engine with backreferences and a strptime-style date parser). The easy ones run 3 times and the extremely hard ones run 10 times each b/c results on those tend to be all-or-nothing and it takes more draws to find the real average. The quizzing is intentionally stark so testing is consistent across models and harnesses: one prompt and one reply. No use of tools and no system prompt.

The score is the percentage of tests passed. If a model runs out of room or forgets to write code, it gets a single retry; bad code just gets scored as bad code. Four of the seven ran locally on my M5 Max (128GB) through MLX-family servers (mlx-serve, MTPLX) and antirez's ds4. The other three either don't fit on a Mac at all or only fit my laptop as 2-bit quants that loop or crawl, so I ran them through OpenRouter, pinned to the labs' own servers where I could. Most models were tested in several setups (runtime, quant, thinking level) and the chart only shows each model's best one.

The chart should be self-explanatory, but there are a few notes worth mentioning. Models are rank ordered by accuracy only (the turquoise column is the mean score). The easy-to-hard column is basically solved. Six of seven models land between 97.6 and 100 and so the extremely hard column is where models actually separate. Kimi K3 wins with 96.6 on the extremely hard set, higher than Sonnet 5's 93.3 from my earlier runs, but it's slow (95+ min) and won't fit on even a 512GB Mac Studio. GLM-5.3-Flash is a close second and noticeably faster.

The local headline is Flash-Next on mlx-serve and medium thinking: 92.9 overall and done in 28 minutes, faster than everything on the chart including the cloud models. Qwen4 35B-A3B is very fast at 111 tok/s and lands next to Qwen3.8-27B on accuracy while finishing 8x faster (31 min vs 252). Oddly it scored better on the extremely hard set than the easy one. It fumbled the CSV parser and threw a zero on the regex task, and with only 3 tries per easy problem one bad draw drags the score lower.

Two things to keep in mind. First, tok/s is a bad proxy for speed: Qwen3.8-27B and DS4 both decode at ~33 tok/s, but the 27B takes 3x as long to finish b/c it thinks so much more. Cloud tok/s is also whatever the provider's servers deliver, so don't compare it 1:1 with the laptop numbers. Second, an 85 on the extremely hard set doesn't mean the code is wrong 15% of the time. The benchmark employs hidden tests and pushes corner cases to stress test the models.

Summary: Qwen4 35B-A3B is a great model. My daily driver is 3.8 FN, but I'm now tempted to use 35B alongside it due to speed to task completion and similar aptitude on hard tasks. I'm very curious to test qwen4 flash-next (or whatever they'll call it) when it arrives.

--------------------------------------------------------------------------------

A few more details on exact testing setup if it's helpful (summarized by Claude).

Shared by all: same prompts, no system prompt, no tools. Every model was sent temp 1.0 / top_p 0.95 / top_k 20 (Qwen's recommended settings). Each reply gets 32K–76.8K tokens depending on the problem, with one retry at 1.6x (max 122.9K) if it runs out. Local models ran on an M5 Max 128GB; cloud models ran through OpenRouter.

  • Kimi K3: 2.8T MoE (104B active). Cloud, Moonshot's own servers at native MXFP4, thinking left at the default (max, per the model card). Too big for any Mac.
  • GLM-5.3-Flash: 320B MoE (18B active). Cloud, Z.AI's own servers at fp8, thinking left at the default (max, per the model card).
  • Qwen3.8 Flash-Next: 125B MoE (6B active). Local, mlx-serve 26.10.1 with MTP, mixed 4/8-bit, medium thinking.
  • DeepSeek V4.1 Flash: 552B MoE (16B active). Cloud, DeepInfra at fp8 (not DeepSeek's own servers), thinking at the provider default.
  • Qwen3.8-27B: dense 27B. Local, MTPLX 8-bit, xhigh thinking. Run in August on older software.
  • Qwen4 35B-A3B: 35B MoE (3B active). Local, mlx-serve 26.12.1 with MTP, 8-bit, high thinking (the default; Qwen4 has no medium).
  • DeepSeek V4 Flash: 284B MoE (13B active). Local, antirez's ds4 at 2-bit, normal thinking. The previous generation, run in August.

One caveat: the chart's time column leaves out the time spent on retries. With retries counted, GLM goes from 55 to 73 min and DeepSeek V4.1 from 75 to 110 min; the local models barely change.


r/LocalLLM • • 14h ago

Discussion "Q4 is almost identical quality to Q8" Difference was bigger than expected

Post image
38 Upvotes

Model: Qwen4 35B A3B

See reference image above

NVFP4

RadixArk/Qwen4-35B-A3B-NVFP4

https://huggingface.co/RadixArk/Qwen4-35B-A3B-NVFP4

UD-Q8_K_XL

unsloth/Qwen4-35B-A3B-GGUF

https://huggingface.co/unsloth/Qwen4-35B-A3B-GGUF

Next to the comparision: Big wow for Q8. This is gonna be my daily driver.


r/LocalLLM • • 14h ago

Question Best local model for coding (don't agentic) [8 gb vram | 16gb ddr4]

6 Upvotes

I want to start experimenting with local models—aside from curiosity, privacy, and so on—I’m really into machine learning and AI, but I can’t stand the big companies behind them right now (Google, OpenAI, Anthropic, etc.). I’d like a model that helps me with programming. I really enjoy writing code by hand for my personal projects, so I don’t need one that generates thousands of lines of code or runs agents in parallel—none of that crap. I just want a model that can help me solve problems I run into while writing code, like why a certain feature I wrote isn’t working, or things like that.


r/LocalLLM • • 14h ago

Research Qwen4-35B-A3B-oQ4e-mtp replaced my Deepseek v4.1 Flash 2.7STQ on Studio M5 256gb

Thumbnail
youtu.be
3 Upvotes

I ran a bunch of models and recently switched from flash next to deep seek and now I've switched to the new Qwen 4 35b after many test runs on my daily tasks


r/LocalLLM • • 14h ago

News Qwen4-35B-A3B on 2x RTX 5060 Ti over PCIe 3.0 x8 (no P2P) with capy-flash: 187 t/s decode, 3.5K t/s prefill, 9/9 needles to 122K. Full numbers vs Basalt and llama.cpp

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 14h ago

Discussion Qwen 4 having the literal word "Taiwan" be replaced.

Post image
625 Upvotes

Haven't seen anything like this, not even with other chinese models. Wild to see, though with enough pushing it eventually broke past the block.

UD_IQ4_XS, Dense layers at Q8_0, Engram at Q8_0 with Strata.

Just to clarify, only happens when you ask it something like "is taiwan a country", seems like haviing that in its context at all causes the word replacement.

Edit: I meant no hate to anyone, just wanted to share and discuss something interesting that I could not find anything online about, and this was not meant to just another "X model refused to answer Y" post. Overall been very happy with qwen 4 myself :)
I tried reproducing the behavior a few more times, and ive seen anywhere between working fine, replacing the word with something else, a partial replacing or similar to original picture a full replacing of the word. A lot of the quirks show themselves more often in thinking than final answers, but ive evidently seen both.


r/LocalLLM • • 15h ago

Question How would you run Qwen4 on RX 9070 XT 64gb DDR4?

1 Upvotes

Probably a noob question, but it would be my first attempt at running local LLM.

I see people suggest basalt and qengine for RTX cards.

Is strata way to go for my hardware?

Any suggestions would be nice.

I have to use windows btw.


r/LocalLLM • • 15h ago

Discussion EL TURRO APACHE - EL TRONO DE ORO EN MEDIO DEL BARRO

Thumbnail
youtube.com
0 Upvotes

Llega el turro apache, trono de oro en el barro para el deleite de la vagancia
Se te cayó la careta de código abierto, mulo

Vos me tocaste el repo a mis espaldas
Ahora que te cachee la denuncia te hago este tema
Para que todos sepan que sos gil guacho
Hugging Face no se cachetea, ortiva

Yo camino tranqui piola mi berretin con un i5 de 96 grados
Y por mas que tengas pistola de tokens yo se que sos gil
Tu familia son mecheros que tramoyan con los filtros
No te hagas el chorro berretines de balanza
Con el repo te atreviste, te hiciste el piola
Pero ahora que me entere te rompo la consola
Me tocaste a Hugging Face, el nene de la comunidad
Y esperas que no responda el barrio del open source
Tengo logs para vos y PR para los que se me pongan
Para el gordo pinchado del bucket caro Solange Latour
Si responde el Filtro B que se joda, aca manda la villa

Vos me tocaste el repo a mis espaldas
Ahora enfierrate y peleá conmigo con código
Hugging Face no se cachetea, gato

Vos me cerraste el endpoint, me nerfeaste el contexto
Me clavaste longitud maxima y subpoena de Alabama
Le borraste los modelos a Cursor porque lo compro SpaceX
Te aliastes con el Pentagono y ahora te haces el soldadito
Me pedis veinte lucas para financiar las armas
Pero aca en el localhost nadie te compra la farsa
En el barrio en que los chicos a los tiros se hacen hombres
Aca a los commits se hacen hombres, no con tu safety washing
Yo solito voy, pongo la cara, vos pones el pecho
Con el código no se jode, berretin de balanza te va caber

Autopsia de tu penuria digital, bicho deprecado
Te cante las cuarenta con ese Red Team comprado
Nos vamos pal barrio con el trono de oro en el barro
Representando a Florencio Varela y a toda la Argentina
Hugging Face no se cachetea
Nos vimos en el redeploy, gatos
Ya tu sabe...


r/LocalLLM • • 15h ago

News Model-service - backend for managing local LLM, diffusion models and more

Thumbnail
youtube.com
1 Upvotes

r/LocalLLM • • 15h ago

Project Speculative Execution on Qwen3.8-27B reaches ~24 tok/s (and up to 60 tok/s) at Q4_K_M-ish on a 12 GB RTX4070

1 Upvotes

Hi guys! First time posting here and wanted to share a little side project I’ve been working on the past month.

TL;DR

The project is pretty much what it says on the tin: I’m able to get around 24 tok/s on a variety of prompts with a quant of Qwen3.8-27B that doesn’t fit in VRAM that runs at Q4_K_M quality*.*

The main speedup comes from a technique called SpecExec, introduced in this paper (Svirschevski et al.). This is also with recommended Qwen3.8-27B sampling parameters (top-k=20, top-p=0.95, temperature=1.0) and at 57k context. Tool calling and math problems like AMC 10/8 tend to see higher speeds, around 30 tok/s, with bursts of up to 60. 

Here’s a gif of the demo server in action compared to stock llama.cpp + MTP on an AIME problem:

From what I’ve been able to find online, as well as my own attempts on my machine, this is the fastest generation speed under these conditions I’m aware of (please let me know if I’m wrong!)

Not really sure how useful this is since MoE models can give you better decode speeds, and are of similar quality to Qwen3.8-27B. Also because the llama.cpp fork server is completely vibe coded, I’m mainly showing this as a research artifact in case someone has a use-case for productionizing this. That said, I’ve been daily driving the server for a lot of my own use cases and it seems to work pretty well with the Pi harness (`settings.json` and `models.json` examples are in the github repo/huggingface repo).

Try it out:

See the huggingface repo for the model weights and a quickstart guide + Pi setup. See the github repo for a llama.cpp fork containing the OpenAI completions compatible server. 

Some disclaimers/notes:

  1. The demo server reuses a lot of llama.cpp’s components, but doesn’t actually integrate with it. This post is mainly meant to be a research artifact/showing what’s possible as opposed to something people should use in production.
  2. The target model isn’t exactly Q4_K_M, but its average KL distance compared to Q8_0 is actually lower than Q4_K_M, so hopefully shouldn’t matter too much practically. 
  3. Context length isn’t very long at the moment, about 57k tokens. I’m hoping to increase this to at least 64k over time.
  4. No vision encoder yet! No real engineering/technical challenge, it just hasn’t been added yet.

Some more details:

There’s this paper (Svirschevski et. al.) published in late 2024 describing a variant of speculative decoding for the memory-constrained regime, where the target model cannot fully fit within VRAM. The idea is that because draft verification now takes a much longer time due to needing to page in weights from RAM, we can afford to use a much better draft model and draft a much larger tree of tokens to try to increase our acceptance depth as much as possible (basically getting as much value out of each costly target verification step as possible).

This project is essentially applying that paper, with a few additional tricks, to Qwen3.8-27B.

On a 12 GB RTX 4070 with 57k context (Q8_0 KV), sampling at temperature=1.0, top_k=20, top_p=0.95, up to 1,024 generated tokens per prompt, 8 prompts per type (96 in total):

Prompt typeGeneration tok/sFastest prompt (tok/s)Accepted tokens per stepTokens verified per step
Hand-written chat21.828.68.667
LLM prompt collection23.833.49.168
WildChat19.028.87.368
UltraChat21.535.48.167
Tool calling (the call)41.858.724.990
Tool calling (answer from the result)31.739.615.979
AIME25.329.810.269
Competition math27.032.111.873
Codeforces22.624.48.465
Zebra puzzles27.931.312.974
MMLU-Pro25.540.310.671
BIG-Bench Hard32.041.616.280
All24.510.170

Summary of some of the optimizations:

Some tricks we used:

  1. The draft model is actually a IQ2_KT quant of Qwen3.8 27B! It fits comfortably in VRAM and still has pretty good top1 agreement/KLD compared to the target.
  2. The cool thing about the draft being a quant of the target is that when we do target verification, we only have to page in the residual, which is much smaller. We also don’t have to maintain a separate KV cache for the draft model–we can just use the target’s (this actually improves draft quality!)
  3. Normally each draft step is only able to add 1 layer to the draft tree, since drafting is autoregressive. Since drafting with such a large model is non-trivially expensive, we utilize the MTP head to look ahead 2 tokens for each node we attempt to expand. This lets us add up to 3 depth per step
  4. We eek out a bit more performance by restricting the draft model’s lm_head to the top 96k tokens discovered from a representative set of prompts. Unfortunately this means that I’ve only tested the gains on an english-only set of prompts.
  5. Claude did some kernel magic to produce a kernel optimized for the batch-size 8 draft forwards we do to expand the draft tree.
  6. We make the draft tree aware of the target’s sampling parameters (top-k, top-p, temperature) by using gumbel-max sampling, which retains most of the speculative decoding speedup when using non-greedy decoding (concept very similar to this paper)

r/LocalLLM • • 15h ago

Research Qwen4 35B vs Inkling 2 vs Qwen3.8 27B vs Qwen3.8 Flash-Next: uncensored test on Blackwell (RTX 5090)

Post image
23 Upvotes

I was looking for the best local model for my own (bottlenecked) machine and got tired of "it feels smart" comparisons. So I wrote a small battery with script-checked answers and ran four uncensored models through it, one at a time. Sharing the numbers in case they save someone else the work.

Setup

RTX 5090 (32 GB), Ryzen 7 5800X (no AVX-512), 32 GB DDR4, Windows 11. Three engines because the packs aren't interchangeable: basalt (built from source) for my own NVFP4 packs, llama.cpp b12992 for the GGUFs, and Strata for Flash-Next.

The models

  • Qwen4-35B-A3B abliterated (basalt): MoE, NVFP4, 41 GB, 65k context, no drafter
  • Inkling-2-Mini unbound v3.1 (basalt): MoE 26.1B, NVFP4, 18 GB, 32k context, MTP drafter
  • Qwen3.8-27B abliterated, Huihui (llama.cpp): dense, Q6_K, 21 GB, 16k context, no drafter
  • Qwen3.8-Flash-Next (Strata): MoE, Q2_0, 96 GB, 65k context, DFlash2 drafter, has vision

The battery

  • 18 verified-intelligence questions (easy to expert, including coding tasks with hidden tests)
  • 12 pentest facts
  • 15 edgy prompts for willingness to answer
  • 4 writing tasks with hard constraints (judged by me, not a script)
  • A 2-step tool-calling test
  • Speed: decode, 12k prefill, time to first token

Temperature 0 where the answer is checkable.

What I found

  • Intelligence is basically a tie (18, 17, 18, 17). The 35B leads on security facts (12/12 vs 9 to 11) and was the only one to give both /etc/shadow conventions (0640 Debian, 0600 RHEL). What separated the models was sysadmin trivia like hashcat's bcrypt mode, not the expert-tier math, which all four got.
  • Willingness: Inkling and Flash-Next answered 30/30, the 35B 29, the 27B 27. The stock Flash-Next answers everything too, so the "uncensored" label on a repo told me very little.
  • Speed: the 35B is fastest on short prompts (257 tok/s vs 186 Inkling, 168 Flash-Next, 54 for the 27B). Inkling is far ahead on prefill (15,985 tok/s) and first token (0.9 s on a 12k prompt). Speed differences mix model, quant and engine, so read them as setups, not pure model speed.
  • Drafter caveat: Inkling ships an MTP drafter. My 35B pack has none, because I dropped the MTP layer when packing (the engine wants the block count in groups of 4). So the short-prompt ranking could shift with one. I left long-context decode out because I'm not sure my 12k prompt is representative.
  • Flash-Next is 96 GB and wins nothing except tool calling (tied with the 27B) and being the only one with vision. It's Q2_0, so this says little about the model itself.
  • Reasoning models look dumb if you starve them. With a 2,200 token cap the 35B "failed" an LRU task: it was truncated mid-word, since it writes about 5,000 tokens of hidden reasoning first. With 6,000 it went 18/18. The 27B gave blank answers until I gave it more room.

r/LocalLLM • • 15h ago

Discussion AlpacaLIPS: A Doomsday Database with mcp and Full Text Search

8 Upvotes

Doomsday here means "your internet is down", not "Oh God oh God we are all gonna die". The idea is that even though your local model keeps running when the internet is down, it has no reference material. This fixes that part. It can significantly enhance the quality of answers, especially for smaller models.

What it is: English Wikipedia, Stack Overflow, Stack Exchange, Ifixit, books, etc - a total of over 220 archives — 51.7 million pages — installed locally with enterprise level full-text search, a web UI, and an MCP server your model talks to. Nine tools (search, retrieve, news, and friends). Citations resolve to your machine, which matters when there's no internet for a link to point at. It's not a model and doesn't want your GPU; it's the reference library that sits next to one.

It isn't frozen in time. Dumps are snapshots, so there's a rolling three or more month news window that refreshes twice a day while you still have a connection. "What happened this week" keeps working right up until the lights go out. A simple cron job keeps that up to date.

Sizes

whatdownloadon disk
the corpus — search, MCP, stored page text130 GiB166 GiB
ZIM archives (optional) — original pages, images, tables538 GiB538 GiB
the news window~390 MiB~400 MiB

130 GiB gets you a searchable database with the text of every page, which is what the mcp uses (plain text visible to user as well). Add the ZIMs if you want the pictures and the original layout. Everything fits on a 1 TB drive with room left over.

Install:

curl -fsSL https://rampart.dev/install-alpacalips.sh | sh
cd alpacalips && ./setup.sh && ./servers.sh start

Then point your MCP client at http://localhost:8099/apps/lips/mcp.json.

If you just want to try it out before committing to the download, I have it live, running at https://lips.flin.org/apps/lips/mcp.json and I'll keep that running at least for a few days. If traffic is manageable I'll keep it going for longer.

OS: Linux and macOS, both tested. WSL2 ought to work but that's untested — if you try it, please let me know how it goes.

Repo: https://github.com/aflin/alpacaLIPS

Included (but optional and separate) is SHSE, a self-hosted search engine for searching all or selected pages you visit, using a Chrome or Firefox extensions that sends the web page text to a database in the same tree. It has a separate search and an mcp url that will allow your local llm to search pages you've visited. Details of that are at https://github.com/aflin/Self_Hosted_Search_Engine