Skip to content

Life as I know it!

Menu
  • About Me
Menu

Running LLMs locally with Ollama

Posted on August 21, 2025August 21, 2025 by soubhagya

Traditionally, large language models (LLMs) require high-end machines equipped with powerful GPUs due to their substantial memory and compute demands. However, recent advances have led to the emergence of smaller LLMs that can efficiently run on consumer-grade hardware. Tools like llama.cpp enable running these models directly on CPUs, making LLMs more accessible than ever.

Installing and Running Ollama

Ollama is a convenient platform that simplifies downloading and running LLMs locally on your device. To get started, follow the installation instructions provided on the Ollama download page tailored to your operating system.

After installation, you can use the Ollama command-line interface (CLI) to download and run various LLM models on your machine. Ollama also provides a REST API on port 11434, allowing integration through tools like curl or the Ollama Python library, enabling seamless interaction with the models programmatically.

How Ollama Works

Ollama operates similarly to Docker by maintaining a model registry where pre-trained models and their resources are hosted. When you execute the ollama pull command, it downloads the required model files to your local machine.

Running ollama run or ollama serve loads the downloaded model into memory and starts serving requests. If your system has GPU acceleration available, Ollama utilizes it for faster inference. Otherwise, it gracefully falls back to CPU execution.

Additionally, if you run ollama run without having pulled the model beforehand, Ollama automatically downloads the necessary resources and initiates the model, streamlining the user experience.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Data centers in Space
  • [Review] A Cup of Zen
  • Being an Authentic Blogger
  • Using GenAI for Effective Learning
  • TokenMaxxing and Goodhart’s Law
  • July 2026
  • June 2026
  • May 2026
  • April 2026
  • January 2026
  • August 2025
  • February 2025
  • September 2024
  • November 2023
  • August 2020
  • May 2020
  • October 2018
  • October 2009
  • March 2006
  • Aerospace
  • Book Review
  • Gen AI
  • Life
  • Literature
  • Management
  • Odia
  • Opinion
  • Personal
  • Programming
  • Reading
  • Security
  • Software Engineering
  • Uncategorized

Aerospace Book Review DeepSeek GenAI Life Literature LLM management Odia Ollama Opinion Personal Programming Reading Security Software Engineering Writing

© 2026 Life as I know it! | Powered by Minimalist Blog WordPress Theme

Website security powered by MilesWeb