Skip to main content

Chapter 1: Open vs Closed Models

The Great Divide in AI​

One of the most significant debates in the AI world is whether LLMs should be open or closed. This isn't just a technical question—it has implications for innovation, safety, and the future of AI.


What Does "Open Source" Mean for LLMs?​

Definition

An open-source LLM releases its model weights (the trained parameters) publicly, allowing anyone to download, run, and often modify the model.

Degrees of Openness​

LevelWhat's SharedExample
Fully OpenWeights + training code + dataVery rare
Open WeightsModel weights (can run locally)Llama 2, Mistral
Open APIFree API accessSome Gemini features
ClosedNothing—API onlyGPT-4, Claude

Major Open-Source Models​

Meta's Llama Family​

ModelParametersNotable Features
Llama 27B-70BFirst widely-adopted open LLM
Llama 38B-70BCompetitive with closed models
Code Llama7B-34BSpecialized for coding

License: Community License (commercial use allowed with conditions)

Mistral AI​

ModelSizeNotable Features
Mistral 7B7BPunches above its weight
Mixtral 8x7B46B (active)Mixture of Experts architecture

Philosophy: "Open weights, open science"

Others​

  • Falcon (TII, UAE)
  • Yi (01.AI, China)
  • Qwen (Alibaba)
  • Gemma (Google's open models)

Why Companies Open-Source LLMs​

1. Community Innovation​

Thousands of developers improve and adapt the model for free.

2. Ecosystem Building​

Open models create an ecosystem around the company's products.

3. Competitive Pressure​

Hard to charge for closed models when free alternatives exist.

4. Research Advancement​

Accelerates AI research and understanding.

5. Trust and Transparency​

Open inspection builds trust in AI systems.


Closed Model Advantages​

1. Quality Control​

The company controls all updates and ensures quality.

2. Safety Measures​

Easier to implement and enforce safety guidelines.

3. Business Model​

Sustainable revenue through API subscriptions.

4. Competitive Advantage​

Proprietary innovations stay secret.

5. Simplicity for Users​

No need to run or manage models yourself.


The Trade-offs​

AspectOpen SourceClosed Source
CostFree to run (but need hardware)Pay per use
PrivacyData stays localData goes to provider
CustomizationFull controlLimited options
QualityVaries widelyUsually high
SupportCommunity-drivenOfficial support
UpdatesManualAutomatic
SafetyYour responsibilityProvider handles

When to Choose Open Source​

✅ Privacy is critical - Healthcare, legal, financial applications

✅ High volume - API costs would be prohibitive

✅ Customization needed - Fine-tuning for specific domains

✅ Offline required - No internet access available

✅ Full control - Need to understand and modify behavior


When to Choose Closed Source​

✅ Highest quality needed - GPT-4 and Claude still lead

✅ Quick start - No infrastructure to set up

✅ Limited technical resources - No ML engineering team

✅ Light usage - API costs are manageable

✅ Safety assurances - Provider handles content policy


The Safety Debate​

Concerns About Open Source​

  • Malicious use - Anyone can use for harmful purposes
  • Removal of guardrails - Safety measures can be removed
  • Jailbreaking - Easier to bypass restrictions
  • Weapons development - Concerns about dangerous applications

Arguments For Open Source​

  • Transparency - Hidden AI is harder to audit
  • Distributed defense - Many eyes find problems
  • Democratic access - AI shouldn't be controlled by few companies
  • Academic research - Science needs open systems

Fine-Tuning Open Models​

What Is Fine-Tuning?​

Training an existing model further on specific data for better performance on certain tasks.

Why It Matters for Open Source​

Common Fine-Tuning Use Cases​

Use CaseExample
Domain specializationMedical, legal, financial
Company knowledgeInternal documents and processes
Behavior modificationSpecific tone or format
LanguageBetter performance in non-English

The Future of Open vs. Closed​

  1. Open models catching up - Gap narrowing with closed models
  2. Smaller, efficient models - More accessible to run locally
  3. Hybrid approaches - Open foundation + closed enhancements
  4. Regulation - May affect what can be released openly

Predictions​

  • Open source will remain strong for privacy-sensitive applications
  • Closed models will lead in cutting-edge capabilities
  • Enterprise will use both depending on use case
  • The debate will intensify as AI becomes more powerful

Key Takeaways​

✅ Open-source LLMs make weights publicly available

✅ Major open players: Meta (Llama), Mistral, others

✅ Trade-offs involve cost, privacy, quality, and control

✅ Open source excels for privacy, customization, high volume

✅ Closed source excels for quality, simplicity, safety assurance

✅ The debate has philosophical implications for AI's future


Think About It​

  1. Should the most powerful AI models be open or closed? Why?
  2. How might regulation change the open-source landscape?
  3. If you were building a startup, would you use open or closed models?

Next Steps​

Now let's explore deployment options in Chapter 2: Local vs Cloud LLMs.