Run Private AI on Your Mac
Run a local Ollama model offline and check answers against your own files.
Introduction
30 Second Summary
Personal notes, contracts, and drafts often contain details you would rather keep on your Mac. An internet outage can also put an online assistant out of reach.
In this project, you will set up Ollama with a local model that answers private questions on your Mac without Wi-Fi. You'll verify its work against one of your own files.
What You'll Build
Picture your Mac answering a question about your private file while Wi-Fi is off.
By the end of this project, you'll have:
- An offline chat where your downloaded model answers while Wi-Fi is off.
- A file-grounded check that summarizes your document before you verify a specific answer against the source.
- A memory-aware model choice you can explain using the Memory value on your Mac.
- Secret Mission: Run the same model from Terminal to inspect where Ollama loaded it.
Are there any prerequisites?
You'll need a Mac running macOS 14 Sonoma or newer. Internet access and enough free disk space are required for the downloads, but no account is needed.
Before We Start
First, pin down why private files or offline access matter in your own life. This gives your local AI project a clear purpose before you check your Mac.
Install Ollama
Your reason for keeping private material on your Mac now needs a local tool behind it. Ollama provides the app that you will use for this project.
Before installing it, you need to confirm that your Mac meets the macOS requirement. You also need to record the Memory value that guides your model choice in the next step.
In this step, get ready to:
- Record your Mac's Chip or Processor, Memory, and macOS version.
- Install Ollama v0.40.16 in Applications.
- Choose local use without creating an account or API key.
Check your Mac
Ollama requires macOS 14 Sonoma or newer. The hardware details on the same screen give you the Memory value needed for the next step.
- Choose the Apple menu in the top-left corner of your screen.
- Select About This Mac.
- Record the value beside Chip or Processor here: your Mac chip or processor.
- Record the value beside Memory here: your Mac memory.
- Record the listed macOS version here: your macOS version.
- Confirm that the version is macOS 14 Sonoma or newer.
That foundation is sorted. You now know that your Mac meets the requirement and which Memory value will shape your model choice.
Using an older macOS version?
- Press Cmd+Space to open macOS search.
- Type System Settings into the search bar.
- Press Enter to open it.
- Select General in the sidebar.
- Select Software Update.
- Install an available update that brings your Mac to macOS 14 Sonoma or newer.
- Return to About This Mac after the update.
- Confirm that the updated version meets the requirement.
Help me check whether my Mac can run Ollama.
Install Ollama on your Mac
The macOS installer places the Ollama app in your Applications folder. Opening the app can also create the ollama command link used in the optional Terminal challenge.
Why use the app first?
The app gives you the shortest route to model selection and local chat. Terminal comes later after you have proved the main workflow.
- Go straight to https://ollama.com/download/mac in your browser.
- Start the Ollama download for macOS.
Your browser downloads the ollama.dmg installer. The current stable release for this project is v0.40.16.
✔️ The current download finished
Good. The v0.40.16 installer is ready for the next part of the setup.
ⓧ I already have an older download
Use a fresh download from the official page so this project starts with v0.40.16.
- Return to https://ollama.com/download/mac in your browser.
- Download the current macOS installer.
ⓧ The download did not finish
The installer needs an active internet connection. Keep your Mac online while the download completes.
- Reload https://ollama.com/download/mac in your browser.
- Start the macOS download again.
Download still stuck?
Check that your browser can load another website before retrying the official Ollama page. Help me troubleshoot the Ollama download.
- Open the downloaded ollama.dmg.
- Drag the Ollama application into the Applications folder shown in the installer window.
You should now see Ollama inside Applications. The app is installed on your Mac.
- Eject the Ollama disk image.
- Press Cmd+Space to open macOS search.
The macOS search bar is now ready to find the installed app.
- Type Ollama into the search bar.
- Press Enter to open Ollama.
- Grant permission for the ollama command link if the app requests it.
Ollama is now installed and open. You should see its welcome screen.
macOS blocking the app?
Only override the warning after confirming that you downloaded Ollama from its official website.
- Press Cmd+Space to open macOS search.
- Type System Settings into the search bar.
- Press Enter to open it.
- Select Privacy & Security.
- Click Open Anyway for Ollama.
- Confirm the override by clicking Open.
Help me open the trusted Ollama download on macOS.
Finish local onboarding
The welcome screen offers local use without an account. This keeps account setup and API keys out of your local workflow.
Before you choose local use, do you expect Ollama to open its chat without account details? Hold that prediction.
- Select No thanks, I'll use Ollama locally on the welcome screen.
You'll see the Ollama chat window without entering account details. That confirms the app can begin in local-use mode.
- Confirm that you did not enter sign-in details or create an API key.
- Keep your internet connection on for the model download in the next step.
Your setup now has the Ollama app but no downloaded local model. The Mac details you recorded will determine which model you choose next.
Your Mac is compatible and Ollama is ready without an account. Next up, you'll use the recorded Memory value to download a local model that fits your Mac.
Download a Model That Fits Your Mac
Ollama is installed in local-use mode. Your next visible result depends on choosing a local model that suits the Memory value you recorded.
The recorded Memory value guides which model your Mac runs. Free disk space determines whether the model download can be stored.
In this step, get ready to:
- Choose an approved local model using your Mac's Memory value.
- Select the exact model in the Ollama app.
- Download the model with Wi-Fi on and receive its first answer.
Pick a model by memory
Each Memory tier has two approved starting points. The download sizes show how much storage the model can use on your Mac.
- Choose llama3.2 with a 2.0 GB download or qwen3.5:4b with a 3.3-4.0 GB download if your Mac has 8 GB of Memory.
- Choose gemma4:e2b with a 4.6-7.5 GB download or gemma4:e4b with a 6.6-9.5 GB download if your Mac has 16 GB of Memory.
- Choose gemma4:12b with a 7.7-8.0 GB download or gemma4:26b with a 16-19 GB download if your Mac has 32 GB or more of Memory.
- Exclude any model with cloud in its name.
- Record your exact choice here: <selected-local-model>.
Why Choose This Way?
Memory supplies working space while the model runs. Disk space holds the downloaded model file.
Cloud models run on Ollama's servers. Their names end in :cloud. Your offline proof needs one of the approved local models.
Select the model in Ollama
The model picker connects your recorded choice to the next chat. Selecting the exact name also prevents a similarly named cloud model from entering the workflow.
- Keep Wi-Fi on for the model download.
- Click Select a model in the Ollama chat window from earlier.
- Enter <selected-local-model> in the Find model... field.
- Click the result whose name exactly matches your recorded choice.
You'll see the selected model name in the model picker. This confirms that the next message targets your approved choice.
Download and test the model
A selected model may still need to be stored on your Mac. If it is missing locally, the first message starts its download before the chat continues.
The first response can take longer because the app is downloading several gigabytes. A long progress phase here is normal.
Before you send the prompt, picture the two jobs you expect the model to name for computer memory.
- Add your first message by pasting this prompt into the Ollama chat input:
Explain what a computer's memory does in two sentences.
Why Use This Prompt?
The question tests the model with a familiar topic. The two-sentence constraint makes a complete response easy to recognize.
A finished answer proves that the model downloaded successfully. It also proves that Ollama loaded the selected model for chat.
- Send the message using the chat control.
- Keep Wi-Fi on while the download progress runs.
- Leave the Ollama app open until the download finishes.
- Wait until the complete two-sentence answer appears.
You have your first local result. The downloaded model has answered in Ollama while its exact name remains visible in the model picker.
Download Stuck or Mac Unresponsive?
- Confirm Wi-Fi is still on because the first model download needs internet access.
- Reselect the exact approved model name if the app reports a network-related problem.
- Choose the next smaller model from the approved list if the response is impractically slow or the Mac becomes unresponsive.
- Ask for help with the model download.
✔️ My Model Answered
Your approved model is stored locally. Its completed answer confirms that Ollama can load it for chat.
ⓧ I'd Like to Double Check My Setup
Check each part of the finished setup before you continue:
- Confirm <selected-local-model> belongs to the approved list for your recorded Memory tier.
- Confirm the selected model name contains no cloud label.
- Confirm the selected model name remains visible in the model picker.
- Confirm the chat shows a completed answer to the two-sentence memory prompt.
- Confirm Wi-Fi remains on after the completed download.
- Confirm Ollama v0.40.16 remains open in local-use mode.
- Confirm no account is signed in.
- Confirm no API key was created.
Your model is downloaded and answering from the Ollama app. Next, you'll disable cloud features and prove that the downloaded model still works with Wi-Fi off.
Prove Your Model Works Offline
Your downloaded local model now answers inside Ollama while your Mac is online. An online answer leaves its source of computation uncertain.
This step closes that gap by disabling Ollama's cloud features. You will disconnect every network path before <selected-local-model> answers from your Mac.
In this step, get ready to:
- Disable Ollama cloud models and web search.
- Disconnect every network path on your Mac.
- Test what <selected-local-model> can answer without live web access.
Configure local-only mode
The Cloud setting controls access to cloud models and web search. Turning it off keeps your downloaded model available while removing those online features.
- Switch back to the Ollama app from earlier.
- Open Ollama's Settings.
- Find the Cloud setting by matching the description Enable cloud models and web search.
- Turn off Cloud.
That's your first privacy control locked in. The Cloud toggle now sits in its off position.
Why local-only mode?
Disabling Cloud removes cloud models and web search from the workflow. Ollama keeps downloaded models available on your Mac.
This setting gives your offline test a clear boundary. The answer must come from the model already stored on your computer.
Can't Find Cloud?
- Look in Ollama's Settings for the description Enable cloud models and web search.
- Confirm that your installed Ollama version is v0.40.16.
- Ask for help with the missing setting: Help me find the Cloud setting in Ollama..
Prove an offline answer
A convincing offline test removes every route to the internet. Turning off Wi-Fi covers the wireless route while unplugging Ethernet covers a wired connection.
- Use Control Center or the Wi-Fi status menu to turn Wi-Fi off.
- Unplug any Ethernet cable connected to your Mac.
You're fully disconnected now. The Wi-Fi icon reflects its off state.
- Start a new chat in Ollama.
- Select <selected-local-model> in the model picker.
Before you send a question, do you think the model can answer with every network connection disabled?
- Ask the model to explain why seasons change.
- Wait for the complete answer.
There it is. <selected-local-model> has answered in a new chat without an internet connection.
Seeing a Network Error?
- Return to the model picker and select <selected-local-model>.
- Confirm that the Cloud toggle remains off.
- Ask for help with the offline model selection: Help me troubleshoot this offline Ollama error..
- Position the Ollama window so the completed answer and Mac menu bar are visible.
- Press Shift-Command-5 to open the Screenshot app.
- Capture the whole screen with the answer and Wi-Fi-off icon visible.
You now have a saved proof of local execution. The screenshot shows the offline answer beside the Wi-Fi-off state.
Test the live-news limit
Offline answers can sound confident even when a question depends on changing information. A recent-news prompt gives you a direct way to test what the model can support.
Before you ask, do you think <selected-local-model> can know what happened this week without a network connection?
- Ask the model for this week's biggest news stories.
- Wait for the complete answer.
The model may acknowledge that it cannot check live sources. It may also produce an unsupported guess.
That shortfall is the intended result. Offline execution provides no live web source for current events.
Why Verification Still Matters
Small local models can produce answers that are wrong, incomplete, or out of date. Treat important answers as claims that need checking against a trusted source.
Before your final check, which two details must make the offline proof convincing?
- Review your saved screenshot.
- Confirm that the answer from <selected-local-model> is visible.
- Confirm that the Wi-Fi-off state is visible.
- Keep Wi-Fi off for the next step.
You should see <selected-local-model>'s answer and the Wi-Fi-off state in the same screenshot. Ollama's Cloud setting remains off.
Your offline proof is complete. Next, you'll keep Wi-Fi off while grounding the model in one of your own files.
Check Answers Against Your File
Your downloaded local model has already answered in Ollama while Wi-Fi is off. Now you can give it source material from your own Mac.
Your own file supplies the missing context through file grounding. The model can still misread that source, so you need to check its answer against the original file.
In this step, get ready to:
- Attach one supported learner-owned file to a new offline chat.
- Generate a five-bullet summary plus one source-grounded answer.
- Verify the specific answer against the open source file.
Choose a supported source file
A short source makes your first verification quick to complete. Good options include notes, a recipe, a lease, or a cover letter that you wrote or own.
- Choose one short file that you wrote or own.
- Confirm that the file is a PDF, DOCX, TXT, MD, or CSV file.
- Confirm in Finder that the file is under 10 MB.
- Record the exact file name here: <learner-source-file>.
Your source is ready for a controlled check. Its supported format lets Ollama read it inside the chat.
Attach the file and ask grounded questions
Ollama v0.40.16 accepts supported files through drag and drop. The attached file becomes the source for the messages in this new chat.
- Leave Wi-Fi off throughout this check.
- Start a new chat in Ollama.
- Confirm that <selected-local-model> remains selected in the model picker.
- Drag <learner-source-file> from Finder onto the chat window.
- Confirm that the file name is visible with your message.
- Ask for a fixed-length summary by sending this prompt:
Summarise this file in five bullet points.
Why Ask for Five Bullets?
A fixed five-bullet shape makes missing sections easier to spot when you compare the summary with the source.
- Wait for the complete summary from <selected-local-model>.
- Count the response bullets to confirm that you received five.
The five bullets show that your local model can use the attached source while your Mac remains offline.
File Not Attaching?
- Confirm that the file is under 10 MB.
- Confirm that the file uses one of the supported formats listed above.
- Try another short file that you wrote or own.
- Help me troubleshoot this file attachment.
- Choose one date, name, or total that appears in the source.
- Write a question that asks for that fact here: a specific question about a date, name, or total in your file.
- Ask that question by sending:
[[SOURCE_QUESTION="a specific question about a date, name, or total in your file"]]
Why Ask a Specific Question?
One date, name, or total gives you a precise fact that you can compare directly with the source.
- Wait for the model to finish its answer.
Check the answer against the source
The source file is your authority for this check. A fluent answer only earns your trust when its specific fact matches the file.
Before you compare the answer, do you expect its key fact to match the source exactly?
- Double-click <learner-source-file> in Finder to open it in its usual app.
- Find the exact date, name, or total that your question requested.
- Compare the model's answer with the fact in the open source file.
A matching fact gives you one verified answer. The manual comparison is the evidence that makes it useful.
Answer Does Not Match?
- Return to the Ollama chat.
- Point the model to the relevant heading, paragraph, or table in the attached file.
- Ask the same specific question again.
- Repeat the source comparison until the answer matches the file.
- Help me check this source-grounded answer.
A long file can exceed the amount of source material the model considers at once. The Context length setting controls that window.
- Return to Ollama Settings from earlier if the summary misses the end of a long file.
- Find Context length.
- Increase the value by one available setting.
- Return to the file-grounded chat.
- Resend the five-bullet summary prompt from above.
- Check whether the new summary includes the final section of the file.
- Repeat the increase one setting at a time only if the final section is still missing.
- Leave Cloud disabled.
Why Increase One Setting at a Time?
Ollama documents a 4k starting context below 24 GiB of VRAM. A larger context requires more memory.
On a Mac, Ollama can use unified memory for model work. Incremental changes help you find a useful context size without overloading the Mac.
Before the final check, which pieces of evidence should your chat and source file now show together?
- Return to the file-grounded offline chat.
- Confirm that <selected-local-model> remains selected.
- Confirm that the chat contains a five-bullet summary of <learner-source-file>.
- Confirm that the specific answer matches the open source file.
- Confirm that the Mac still shows Wi-Fi as off.
You've completed the trust check. Your selected local model can work with your file offline while your source remains the final authority.
Secret mission
Run Your Model from Terminal and Check Where It Runs
Take your offline workflow behind the chat window. You will run the same downloaded model from Terminal and inspect whether Ollama loaded it on the GPU, CPU, or a mix of both.
Clean Up Your Resources
Clean Up Your Resources
Your local-only workflow costs $0 to keep using. Choose whether to keep it ready, pause it, or delete its local resources.
Resources you used:
- The Ollama v0.40.16 app at Applications/Ollama.app.
- One downloaded local model stored on your Mac.
Keep everything running
No action needed. Choose this if you want Ollama ready for more private or offline chats.
- Leave Ollama installed on your Mac.
- Keep Cloud disabled to preserve local-only mode.
- Keep the downloaded model available for future chats.
- Keep your offline proof screenshot and Terminal processor screenshot as records of your work.
Pause - I'll come back to this later
Shut down Ollama to stop the current local session. The downloaded model stays on disk for your return.
- Quit Ollama from the app menu.
- Leave the downloaded model installed so you do not need to download it again.
- Keep Cloud disabled so your next session starts with the same local-only setup.
Delete - I don't want to use this again
Deleting the model and app frees their storage. Your learner-owned source file and proof screenshots stay untouched.
- Replace gemma4 in the command below with the exact model name from the downloaded-model list you viewed earlier.
- Remove that model by running the edited command in Terminal:
ollama rm gemma4
What does this command do?
- The ollama rm command deletes one downloaded model from your Mac.
- The model name must match the downloaded name exactly.
Model still installed?
Confirm that you replaced gemma4 with the exact downloaded model name.
Use the model name shown in your earlier downloaded-model list. Help me remove my downloaded Ollama model.
- Check the remaining downloaded models by running:
ollama ls
What does this check show?
This command lists the models that remain on your Mac. It confirms whether the removal released the model's local storage.
You should no longer see the removed model's name in the list.
- Quit Ollama from the app menu.
- Remove Applications/Ollama.app by running this command in Terminal:
rm -rf /Applications/Ollama.app
What does this command do?
This command permanently removes the Ollama application bundle from the Applications folder. It leaves your learner-owned source file and proof screenshots alone.
App still present?
Confirm that Ollama is closed before trying the removal again.
If macOS still refuses the removal, ask for help with your current Terminal output. Help me remove the Ollama app safely.
- Check the Applications folder with the macOS file browser.
You should no longer see Ollama in the Applications folder.
Your offline checks are complete. Reconnect your Mac whenever you are ready to use the internet again.
- Turn Wi-Fi back on from Control Center.
- Reconnect the Ethernet cable if you normally use a wired connection.
Nice Work!
Nice Work!
You did it! Your downloaded Ollama local model now answers offline from your own Mac. It can summarize your own file while cloud features remain disabled.
What you learned:
- You set up private local AI without an account or API key. You chose a memory-appropriate model using the Mac's recorded Memory value. You kept Wi-Fi on until its download finished.
- You proved local-only mode by getting an answer while Wi-Fi was off. Cloud models remained switched off. Web search remained off throughout the test.
- You practised file verification by checking one model answer against your open source file. You also generated a five-bullet summary. You learned to raise Context length one setting at a time for longer files.
- Secret Mission: You used the Ollama CLI to list the downloaded model. You chatted with the same model from Terminal. You inspected its PROCESSOR value while it was loaded.
Ready to quiz yourself?