liveBook · Manning

Local ai

As explained in Build Applications with Local AI Models on a Mac

Local AI is artificial intelligence whose models or computations run on a user's own device rather than on remote infrastructure.

Local AI runs an AI model on your own computer instead of sending your prompt to a company’s server. Your application passes a question to the model on your device and displays its answer there. For a voice application, keeping the audio local can matter as much as keeping typed prompts local. section 1.1 section 14.2.2

Table 1.1 A comparison of cloud AI services and local AI (Ollama) across key dimensions

Feature

Cloud AI (ChatGPT, Gemini, Claude)

Local AI (Ollama)

Model size

Very large (hundreds of billions of parameters)

Smaller (1B to 70B+ parameters)

Response quality

State-of-the-art for complex tasks

Excellent for many tasks; improving rapidly

Accuracy/recency

Continuously updated; may have real-time data

Frozen at the training cutoff; no real-time data

Privacy

Your data is sent to company servers

Your data never leaves your machine

Cost

Free tiers are available; paid plans for heavy use

Completely free (you pay only for electricity)

Internet required

Yes, always

No; works fully offline

Speed (first response)

Depends on server load and network

Depends on your hardware

Availability

Can go down during outages

Always available if your computer is on

Customization

Limited to what the service offers

Full control over model selection and parameters

Data retention

Company may store your conversations

You control everything

Hardware needed

Any device with a browser

Capable local machine (8 GB+ RAM recommended)

Compare local and cloud AI by privacy, internet access, model capability, cost, and response speed. The better choice depends on the task, not on a universal winner. section 1.1.1

Local AI is especially useful when you want to:

  • Work with sensitive information or use an application without an internet connection. section 1.1.2
  • Control your setup and avoid a recurring cloud subscription, while accepting that performance depends on your hardware. section 1.1 section 1.1.1
  • Experiment with an AI application and understand how its pieces fit together. section 1.1 section 18.2.1

A practical setup uses Ollama to download, manage, and run a language model; Ollama is the runtime, not the model itself. A Python and Streamlit application can then provide a chatbot interface, with MLX Whisper supporting voice input. Downloading a model requires internet access initially, but a chatbot whose supporting components also run locally can perform inference offline. Try airplane mode to verify that your own setup works without a connection. section 3.6 section 1.9 section 14.6

A confidential drafting task

A lawyer might use a local model to help draft a document without sending client information to a cloud AI provider. That benefit depends on the whole setup: the application, operating system, and network configuration must also keep the data local. Professional obligations still need separate consideration. section 14.4.2 section 14.6

Local does not mean best for every question. Cloud services may be stronger on complex tasks and offer newer or real-time information; a downloaded local model has a training cutoff. You can use local AI for private everyday work and cloud AI when maximum capability matters. section 1.1.1 section 14.6

How Build Applications with Local AI Models on a Mac covers it

How deep it goes
Explains the local data flow and tradeoffs, then extends them to an offline test; does not detail model internals.
Examples
Uses a local voice chatbot, an airplane-mode test, and confidential legal drafting as concrete cases.
What it assumes
Starts with terminal basics rather than assuming command-line experience, then develops Python and local-model skills.
What you can do after
Build it from scratch as a local voice-enabled chatbot using Ollama, MLX Whisper, Python, and Streamlit.
How it connects
Connects local AI to cloud AI, large language models, Ollama, offline inference, and data privacy.

Also explained in

Compare how 2 books explain local ai →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Applications with Local AI Models on a Mac. The section links point to the parts of the book it draws on.