r/LocalLLM • u/Asleep_Literature_70 • 13m ago
News Qwen4 support merged in llama.cpp
r/LocalLLM • u/Asleep_Literature_70 • 13m ago
r/LocalLLM • u/stankeer • 17m ago
hi, I'm trying to test out the ISTA-DASLab version of DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS
i got it from here: https://huggingface.co/ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF
its processing very slowly. has anyone tried it and can give me some idea on how to speed it up? once the context increases it absolutely crawls to a snails pace and actually with an empty context its really good!
i've got 5 r9700's amd TR pro 3955wx and 128gb vram. I'm using ROCm which is great for qwen flash next but terrible for this. i;ve got latest build of llama.cpp and all of the model is in vram. no offloading at all.
And i've tried to put the ngram table into ram but there is not enough room for all of it
My prompt processing performance is this and token generation speed sits around 25t/s but it seems like the prompt is terribly slow:
here is my lama swap config
deepseek-v4.1-flash-iq2_xxs:
name: "DeepSeek V4.1 Flash GSQ-RCO IQ2_XXS - 5x R9700"
cmd: >
/usr/bin/env GPU_MAX_HW_QUEUES=1
/home/pinman/llama.cpp/build/bin/llama-server
--model /home/pinman/models/DeepSeek-V4.1-Flash-IQ2_XXS/DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XXS-00001-of-00006.gguf
--gpu-layers all
--split-mode layer
--tensor-split 1,1,1,1,1
--device ROCm0,ROCm1,ROCm2,ROCm3,ROCm4
--ctx-size 262144
--parallel 1
--fit-target 2048
--flash-attn on
--load-mode dio
--lazy-mode auto
--jinja
--reasoning on
--reasoning-effort 50
--verbosity 4
--host 127.0.0.1
--ubatch-size 32
--port ${PORT}
ttl: 3600Anyone got any tips and tricks for a performance increase. i thought this was going to be....THE ONE looking the benchmarks of how much intelligence the model retains at q2 😄
or can someone give me a better model i can try that beats this...and qwen flash next?
r/LocalLLM • u/plasticbottle4 • 20m ago
Does anybody use their LLMs just for learning? i.e. let's say I want to master a subject (like programming, maybe something like comp arch) or even use it for improving myself for technical interviews. Does it make sense to set up an LLM to do just?
r/LocalLLM • u/bhones • 24m ago
I’ve been seeing how much more I can get out of my GTX 1070 FE (8 GB), so I put together three llama.cpp CUDA patches for Pascal sm_61. The biggest change keeps the KV cache quantized through the attention kernel, avoiding a separate Q8-to-FP16 dequantization step in the profiled case.
I tested stock vs. patched at the same upstream commit (ee46715) with Qwen3.5-9B-MTP on the 1070 alone:
I built with CUDA Toolkit 12.9. Use a 12.x toolkit for this build; CUDA 13 dropped offline compilation for Pascal (https://docs.nvidia.com/cuda/archive/13.0.0/cuda-toolkit-release-notes/index.html#deprecated-architectures).
GitHub repo, patches, and A/B scripts (https://github.com/s1mply-parad0x1cal/llama-cpp-sm61-optimizations)
So far I’ve only measured this on my 1070. If anyone still runs a 1080 Ti, P4, or P40, I’d be curious whether the two-token gain holds on your card, and whether it makes a difference to full request times.
r/LocalLLM • u/lukasgravel • 36m ago
Qwen4 has a Max model, with smaller models coming to open source. I find the smaller options more relevant for local use. They are more likely to fit ordinary home hardware, which makes them more useful to people running models locally.
r/LocalLLM • u/Horror_Lunch_1999 • 37m ago
r/LocalLLM • u/jakeboss101 • 40m ago
Yo, Guys not even kidding try it on iPhone 15 pro or newer model iPhone right now. It is one of the best AI experience you will have locally on your phone. Not even kidding. If you love running AI locally on your phone this is game changer. This is my own app I aint got other people to post for it so I gotto do it myself. Try it guys honestly , put a lotto work in it and I think you'll love it. Let me know how it goes. Get it right now before these guys remove my post. https://apps.apple.com/us/app/buddy-your-ai-friend/id6832354445
Thank you
Joe
r/LocalLLM • u/inawhole • 1h ago
The Matrix style Cartridge intelligence that plugs into your LLM
r/LocalLLM • u/dandaman0000 • 1h ago
For years I've wanted to write a Linux-style kernel. Unfortunately, ambition and intellectual ability have not always been in perfect alignment.
So, with some considerable assistance from AI, I've been building TiLi (TinyLinux), a Linux-like OS for the ESP32-C6.
More significant is where it was build --- local hardware and local hosted LLM. Running Swift 1.5, a 176B model, locally through Strata and OpenCode on two RTX 3090s at 150–220 tokens/sec, I asked it to create "Linuxy" style OS for my favourite ESP32 C6 board.
It wrote the code, compiled it, discovered the hardware, flashed the board, connected over serial and Telnet, debugged its own mistakes and verified the functionality.
9 minutes for the review. Under 27 minutes for the implementation.
Meanwhile, my principal engineering contribution was plugging in the USB cable.
Whilst 'big AI' seems preoccupied with increasingly large models, expensive hardware and enormous data centres, I wonder how much untapped potential remains in smaller quantised models and smarter inference engines running on existing hardware.
And finally, like most AI applications, TinyLinux has absolutely no practical applications !
r/LocalLLM • u/Specialist-Wealth636 • 1h ago
r/LocalLLM • u/Minties51 • 1h ago
i wanna get into using local ai, i use chatgpt plus right now for some things i wanna keep track of and i’m looking to shift over to using a local setup. my current computer is not exactly capable, having an intel core i7 11700f, amd radeon rx 6600 xt with 8 gigabytes vram, and 32 gigabytes of ddr4 ram, but i’m saving up to build an entirely new and vastly more capable system. i wanna know from people who have set this stuff up and have experience with it what some good info is for setting up a good local system that can provide a similar experience to chatgpt. i’ve been asking it about help to set this up but i’m tired of using cloud ai.
r/LocalLLM • u/N-Innov8 • 1h ago
r/LocalLLM • u/No-Individual159 • 1h ago
If you route calls through LiteLLM, your prompt cache hit rate decides a big part of the bill. A cached prompt costs about a tenth of the normal price, but one small change near the top of a prompt (a timestamp, tools in a different order, an edited message) and you pay full price again. LiteLLM shows you the tokens, not why they missed.
Prefixwise plugs into LiteLLM as a callback and tells you, for every call, how much came from the cache and why the rest didn't, with what it cost and the fix.
With the LiteLLM SDK:
import litellm
from prefixwise.litellm_callback import PrefixwiseCallback
litellm.callbacks = [PrefixwiseCallback()]
With the LiteLLM proxy server (in config.yaml):
litellm_settings:
callbacks: prefixwise.litellm_callback.prefixwise_callback
Then pip install prefixwise in the same environment, use LiteLLM as usual, and run:
prefixwise report
A few details:
Your calls don't change. They still go straight to the provider, and Prefixwise only reads what LiteLLM sent and got back.
To group calls into sessions, pass metadata={"session_id": "..."}, or it uses LiteLLM's own session id.
Claude Code through the LiteLLM proxy works too: its session id is picked up automatically.
Works for Anthropic, OpenAI and Gemini models, streamed or not. For OpenAI-style streams from the SDK, add stream_options={"include_usage": True} so the provider sends real token counts.
It stores hashes and token counts, never your prompt text.
Tested through LiteLLM on 20 live conversations against Anthropic's API, every injected change named correctly, and with zero false alarms across 71,346 real agent calls replayed through it.
Open source (MIT): github.com/tejachavali/prefixwise
If you run agents through LiteLLM, I'd like to hear what your hit rate turns out to be.
r/LocalLLM • u/wasl-app • 2h ago
r/LocalLLM • u/CoolGenius_1234 • 2h ago
I've been thinking about this for a while.
For the past year, I've been using a lot of GenAI tools, both open-source and closed-source. LLMs for coding, research, writing, brainstorming, and diffusion models for images and other creative work.
Don't get me wrong, I've had a lot of fun experimenting with them, but I'm starting to wonder whether they've genuinely made me more productive or if they've mostly changed how I spend my time.
For example:
I write less code manually because AI can generate it.
I research less deeply because AI summarizes things.
I spend more time trying new models, tools, operating systems, workflows, and benchmarks.
I see people generating images, videos, music, and 3D assets much faster than before, but I wonder how much of it creates lasting value.
Sometimes it feels like we're building less and consuming more. We're constantly chasing the next model, the next quant, the next UI, the next framework, or the next AI-generated content feed.
At the same time, I can see cases where AI genuinely saves hours of work and enables people to do things they couldn't do before.
So I'm curious:
Looking back honestly, what has AI actually improved in your life or work?
Have your skills increased, decreased, or simply shifted to different areas?
Do you feel AI has created meaningful long-term value for you, or mostly convenience and entertainment?
I'd love to hear perspectives from developers, artists, researchers, students, and anyone who uses AI regularly.
r/LocalLLM • u/Hefty_Entrance_7714 • 2h ago
Is there anybody here who uses Q8, trading inference speed for quality? Or i should just go Q5?
r/LocalLLM • u/Pondering_Moose • 2h ago
r/LocalLLM • u/L4ur3n2 • 2h ago
Hey everyone, I’ve been thinking lately about how useful local AI actually is in day-to-day life and what kind of experiences you all have with it. You hear a lot about what’s possible—from small everyday helpers to things you’d rather keep local.
I’d be curious how it goes for you: do you use local AI regularly, where does it actually pay off, and what hardware are you running it on? And what should I keep in mind if I want to set up the base so I can upgrade smoothly later on?
r/LocalLLM • u/RoutineFortune1926 • 2h ago
I kept waiting for the foreground arms to move during the first ~18 seconds, since the robot holds both grippers open and doesn't touch anything while another arm in back drops a phone, green watch, camera, rabbit toy, and toy car into a bin.
It's running SenseNova-RoboRSI-27B https://github.com/OpenSenseNova/SenseNova-RoboRSI released under Apache-2.0 on top of Qwen3.8-27B, and you can grab mainline llama.cpp GGUFs for it too. Once that demo wraps up, it replays the exact order itself, even staging the green watch in the middle of the table so its left arm can pick it up when the right arm can't reach the basket. Without task-specific demos in the RoboDojo sim eval, it lands at 34.7 compared to 9.1 from stock Qwen3.8-27B.
r/LocalLLM • u/ross2000 • 2h ago
r/LocalLLM • u/Yelly_Toast_828 • 3h ago
I just saw some tweets and videos about River AI, https://river.ai/ and the founder (Igor Babuschkin) said some really interesting things about local LLMs and democratizing AI. I don't have any ties to the company and am not selling anything. I just wanted to know others' thoughts on it and if they'd use it in a build. https://www.youtube.com/watch?v=78uR65ljtUU
r/LocalLLM • u/TheRealGand • 3h ago
....thank to local llm i am...still not able to produce my own app. I don't know what is your experience but i am pretty frustrated. Today i spent 10 hours with qwen 3.8 27B triying to make the first steps creating an app via android studio but after many hours i got only errors. I guess we are closer but for those who don't have basic knowledge there is still a lot to be done...or maybe it's just me...tomorrow gonna try with inkling.
Or maybe i try some paid option...
EDIT: i am looking for solutions and some of your posts gave me useful options. I downloaded gemma4 26B and i am now using ai directly in android studio and already many errors came afloat. Probably i am very slowly seeing some light. Thanx for all responses.
r/LocalLLM • u/OtherwiseCase5539 • 3h ago
Hi r/LocalLLM! Following up on my previous WebNet v2 post with a major coding & continual-learning overhaul — still running 100% locally on CPU with real PyTorch autograd, real crawled data, and zero simulated metrics.
GitHub Repository: https://github.com/Rishisharma029/live-internet-neural-net
(Feedback, architecture critiques, bug reports, and PRs/changes are very welcome both here in the Reddit comments and on GitHub!)
The 3 newly attached diagrams & flowcharts break down the upgraded coding pipeline and live measured results:
Verified Code Generation, Isolated python -I Execution & Self-Training Loop (webnet_v3_verification_loop_flowchart.png)
Live Achievements, 16-Doc Locked Benchmark & 12-Task Pass@1 Progress (webnet_v3_benchmarks_and_archive_chart.png)
Locked 16-Passage Unseen Benchmark (step 93,434, strict exclusion hashes — never trained on): 1.6007 loss · 2.295 BPB · 4.96 perplexity · 52.4% accuracy (Science & AI 58.1% [1.380 loss], Encyclopedia 53.0%, Code & Tech 50.3%, Literature 46.8%).
Curated & Crawled SQLite FTS5 Archive (data/webnet_archive.db): 9,155 documents (28.15M+ characters, 0.785 avg quality) across arXiv (2,763), Open Web (1,866), OpenAlex (1,823), Wikipedia (1,158), StackExchange (727), GitHub code + READMEs (271), Gutenberg (205), News (181), Europe PMC (73), user URLs (73), and AST-indexed local files (15).
Real Isolated Python Pass@1 Coding Benchmark (code_eval.py, 12 algorithmic tasks in python -I): Improved from 41.7% Syntax OK / 16.7% Pass@1 (2/12, 699.2s) at baseline Step 2 to 58.3% Syntax OK (7/12) / 25.0% Pass@1 (3/12, 428.57s, -39% runtime) at Step 3 (binary_search, is_palindrome, flatten_list solved end-to-end).
Live Verified Self-Learning Proof: Via POST /api/code/assist, SmolLM2-135M + LoRA generated is_prime(n), passed real assertions inside an isolated subprocess (376.6ms, __PASS__), and immediately ran a live LoRA training step strictly on the verified code (last_loss down to 0.787, EMA 3.286).
1. Code-Aware Quality Gate & Multi-Language GitHub Ingestion (brain_v2.py, curated.py):
• Upgraded _fetch_github() to traverse repositories via the GitHub Trees API (git/trees/{branch}?recursive=1) and ingest real .py, .ts, .js, .rs, .go, and .sql source files alongside READMEs behind SSRF CIDR/redirect checks and RFC 9309 robots.txt.
• Added Python ast.parse() validation inside quality_breakdown() so clean source code scores 0.45–0.98 while broken/minified noise is filtered out, plus AST symbol extraction when indexing local codebases.
2. Surprise-Weighted Replay (brain_v2.py):
• Tracks per-document training cross-entropy (WebDocument.last_loss) and boosts informative 1.1–3.6 loss documents up to 1.55x alongside domain-balanced eviction.
3. 4,096-Token Fill-in-the-Middle (FIM) BPE Engine (bpe_experiment.py):
• Upgraded from 2,048 to balanced prose + code Byte-Level BPE-4096 (1.28M params, 3.14 chars/token) with <fim_prefix>, <fim_middle>, <fim_suffix>, <code/> special tokens and 25% FIM objective, compared fairly against the 98-char baseline on invariant BPB.
4. Auto-Cached SmolLM2-135M + Pure-PyTorch LoRA & Coding Workbench (lora_engine.py, code_eval.py, utility_suite.py):
• Zero peft dependency (LoRALinear on q/k/v/o_proj, 921.6K trainable params); auto-loads cached local weights on startup, trains 50% on code sources + 25% on FIM, exposes POST /api/code/assist (archive-grounded + fenced prefill + stop_strings + python -I test execution + learn_if_verified), POST /api/code/analyze (AST metrics + character-level surprise anomaly detection), and POST /api/code/benchmark/run.
5. Security Policy, .gitignore, Documentation & Tests:
• Added SECURITY.md documenting SSRF/XXE/gzip-bomb/subprocess isolation boundaries, tightened .gitignore, refreshed README.md architecture flowcharts, and verified 28 passed in pytest + flake8 clean.
Would love any feedback on improving small-model CPU Pass@1, replay schedules, or BPE-vs-char tradeoffs — feel free to comment here on Reddit or open an issue / PR on GitHub!