Installation and System Requirements
Installation and System Requirements
Understanding Ollama's Purpose
Ollama is a lightweight framework that allows you to run large language models (LLMs) directly on your personal computer without relying on cloud services. Before installing Ollama, it's essential to understand that running AI models locally requires adequate computational resources, particularly GPU memory and processing power. This lesson covers everything you need to know to successfully install and prepare your system.
System Requirements
Running Ollama locally demands specific hardware capabilities. Your computer needs sufficient RAM (at least 8GB recommended, preferably 16GB or more) and adequate storage space (models can range from 4GB to 70GB+). The operating system support includes Windows, macOS, and Linux, with each having slightly different installation procedures.
GPU acceleration significantly improves performance. Ollama supports NVIDIA GPUs with CUDA compatibility and Apple Silicon (M1/M2/M3 chips). Without GPU acceleration, model inference runs on your CPU, which is considerably slower but still functional. If your system lacks a compatible GPU, Ollama will automatically fall back to CPU-only execution.
Installation Steps for Different Operating Systems
macOS Installation
Download the Ollama installer from the official website and run the DMG file. The installation is straightforward—simply drag the Ollama application to your Applications folder. Once installed, launch Ollama from your Applications directory. On Apple Silicon Macs, GPU acceleration is automatic and optimized.
Windows Installation
Download the Windows installer executable from ollama.ai. Run the installer and follow the setup wizard. Windows users should note that WSL 2 (Windows Subsystem for Linux 2) with GPU support is recommended for optimal performance. For NVIDIA GPU users, ensure your NVIDIA drivers are up to date before installation.
Linux Installation
Linux installation uses a shell script. Open your terminal and run the official installation command from Ollama's website. This approach works across Ubuntu, Fedora, Arch, and other distributions. Linux users have excellent flexibility in customizing their setup, and GPU support works seamlessly with proper driver installation.
Verifying Your Installation
After installation, verify that Ollama is working correctly by opening your terminal or command prompt and running a simple test. Enter the command ollama --version to confirm the installation succeeded. Next, try pulling a small model like Mistral to test basic functionality with ollama pull mistral.
Pre-Installation Checklist
Before installing Ollama, consider these preparation steps:
- Check available disk space: Ensure you have at least 20GB free for models
- Update drivers: For GPU systems, update graphics drivers to latest versions
- Verify RAM: Check your system has minimum required memory
- Internet connection: A stable connection is needed for downloading models
- Administrator privileges: Ensure you have permission to install software
First-Run Considerations
The first time you run a model, Ollama downloads it from the registry, which may take time depending on your internet speed. Subsequent runs are much faster since the model is cached locally. You can serve Ollama on your local network by configuring the OLLAMA_HOST environment variable, enabling access from other devices.
Understanding these requirements and completing proper installation ensures a smooth experience running AI models locally on your machine.