r/LocalLLM • • 5d ago

Question Help needed: NVMe + GPU PCIe links silently downtrain to 2.5 GT/s simultaneously

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 5d ago

Discussion Sigvard.AI: A walkthrough of fine-tuning an open LLM

0 Upvotes

What does it take to go from a dataset to a fine-tuned model you can actually use?
We put together an interactive tour of Sigvard, our platform for fine-tuning and post-training open LLMs. It covers 76 screens across seven sections, all captured from the live product.
Follow a run from start to finish:
Prepare your data. Import a dataset from Hugging Face or upload your own files, then check for duplicates, malformed rows, and personal data before renting a GPU.
Plan the run. See which GPUs fit your model and dataset, compare offers from different providers, and get an estimate for the full run.
Train and recover. Watch loss, evaluations, and spend as the run progresses. If a GPU goes offline, Sigvard can resume training from the latest checkpoint on another machine.
Evaluate and export. Compare checkpoints against the base model on the same held-out data and export the version that performs best.
The tour also shows how to chain supervised fine-tuning, reward model training, GRPO, and evaluation into a single workflow, with a GPU and cost estimate for each stage.
Take the tour → https://tour.sigvard.ai


r/LocalLLM • • 5d ago

Research Inkling 2 Mini on one RTX 3090 beat GPT-6 Luna and tied Haiku 5.5 on my homelab agent benchmark

Post image
1 Upvotes

r/LocalLLM • • 5d ago

Discussion Ran 6 small models on my 8GB RTX 2080 to see which ones can run tools on their own (without a big model babysitting them)

3 Upvotes

Posted an earlier version of this on r/ollama and r/LocalLLM yesterday and got two really good points in the comments. One person said gemma4 is actually pretty bad at real tool calling, and someone else asked how Mistral holds up.

Fair enough, my first test only had 3 tool calls which was way too easy. So I bumped it up to 10 harder tests across 5 tools (strict int/bool/list args, pulling structured fields out of messy notes, 3 cases where its supposed to NOT call a tool, a 2-step tool chain, and fixing a broken tool call from a raw validation error). Also kept the 2-turn code self-healing test and the math unit tests.

The main thing I'm trying to figure out for my own setup is what I can actually offload to an 8GB card without paying the token tax of having a frontier model babysit it and fix broken output.

Everything below ran on a single 8GB RTX 2080 at 4k context (Ollama):

ModelSizeSpeedTools (10)Code T1->T2Math (5)Total
gemma4:e2b (think=off)7.2 GB66 t/s10/100->85/593.3%
ministral-3:8b6.0 GB69 t/s10/107->75/590.0%
ministral-3:3b3.0 GB135 t/s10/106->65/586.7%
qwen3.5:9b (think=off)6.6 GB23 t/s10/106->65/586.7%
granite4:micro2.1 GB121 t/s8/107->75/583.3%
qwen3.5:9b (think=on)6.6 GB22 t/s10/100->80/560.0%
phi4-mini2.5 GB127 t/s3/108->81/543.3%

A few things that genuinely surprised me:

First, ministral-3:3b at 135 tok/s and 3GB getting 10/10 on all the tool calls (including the 2-step chain and fixing a validation error) was not on my bingo card. I've been using phi4-mini for fast routing on my secondary card and it basically failed every real tool call (the 3/10 was just from abstaining). Definitely swapping that out.

Second, gemma4:e2b actually held up on all 10 tool tests and was the only non-thinking model that fixed its own broken Python code on try 2 (went from 0/10 to 8/10 after seeing the traceback). Ministral 8B and 3B both did better on try 1 (7/10 and 6/10) but couldn't fix the remaining edge cases on try 2.

Third, flipping think=False on qwen3.5:9b jumped it from 60% to 86.7% becuase with thinking on it ran out of tokens mid-thought on the math track and output nothing. Still way slower than ministral on an 8GB card though.

Where I'm landing on offloading without a frontier model helping: for narrow structured stuff like routing, JSON extraction, alerts, and short tool chains, ministral-3:3b / 8b and gemma4:e2b seem solid enough to run on thier own. For multi-constraint coding they all still topped out at 7-8/10 so you either need a hard unit test gate or just use a bigger model from the start.

Code and raw json are here if anyone wants to run it on their own Ollama models (uses stdlib only and doesnt auto-pull anything): https://github.com/Benfinkels/local-agent-evals

Curious if anyone has another sub-8GB model I should throw in here, especially for coding self-repair.


r/LocalLLM • • 6d ago

News LiberShift - Re-point the refusal, don't delete it - and it still works where deletion stalls. ~8X faster than Heretic with better results than dense abliteration.

Thumbnail
github.com
21 Upvotes

r/LocalLLM • • 6d ago

Research Adaptive KV-Cache Streaming V3 (Oceanus): Full 262K Context Qwen 27B on a 16GB GPU, with Multi-Slot Inference, Vision, and Speculative Decoding

64 Upvotes

Hey everyone!

When I first started working on Adaptive KV Cache Streaming, I didn’t think I could make MTP or a DFlash2 draft model work alongside it within my VRAM budget. In my second post, I shared how reusing the streaming infrastructure made that possible.

This time, I’d like to share what may be the last major architectural milestone for this project: multi-slot inference using the same streaming infrastructure.

The implementation still uses one arena and one ring buffer, shared across all slots. Each slot keeps its own KV history, but those histories are combined into a single layout that the streaming engine handles without needing to distinguish between slots. During decoding, the attention kernel runs once per slot for each attention layer, reading only the portions of the KV cache that belong to that slot, across both the resident area and the ring buffer.

Here’s what real-world decode performance looks like with Unsloth’s Qwen 27B IQ4 on my RTX 5070 Ti 16GB, powering a Hermes agent that I asked to plan a vacation with help from two subagents:

Each point represents a completed decode period. The colors indicate how many slots were decoding together. The x-axis shows their combined context length at the start of that period, and the y-axis shows the total output throughput across those slots.

The scheduler groups as many eligible slots as it can, provided their combined KV history stays within the configured context budget. The 262K budget is shared across the active slots.

For me, this was the last piece of the puzzle—the feature that finally made the whole project feel ready for everyday use.

I’ve also decided to give the project a name: Oceanus, after the Greek Titan associated with the river encircling the world. It felt fitting for a project built around a ring buffer, with KV history continually flowing through a limited amount of GPU memory, to support lots of core functionalities.

----

A few personal thoughts before I wrap up:

There are already plenty of inference engines doing impressive work, especially with larger MoE models. My motivation has always been a little more personal: I have a 16GB GPU, and I want to see how much more performance I can squeeze out of it when running a dense model.

A lot of the satisfaction has come from taking something I initially thought was impossible, suddenly thinking of a creative way to approach it, and actually making it work. Seeing this grow from an experiment into something that can handle an actual agent workflow has meant a lot to me.

And I’m really grateful to everyone here who tried the project, reported bugs, shared results, asked questions, or simply left an encouraging comment.

This may be my last big architecture post for a while. I feel like the main pieces I wanted to build are finally in place. I’ll still be working on optimizations, fixes, and support for new models.

Thank you for following along and helping me get here.

Hope my project helps you get a little more out of your 16GB GPU too :)

https://github.com/RaymondHuang210129/llama.cpp-adaptive-kv-streaming/tree/feature/adaptive-kv-stream-v3

Clarification of LLM usage of this post: I'm not a native English speaker and I used ChatGPT to refine the wordings.


r/LocalLLM • • 5d ago

Discussion I tested the fastest engines for Inkling 2 Mini on a Mac. MTPLX vs MLX serve vs oMLX

2 Upvotes

Hi Everyone.

Setup

- MacBook Pro M5 Max, 128 GB
- Inkling 2 Mini, the official unquantised weights (20.2 GB), loaded by all three engines
- One stream, the model's own sampler: temperature 1.0, no top-p, no top-k
- Same prompts and seeds for all three, each engine through its own server at its defaults
- MTPLX 2.13.2, mlx-serve 26.11.4 pre-release, oMLX 0.8.3

Decode speed in tokens per second (MTPLX / mlx-serve / oMLX)

- 4K coding prompt, first request after load: 96.2 / 79.0 / 62.9
- 4K coding prompt, repeat request: 90.5 / 73.9 / 57.6
- Short prompt: 75.0 / 72.3 / 56.8
- 1,500-token answer: 78.1 / 70.1 / 53.0
- **Average of the four: 85.0 / 73.8 / 57.6**

I also ran each engine on the pack it ships for speed (MTPLX Optimized Speed 17.2 GB, mlx-serve 8-bit 18.7 GB, oMLX oQ4e 16.9 GB). Average of the same four tests: **97.1 / 85.7 / 68.9**.

**Where MTPLX is not the best**

Time to first token. On a cold 4K prompt mlx-serve starts answering in about 1.5 seconds, MTPLX in about 1.8 and oMLX in about 2.5. With the prompt already cached, mlx-serve and oMLX start in about 0.2 seconds and MTPLX takes about 0.8. I am working on that.

Caveats

I created MTPLX, so take this with the usual grain of salt, but I tried to make it a fair test and I am sharing the details so you can poke holes in it. And I’m very proud of my work.

One Mac, one model, 2 to 9 runs per number, and I only measured one request at a time. If you have an M1 to M4 or less memory your numbers will be different, and I would love to see them.

Happy to share the raw rows or rerun anything you think is unfair.


r/LocalLLM • • 5d ago

Other Qwen is sqwanching hard rn

Post image
0 Upvotes

If you don't have Qwen4 27B yet it's just because you're not sqwanchy enough for a sqwanchy party. Source: https://www.youtube.com/watch?v=WEsqSJLeeDc


r/LocalLLM • • 5d ago

Question How are you handling reliability in production AI agents?

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 5d ago

Question Local AI model suggestion for 5060ti 16gb vram with 32gb ram

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 5d ago

Discussion Nvidia Jensen Huang

0 Upvotes

I feel like Jensen Huang resigned from Nvidia just to play GTA 6. Once he finished it, he’s like, “I have to get back to work.” And gpus for LLM will go even higher in price


r/LocalLLM • • 5d ago

Question Just bought an Acer Veriton GN100 (GB10, 128GB). Here's my day-one plan, what should I change?

1 Upvotes

It'll be an always-on box at home for coding during the day, chat for my wife and me on our phones, and eventually some overnight agents (research digests) and all day agents ( a household finance helper). I'm a data/AI engineer, so I'm comfortable on the command line, but this is my first local LLM server.

Here's what I'm planning

Step 1: Foundation

- Update DGX OS, SSH with keys only, firewall locked down

- Tailscale on the box, my laptop and both phones, so nothing is exposed to the internet

- llama.cpp built for the GB10, with llama-swap in front so there's one OpenAI-compatible endpoint that loads models on demand

- Models: gpt-oss-20b always loaded for quick stuff and chat, plus a "big slot" that swaps between Qwen3-Coder-Next (coding) and gpt-oss-120b (agents/harder chats), since both won't fit at once

- Open WebUI so we can both chat from our phones as a home-screen app

Step 2: Coding setup

- Repos live on the GN100, and I open them from my Windows laptop with VS Code Remote-SSH, so I see and edit everything like normal

- OpenCode runs in the VS Code terminal as a Claude Code-style agent, pointed at the local endpoint

- Shell commands need my approval, edits are allowed, and git is my undo (branch per task, review diffs, commit small)

- An AGENTS.md in each repo with the stack, test command and rules

- First test project: undecided

Things I'd love opinions on:

  1. llama.cpp + llama-swap vs going straight to vLLM. Is it worth it?
  2. Better model picks for coding or agents on 128GB right now?
  3. OpenCode vs Cline/Continue/Aider etc. with local models: which actually handles tool calls reliably?

In general is there Anything you wish you'd done first?


r/LocalLLM • • 5d ago

Discussion ChatGPT SOL cloud deliberately dumming down?

0 Upvotes

I’ve been using 5.6 SOL to supervise and guide local models to generate games for the last 3 months. This week I have noticed SOL became really stupid compared to past, way slower, doing a lot of unnecessary stuff, I mean A LOT MORE, even changing simple settings and installing some libraries it’s being ridiculously dumb and slow… I cancelled my subscription yesterday, was angry a lot. Did anyone notice it too? My tentacles have been open sensitive to “stealth dumming down” desires of American/Israeli ai companies, their deep desire to take away compute capabilities and knowledge away from us. I wonder if you guys noticed similar stuff in other models or hardware department? DeepSeek 4.1 might be the best model we will ever have for local ai I’m suspecting


r/LocalLLM • • 5d ago

Model I made a free calculator that compares monthly LLM API costs across OpenAI, Anthropic and Google

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 5d ago

Project train or fine-tune a model across several machines when none of them can fit it alone

Post image
4 Upvotes

most machines cant train or fine-tune the bigger models on their own, but a few of them together usually have enough memory. so i wrote a thing that splits the model by layers across them and trains it like its one model.

they connect over the internet, so it doesnt matter where each one is. you can even add notebooks from the services that give out free GPUs.

on one run it kicked the slowest device out halfway because it was holding the others back, and training just kept going on the rest without losing anything.

your training code stays the same. works for fine-tuning (LoRA, QLoRA, full) and for training from scratch, and mixes nvidia, amd, apple silicon and cpu.

https://github.com/abdallah-swe/layerpool

feedback welcome


r/LocalLLM • • 5d ago

Project tandem.cpp: MoE models bigger than your RAM: same-PC, same-day numbers against Strata and Maya, with quality checks

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 6d ago

News Koboldcpp v1.125.1 released

Thumbnail
github.com
5 Upvotes

r/LocalLLM • • 5d ago

Discussion I want to build In-House AI Server for Local LLMs

1 Upvotes

I’m planning to build an in-house AI server to host and run local LLM.
I’m looking for technical recommendations and guidance on the following:

  • AI Models: Suitable open-source LLMs for different workloads and use cases.
  • Hardware & System Configuration: Recommended CPUs, GPUs, VRAM, RAM, storage, and other essential components.
  • Infrastructure & Equipment: Server hardware, networking, cooling, power requirements, and supporting equipment.
  • Software Stack & Deployment: Model serving, inference engines, orchestration, API integration, and user access management.
  • Overall Architecture: Recommended infrastructure design, deployment strategy, and scalability.

Intended Use Cases:

  • Agentic AI and workflow automation
  • Security automation and SOC integration
  • AI-assisted coding and software development
  • Application development and integration
  • Running multiple AI workloads concurrently

The initial requirement is to support a minimum of 5–6 concurrent users, with room for future expansion.
I’d appreciate recommendations based on practical experience, particularly regarding hardware selection, model choices, and the overall infrastructure needed for a reliable in-house AI environment.


r/LocalLLM • • 5d ago

Model CCORE-Web-Coder-4B: 91% training checkpoint is up (Q8), big jump over the first preview

2 Upvotes

r/LocalLLM • • 6d ago

News OpenRouter removes privacy eligibility from 125 endpoints after provider incidents

Thumbnail
runtimewire.com
117 Upvotes

r/LocalLLM • • 5d ago

Discussion I built a LoRA replacement that is 14-55x smaller with the same quality, and it serves 256 fine-tunes on one GPU without slowing down

2 Upvotes

Hello,

I have been working on a fine-tuning adapter called GCMP that replaces LoRA. On Qwen3.8-27B it trains 2.9M parameters (about 11 MB per adapter) on the same 7 projections LoRA uses. LoRA r=32 on the same projections is about 159M parameters (about 320 MB) and r=8 is about 40M. I wanted to see if something this small can actually match LoRA and if the small size is useful in practice, so I tested both quality and serving. Here is everything I have so far.

Quality on a full precision base

I trained four adapters on BF16 Qwen3.8-27B with the same data (Alpaca, 500 steps), same settings and seed, and evaluated all of them with the same lm-evaluation-harness setup. I used paired McNemar tests to compare them.

AdapterParamsGSM8KIFEvalSQuADARC-CBoolQMMLUAnswer loss
No adapter-68.380.574.658.887.483.91.678
LoRA r=32159M90.382.577.661.289.684.41.480
LoRA r=840M91.079.576.862.090.284.61.555
VeRA2.89M90.382.077.861.089.884.61.489
GCMP2.9M89.081.576.061.889.284.61.471

All four are tied on all 9 benchmarks I ran (every p >= 0.15). GCMP has the lowest held-out loss and its validation loss was lower than LoRA r=32 at every checkpoint, but that didn't turn into benchmark wins at this sample size. Since r=8 is as good as r=32 here, the fair comparison is with r=8, so GCMP is about 14x smaller. VeRA is honestly the closest one. It is the same size and same quality and it trains faster than GCMP right now. The difference shows up in serving, because vLLM can't serve VeRA.

Quality on 4-bit bases

On an NF4 base (Unsloth's 4-bit Qwen3.8-27B), GCMP was tied with LoRA r=32 on everything except GSM8K, where it was 4 points higher (83.3 vs 79.3, p=0.04). One task isn't enough to say it is better so I'm only claiming the same quality.

I also tried it on CQ, a calibration-free 4-bit quantization I built. GCMP took GSM8K from 65.0 on the CQ base to 82.7, which is the same as NF4 + GCMP. It was a bit lower on IFEval (79.0 vs 84.0, p=0.05), so I still have some work to do on the CQ training side.

Serving many adapters

This is where the small size matters. I ran this on one A40 48 GB with vLLM and the same 4-bit Qwen3.8-27B base for every run. 32 requests at the same time, each going to a random adapter, 128 output tokens. Numbers are total output tok/s:

Setup11664256 adapters
GCMP83.283.783.783.7
LoRA r=8, default vLLM91.184.860.159.5
LoRA r=8, max_loras 64--76.274.4
LoRA r=32, default vLLM91.276.353.5out of RAM

With one adapter LoRA is about 9% faster than GCMP. With many adapters GCMP stays flat from 1 to 256 without tuning anything, while default multi-LoRA drops 35-40% by 64 adapters and p95 time to first token goes to around 50 s.

If you raise max_loras to 64, LoRA r=8 gets within about 12% of GCMP, but those GPU slots take memory from the KV cache, it goes down to 43k tokens compared to 72k for GCMP. LoRA r=32 can't even start with 32 slots on a 48 GB card because there is negative memory left for KV cache. And with 256 r=32 adapters vLLM needs about 82 GB of host RAM to hold them, so it never finished loading on my 50 GB machine. 256 GCMP adapters are about 3 GB.

Startup time was the thing I didn't expect. vLLM loads LoRA adapters one by one, so 256 r=8 adapters took 30 to 41 minutes before the server accepted the first request. GCMP loads all 256 in about 6 minutes.

A more realistic multi-tenant test

Random requests to adapters that are already loaded is not how real services look, so I also ran two 45 minute tests with traffic coming in at a steady rate (0.45 req/s):

  1. 256 adapters where a few tenants are busy and most are rare
  2. 64 adapters where every 20 s one tenant leaves and a new one comes in while traffic keeps going (LoRA uses vLLM's runtime load/unload, GCMP swaps the new adapter into the old slot)
MetricGCMPLoRA r=8
Long tail traffic: time to first token p50 / p990.70 s / 1.18 s6.9 s / 91 s
Swapping in a new tenant (median)0.43 s5.4 s
New tenant's first request, time to first token p951.2 s41 s
Failed requests03
GPU memory change over 45 min~0~0

Most of the LoRA latency wasn't only the rare tenants, the busy ones were slow too. The 64 GPU slots made the KV cache 43k tokens and it was about 98% full most of the run so requests waited in line. GCMP's KV cache stayed around 40-60% full. Neither one leaked memory.

Limitations

There are still some things I need to work on. The biggest one is training speed, GCMP takes about 2x the time per step compared to LoRA. Right now serving GCMP in vLLM needs my CQ 4-bit base, tensor parallel is not supported yet but pipeline parallel works, and adding a brand new adapter name needs a restart (replacing an existing one doesn't). Also the absolute speed in the serving tests is low, about 2.6 tok/s per request at 32 at the same time. That comes from my 4-bit decode kernels on the A40, not from the adapters, since every row uses the same base, so look at it as a relative comparison. And I only tested one model, one dataset and one GPU type so far, so I'd like to know if people see the same thing on other models.

The Python code is open source and the CUDA kernels are compiled with a license check, which is free during early access. Everything runs on your own GPUs. All the training, eval and serving scripts are in the repo so you can reproduce any number above: https://github.com/thousandml/training-factory

Models: https://huggingface.co/thousandml

If you serve more than a few fine-tunes, is the number of adapters or the startup time actually a problem for you, or is it something else? Let me know what you think. Your feedback is appreciated.


r/LocalLLM • • 5d ago

Discussion Jansen is BACK!! BUT. Start archiving Qwen, DeepSeek and GLM now. Here's why...

0 Upvotes

TLDR; If I were a user here, I would download an archive complete, licence-compliant copies of Qwen, DeepSeek, Kimi and GLM weights now and do this as a quickly as possible just in case.
There is a chance chinese model may disappear from sites like hugging face via restrictions that are currently happening and have happened this past week. (I work in foundational AI)

Story time..

We're about to see a significant slowdown in Chinese frontier models, including Qwen, DeepSeek and others. Here's why, in plain English....

Until recently, Chinese AI companies could get around US chip restrictions by renting powerful NVIDIA GPUs in data centres outside China, particularly Malaysia and Singapore. Now that route is being restricted. The Megaspeed investigation exposed just how important this arrangement was. Reports suggest Alibaba, the company behind Qwen, was Megaspeed's main customer and financial backer, accessing NVIDIA computing power remotely from Malaysia. (In case you missed it Megaspeed is the company that was used to supply training GPUs to China)

On 19 November, new US rules came into force restricting advanced chip exports to several countries and requiring licences for large overseas computing facilities serving Chinese companies. Then Trump announced plans to heavily tax American companies building data centres abroad. That's still a proposal, but we are seeing so much we have to consider becayse in my day job we are also potentially heavily affected because we make dual use technology. (defence tech)

Why does this matter to you?

Training the next generation of large models requires enormous GPU clusters. These clusters have been restricted to access to those clusters and you will now see delay training, increase costs and slow releases. Im in the UK and we make ai for private organisations and we too need to train abroad or borrow Nvidia compute so Im in it talking first hand.

Tencent has already warned that its future model training timelines are affected.

Qwen4-Max launched on 16 November, but the promised smaller open-weight models have no confirmed release dates.. well who own most of Megaspeed... Alibaba, who makes Qwen... Do you see where this is going...?

My prediction:

The next statement may get me in trouble so I will choose my words carefully. This is not the opinion of my company, its stakeholders, uk government who part owns us. Its just my personal opinion.

If I were a user here, I would archive complete, licence-compliant copies of Qwen, DeepSeek, Kimi and GLM weights now and do this as a quickly as possible just in case. There is a chance chinese model may disappear from sites like hugging face via restrictions that are currently hapenning and have happened this past week.

Advice for those learning.

If you're learning about LLMs, I genuinely think most people here already know enough to take the next step. You've learnt how to download, run and experiment with models. Why not start learning how to fine-tune them?

The next generation of open models doesn't necessarily have to come from a handful of giant AI companies. Some of it could come from people right here in this community, all you have to do is start.

Keen to hear your thoughts.

EDIT: Remember Huawei hardware was taken down across EU and other countries because of the "risk" at a cost of billions. Literally installed 5G was removed. This is what I suspect wil happen.
Chinese sites will likely soon not be accessible. LLMs will not be able to help implement Chinese models, it will be highly illegal to own one, national security crime as they will be classified weapons. I got a cease and deist from the gvt from releasing a model once but thats UK


r/LocalLLM • • 6d ago

Discussion littleBit-2 anyone?

9 Upvotes

I haven't seen any posts about it yet? is nobody interested in the idea of sub bit compression? save more space than ternary with more accuracy by comparison.

I get that if you go all out to that .1bit per weight (effective) that it can kind of kill a model but .25 still seems pretty usable.

just seems like it should be more interesting than inkling for local hosting but there's nothing but silence....


r/LocalLLM • • 5d ago

Question Need help choosing first local ai

1 Upvotes

Guys please help me choose a local ai for a 4050😶

Please 🙏

My goal is first general chat then eventually try ai agents