Tip #60: Run AI models locally (it's private & free!)


Hi Reader,

Most of us access Large Language Models (LLMs) through a web interface, like ChatGPT or Claude. It’s highly convenient, though there are two potential drawbacks:

  • Cost: Some amount of usage is free, but heavy usage (or access to premium models) costs money.
  • Privacy: Depending on the service, your chats may be used to train future models. (Or at the very least, your chats may be accessed if ordered by a court.)

One solution is to run an LLM locally, which has gotten much easier with the release of Ollama’s new app. I’ll tell you all about it below! πŸ‘‡


Sponsored by: Superhuman AI​

Find out why 1M+ professionals read Superhuman AI daily.

AI won't take over the world. People who know how to use AI will.

Here's how to stay ahead with AI:

  1. ​Sign up for Superhuman AI. The AI newsletter read by 1M+ pros.
  2. Master AI tools, tutorials, and news in just 3 minutes a day.
  3. Become 10X more productive using AI.

​Join 1 million pros and start learning AI​

​

🧠 Run AI models locally with Ollama

​Ollama is a popular open-source project that makes it easy to run LLMs directly on your local machine. Here are the main benefits of Ollama:

  • Cost: Models are free to download and use.
  • Privacy: Your data and prompts never leave your machine.
  • Offline access: Once models are downloaded, they can be used without Internet access.
  • Multiple providers: Hundreds of open source models are available from dozens of providers.
  • Easy to switch: You can try out many different models from a single interface.

Until recently, Ollama was only available for the command line, but last week they released an app that gives you a graphical interface for chatting with models:

You can also chat with your files, and some models also support image understanding.

Here’s how to get started with Ollama:

  1. ​Download the app for Mac, Windows, or Linux.
  2. Open the app and start a chat with any of the models listed in the dropdown.
  3. Wait for the selected model to download, after which the model will respond.

The only challenging aspect is selecting which model to use! There are many models to choose from, and most of them have multiple parameter sizes.

For example, here’s the model page for gemma3:

Models size can range from less than 1 GB to hundreds of GBs! Generally, larger models will be higher quality, but they will also require more resources to run.

Just a warning: If you have older hardware, it may not be possible to find a model that runs at an acceptable speed while giving high-quality results.

But if you find one that works well for you, it’s pretty exciting to be able to run models locally and for free! πŸŽ‰


Thanks for reading, and feel free to share it with a friend! 🀝

New readers can subscribe here. πŸ’Œ

- Kevin

P.S. Distract your LLM with cats 🐈

Learn Artificial Intelligence from Data School πŸ€–

Join 25,000+ intelligent readers and receive AI tips every Tuesday!

Read more from Learn Artificial Intelligence from Data School πŸ€–

Hi Reader, Data School's brand new All-Access Pass is now available: Buy the pass for $99 With the All-Access Pass, you get access to ALL of my courses for a year, including any NEW courses I launch during your subscription! That includes the e-book version of Master Machine Learning with scikit-learn, which will come out in December 🀞 The $99 sale ENDS in one week, on Black Friday (November 28). By purchasing now, you'll lock in this discounted price for the lifetime of your subscription,...

Hi Reader, I just published a new YouTube video: How to use top AI models on a budget Description: Want to chat with the best AI models from OpenAI, Claude, and Google without paying $20/month? I'll show you how to use API keys with TypingMind to access top models for a fraction of the cost, demonstrate its killer feature of chatting with multiple models side-by-side, and explain when paying for a subscription is actually the smarter choice. Timestamps: 0:00 Introduction 0:37 Pay-per-token...

Hi Reader, On Friday, I announced my forthcoming book, Master Machine Learning with scikit-learn. In response, my Dad asked me: How does the subject of this book relate to Artificial Intelligence? In other words: What's the difference between AI and Machine Learning? Ponder that question for a minute, then keep reading to find out how I answered my Dad... πŸ‘‡ AI vs Machine Learning Here's what I told my Dad: You can think of AI as a field dedicated to creating intelligent systems, and Machine...