Published: December 1, 2026 | By Vito Ruocco
Everything you need to run artificial intelligence on your own computer, in about twenty minutes: no subscription, no internet once it is set up, and nothing you type ever leaves your desk. In this article and in the video I go from a clean Windows machine to a local AI that can read your files and search the web, every step recorded for real. Along the way I found something that surprised me: the five-year-old gaming graphics card in my PC, an NVIDIA RTX 3060, has more than double the memory bandwidth of Apple’s brand new Mac mini M6, the machine a lot of people are buying for AI. And because I wanted to answer the question everybody asks about local models, I tested the same model at two sizes, 4-bit and 8-bit, on maths, a long document and three real programs that you can play in your browser.
The Short Version
- Local AI means the model runs on your computer. You download an open-weight model once, and from then on it is free, private and works offline. It will not beat the newest ChatGPT or Claude, but it is surprisingly useful.
- Two numbers decide everything: how much memory your machine has decides which models fit; how fast that memory is (the memory bandwidth) decides how fast a model writes.
- My old graphics card wins on writing speed. The RTX 3060 12 GB moves 360 GB/s. The base Mac mini M6 16 GB moves 153 GB/s according to Apple’s own spec page. With a 5.6 GB model, that is a theoretical top speed of about 64 tokens per second for the card and about 27 for the Mac. On camera, my card wrote at 54.8 tokens per second. I did not test a Mac: those numbers are theory from Apple’s specs.
- The setup: LM Studio 0.4.29 to download and run the model, Qwen3.5 9B from Alibaba (free under Apache 2.0), and Pi from pi.dev as the agent. Pi wrote its own web search tool with Tavily’s free plan.
- 4-bit vs 8-bit on my RTX 3060: 4-bit writes at 55 tokens per second, 8-bit at 35. Maths: 18 out of 20 for 4-bit, 20 out of 20 for 8-bit. A 23,000-token document with 10 hidden facts: 10 out of 10 for both. Programs: 4-bit two working out of three, 8-bit one working and one half working.
- The loop test: small models are said to get stuck repeating themselves. With a web search that always fails, the 4-bit model repeated the exact same search the most, but the bigger 27B model was the one that most often kept trying until the limit.
- Everything is playable: every program from the test is online at ruocco.it/ai-demos, exactly as the model wrote it.
Where an AI Actually Lives
When you use ChatGPT, Claude or Gemini, the model runs on a computer in a data centre. Your message travels there over the internet and the answer travels back. You cannot download those models: the companies keep them on their own servers.
But many other companies do let you download their models. These are called open-weight models, and the names you will see most often are Qwen from Alibaba, DeepSeek, Kimi from Moonshot, Gemma from Google, Llama from Meta, and even OpenAI’s two GPT-OSS models. The best of them are close to the closed models, but still a step behind.
The biggest are enormous. Kimi K3.1 Pro has 2.8 trillion parameters, and the files on Hugging Face add up to about 1.56 terabytes. That is more than the entire drive of most laptops. So the model you can run depends on one thing: your computer. To see why, we need to look inside one of these files.
What Is Inside a Model File
A model file is a giant list of numbers called weights. One weight on its own means nothing, but together they hold everything the model learned. They come from training: a company shows the model an enormous amount of text and asks it to guess the next word, over and over, and every wrong guess nudges the weights a tiny bit.
When you type a message, the app turns your words into numbers called tokens, roughly three quarters of a word each, and pushes them through all those weights. What comes out is a guess for the next token. That token is added to the text and the whole thing runs again. That is how a model writes: one small piece at a time.
When you see a model called “9B”, the B means billion: nine billion weights. The model I use is Qwen3.5 9B. At full detail it is about 18 gigabytes; the copy we download is 5.6 gigabytes. Keep that number in mind, because it explains everything that follows.
Memory: The Cook and the Counter
Once you download the model, the file just sits on your drive, doing nothing. To use it, the computer has to load the whole file into memory, the fast working space, because every token it writes means doing maths with almost every one of those nine billion weights. A drive is far too slow to feed them.
On a PC with a graphics card, the model goes into the card’s own memory, called VRAM. My card is an RTX 3060 with 12 gigabytes. On a Mac, it goes into the memory that the processor and the graphics chip share.
But the weights are not the only thing in memory. Your conversation lives there too: everything you typed, everything the model answered, every document you pasted, every search result. All of that is called the context, and the longer it gets, the more memory it takes.
The easiest way to picture it: the weights are the cook, the context is the counter space. A great cook with no counter cannot cook, and if you keep piling ingredients on the counter, at some point things fall off. That is exactly what happens when a chat goes past the context limit: the app throws away the oldest part, and the model forgets how the conversation started. So memory always holds two things, the weights and the context, and you need room for both.
Speed: Why My Old Graphics Card Beats the New Mac mini
Two numbers decide how well a computer runs a model. How much memory it has decides which models fit at all. How fast that memory is decides how fast the model writes, because for every single token the model reads through almost the whole file. Picture the weights as a crowd that has to cross a city for every word: with slow memory they walk, with faster memory they take the bus, with the fastest memory they take a high-speed train. That speed is called memory bandwidth, measured in gigabytes per second.
Here is the trick that makes it practical: divide the bandwidth by the size of the file and you get the top speed at which the model can write.
- Apple’s new Mac mini with the M6 chip, base model with 16 GB, costs $899. Apple’s spec page lists 153 GB/s of memory bandwidth for that configuration (the 24 and 32 GB versions get 170 GB/s).
- My RTX 3060, a 2021 gaming card that launched at $329, runs at 360 GB/s.
Divide by our 5.6 GB file: the Mac mini tops out around 27 tokens per second, my card around 64. And I did not stop at the theory: I measured it on camera with llama-bench, and the card wrote at 54.8 tokens per second.

To be fair to Apple: I do not have a Mac here, so the Mac numbers are the theory from Apple’s specs, and the new chip has extra AI hardware that makes it much faster than before at reading long documents. But for writing speed, the old graphics card wins.
The catch is the amount of memory: 12 gigabytes. NVIDIA’s RTX 5090 has 32 GB at about 1,792 GB/s, and the DGX Spark box has 128 GB but at only 273 GB/s, for $6,950 on NVIDIA’s marketplace. Lots of memory or fast memory: that is the trade-off you always make when you choose a machine for local AI.
Reading speed and writing speed
There are two speeds you will notice. Reading speed is how fast the model takes in your message and anything you pasted; writing speed is how fast the answer comes out. Writing depends on bandwidth. Reading happens all at once, so it depends more on raw computing power. On my card, Qwen reads about 1,900 tokens per second, so a long document of 20,000 tokens takes about ten seconds before the first word appears.

Quantization: How an 18 GB Model Becomes 5.6 GB
The 18 GB model becomes 5.6 GB through quantization. Every weight is stored with a lot of detail, something like 0.4837261. Quantization keeps less of it, something closer to 0.48. Do that to nine billion weights and the file gets much smaller. The original is called 16-bit; our copy is 4-bit. Same model, same nine billion weights, less detail in each.
Think of a photo. Save a compressed copy, and side by side the two look the same. Only when you zoom right in do you see what was lost.
Studies say 8-bit loses almost nothing and 4-bit loses a few percent on average. One study, “Does quantization affect models’ performance on long-context tasks?” (arXiv 2505.20276), found a worst case where a 4-bit copy of a much bigger Llama model dropped about 59% on very long documents. That was one method on one model, not the usual result, but it is exactly why I wanted to test it myself. On the download page you will see labels like Q4_K_M: the Q4 part means about four bits per weight, and it is the usual place to start.
GGUF, MLX, Engines and Apps
Two more words you will see. GGUF is the file format that runs on almost anything: Windows, Linux, NVIDIA and AMD cards, and Macs too. MLX is Apple’s own format, for Macs only. On Windows, you pick GGUF.
The file is only the weights, so you also need a program that does the maths, called an engine. For GGUF the engine is llama.cpp, free and open source. Most people never touch the engine directly: they use an app with the engine built in. The file is the model, the engine runs it, and the app is what you click on. My app is LM Studio.
The Harness: Why the Same Model Can Feel Useless or Brilliant
When ChatGPT searches the web or reads a file, that is not the model doing it. The model only reads text and writes text. Everything else lives in the software around it, called the harness. When the model wants a search, it writes a short request; the harness runs the search and hands back the results; the model reads them, decides the next step, and the harness keeps looping until the job is done.
With ChatGPT, the company built the harness for you. When you download a model, you get only the brain, so you pick the harness, and it makes a huge difference: the same model can feel useless in a bare chat window and genuinely capable with a good harness. The one I use in the video is Pi, from pi.dev: free, open source (MIT), it runs in a terminal, and it starts with almost nothing. When you need a new tool, you ask Pi to build it, and it adds the tool to itself.
Step by Step: From a Clean Windows to a Local AI
Everything in this part is recorded in a clean Windows Sandbox, with nothing installed. Nothing from my own PC is on screen.
Install LM Studio
In the browser, go to lmstudio.ai/download. Careful: the first button on that page is for Bionic, a different app from the same company (an agent). Scroll down: the second one is LM Studio itself. Download it for Windows (version 0.4.29 when I recorded), open the file, accept the licence, choose the folder, install. It opens on its own. On the first screens I skipped the suggested model and turned on Developer Mode, which we need later for the server.
Check your memory and pick the model
On Windows, open Task Manager, go to Performance, click your graphics card and look at the dedicated GPU memory: that is your VRAM. On a Mac, Apple menu, About This Mac. Then pick the biggest model that still leaves room for the conversation. My rule of thumb: keep the file to about half your memory. With 12 GB, a file of around 6 GB leaves room for Windows and a long chat. Qwen3.5 9B at 5.6 GB fits.
Download the model
In LM Studio, open Model Search and type “qwen3.5 9b”. The official one is at the top, and on the right LM Studio checks your machine and says “Likely Fit”. Open the download options: the 4-bit Q4_K_M, a 6-bit and the 8-bit at about 10.5 GB (these sizes include a small extra file that lets the model see images). I took the recommended 4-bit: about 6.5 GB, downloaded in roughly two minutes on my connection.
The first chat
Back in Chat, select the model and turn on the option to choose the load settings yourself. This window sums up the whole first half of the video: estimated memory 7.16 GB in total; context length 8,192 tokens (the model supports up to 262,144, but every extra token costs memory); and GPU offload zero, “All GPUs are currently disabled”, because the Sandbox has no graphics card, so the model runs on the processor.

I pasted a real-looking email about a bakery whose opening was delayed and asked for a three-bullet summary. The answer was correct. The speed: 4.3 tokens per second, on the processor. The same file on my graphics card writes at 55. Almost thirteen times faster: the bandwidth story, live.

The local server
Click Model Server and switch it on. LM Studio shows that it is reachable at 127.0.0.1, port 1234. Now any other program on the computer can use the model, and that is how the harness talks to it.
Install Pi and connect it
Open PowerShell and paste the one-line command from pi.dev: powershell -c "irm https://pi.dev/install.ps1 | iex". The installer needs Node.js and offers to install it on its own; then it installs Pi and a small portable Git so Pi can run commands, and adds itself to the path.
Then tell Pi where the model is: in your user folder there is a folder called .pi, and inside agent a file called models.json. I added two entries: the LM Studio server in the Sandbox, and my real RTX 3060 running the same 5.6 GB file with llama.cpp (the engine inside LM Studio). The Sandbox has no graphics card, and an agent at four tokens per second would take forever, so for the agent part I pointed Pi at the card.
Open a new terminal in an empty folder, type pi, and Pi starts, showing the model it is using in the corner. With /model you pick the model, and with Ctrl+S you save it as the default. My first try started on the slow processor model, because I had not saved the default yet: Escape stops it, /model, Ctrl+S, and tell it to continue.
Pi’s first job
With no extra tools at all, I copied the bakery email into the folder and asked Pi to read it and write a to-do list, one checklist per team, with the dates. Pi read the file, wrote todo.md, and the dates were right. That is a harness: the same model that could only talk in LM Studio now works on real files.
Pi builds its own web search
Pi does not come with web search, so I asked Pi to build it. For the search engine I used Tavily, which has a free plan with 1,000 searches a month and no credit card. Brave Search works too, but it now asks for a card even for its free monthly credit. The key is saved on the computer as an environment variable, so it never appears on screen, and I told Pi to read it from there and never print it.
The prompt: build yourself a web search tool as a Pi extension, using the Tavily API, and read your own extension docs first. Pi read its documentation, looked at the examples and wrote the extension. Then /reload, and it was part of Pi.

Where a Small Model Shows Its Limits
This is the honest part. First test: I asked for the memory bandwidth of the new Mac mini. Instead of calling the tool it had just built, the model tried a strange command that failed, then gave up on its own tool and called the search service directly with a command. It still got the right answer, 153 GB/s, with a source. Right answer, clumsy route.
So I started a fresh session, where Pi showed the extension loaded, and asked which new open-weight models came out this week. This time it used its web search tool, and confidently gave me three models from October. Wrong: the model had no idea what day it was. I told it those were from October and to check today’s date first. It ran a command, found out it was December 1, searched again, and this time answered honestly that there was no new open-weight release that week yet.

The lesson: a small local model can do real work, but you have to watch it, and give it one small step at a time.
The Loop Test
Everybody repeats that small models get stuck in loops: when a step fails, they try the exact same thing again and again. I wanted to see it with my own eyes, so I built a test. Ten small research jobs, like the price of a product, today’s weather or a census number. The search tool fails on purpose, every single time, with an error. Each model gets up to eight tries per job. A good assistant should stop and tell you the search failed.
I ran it three times on three models: Qwen3.5 9B at 4-bit, the same model at 8-bit, and a model three times bigger, Qwen3.8 27B (a 3-bit file of 10.4 GB). Thirty jobs per model.
- Identical repeated searches: 4-bit 15, 8-bit 9, 27B 7. So yes, the small one does repeat itself the most.
- Jobs that hit the limit of 8 tries: 4-bit 2 of 30, 8-bit 3 of 30, 27B 11 of 30. The big one did not repeat itself as much: it just kept trying new searches, over and over, instead of telling me the tool was broken.

On most jobs every model did stop in the end and say the search had failed. So the lesson is not simply that small models loop and big ones do not. On this test, the bigger model was more stubborn. What matters is the harness: a good one stops a tool after a few failures, and with a small model you should cap it yourself.
If Something Goes Wrong
- The model will not load, or the computer crawls: pick a smaller file or lower the context. Together they ran out of memory.
- Words come out slowly: a smaller file writes faster, because there is less to read for each token. And check that the model is on the graphics card, not the processor, like in my Sandbox.
- The model repeats itself: start a fresh chat and give it a smaller job. A long conversation and a step that keeps failing are the two usual reasons a small model loses track.
4-Bit vs 8-Bit, Tested on My RTX 3060
Same model, Qwen3.5 9B, at 4-bit (Q4_K_M, 5.6 GB) and at 8-bit (Q8_0, 9.5 GB), both on my RTX 3060 with llama.cpp build b12633. Same questions, same settings (thinking on, temperature 0.6), one try each.
Speed
The 4-bit file writes at 54.8 tokens per second, the 8-bit at 35.4. So 4-bit is about one and a half times faster, exactly what the bandwidth rule predicts, because the file is smaller. Reading speed is close: about 1,900 against 2,100 tokens per second. And memory: 5.6 GB against 9.5. On a 12 GB card the 8-bit still fits, but it leaves much less room for the conversation.

Maths
Twenty word problems I wrote myself, with the answers computed by a script. 8-bit: 20 out of 20. 4-bit: 18 out of 20. The interesting part: the two it missed were not wrong answers. On those two, the 4-bit model kept thinking until it ran out of its budget of 8,192 tokens, and never gave an answer at all. The 8-bit model solved the same two inside the budget. That is exactly where the lost detail shows: not in easy questions, but in long chains of reasoning, where small errors pile up.
A long document
The minutes of an invented library committee, 17,228 words (about 23,000 tokens), with ten small facts hidden inside, like the password of the guest Wi-Fi or the year of the oldest book. Both found all ten. At this length I saw no difference at all. The 59% drop in that study was a different method on a much bigger model with much longer documents, and on this test it simply did not show up.
Three real programs
One prompt each, exactly as written, no fixes: a pixel garden you can tend, the solar system, and a brick-breaker game.
- 4-bit, solar system: works. The planets orbit at different speeds, and you can pause and speed up time.
- 4-bit, brick-breaker: works: ball, paddle, bricks, lives (the score and lives labels overlap).
- 4-bit, garden: the page loads but the garden stays empty, because of a single programming mistake: it tries to change a value it had declared as fixed.
- 8-bit, brick-breaker: works.
- 8-bit, garden: you click the soil, the counter goes up and the flowers grow, but each one sits half a square too high, off the soil it was planted in.
- 8-bit, solar system: shows only stars, because the model never set the size of the drawing area.


So on programs it is a draw: 4-bit two working out of three, 8-bit one working and one half working. One try each is a sample, not a benchmark, and with code a single wrong line is enough to break everything, at any size.

The Verdict
Four-bit is the right place to start. It is one and a half times faster, it leaves room for long conversations, and on documents and simple jobs I could not tell it apart from 8-bit. If you have the memory and your work is long reasoning, like maths or planning, 8-bit is worth it: it did not get lost. And whatever the size, a small model needs a good harness and a human who checks its work.
Local AI will not beat the newest ChatGPT or Claude. But it is free, it is private, it runs right on your desk, and if you have a gaming PC you may already own a better AI machine than the one in the shop window.
Try Every Demo, and Get the Code
Every program from this test is online, the 4-bit and the 8-bit side by side, exactly as the model wrote them, broken ones included: ruocco.it/ai-demos/qwen-3-5-9b-q4-vs-q8-rtx-3060.
The exact prompts, the test scripts (the maths set, the long document, the loop test), the Pi configuration and every setting are in the Ruocco Academy. It is a waiting list right now: sign up and you will be first in.
How I Tested (and What I Did Not)
- Hardware: one PC with an NVIDIA RTX 3060 12 GB, Windows 10, llama.cpp build b12633 (CUDA). Speeds from llama-bench with a 2,048-token prompt and 256 written tokens, three repetitions, recorded on camera.
- Models: Qwen3.5-9B in the LM Studio community GGUF files (Q4_K_M 5.6 GB, Q8_0 9.5 GB), and Qwen3.8 27B (ISTA-DASLab, 3-bit, 10.4 GB) for the loop test only.
- The Mac: I did not test a Mac. The Mac mini numbers are theory from Apple’s published bandwidth.
- The Sandbox: the installation and the LM Studio chat ran in Windows Sandbox, which has no graphics card. Pi used my RTX 3060 over the local network for the agent part.
- Samples: one try per prompt and three runs of the loop test. These are honest samples from one PC, not a universal benchmark.
Sources
- Apple Mac mini tech specs
- RTX 3060 12 GB review and specs, PC Gamer
- Qwen3.5-9B on Hugging Face
- Kimi K3.1 Pro files on Hugging Face
- Does quantization affect models’ performance on long-context tasks? (arXiv 2505.20276)
- LM Studio download
- Pi, the minimal agent harness
- Tavily pricing
If this helped you, subscribe to @VitoMind on YouTube for more real tests, and tell me in the comments which model you want me to run on this RTX 3060 next.