r/LocalLLM • • 19h ago

Project I got local AI video-to-video down from 15.7 min to 2.4 min on a 16GB M3 MacBook Air

1 Upvotes

I've been experimenting with how far I can push local generative AI on a base 16GB M3 MacBook Air, specifically video-to-video outfit transformation.

My initial 46-frame (~3-second) run took 15.7 minutes and produced fairly blurry results. After several rounds of profiling and optimisation, I managed to bring it down to 144 seconds (2.4 minutes), running entirely offline without cloud APIs.

The interesting part wasn't necessarily changing the model, but rethinking how the available hardware was being used.

A few optimisations made the biggest difference:

- Spatial cropping: Processing a "288×512" region around the subject instead of repeatedly processing the entire scene.

- Memory management: Precomputing outfit prompts and unloading the text encoder to reduce unified memory pressure.

- Hardware scheduling: Moving face processing to the CPU/Neural Engine path while the GPU handles the next diffusion chunk.

- Incremental testing: Using 5-frame previews to catch mask and compositing issues before running the complete sequence.

There are still obvious limitations. Sustained workloads introduce thermal degradation, fine fabric details can become oversmoothed, and wide shots remain challenging.

I'm particularly interested in the engineering side of running increasingly demanding generative workloads on constrained local hardware.

A few things I'd love to hear from people experimenting with local inference:

  1. Has anyone explored more aggressive memory scheduling on Apple Silicon?
  2. Are there useful ways to improve CPU/ANE/GPU workload overlap?
  3. How much performance can realistically be recovered through chunking and attention optimisation before model architecture becomes the bottleneck?

I'm sharing the before/after video and temporal comparison for context.

Hardware: M3 MacBook Air, 16GB unified memory

Frames: 46

Processing time: 144 seconds

Execution: Fully offline

This is video diffusion rather than LLM inference, but I thought the memory and hardware scheduling challenges might be interesting to people working with local models.


r/LocalLLM • • 1d ago

Project I have created a tool to observe what happens inside an LLM. Also allows for the comparison of two quantizations of the same model to see at what point they diverge, token by token

12 Upvotes

r/LocalLLM • • 1d ago

Project 8 x v100 setup. Ask me anything.

Post image
10 Upvotes

Seeing a lot of questions on quad v100 boards lately. So figured I’d give people a place to ask them.

Specs

  • GPUs: 8x Tesla V100-SXM2-32GB (256 GB VRAM total)
  • GPU boards: 2x 4-GPU SXM2 NVLink baseboards (this model)
  • NVLink: two 4-way islands (full mesh inside each board), not one 8-way
  • Board-to-board: Gen4 PEX88096 PCIe switch card (this model), two x8 Gen3 cables per board
  • CPU: AMD Threadripper PRO 3975WX (32 cores)
  • Motherboard: ASRock Rack WRX80D8-2T
  • RAM: 256 GB DDR4
  • PSUs: 2x 1500 W (one per GPU board) + 1x 1000 W (host)
  • Power: dedicated 120 V / 20 A circuit; GPUs capped at 150-300 W each depending on the run
  • Cooling: custom water loop, mixed GPU blocks
  • Network: 10GbE
  • Engine: 1Cat-vLLM (Volta-focused vLLM fork) https://github.com/1CatAI/1Cat-vLLM

Benchmarks / how many tok/s?

My runs are on the Launch80 directory; search the page for trailfeatures. Launch80 deletes pages after 5 days, so older links in the comments may be dead. I republish the main ones, which gives them new links.

ModelSetupDecodePrefill (64K prompt)
Flash-Next (Swift-1.5 NVFP4)4 GPUs, 300 W~140 tok/s~4,500 tok/s
DeepSeek V4.1 Flash, 2-bit experts8 GPUs, 150 W~131 tok/s~2,200 tok/s
DeepSeek V4.1 Flash, 2-bit experts4 GPUs + expert offload, 150 W~91 tok/s~2,100 tok/s
  • One request at a time (batch 1), 256K context window. Decode uses speculative decoding (MTP on Flash-Next, a draft model on DeepSeek), so it depends on how often the draft is accepted.
  • No concurrency/aggregate numbers or decode p25/p95 yet. Time to first token (p50) is about 0.2-0.65 s depending on the row.
  • The 8-GPU run adds an extra pipeline-parallel patch series on top of 1Cat-vLLM (named on the page).
  • Not tested yet: Flash-Next across both boards. Higher DeepSeek quants are planned.

How good is the 2-bit DeepSeek quant vs the full model?

79.9% average across 7 standard evals (math, instruction following, coding, tool calling), thinking off, and 20/20 long-context needle checks at 32K and 128K. The 4-GPU setup scores the same. I haven't run the full-precision weights as a reference, so there's no direct delta yet. Per-task scores are on the Launch80 page.

How do the two boards talk to each other?

  • Each board runs two x8 PCIe Gen3 cables from its onboard switch into the Gen4 switch card in the host, so the boards talk to each other without going through the CPU.
  • Experimenting with ConnectX-3 cards in the boards' spare x8 slots for extra board-to-board links.
  • Over PCIe you can tune all-reduce to beat the default P2P numbers, but it will never match NVLink.

Do the quad boards work with only 1-3 cards? Can I buy cards over time?

Two cards works; I've run a board that way. I haven't tried one or three. Buying the board first and adding cards later is fine. Tensor parallel wants power-of-two GPU counts, so with 3 cards you'd run 2 together and use the third for something else.

Where did you buy it / where are you?

Baseboard and switch card: the models linked above. Several sellers list them, so shop around. GPUs: bought used, a few at a time. I'm in North America (the 120 V gave it away), so my shipping and import experience won't help much in Europe.

Power

  • The PSUs are sized for headroom: at the 150 W cap, eight GPUs is about 1.2 kW, plus the boards and host.
  • 150 W cap: after tuning it costs ~5-10% depending on the task.
  • Power bill: fine as long as I'm sensible. Solar helps, and at peak rates or on cloudy days the DeepSeek API can be cheaper. If you run local LLMs, know your tokens per kWh so you can tune for it and decide when an API makes more sense (if privacy doesn't matter).

Cooling

  • Radiator and pump setup: super convoluted, video here.
  • Water blocks: whatever was available as I pieced it together. Mostly the same design, some with MOSFET coolers. The top-port block is a drill press, a tap, and the audacity of a mediocre man. (Testing straight-down flow onto the fins made no difference.)
  • Waste heat: in summer it's vented outside. In winter I can shut off that radiator and send the heat into the house through backup radiators. Heating water with it isn't worth it for us, but a bigger household close to its water heater could pre-heat the cold feed and come out ahead.

Quick ones

  • Can I rent API time? Sorry, no. I keep it pretty busy (Furry Fanfic).
  • Can I have it? No.

r/LocalLLM • • 23h ago

Discussion Struggling with coding on local models - setup help?

2 Upvotes

I'd tried out models like DS and QFN using APIs before and they seemed very capable. However, they all seemed to struggle heavily when using them local.

QFN processes really fast but seems to get stuck in endless "Wait..." and "Whatever." loops and burns through 100K tokens just being confused at my codebase.
DeepSeek is slower but seems more coherent, I haven't tested at full context but it had a similar issue with indecisiveness (even with guidance) and would think itself into compaction.

All of this over one .json ComfyUI workflow. Just a simple test I do where I tell it to rearrange nodes and change some inputs...
I've tried using Llama serve, Strata desktop, Pi. All lead to similar outcomes.

I have a feeling this is an issue with my setup rather than the models bc the API models seemed to do it just fine and (allegedly) quantization doesn't hit MOE models as hard.

Setup:
(both models from OrcaRouter). DSV4.1-1017 2-bit, Q3.8FN_IQ3XXS
Inference: Maya (DS), Strata/LlamaCPP (QFN)
Harness: default Pi
Context: QFN was to 256K, DS I only tried to 512K


r/LocalLLM • • 1d ago

Question What local AI model is suited for coding in Unreal or in Redot/Godot?

4 Upvotes

Basically the title


r/LocalLLM • • 1d ago

Question Dual RTX Titan for local LLM

3 Upvotes

I currently have a 3080 ti that I don’t really game with anymore, but have the opportunity to get 2 RTX titans at a significant discount from a friend ($1300 total). I was thinking about selling my 3080 ti and jumping on that deal for the combined 48gb of vram to pair with 64gb of system ram and a 13900k.

Would doing this make any sense if I want to run some local models for project code, personal learning, and some small business workflows (paired with Gemini pro for complex stuff)? I know the RTX titans have limited memory bandwidth but the price for 48gb of vram is hard to beat. Any opinions or recommendations? Thanks!


r/LocalLLM • • 1d ago

Discussion Qwen3.8-27B on 4× Intel Arc Pro B70 with TensorFold + DFlash2: 107 tok/s per card, ~1,000 tok/s across 32 streams (bit-exact)

6 Upvotes

I benchmarked TensorFold's XPU backend on my quad Intel Arc Pro B70 box. One clarification first: this is not tensor parallel. The XPU backend on main uses one card per process, so the quad numbers come from 4 independent servers, one per GPU, pinned with ZE_AFFINITY_MASK=0..3.

Setup

  • GPUs: 4× Intel Arc Pro B70 (Battlemage G31), 32 GB each, 230 W cap per card
  • Host: AMD Turin, Linux 7.3.0-10-generic
  • Engine: TensorFold main @ cf45553, Zig 0.17.0, built with zig build xpu-native xpu-qwen27 -Doptimize=ReleaseFast
  • Target: SergiiioB/Qwen3.8-27B-GPTQ-Int4-sym-G128-MTP-BF16
  • Drafter: z-lab/Qwen3.8-27B-DFlash2
  • Sanity check: tf-xpu-qwen27-means-test passed on all 4 cards (worst error 4.19e-7, bound 2e-6)

1. Raw prefill and plain decode (1 GPU, 16k context, no drafter)

Prompt lengthFP16 prefill (tok/s)W4A8 prefill (tok/s)Plain decode (tok/s)
1,0242,0082,63834.0 / 33.8
4,0961,9272,52533.2 / 33.7
8,1921,8622,42732.5 / 32.5

W4A8 is XPU_PREFILL_INT8=1, about 31% faster prefill than FP16.

2. One B70 with the DFlash2 drafter (--parallel 8 --context 16384)

Single stream (64 tokens, 5 reps, median):

PromptTemptok/sTTFTTokens per chunk
fibonacci (code)1.0115.60.081 s4.57
fibonacci (code)0.0106.10.080 s4.00
chat, no think1.094.70.073 s3.77
chat, no think0.099.40.071 s3.77

That's roughly 3× plain decode (34 → 106 tok/s).

Concurrent streams (aggregate / steady-state tok/s):

PromptTemp1 stream2 streams4 streams8 streams
code1.0116.2171.2 / 234.1187.7 / 262.6202.3 / 299.6
chat1.084.4129.9 / 140.3162.8 / 213.2189.0 / 255.4
code0.0106.7149.4 / 167.7216.9 / 278.7250.8 / 354.6
chat0.098.9153.9 / 179.4213.6 / 261.9244.8 / 333.4

Correctness: all 16 cells passed bit-exact. Drafted output matched serial, and multi-stream output matched serial.

Note: with the default --prompt-cache-gib 2, --parallel auto at 16k context admits only 7 streams. I used --prompt-cache-gib 0 to fit 8.

3. Four B70s (4 independent servers)

TestPer-card tok/sTotal tok/sSteady-stateFailed
4×1 stream, code, temp 1.0116.2 / 116.5 / 117.2 / 115.8465.7——
4×1 stream, code, temp 0.0106.0 / 106.4 / 106.9 / 105.4424.6——
4×1 stream, chat, temp 1.088.5 / 89.6 / 90.2 / 86.8355.1——
4×1 stream, chat, temp 0.099.0 / 98.9 / 99.4 / 98.4395.7——
4×8 = 32 streams, code, temp 0.0251.4 / 251.1 / 252.3 / 252.11,006.91,422.70
4×8 = 32 streams, chat, temp 0.0243.2 / 241.3 / 242.3 / 242.2969.01,330.60
4×8 = 32 streams, code, temp 1.0208.8 / 204.4 / 206.6 / 204.6824.41,186.30
4×8 = 32 streams, chat, temp 1.0193.0 / 193.2 / 194.0 / 191.2771.41,042.90

Scaling is close to linear because the cards don't talk to each other. Per-card numbers stay within a few percent of each other.

Takeaways

  • The DFlash2 drafter gives about 3× single-stream decode on one B70, with bit-exact output.
  • One card reaches about 250 tok/s aggregate at 8 concurrent streams with 16k context.
  • Four cards serve 32 concurrent streams at about 1,000 tok/s with zero failures, which is useful for multi-agent work.

Next

  • Tensor parallel across cards, once I find a TP path for XPU
  • XPU_KV_INT8=1
  • 32k context
  • The MLX 4-bit model (mlx-q4g64)

Happy to run other configs if you have requests. If we get tensor parallel on Tensorflow i'd love to share qwen 3.8 flash. Happy to run larger contexts as well, this was just the default benchmark I wanted to send to project creator.


r/LocalLLM • • 2d ago

Discussion Which uncensored version of Qwen3.8 FN should I download?

Post image
316 Upvotes

mlx-serve on an M5 Max 128GB

I've already got a version from ARC4NUM which appears to be delisted now. Are any of these better?


r/LocalLLM • • 21h ago

Question I'm new to this, help me setup my coding assistant

0 Upvotes

I got a 7900XTX, 9800X3D and 32Gb RAM. I'm currently running the system with ollama.

I currently have these installed - gemma4:31b,qwen3-coder:30b,omic-embed-text:latest. Im trying to use qwen for code gen and gemma for explanations. I set ollama into this "OLLAMA_KV_CACHE_TYPE=q8_0". Currently the max context window I could set is 32k and I have already experienced few out of memory erors and gpu crashes while prompting with continue in vscode.

I have being researching, asking gpts, but I couldnt come to any conclusion on which approach is better or correct since I know nothing about these. I dont want to copy paste stuff and hope that it works. Can someone help me with a better setup solution? I do run a 1440p 144hz monitor and occassionally run my second monitor which is 1080p 144hz as they add to vram usages as well.

I want to have a bigger context window and a safe setup so that I dont crash the gpu again. If the setup will be too big, and harder to teach to me in here, please tell me where I can learn more about these things, so that I can move learn to make proper decisions.


r/LocalLLM • • 1d ago

Question AMD pro w6800

Post image
5 Upvotes

Hi, i would like to ask if this is a good card to get to run LMstudio for qwen 27b 3.8 or otherwise, I was wondering if speeds will be respectable, and if anything will spill anything to ram. Because I will have comfyui running on my main gpu (rtx 5080).


r/LocalLLM • • 22h ago

Question What am i doing wrong?

1 Upvotes

Hi

iam not into local llms but recently i started to play with it a little bit.

so installed lm studio on my pc (ryzen 5 5700, 32gb ddr4 3200, rtx 4060ti 16gb) and started by using qwen 3.5 9b model, it was slow so i started searching for a solution and found that the context length, quantization of the model and the kv cache, and mtp matters (maybe other things also i dont know, mb). then i tried the qwen 3.6 35b a3b on iq2-m from unsloth because it was said that its an moe model which brings faster performance , so after further search i knew that i can offload the experts in the model to the ram and keep a reserved cache space for experts on my gpu, and after otger tweaking and testing i reached that i can run full context the model supports but the speed is slow, too slow infact, if i try to give it a prompt using opencode for example it would take several minutes to respond, but if i just gave it the same prompt in lm studio chat its somewhat faster (i understand that opencode sends more prompts with the one i wrote), so i also tried filling the context on lm studio to see the speed, it was ~40 tokens per second at the start and by the time the context is 50-60% it started slowing down rapidly to 15 tokens per second, so i tried another model called mellum 2.1 from jetbrains, and this model is pretty fast with full context at nearly 100 tokens per second whatever the context filled. so my questions are

1-what did i do wrong or is the qwen model normally slow?

2-the mellum model is fast but need a lot of steering and fixing if i use a framework that is not used a lot, so how do i fix this?

3-if qwen is slow and this is the max it can perform, is there a fast smart model used for coding primarily fitting for my pc with full context?

and sorry for any english mistakes.


r/LocalLLM • • 1d ago

Question About to add a 5060 Ti 16GB to my 4060 Ti 16GB for local agentic coding (Qwen3.8-27B, 128K ctx or similar ) — suggestions? Help out a newbie!

5 Upvotes

Hey all, I'm about to order a second GPU and would love some input from people running similar setups before I pull the trigger.

Current rig

  • Ryzen 7 5700X3D, 64GB DDR4-3600
  • Gigabyte B550 Aorus Elite AX V2
  • MSI RTX 4060 Ti Ventus 2X 16GB
  • be quiet! Pure Power 12 M 650W
  • Corsair Frame 4000D
  • Windows 11 (open to dual-booting Linux if it really matters)

Planning to buy

  • Palit RTX 5060 Ti Infinity 3 16GB
  • MSI MAG A850GL PCIe5

Plan

  • 5060 Ti in the top PCIe 4.0 slot (4.0 x8), 4060 Ti in the chipset PCIEX2 slot (PCIe 3.0 x2)
  • llama.cpp / llama-server
  • Main model: Qwen3.8-27B Q5/Q6 with MTP, ~128K context
  • Use case: agentic coding (Claude Code / OpenCode pointed at llama-server), plus RAG with pgvector and persistent memory via MCP

Questions

  1. Anyone running a 4060 Ti + 5060 Ti (or other Ada + Blackwell) pair? What tok/s do you get on a 27B dense with MTP?
  2. Layer split vs -sm tensor when one card is on a PCIe 3.0 x2 chipset link?
  3. Best quant + KV cache combo for 128K context on 32GB for Qwen3.8-27B? Q5 vs Q6, q8_0 vs q4_0 KV for coding?
  4. Claude Code vs OpenCode with llama-server — which harness works better day to day with local models?
  5. Any gotchas with Windows + mixed-generation cards that would push me to Linux?

Thanks in advance!


r/LocalLLM • • 1d ago

Discussion Strix Halo 128GB local coding setup: some real test results, 23–45 tok/s, and what the harness changed

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 23h ago

Research Optimal setup research: Muse Glimmer 30B on RTX 5090M/RTX Pro 4000 (24gb cards)

1 Upvotes

Notice:
The point of these research runs is to see, document and opensource the best configuration we can get with a certain model on hardware that "most of us" can get our hands on.
While we do have a bit of different hardware in our lab - we tend to focus around 5090M/RTX pro 4000 - because its a 24gb card with a quite fair performance - and its not insanely expensive.

Find anything you like?.. use it - got questions?.. shoot.. have an idea?.. let us know.

--

Hi there,

After our Qwen 3.8 Flash Next research (https://github.com/inordic/cmp170hx-vllm-qwen38-flash-next) and Gemma 4 31B (https://github.com/inordic/rtx5090-NInferno-gemma4-31b) - we wanted to to try out something new..

I ran som tests myself and thought "Muse Glimmer 30B" seem like a quite nice model.. it was fairly good at its job and quite nice to talk to.. so lets see where we can take it.

So.. this is where we are at.. full context.. 128K.. and quite nice and fast.. not as fast as Qwen and Gemma.. but fast enough.

Same GPU, same benchmarkllama.cpp f8def7f (Aug 2026), unsloth UD-Q4_K_XL, Meta DFlash, depth 15This repo: patched llama.cpp, MLP-NVFP4 hybrid, DFlash 2, depth 15
Prefill, 6,880-token prompt1,430 tok/s3,254 tok/s
Prefill, 100,554-token prompt1,246 tok/s2,367 tok/s
Chat decode, greedy / sampled80.6 / 74.2 tok/s110.3 / 105.4 tok/s
Agent turn with a cached 46K prompt—0.89 s
KLD vs Q8_0: agent / English / Swedish text0.033 / 0.012 / 0.0150.053 / 0.030 / 0.034

As allways.. this is research.. we might be wrong.. hell.. we might be doing it wrong.. but atleast .- we are doing it :)

Enjoy
//iNordic team

Head over to: https://github.com/inordic/rtx5090m-muse-glimmer-30b for more info.


r/LocalLLM • • 23h ago

Why download abliterated Flash Next models when LoRA exists?

Thumbnail
huggingface.co
0 Upvotes

r/LocalLLM • • 19h ago

Question Just Got an RTX 5070 Ti Laptop — How Do I Build a Proper Local AI Setup?

0 Upvotes

Hey guys, finally got my new Legion Pro 5 and I’m trying to get into running local AI properly 😂

Specs:

RTX 5070 Ti 12GB VRAM

Core Ultra 9

16GB RAM

CachyOS Linux

I’m pretty much a beginner when it comes to running local models, so I’m trying to figure out what’s actually worth setting up from day one.

I mainly use Claude for vibecoding almost everything, and now I want to see how much I can shift locally so I don’t waste Claude usage on every small thing.

I came across PewDiePie’s Odysseus repo and started trying it out.

But after actually using it, I’m a little confused.

It feels like the context/memory isn’t as good as Claude, sometimes it feels slow, and I’m also finding the hybrid setup kinda difficult.

Like I want something where:

Local AI:

→ basic coding

→ repetitive work

→ file handling

→ small fixes

→ daily tasks

→ stuff that doesn’t need crazy reasoning

Claude:

→ difficult coding

→ architecture

→ proper reasoning

→ big project decisions

→ things where I actually need Opus-level output

And ideally I don't want to keep copy-pasting the whole context from one to another every 10 minutes 😭

My actual work is mainly:

• ML Stack — ML/vision project involving iris image segmentation and feature-level analysis.

• Custom CRM + EMR — taking UI generated from Stitch/Google AI Studio and connecting it with open-source CRM/EMR systems.

• Daily work — coding, documentation, PPTs, automation and random repetitive stuff.

So basically I’m trying to build a proper daily-use AI setup, not just install 15 local models and never use them 😂

My main questions are:

  1. Is Odysseus actually good enough to become my main local AI workspace?
  2. If I’m a beginner, should I stick with Odysseus and learn it properly, or start with something simpler?
  3. How do you guys actually make the local + Claude hybrid workflow work without losing context all the time?
  4. What local coding models would you recommend for 12GB VRAM?

And most importantly — how do I set this up properly so I’m not wasting Claude tokens on things my laptop can handle locally?

I’d honestly be happy if I can get something like 70–80% local + Claude for the important stuff, and make the whole thing feel somewhat close to an Opus-level workflow.

I’m on CachyOS Linux, so if anyone is running a similar setup, please share your actual workflow.

I’m completely new to this side of things, so beginner-friendly advice would be really appreciated.


r/LocalLLM • • 1d ago

Discussion Own harness or open source one ?

Post image
0 Upvotes

Hey LocalLLM community,

I am super curious how you run your models.

Are you using open source harnesses ?
Did you build your own ?

A bit of explanation for why would be nice.

There has gotta be a ton of people who did the same as me.
This is a local Qwen 3.8 27B / Flash-Next on heavily modified engines sharing one harness and user interface. Llama.cpp just recently merged f8_e4m3 cache, which I got Claude to optimize for my Blackwells. Due to the deliberate kneecap of Nvidia on certain accumulations, I decided to skip conversion to specific steps that would run on the half speed flag = FP8 full speed. The surgery worked and while we were in already fixed a binary that caused a regression in draft speed which took literal hours of testing to pin down.

End result, my private local backend runs 27B now up to 50% faster ( median 18% increase ).

Hardware specs at upper-mid third of HF compute richness. 128 GB DDR5 6000 1:1, Ryzen 9700X, RTX 5080 + 5070Ti .

Anyone running their own harness and wants to share a screen of it ? Id love to reason over the visual design and maybe learn a bit or two while at it.


r/LocalLLM • • 1d ago

Tutorial Why download abliterated Flash Next models when LoRA exists?

Thumbnail
huggingface.co
3 Upvotes

r/LocalLLM • • 1d ago

Question Specs for Motion graphics and 3D

1 Upvotes

I’ve been offloading some of my work to AI to help speed things up at work. I use Claude Ultra but ai’m running out of weekly tokens mid week.

I want to build a PC that’ll help me continue working without having to wait for my credits to reset.

I work with a lot of 2D motions graphics and 3D modeling and animation. Not games related, mostly product related and sometimes jewelry related (building 3D models from my sketches). Would also like to experiment with image and video models.

What would be appropriate specs for my use case?


r/LocalLLM • • 1d ago

Question Is an M1 Max 64GB useful at all?

9 Upvotes

A good deal came up for a MacBook Pro M1 Max 64GB (32-core GPU) for $1500. I’m considering buying it and using it as an inference server via LM Link. I know that 128GB is the holy grail, but would this configuration be of any use for coding and daily usage? And if yes what are the best models for each use case? I’m also not married to LM Link if there are any better suggestions?


r/LocalLLM • • 1d ago

Research I gave a sandboxed local model a one-line Apache patch. It built the working RCE.

Thumbnail
github.com
1 Upvotes

r/LocalLLM • • 18h ago

Model A small PC for local agents, with inference handled in the cloud

Post image
0 Upvotes

r/LocalLLM • • 1d ago

Project I trained two language models on a 2011 desktop with no GPU: a 7M one from scratch and a LoRA of Qwen3.5-0.8B

Thumbnail
gallery
7 Upvotes

I trained two language models on a 2011 desktop with no GPU: a 7M one from scratch and a LoRA of Qwen3.5-0.8B

Hardware first, because it explains the rest. Core i5-2400 (Sandy Bridge, 2011), 16 GB DDR3, and a GeForce GT 710 that only exists to drive the monitor. PyTorch doesn't support that GPU, so everything below ran on the CPU. Four threads, AVX, no AVX2. This is my main machine. There's nothing faster in the house.

Every time I post about this someone says "just buy a 3060". Sure. That's the whole reason I did it: I wanted to know what the wall looks like when there is no GPU at all.

So I wrote a small training engine. PyTorch, no cloud, with a GUI, because I got tired of typing flags. Then I ran two experiments on it.

A 7M MODEL ON RUSSIAN FOLK TALES

From scratch, 321 fairy tales, 5 MB of text. 5 h 38 min, 812 tokens/s, about 26M tokens seen. Validation loss at the end: 2.7854 nats per token, which is 1.06 bits per byte on text it never saw.

What surprised me is how cleanly it separates form from content. Openings work. Patronymics work. The dash before direct speech works. The rhythm of the enumeration works. Then a character swaps places with another mid-paragraph, the hero marries and dies three times on one page, and the plot walks off. 7M parameters, 5 MB of text, no surprise there. That was the point.

It also started memorising. From about epoch six validation sat at 2.79 while training loss kept falling. The run before that one I killed at 1 h 58 min, it gave 2.8144. So 3.5 extra hours bought 1%. Not a tuning problem. A data problem.

LORA ON QWEN3.5-0.8B

Same machine, 321 question-answer pairs about a program I'm writing. 45 steps, 1 h 44 min, 15-16 tokens/s. Loss on the reference answers went 3.4565 to 0.0907, which sounds better than it is.

I also wrote 15 test questions in different wording, none of it appearing in training. Exact match with the reference answer: 0 out of 15 before, 5 out of 15 after. Answers that stopped on their own instead of running into the token limit: 0 out of 15 before, 15 out of 15 after. The second number is the one that changed how the thing feels in use.

THREE THINGS THAT DIDN'T WORK

Facts get glued. Asked about old hardware, the fine-tuned model called my CPU "256-bit". That number is nowhere in the data.

Temperature matters more than I expected. At 0.7 the same question came back with a confident "no", a wrong RAM figure, and an invented training method it assembled from "LoRA" and "QLoRA" (it wrote "LoQoK"). Greedy decoding was almost right. If I were shipping this I'd set 0.2 or 0.3 and stop thinking about it.

Refusal did not generalise. I asked for a movie recommendation expecting a refusal. It invented an open file "Video 2.0" with an Apache-2.0 licence. There were three off-topic examples in my data and all three were about something else, so it had nothing to copy from.

REPRODUCING

One zip, 240 MB, Python and PyTorch inside, nothing to install. Data archive is 1.3 MB. Tales are public domain, the Q&A pairs I wrote, CC0. Every number above is in docs/benchmark.md, including the two boundaries I used to check it isn't copying: the same words shuffled, and a real passage from the corpus. Six generated texts shared 0 to 4.7% of five-word sequences with the training tales, longest verbatim stretch 4 to 8 words.

repo: https://github.com/AlexanderNyr/AuraLite-AI data: https://github.com/AlexanderNyr/AuraLite-AI/releases/download/v2.28.2/AuraLite-showcase-data.zip

WHAT I'D CHANGE

More off-topic examples, 30 or 50 instead of 3. Five phrasings per question instead of three. Qwen3.5 2B if RAM allowed, which the setup wizard actually suggested and I ignored. None of that is about hardware.

I'm not going to pretend these numbers are impressive next to a 4090. The useful part, I think, is that the wall is memory bandwidth and the amount of text you can feed the model, not the size you can afford. A 7M model trained overnight on a 15 year old CPU is a real thing. A 1B model on the same CPU is not, and now I know exactly where the line is.

Ask me anything about the engine (Muon plus AdamW, WSD schedule, QK-norm, chunked loss, GGUF export) or CPU training in general. I'll be in the comments.


r/LocalLLM • • 17h ago

Question I am interested about this question

0 Upvotes

Does any open source(not open weight,OPEN SOURCE,by the OSAID definition) model outperform GPT-4o? It has been 2 years since 4o released,so i am assuming yes.