Live
The live session: your first model running on your laptop
This is the guide to the live session, on a single page. Everything happens inside LM Studio: you won't write any code. We go in five parts, in order:
- Get to know LM Studio and load your model
- Your first conversation, with no internet
- Analyze a document
- Analyze several documents at once
- Save your analyst and decide when to use a local model
You need what you set up before the session: LM Studio installed, the qwen/qwen3-4b-2507 model downloaded, and the local-model-workshop/documents folder with the three practice documents. If anything is missing, go back to the preparation lessons.
If a term doesn't ring a bell, look it up in the Workshop vocabulary, in the first lesson.
Your laptop
+-------------------------------------------------------+
| |
| documents folder LM Studio |
| +-----------------+ +------------------------+ |
| | lease.txt | ---> | Chat | |
| | meeting.txt | | + your document | |
| | expenses.txt | | + your question | |
| +-----------------+ | | | |
| | v | |
| | Model (in your RAM) | |
| +------------------------+ |
| |
| Nothing leaves your laptop. |
+-------------------------------------------------------+Part 1: Get to know LM Studio and load your model
In this part you'll understand:
- What each section of LM Studio is for.
- What it means to "load" a model and why it takes up memory.
The three sections you'll use
Open LM Studio. The bar on the left has several sections. Today you use three:
| Section | What it's for |
|---|---|
| Chat | Talk to the model and attach documents to it. Almost the whole workshop happens here. |
| Discover | Search for and download models. It also opens with ⌘ + 2 on Mac or Ctrl + 2 on Windows and Linux. |
| My Models | See the models you already downloaded and how much disk space they take. |
Load the model
A downloaded model is on your disk, stored away. For it to answer, LM Studio has to load it: copy it into RAM, your laptop's fast memory. While it's loaded, it takes up that memory.
- Go to Chat and create a new conversation with the + button (or
⌘ + Non Mac,Ctrl + Non Windows and Linux). - At the top, in the center, open the model selector and choose Qwen3 4B 2507 (
qwen/qwen3-4b-2507). - Wait for the loading bar to finish. The model is ready when its name shows up at the top and you can type in the message box.
This model takes up about 2.3 GB of memory when it's loaded. That's why it fits on an 8 GB laptop, and a 30 GB model doesn't.
In the analogy: the model is a cook. Downloading it was putting it away in the storeroom (the disk). Loading it is bringing it into your kitchen (the RAM). A small kitchen only has room for a small cook.
Check your understanding
1. You downloaded a model yesterday. Is it already taking up your RAM?
No. Once downloaded, it lives on the disk. It only takes up RAM while it's loaded.
2. Why is it a bad idea to load two large models at once on an 8 GB laptop?
Because each loaded model takes up RAM, and the laptop also needs memory for the system and your other apps. If it doesn't fit, everything slows down or the load fails.
Part 2: Your first conversation, with no internet
In this part you'll understand:
- How to ask the model for something and how to read how fast it answers.
- What the system prompt is and what it's for.
- Why we say the model runs on your laptop.
Ask it something
Type in the message box and press Enter:
Explain in three lines what an interest rate is, for someone who has never taken out a loan.What you write to the model is called a prompt: the order. Below the answer, LM Studio shows stats about the generation, including tokens per second. A token is a piece of a word; more tokens per second means the text shows up faster.
Now try this:
- Ask for another version. Use the regenerate button that appears next to the answer. The new version comes out different: the model doesn't copy a saved answer, it writes it every time.
- Correct it in the same conversation. Type:
Now in a single line and with an example using numbers.The model remembers what came before because the whole conversation is in its context, its working memory.
Turn off the internet
Turn off your laptop's wifi (or switch on airplane mode) and ask something again. The model keeps answering. That's the proof that everything happens on your laptop: your question didn't travel to any server.
Turn the wifi back on when you're done, so you can keep following the stream.
The system prompt
The system prompt is an instruction the model reads before every message: who it is, how it should answer, what it shouldn't do. You don't repeat it in every question; it applies to the whole conversation.
- Open the chat settings panel, on the right (the settings icon, top right).
- Find the system prompt field (System Prompt) and type:
You are an assistant that always answers in English, in five lines at most, and says "I don't know" when it doesn't have the information.- Ask a new question and compare how it answers now.
In that same panel you'll find the temperature: how much the model is allowed to vary when it picks words. Low (close to 0) gives answers that are more alike; high gives more varied answers. For analyzing documents, low is better: you want precision, not creativity.
In the analogy: the prompt is the order you give the cook. The system prompt is the kitchen rules posted on the wall: they apply to every order. The temperature is how much the cook improvises. The context is the cook's work table: what's in front of them while they cook.
Check your understanding
1. You turned off the wifi and the model kept answering. What does that prove?
That the model runs on your laptop. It doesn't need to send your question to any service on the internet.
2. You want the model to always answer in tables. Do you put that in every question or in the system prompt?
In the system prompt: it applies to the whole conversation without repeating it.
3. What temperature would you use to pull data out of a contract?
Low. You want the same precise answer every time, not variations.
Part 3: Analyze a document
In this part you'll understand:
- How to attach a document to the conversation.
- How to check whether the model read it correctly or made things up.
Here's the main reason to have a model on your laptop: you can give it private documents without uploading them to the internet. A contract, a bank statement, the notes from a meeting. Everything stays on your machine.
Attach the contract
- Create a new conversation (+), with the same model loaded.
- Attach the
lease.txtfile from yourdocumentsfolder: drag it into the chat window or use the attach button next to the message box. LM Studio accepts.pdf,.docx, and.txtfiles. - With the file attached, type:
Summarize this contract in five points: how much is paid, when, how long it lasts, what happens if I leave early, and what is prohibited.Check that it didn't make anything up
A model can answer with great confidence something the document doesn't say. That's why, after every important answer, you compare it with the document. Keep lease.txt open in another window and check every number.
This is what the document says:
| Question | What lease.txt says |
|---|---|
| Rent | 12,500 pesos a month |
| Payment day | Within the first 5 days of each month |
| Length | 12 months, from November 1, 2026 to October 31, 2027 |
| Leaving early | Give 30 days' notice and pay a penalty of two months' rent (25,000 pesos) |
| Prohibited | Having pets without written permission, and subletting |
Now ask specific questions:
How much is the deposit and when do I get it back?Does the contract say anything about who pays for the internet?The second one is a trap: the contract does not talk about the internet. A good answer says the document doesn't mention it. If the model makes up an answer, you just saw why you always check. The system prompt from part 2 ("say I don't know when you don't have the information") helps, but it doesn't guarantee it.
Tip: ask it to quote.
Answer and copy the exact sentence from the contract where it says so.That way you check faster: you search for that sentence in the document.
In the analogy: attaching a document is putting it on the cook's work table. The cook works with what's in front of them. If something isn't on the table, the cook may improvise it, and that's why you check the dish before serving it.
Check your understanding
1. Why is a local model a good idea for reviewing a contract?
Because the contract never leaves your laptop. You don't upload it to any service.
2. The model gives you a number you can't find in the document. What do you do?
Don't use it. Ask it to quote the exact sentence from the document; if it can't, it probably made up the data.
Part 4: Analyze several documents at once
In this part you'll understand:
- How to ask for typical analysis tasks: pulling out action items, adding up, comparing.
- What LM Studio does when a document is very long.
Pull out the agreements from a meeting
In a new conversation, attach meeting.txt and ask:
Make a table with the agreements from this meeting: what will be done, who does it, and by what date.Check the table against the document. You should get four agreements, each with its owner and its date. Asking for the format (a table, a list, five points) is the easiest way to get useful answers.
Add up expenses, carefully
Attach expenses.txt and ask:
How much did I spend in total in September, and which category did I spend the most on? Show the sum by category.The correct totals, added up by hand:
| Category | Total |
|---|---|
| Food | 192.65 |
| Home | 77.10 |
| Fun | 63.00 |
| Transport | 52.40 |
| Total | 385.15 |
Two things to check:
- The document has a trap: some expenses say
Foodand othersfood; one saysTransportand otherstransport. They're the same category. Did the model group them together? - Small models make mistakes when adding. They read well, but arithmetic isn't their strength. For numbers that matter, use the model to organize and explain, and do the final sum with a calculator or a spreadsheet.
Compare two documents
Attach lease.txt and meeting.txt in the same conversation and ask:
A budget for the office was approved in the meeting. According to the contract, is it enough to pay the deposit and the first two months of rent?The model has to combine data from both documents. Check it: the meeting approved 40,000 pesos; the deposit (12,500) and two months of rent (25,000) add up to 37,500. It's enough, with 2,500 left over.
When the document is long
The model's context (its working memory) has a maximum size. If a document fits, LM Studio gives it to the model in full. If it's very long, LM Studio searches for the parts of the document most related to your question and passes only those. That technique is called RAG (retrieval-augmented generation).
What it means for you:
- With long documents, use the same words in your question that the document uses. If the contract says "penalty", ask about the penalty, not "the fine". That way the search finds the right part.
- A question that needs the whole document ("summarize the 80 pages") works worse than a specific question, because the model only sees pieces.
- A scanned PDF (a photo of a sheet of paper) may have no text to read. Try a PDF where you can select the text.
If you want, attach one of your own documents now and try it. It stays on your laptop.
In the analogy: if the document fits on the work table, the cook sees all of it. If it doesn't fit, the kitchen manager (LM Studio) searches the book for the pages related to your order and puts only those on the table. That's why it pays to order using the book's words.
Check your understanding
1. The model tells you that you spent 292.65 on food. Do you believe it?
No: the correct sum is 192.65. Small models make mistakes when adding. Use the model to organize, and do the final math with a calculator.
2. You attached a 200-page manual and the answer has nothing to do with your question. What do you change first?
The question: use the exact words the manual uses, so LM Studio finds the right part.
Part 5: Save your analyst and decide when to use a local model
In this part you'll understand:
- How to save your settings so you don't have to repeat them.
- When a model on your laptop makes sense and when one in the cloud does.
Save a preset
A preset is a named configuration: the system prompt, the temperature, and other settings, saved together so you can reuse them.
- In the chat settings panel, type this system prompt:
You are a document analyst. You answer in English, only with information from the attached document. For each piece of data, you copy the exact sentence from the document where it appears. If the document doesn't say it, you answer "The document doesn't mention it".- Lower the temperature to a value close to 0.
- Save the configuration as a preset from the presets menu in that same panel, with a name like
Document analyst.
The next time you analyze something, you pick that preset and everything is ready.
Laptop or cloud?
| A model on your laptop makes sense | A model in the cloud makes sense |
|---|---|
| Private documents: contracts, client data, personal finances | Hard tasks: long reasoning, complex programming |
| No internet or a bad connection | Very long documents that have to be read in full |
| Lots of repeated tasks without paying for each one | When you need the best possible quality |
| Summarizing, pulling out data, classifying, rewriting | Up-to-date data: the model doesn't know what happened after it was trained |
Today's model is small (4 billion parameters), and that's why it runs on almost any laptop. One in the cloud is many times bigger. The useful question isn't "which one is better", but "does this model do my task well?". And you answer that the way you did today: by trying it with your documents and checking the answers.
When you're done, free up the memory
When you're no longer using the model, eject it with the Eject button, next to the model's name, at the top. The RAM is freed up for your other apps.
In the analogy: the preset is the kitchen rules saved in a folder, ready to post on the wall with one click. Ejecting the model is sending the cook back to the storeroom: the kitchen is free again.
Check your understanding
1. You have to review 50 receipts with your clients' data. Laptop or cloud?
The laptop: it's private data, and it's a repeated task of pulling out information.
2. What does a preset save?
The conversation's configuration: system prompt, temperature, and other settings, with a name so you can reuse it.
Summary
- LM Studio downloads models (Discover), stores them (My Models), and lets you talk to them (Chat). Loading a model moves it from the disk into RAM.
- The model runs on your laptop: it works without internet and your documents never leave your machine.
- The system prompt sets the rules for the whole conversation; a low temperature gives more precise answers.
- You can attach documents (
.pdf,.docx,.txt) and ask for summaries, tables, sums, and comparisons. - Always check: the model can make up data and get the math wrong. Ask it to quote the document.
- With long documents, LM Studio passes the model only the parts related to your question: ask using the document's words.
- A preset saves your analyst configuration so you can use it again.