Topic 2 of 5 · 4 min read
Setting up a desktop app for offline chat
Goal: Install a desktop AI app and pick a model that fits the computer's memory.
A desktop AI app downloads an open model once and then chats with it on your own computer. The model you can run is limited mostly by your computer's memory.
Check yourself · 1 of 3
What decides most strongly whether a model will run well on your laptop?
Why it matters
Four free apps cover most people's needs: LM Studio, Jan, GPT4All and the Ollama app. You install them like any program, pick a model from a built-in list, and start typing. No account or programming is needed for the basics. The common failure is picking a model too big for the machine, which makes the chat crawl or crash.
How to do it
- Check your memory. On a laptop, the model has to fit in RAM, or in graphics memory if you have a dedicated graphics card. Apple laptops share one pool of memory between both. Look up your computer's memory in its system settings.
- Pick a size to match. Model names carry a size such as 3B, 8B or 14B. The B stands for billions of parameters, the numbers the model learned. A larger number usually means better answers and more memory. Models are also shrunk by quantization, a method that stores each number with fewer bits. A file labelled Q4 is much smaller than the full version, with a small loss of quality.
- Leave room. The model file is not the only thing that needs memory. Your browser, your documents and the chat history do too. A common rule is to choose a model file well under your free memory, not equal to it.
- Download once, then test. Pick a recommended small model first, ask it a simple question, and see how fast it types. Move up in size only if it runs comfortably.
- Choose instruct models. Names ending in "instruct" or "chat" are trained to follow requests. Base models just continue text and feel broken in a chat.
Before and after
Before: "I have 8 GB of memory, so I downloaded the biggest model on the list. It takes a minute per sentence."
After: "I have 8 GB of memory, so I chose a small instruct model of about 3 billion parameters in a Q4 version, around 2 GB, and closed my other apps. It answers in a few seconds."
What goes wrong
- A model that does not fit. The computer starts swapping to disk, answers arrive word by word, and fans spin. Pick a smaller model.
- Wrong file type. Some apps want a format called GGUF, a single file that holds a quantized model. Downloading a different format from a model site may not load.
- Expecting the cloud experience. There is no web search, no image upload on many models, and no memory across chats unless the app adds it.
Optional: the Ollama command line
If you are comfortable with a terminal, the Ollama app can also run from there.
ollama pull llama3.2:3b
ollama run llama3.2:3b "Summarise this in one line: ..."
The first command downloads the model, and the second chats with it.
Examples
Choosing for a 16 GB laptop
A person with 16 GB of memory and no graphics card opens the app's model list and sees three options.
- 70B, Q4, about 40 GB. Too big. It will not fit.
- 8B instruct, Q4, about 5 GB. Fits with room for other apps. Start here.
- 1B instruct, Q4, under 1 GB. Fast, but weak. Keep it for quick, simple edits.
They try the 8B model first and step up only if answers are too thin.
First test after install
Ask the new model a question whose answer you know, such as "Summarise in two sentences: [a paragraph from an old email]." Check both the answer and the speed. If words arrive more slowly than you can read, choose a smaller model.
Key points
- LM Studio, Jan, GPT4All and the Ollama app all run open models on your own computer with no account for basic use.
- The model has to fit in memory with room to spare, so check your RAM before you download.
- A model name such as 8B gives its size in billions of parameters, and bigger usually means better answers and more memory.
- Quantized files such as Q4 are much smaller than the full model and lose only a little quality.
- Choose an instruct or chat model, not a base model, for conversation.
Common mistakes
- Downloading the largest model on the list without checking the computer's memory.
- Picking a base model and finding that it rambles instead of answering.
- Keeping a dozen other apps open while the model loads, so the computer starts swapping to disk.
- Judging all local models by the smallest one and giving up on the approach.
Check yourself · 2 of 3
In a model list, you see "Q4" in a file name. What does it mean?
Check yourself · 3 of 3
You want to chat with a local model about a draft. Which file type is the better pick?
Practice items, not counted towards your mastery.
Start here
- LM Studio: offline operation (opens in a new tab)DocsFree
Says which LM Studio features work with no internet and which need a connection.
- LM Studio: chat with documents (opens in a new tab)DocsFree
Shows how attached files are handled, including when a long file is cut down to the relevant parts.
- Jan documentation (opens in a new tab)DocsFree
Setup and model guides for Jan, an open-source desktop chat app that runs models locally.
More for this topic
- GPT4All documentation (opens in a new tab)DocsFree
Install steps, model list and the LocalDocs feature for chatting with your own files.