Barside
Download
Barside/Content/Intelligence · Search

Intelligence · Search

Best local LLM for personal notes RAG on a laptop in 2026

On a 16GB laptop, run Gemma 4 E4B in Ollama for questions over your notes, and on an 8GB laptop, Gemma 3 4B still fits better, based on Ollama's model pages checked in November 2026.

Feature guideUpdated 11 min read

The best local LLM for personal notes RAG on a laptop in 2026 depends mostly on your memory. On a 16GB laptop, run Gemma 4 E4B in Ollama (gemma4:e4b, listed from 6.6GB). On an 8GB laptop, Gemma 3 4B (gemma3:4b, 3.4GB) is still the safer pick, because the smallest Gemma 4 model starts at 4.6GB. Model sizes and scores on this page come from Ollama's own model pages and docs, checked in November 2026.

The best local LLM for personal notes RAG on a laptop, by RAM

Pick the newest model that fits in about half your RAM, then step up only if your laptop stays responsive. For most 16GB laptops that is Gemma 4 E4B, and for 8GB laptops it is Gemma 3 4B.

The picks below are ordered by three criteria, in this order. First, the download fits within about half your RAM. Second, Ollama's model page publishes benchmark scores for it. Third, it has a context window large enough to hold several note chunks and your question.

Laptop RAMPickSize on Ollama's pageContext windowWhy it is here
8GBgemma3:4b3.4GB128KFits under half of 8GB with room to spare
8GB, if you close other appsgemma4:e2b4.6 to 7.5GB128KNewer family, but starts above half of 8GB
16GBgemma4:e4b (the latest tag)6.6 to 9.5GB128KPublished scores beat Gemma 3 27B on several tests
16GB, for longer contextgemma4:12b7.7 to 8.0GB256KLonger context, but no published scores on Ollama's page
32GB or moregemma4:26b16 to 19GB256KMixture of Experts with 3.8B active parameters

Sizes, context windows and parameter counts come from the Gemma 4 page and the Gemma 3 page on Ollama, checked in November 2026.

The half-your-RAM rule is our rule of thumb, and no vendor publishes it. The other half goes to your operating system, your browser, your notes app, the embedding model and the context cache. Ollama's context length docs say a larger context needs more memory, and their own ollama ps example shows gemma4:latest taking 9.6 GB with a 131072-token context. That model is listed from 6.6GB, so the memory a model uses in practice can sit well above its download size.

2026 local LLM models for 8GB RAM and 16GB RAM in Ollama

On 8GB, use gemma3:4b. On 16GB, use gemma4:e4b, or gemma4:12b if you need a longer context and it runs well on your own questions. Both 16GB picks start below the size of gemma3:12b (8.2GB), so there is little reason to stay on Gemma 3 at 16GB.

8GB laptops

gemma3:4b is 3.4GB with a 128K context window, which keeps it under 4GB. gemma4:e2b is the newer model, but its listing starts at 4.6GB and runs up to 7.5GB, so it starts above half of 8GB before your context cache is counted. If you are willing to close the browser while you ask questions, it is worth a try. On the Gemma 4 page, the instruction-tuned E2B scores 60.0% on MMLU Pro. We found no table on either Ollama page that scores Gemma 4 E2B and Gemma 3 4B side by side, so test both on your own notes before you settle.

Do not drop to gemma3:1b just to save memory. On the Gemma 3 page, the pretrained 1B model scores 42.4 F1 on DROP, a reading comprehension test (3-shot), against 60.1 for the 4B model. Reading a passage and answering from it is close to what a notes question needs, and 3.4GB is affordable on 8GB.

16GB laptops

gemma4:e4b is the default tag, so ollama run gemma4 pulls it. Its listing is 6.6 to 9.5GB with a 128K context window. Ollama describes the E2B and E4B models as edge models, where the "E" stands for effective parameters: E4B has 4.5B effective parameters, or 8B with embeddings.

gemma4:12b is listed at 7.7 to 8.0GB with a 256K context window. Ollama groups it with the workstation models. We found no benchmark row for the 12B model on Ollama's Gemma 4 page, so the case for it rests on the longer context alone.

What the size ranges mean

Ollama's Gemma 4 page shows a range for each tag, such as 6.6 to 9.5GB for gemma4:e4b. The same tag list shows separate MLX builds whose sizes match one end of most ranges: gemma4:e4b-mlx at 9.5GB and gemma4:12b-mlx at 7.7GB. That suggests most ranges span the standard build and the MLX build of the same model. We found no note on Ollama's model page that explains the range, so plan for the upper number and check the real figure with ollama ps after the model loads.

Why a small Gemma 4 model beats a bigger Gemma 3

The instruction-tuned Gemma 4 E4B does better than Gemma 3 27B (no think) on every test the two share in the table on Ollama's Gemma 4 page. Gemma 3 27B is a 17GB download, while E4B is listed from 6.6GB.

Test (instruction-tuned)Gemma 4 E2BGemma 4 E4BGemma 3 27B (no think)
MMLU Pro60.0%69.4%67.6%
GPQA Diamond43.4%58.6%42.4%
BigBench Extra Hard21.9%33.1%19.3%
MRCR v2, 8 needle, 128k (average)19.1%25.4%13.5%

Source: the benchmark table on Ollama's Gemma 4 page, checked November 2026.

The MRCR row matters for notes. It is a long-context test at 128K tokens, which is the closest row in this table to finding several facts inside a long pile of text. E4B nearly doubles Gemma 3 27B there.

The same table is the reason to take the larger of the two edge models when your memory allows it. E4B beats E2B on MMLU Pro (69.4% against 60.0%), GPQA Diamond (58.6% against 43.4%) and the 128k MRCR test (25.4% against 19.1%). On a 16GB laptop, that gain costs you about 2GB of download.

Gemma 4 also has configurable thinking modes. Thinking writes out reasoning before the answer, which adds text the laptop must generate. For quick summaries, try it off first and turn it on for harder questions.

Summarization and retrieval augmented generation speed on a laptop

Speed on a laptop depends on two things you can check: whether the whole model runs on the GPU, and how much text you send it. With a long prompt, reading it can take almost as long as writing the answer.

Ollama's context length docs say Ollama defaults to a 4k context when there is less than 24 GiB of VRAM, which covers most laptops with 8GB or 16GB of RAM. That is small for notes. A 3,000-word meeting note is roughly 3,900 tokens (assuming about 1.3 tokens per word), which fills the default before the summary starts. Raise the context with the slider in the Ollama app under settings, or start the server with OLLAMA_CONTEXT_LENGTH=8192 ollama serve. Each step up costs memory, so 8k or 16k is a sensible ceiling on a laptop.

The same docs say to avoid offloading the model to the CPU and to check the split under PROCESSOR in ollama ps. If it shows a CPU and GPU split instead of 100% GPU, pick a smaller model or a shorter context.

Worked example: one question over your notes

Every number below is an assumption for illustration. Measure your own laptop.

  1. Retrieval sends 5 note chunks of about 300 words each, plus your question. Assumed: about 2,000 tokens in total.
  2. The laptop reads the prompt at 100 tokens a second (assumed, older laptop, CPU only). That is about 20 seconds before the first word appears.
  3. It writes the answer at 8 tokens a second (assumed). A 200-word answer is about 260 tokens, or about 33 seconds.
  4. Total: under a minute. On a laptop where ollama ps shows 100% GPU, both speeds are usually much higher.

The rule of thumb that follows: on older hardware, send fewer and shorter chunks before you shrink the model. Cutting 5 chunks to 3 removes about 780 tokens of reading, or about 8 seconds at the assumed rate, and you keep the better model.

Local embeddings and semantic search performance on older Windows hardware

Embeddings are rarely the slow part of an AI second brain on older hardware. You embed your notes once, then each question needs one short embedding, so most of the waiting comes from the chat model writing its answer.

Worked example: indexing a notes vault

These numbers are assumptions for illustration.

  • 2,000 notes averaging 400 words, split into chunks of about 300 words: about 2,700 chunks.
  • An older laptop on CPU only embeds 15 chunks a second (assumed).
  • First index: about 3 minutes. After that, each question needs one embedding, a fraction of a second at the same rate.

Comparing one question against a few thousand stored vectors is light work for a laptop. Where older machines do struggle is when the embedding model and the chat model fight for memory, or when the app re-embeds the whole vault after every edit.

What to do on an older Windows laptop

Ollama's Windows page lists NVIDIA and AMD Radeon GPU support. We found no mention of Intel graphics on that page, so on many older laptops both models will run on the CPU. That is workable if you keep the chat model at the 4B class and the embedding model small.

  1. Pick a small embedding model your notes or RAG app supports. On Ollama, embeddinggemma is a 300M-parameter model listed at 622MB with a 2K context window (checked November 2026), so 300-word chunks fit.
  2. Keep the same embedding model once you have indexed. Vectors from different models cannot be compared, so switching means indexing the whole vault again.
  3. Use an app that re-embeds only notes that changed.
  4. Run ollama ps while you ask a question to see which models are loaded and how long they stay in memory.

If search in a large vault is the bottleneck, Barside's guide on why semantic search gets slow in a large vault goes deeper.

Best local LLM applications for offline desktop use

For running the model itself, Ollama is a practical choice on Windows, Mac and Linux: it runs in the background and serves a local API at http://localhost:11434 that notes and RAG apps can connect to. For this guide we checked Ollama's own documentation only, so check any other runner's system requirements page the same way.

AppWhat runs on your computerSystems, from its own docs or factsAI model
OllamaThe language model and embedding modelWindows 10 22H2 or newer, Home or Pro; macOS Sonoma (14) or newer, with CPU and GPU on Apple M series and CPU only on Intel Macs; Linux through an install script, with amd64 and arm64 packagesOpen models you pull, such as Gemma 4
BarsideNotes, Library search and Whisper speech to textWindows 10 and 11 (x64), Mac (macOS 12 or later) and Linux x64None of its own; you connect your own Claude, ChatGPT, Gemini or OpenRouter account

Ollama facts come from its Windows, macOS and Linux pages, checked November 2026. On Windows, Ollama also needs at least 4GB of disk space for the install, plus space for models.

To stay offline, watch the tag names. Tags that end in cloud, such as gemma4:31b-cloud, run on Ollama's cloud and show no download size. Pick a tag with a size if you want the model on your laptop.

Barside fits on the notes side. It is a free desktop app for Windows, Mac and Linux that keeps your library on your computer with no account for personal use, and its Library search and speech to text run on the computer. Barside has no AI model of its own. Its AI features use the Claude, ChatGPT, Gemini or OpenRouter account you connect in Settings > AI, so questions you ask Barside's AI go to that company. If you want that route, read about using your own key with an AI notes app and asking your notes a question with sources. For work notes under a confidentiality duty, the guide on AI note apps and client confidentiality helps you decide what can leave your computer.

A checklist before you commit to a model

A good local setup for notes questions takes about an hour to test. Use your own notes and questions you already know the answers to.

  1. Check your RAM and pick from the table: gemma3:4b on 8GB, gemma4:e4b on 16GB.
  2. Pull the model and run ollama ps. Note the real size and whether it shows 100% GPU.
  3. Set the context to 8k, then try 16k if memory allows.
  4. Write 10 questions whose answers sit in specific notes.
  5. Count how many answers are right and point to the right note.
  6. Time a few answers. If the wait is too long, send fewer chunks first.
  7. Only then try the next size up, such as gemma4:12b on 16GB, and compare on the same 10 questions.

FAQ

Questions and answers

Can a local LLM answer questions from my notes without internet?

Yes, once the model is downloaded. Ollama runs the model on your computer and serves a local API that notes and RAG apps can use. Avoid tags that end in cloud, such as gemma4:31b-cloud, because those run on Ollama's cloud.

Is 8GB of RAM enough for local RAG over my notes?

Yes, with a 4B-class model. Gemma 3 4B is 3.4GB on Ollama, which leaves room for your system, notes app and a small embedding model. Keep the context at about 8k tokens and send a few short chunks per question.

Should I use Gemma 4 E4B or Gemma 4 12B on a 16GB laptop?

Start with E4B. It has published scores on Ollama's Gemma 4 page, including 69.4% on MMLU Pro, and it is listed from 6.6GB. The 12B model is listed at 7.7 to 8.0GB with a 256K context, but we found no benchmark row for it on that page, so test it on your own questions.

Why does my local model get slow on long notes?

Usually the context is too large or the model spills onto the CPU. A longer context needs more memory, and Ollama's docs advise checking the PROCESSOR column in ollama ps. If it shows a CPU and GPU split, use a smaller model, a shorter context or fewer note chunks.

Do I need a GPU for local embeddings?

No, a CPU can handle embeddings for a personal vault. You embed your notes once and then embed one short question at a time. The first index of a large vault takes longest, so pick an app that re-embeds only notes that changed.

Can Barside's own AI features use an Ollama model?

Barside's built-in AI features do not use Ollama. Barside has no AI model of its own, and those features use the Claude, ChatGPT, Gemini or OpenRouter account you connect in Settings > AI. Separately, AI apps such as Claude Desktop, ChatGPT, Cursor or another MCP app can use the notes you choose through AI connections.

What does the size range on Ollama's Gemma 4 page mean?

It appears to span two builds of the same model. Ollama also lists MLX builds whose sizes match one end of most ranges, such as gemma4:e4b-mlx at 9.5GB. We found no note on the model page that explains it, so plan for the upper number and check ollama ps after loading.

Sources

Where the facts come from

Checked on December 3, 2026. Products change: if something here is out of date, tell us at support@barside.space.

  1. gemma4 - Ollama model library
  2. gemma3 - Ollama model library
  3. Context length - Ollama docs
  4. Windows - Ollama docs
  5. macOS - Ollama docs
  6. Linux - Ollama docs
  7. embeddinggemma - Ollama model library