Lab 15: Open Source vs Closed AI — Hugging Face, Ollama, Local LLMs
Objective
The Spectrum of Openness
MOST OPEN MOST CLOSED
│ │
▼ ▼
Open Open Open Open Proprietary
weights weights + weights + API + API only
+ code + training code only no weights
training data
data
│ │ │ │ │
TinyLlama Llama 3 * Mistral * Gemini GPT-4 / Claude
Flash / Gemini UltraThe Case for Closed AI
Advantage
Detail
The Case for Open Models
Advantage
Detail
Running Local LLMs with Ollama
Installation and Quick Start
Hardware Requirements
Model Size
RAM Required
GPU (recommended)
Quality
Ollama REST API
Hugging Face: The GitHub of AI
Using the Transformers Library
Searching for the Right Model
Top Open Models (2025)
Text Generation
Model
Params
Licence
Strengths
Coding
Model
Notes
Embeddings (for RAG, search, similarity)
Fine-Tuning Open Models
When to Use Which
Further Reading
PreviousLab 14: AI Safety and Alignment — Why It MattersNextLab 16: AI Developer Toolkit — APIs, LangChain, Vector Databases
Last updated
