Cursuri AI.ro International — AI e-learning for professionals

Try the platform before you pay

Explore the interactive account demo and read the first lesson of Fine-Tuning and Customizing Open-Source LLMs: LoRA, QLoRA and Self-Hosting for free, in full — no account, no card.

AI Professor in every lesson Quizzes with feedback Cancel anytime
cursuri-ai.ro/app/courses/fine-tuning-and-open-source-llms Interactive demo · sample account
Cursuri AI.ro International — AI e-learning for professionals

Welcome! 👋

Welcome to Cursuri AI International — AI e-learning for professionals, now in English. Activate your subscription and start learning.

AI virtual professor Exclusive to Cursuri AI

A mentor who knows every lesson in detail and guides you personally.

Included in your subscription

Everything you get with a single subscription

Full access to the entire platform, with no hidden limits or extra costs.

50 premium courses Practical content created by specialists, constantly updated with the latest in AI
24/7 AI virtual professor A personal mentor built into every lesson — ask any question and get an instant answer
1459 hands-on lessons Short, structured lessons with practical exercises you can apply at work right away
Smart AI quizzes Automatically generated questions, tailored to your weak spots, with detailed feedback
Save and organize Bookmarks, personal notes and a spaced-repetition system for maximum retention
Progress and analytics Streaks, weekly goals and personalized insights into your growth

Start learning AI today

Pick the right plan and get instant access to premium courses, an AI virtual professor, smart quizzes and hands-on exercises.

No long-term commitment Cancel anytime, no penalties Instant access after payment
This is a preview with sample data. Activate your subscription to save your conversations with the AI Professor.

AI Conversations

The complete history of your dialogues with the AI Virtual Professor

4 Conversations
36 Messages
2 Courses
AI Fundamentals 2 conversations
You

Can you explain how an artificial neuron works?...

AI Professor
AI Professor

An artificial neuron simulates how a biological neuron works: 1. Inputs — it receives multiple numeric values 2. Weights — each input has a weight that determ...

You

What is the ReLU activation function?...

AI Professor
AI Professor

ReLU (Rectified Linear Unit) is the most popular activation function: - Formula: f(x) = max(0, x) - If the input is positive → it passes through unchanged - If the input is negative → it turns it into ...

Prompt Engineering Masterclass 2 conversations
This is sample data Activate a subscription to save and export your real conversations with the AI Professor.
See plans
This is a preview with sample data. Activate a subscription to see your real scores.

Scores

Your performance across 5 assessed courses

79% Overall average
Very good
5
Courses assessed
4 / 5
Passed (≥70%)
22
Quizzes completed
168 / 220
Total points
Score distribution
4 courses ≥70% 1 course 40-69%
Best result Prompt Engineering Masterclass — 92%

Performance by course

92
Prompt Engineering Masterclass Passed
46 / 50 points 5 quizzes 92%
85
Introduction to AI Engineering Passed
34 / 40 points 4 quizzes 85%
76
AI for Digital Marketing Passed
38 / 50 points 5 quizzes 76%
71
RAG — Retrieval Augmented Generation Passed
21 / 30 points 3 quizzes 71%
58
AI Agents & Automation Not passed
29 / 50 points 5 quizzes 58%
This is sample data Activate a subscription to see your real quiz scores.
See plans
Structured learning paths

From zero to expert,
step by step

Career paths and specializations with a clear structure, from fundamentals to advanced level. Each course prepares you for the next — no guessing what to learn next, the platform guides you.

50 Premium courses
1459 Hands-on lessons
24/7 AI Professor

How a learning path works

Four simple steps from your first lesson to expert level

01

Choose the right path

Two complete career paths plus focused specializations — for engineers, managers, marketers, or professionals in specialized fields.

02

Complete the stages in order

Each path is divided into clear stages. Each course prepares you for the next — no skipped steps, no lost context.

03

The AI Professor guides you

Ask anything in every lesson. You get explanations, practical examples, and personalized quizzes.

04

Track your progress

Progress per stage and per path, quiz scores, and automatic recommendations for your next step.

AI Virtual Professor Exclusive

Built into every lesson of every path

Throughout your entire path, you have access to an AI professor that knows the content of every lesson. Ask anything — you get detailed explanations, industry examples, and quizzes adapted to your level.

AI chat included in your subscription Answers tailored to the lesson you're studying
Automatic summaries Key points intelligently extracted
Personalized quizzes Unique questions, calibrated to you

Start your first learning path today

Choose the right plan and get instant access to the AI Professor, smart quizzes, and all premium courses.

Instant access Cancel anytime AI Professor included
Individual courses

Choose the courses you're interested in

Subscribe to each course individually. €49 + VAT / month per course, cancel anytime.

IT PRO Advanced

Fine-Tuning and Customizing Open-Source LLMs: LoRA, QLoRA and Self-Hosting

The complete, advanced masterclass on fine-tuning open-source LLMs with LoRA, QLoRA and self-hosting — updated for 2026.

30 lessons ~25h
BUSINESS Intermediate

AI for Coaches and Course Creators

Build and grow your coaching or course business with AI — niche, curriculum, client delivery, honest marketing, lead magnets, community and support. Ready-to-use prompts. Updated for 2026.

30 lessons ~25h
BUSINESS Intermediate

AI for Research and Academia

Use AI ethically and effectively across the research lifecycle — literature, writing, grants, references, and dissemination — with academic integrity as the spine. Ready-to-use prompts, updated for 2026.

30 lessons ~25h
BUSINESS Intermediate

AI for Operations and Supply Chain

Apply AI across the end-to-end supply chain the practical way — forecasting, inventory, procurement, logistics, production, maintenance and risk, with human oversight. Updated for 2026.

30 lessons ~25h
BUSINESS Beginner Popular

AI for Your Job Search and Career Growth

Run a smarter, honest job search and grow your career with AI — resume, LinkedIn, interviews, salary negotiation, networking and upskilling. Ready-to-use prompts. Updated for 2026.

30 lessons ~25h
BUSINESS Intermediate

AI for Legal Professionals

Use AI across legal research, contracts, due diligence and writing the responsible way — verify every citation, protect privilege, keep the lawyer in control. Updated for 2026.

30 lessons ~25h
BUSINESS Intermediate

AI for Consultants and Freelancers: Build a Solo AI-Powered Business

Run a lean, high-margin solo consulting or freelance business with AI as your unfair advantage — win clients, deliver faster, automate the boring parts. Guardrails included. Updated for 2026.

30 lessons ~25h
BUSINESS Intermediate

AI for E-commerce and Retail

Apply AI across your online store the right way — listings, imagery, personalization, search, pricing, inventory, reviews, chatbots and marketplaces, with EU compliance built in. Updated for 2026.

30 lessons ~25h
BUSINESS Beginner

AI for Educators and Teachers

Save hours every week and teach better with AI — lesson planning, materials, differentiation, feedback and quizzes — the responsible, privacy-safe way. Beginner-friendly, updated for 2026.

31 lessons ~25h
BUSINESS Intermediate

AI for Project and Product Management

Use AI across the whole project and product lifecycle the smart way — discovery, PRDs, roadmaps, backlog, planning, analytics and experiments — with humans in control. Updated for 2026.

30 lessons ~25h
BUSINESS Intermediate Popular

AI Video Creation and Editing: From Script to Publish

Create professional video with AI end to end — script, generate, voice, edit and publish — using Runway, Veo, Kling, HeyGen, ElevenLabs, Descript and CapCut, the legal and ethical way. Updated for 2026.

31 lessons ~26h
IT PRO Advanced

Time Series Forecasting with Machine Learning

The complete, hands-on time series forecasting course — from stationarity, ARIMA and exponential smoothing to gradient boosting, global models, N-HiTS, Transformers, 2026 foundation models and conformal intervals, with honest evaluation and production deployment.

30 lessons ~25h
IT PRO Advanced

Edge AI and On-Device Intelligence

Ship real Edge AI: compress models, master LiteRT/ONNX/Core ML/ExecuTorch, run SLMs on phones and microcontrollers, and deploy privately with OTA updates and monitoring. Updated for 2026.

30 lessons ~25h
IT PRO Advanced

Recommender Systems with AI: From Collaborative Filtering to Deep Learning

The complete, hands-on recommender systems course — content-based and collaborative filtering, matrix factorization, deep learning, two-tower retrieval, sequential transformers, evaluation, LLMs and GDPR, updated for 2026.

30 lessons ~25h
IT PRO Advanced

AI for Cybersecurity: Threat Detection and SOC Operations

A hands-on blue-team course on using AI and machine learning for threat detection, SOC operations, UEBA, alert triage, SOAR automation and threat intelligence, updated for 2026.

30 lessons ~25h
IT PRO Advanced

Reinforcement Learning and RLHF: Training and Aligning AI Models

The complete, university-level RL and RLHF course — from MDPs, Q-learning, DQN and PPO to reward models, DPO, GRPO, Constitutional AI and verifiable rewards — with real Gymnasium, Stable-Baselines3 and TRL code, updated for 2026.

30 lessons ~25h
IT PRO Advanced

Data Engineering for AI: Pipelines, Vector Stores and Data Quality

The complete, advanced course on the data foundation for AI: pipelines, lakehouse, data quality, feature stores, embeddings and vector stores - updated for 2026.

31 lessons ~26h
IT PRO Advanced

LLM Evaluation and Testing: Shipping Reliable AI

The dedicated, advanced masterclass on evaluating and testing LLM systems — judges, datasets, RAG and agent evals, CI/CD and production monitoring, updated for 2026.

30 lessons ~25h
IT PRO Advanced

Computer Vision with AI: From Detection to Multimodal Understanding

The complete, advanced masterclass on modern computer vision - from OpenCV and CNNs to detection, segmentation, Vision Transformers, multimodal VLMs and production MLOps, updated for 2026.

31 lessons ~25h
IT PRO Advanced

MLOps: The Machine Learning Lifecycle in Production

The complete, advanced masterclass on operating machine learning models in production — tracking, pipelines, serving, monitoring, drift, retraining and governance — updated for 2026.

30 lessons ~25h
IT PRO Intermediate

Deep Learning and Neural Networks with PyTorch

The complete, hands-on deep learning course with PyTorch — from tensors and autograd to CNNs, Transformers, GPU training and production deployment, updated for 2026.

30 lessons ~25h
BUSINESS Intermediate

AI Data Privacy and EU AI Act Compliance for Professionals

Master AI data privacy and EU AI Act compliance the right way — GDPR, risk tiers, provider vs deployer duties and internal AI governance. Updated for 2026.

30 lessons ~25h
BUSINESS Intermediate

AI for Finance and Accounting Professionals

Use AI to speed up finance and accounting work — reporting, analysis, forecasting, reconciliation, AP/AR, audit support and document processing — with every number verified by a human. Updated for 2026.

30 lessons ~25h
BUSINESS Intermediate

AI for Customer Support and Service

Deploy AI across customer support the right way — deflection, chatbots, RAG, agent copilot, triage and voice — with human escalation, EU AI Act and GDPR built in. Updated for 2026.

30 lessons ~25h
BUSINESS Beginner Popular

The AI Productivity Masterclass for Knowledge Workers

Work faster and think better with ChatGPT, Claude and Gemini — a practical, tool-agnostic AI productivity course for every knowledge worker.

30 lessons ~25h
BUSINESS Intermediate

AI for HR: Recruiting, Onboarding and L&D — Done Compliantly

Use AI across recruiting, onboarding and L&D the compliant way — human-in-the-loop, EU AI Act and GDPR ready. Updated for 2026.

30 lessons ~25h
IT PRO Advanced

AI Security: Defending LLM Applications (OWASP LLM Top 10, Guardrails, Red-Teaming)

The complete, advanced masterclass on defending LLM applications: OWASP LLM Top 10, guardrails, and authorized red-teaming — updated for 2026.

30 lessons ~25h
IT PRO Advanced

AI for DevOps and SRE: AIOps in Practice

The complete, advanced masterclass on AIOps for DevOps and SRE — intelligent observability, incident response, RCA, CI/CD, IaC and safe automation, updated for 2026.

30 lessons ~25h
IT PRO Advanced

Voice AI and Realtime Multimodal Agents

The complete, advanced masterclass on building realtime voice and multimodal AI agents — STT, TTS, the Realtime API, telephony, and production deployment for 2026.

30 lessons ~25h
IT PRO Advanced

Build and Ship a Production AI SaaS: From Idea to Paying Users

The complete, advanced masterclass on building and shipping a production AI SaaS in 2026 — idea, stack, LLM integration, RAG, auth, Stripe billing, observability, deployment and go-to-market.

30 lessons ~25h
BUSINESS Beginner

Microsoft 365 Copilot for Office Work: Role-Based Productivity

Turn Word, Excel, Outlook, Teams and PowerPoint into AI assistants — real productivity for your role, not generic tricks.

32 lessons ~24h
BUSINESS Intermediate Popular

SEO and AEO/GEO in the AI Era: Optimizing for Google, AI Overviews and Generative Engines

Modern SEO plus end-to-end AEO/GEO: how to appear in Google and AI Overviews and get cited by ChatGPT, Perplexity, Gemini

30 lessons ~26h
BUSINESS Intermediate

Manager in the AI Era: Leading Your Team Through the AI Transformation

Lead your team through the AI transformation with proven frameworks: ADKAR, Kotter and the psychology of adoption

30 lessons ~24h
BUSINESS Intermediate Popular

AI Image Generation: The Complete Guide from Prompt to Publishing

Premium course: visual prompt engineering, AI platforms, production at scale, legal, ROI and hands-on tutorials — updated for 2026

26 lessons ~27h
BUSINESS Beginner

No-Code Data Analysis with AI: ChatGPT, Excel and SQL for Non-Programmers

Analyze data with conversational AI, no code: ChatGPT, Excel and SQL for non-programmers, with verification and GDPR.

27 lessons ~24h
BUSINESS Intermediate Popular

AI for Entrepreneurs and Startups: The Complete Guide

Premium course: idea validation, no-code MVP, go-to-market, finance, scaling and the startup ecosystem with AI — updated for 2026

30 lessons ~28h
BUSINESS Intermediate Popular

AI for Sales and CRM

The complete AI masterclass for sales and intelligent CRM — updated for 2026

28 lessons ~25h
BUSINESS Intermediate Popular

AI for Content Creation and Copywriting

Premium course: copywriting, editorial strategy, social media, video, audio, brand voice, SEO, KPIs and scaling with AI — updated for 2025-2026

29 lessons ~29h
BUSINESS Beginner Popular

AI for Digital Marketing

The complete AI masterclass for digital marketers — updated for 2026

31 lessons ~27h
IT PRO Advanced Popular

Context Engineering and Memory for AI Agents: Beyond Prompting

Engineer AI agents' context and memory for reliability at scale: context anatomy, memory types, retrieval, compaction, cost.

25 lessons ~24h
BUSINESS Intermediate Popular

AI for Business Leaders

The complete AI masterclass for leaders and management — updated for 2026

24 lessons ~22h
IT PRO Advanced Popular

Claude Code Mastery: Agentic Coding from the Terminal (multi-file, git, CI, MCP)

Terminal-first agentic coding with Claude Code: multi-file, git, headless, subagents, hooks, CI/CD, MCP, security and routing across the 2026 Anthropic lineup (including Claude Fable 5).

28 lessons ~25h
IT PRO Beginner

Vibe Coding: From Prompt to Application with Lovable, v0, Bolt and Replit Agent

Build full-stack applications from prompts and ship them safely, legally and responsibly — without writing code.

22 lessons ~24h
IT PRO Expert Popular

Cursor as a Pro: AI-Native IDE, Composer and Multi-Agent 2026 (Enterprise Edition)

Cursor 3 Pro: from Composer to Background Agents and Enterprise — April 2026

30 lessons ~25h
IT PRO Advanced Popular

MCP (Model Context Protocol) — Building Servers and Integrations (Enterprise Edition)

The complete MCP guide: from architecture to production servers — Python, TypeScript, security, deployment

22 lessons ~25h
IT PRO Advanced Popular

AI Agents: Architecting and Automating Autonomous Systems

The complete AI Agents and Automation masterclass for engineers — updated for 2026

30 lessons ~26h
IT PRO Advanced Popular

Advanced LLM Integration in Production Applications

The complete masterclass on LLM integration in production — updated for 2026

24 lessons ~26h
IT PRO Advanced Popular

RAG: Retrieval-Augmented Generation in Practice

The complete RAG masterclass for AI Engineers — updated for 2026

27 lessons ~24h
IT PRO Intermediate Popular

The Complete Prompt Engineering Masterclass

Advanced prompting techniques for professionals — updated for 2026

32 lessons ~27h
IT PRO Beginner Popular

Introduction to AI Engineering

The complete AI Engineering masterclass for developers — updated for 2026

28 lessons ~25h
This is a preview with sample data. Activate a subscription to save your lessons and notes.

Saved & Notes

Your saved lessons and personal notes, organized by course.

5 saved lessons 3 notes
Prompt Engineering Masterclass 3
Chain-of-Thought Prompting — The Complete Guide Mar 18
Few-Shot vs Zero-Shot — When to Use Each Mar 16
Advanced System Prompts for GPT-5.5 and Claude Mar 14
AI for Digital Marketing 2
Generating Ad Copy with AI — Meta & Google Ads Mar 12
Automating Campaigns with AI Agents Mar 10
This is sample data Activate a subscription to save your own lessons and personal notes.
View plans
This is a preview with sample data. Activate a subscription to generate personalized review flashcards.

Review

Key concepts from your lessons, generated by the AI Virtual Professor

3 Lessons
10 Cards
2 Courses
AI Fundamentals 7 cards
Prompt Engineering Masterclass 3 cards
This is sample data Activate a subscription to generate personalized review flashcards for every lesson.
View plans
This is a preview with demo data. Activate a subscription to see your real statistics.

Learning Insights

Your learning statistics

15h 30m total time 7 achievements
12/7 Lessons 175/180 Minutes 14/21 Streak
12
Lessons completed
175
Minutes invested
59%
5
Quizzes taken
14
Day streak

Personal records

21 days Longest streak
175m Most active week
45 days Total active days
22m/day Daily average
This is demo data Activate a subscription to see your real statistics and achievements.
See plans

Saved articles

The blog articles you saved for later, all in one place.

0 saved articles

No saved articles yet

When you read an article on the blog, hit the “Save” button to find it again quickly right here.

My account

Welcome

The premium AI education platform. Manage your account, subscription and progress.

Demo data. Activate a subscription to see your real progress.

Your progress

See courses
3
Courses in progress
5
Courses completed
47
Lessons completed
14
Day streak

You don't have an active subscription.

Choose a plan
Premium feature

Available with an account

This section becomes active once you create an account.

See available plans
50 premium courses 1459 hands-on lessons 24/7 AI Professor Secure payments with Stripe Cancel anytime
Full lesson, free Module 1 · Lesson 1

Fine-Tuning vs RAG vs Prompting: Choosing the Right Tool

From the course Fine-Tuning and Customizing Open-Source LLMs: LoRA, QLoRA and Self-Hosting

50 min read Advanced Quiz included + 29 lessons with a subscription
Tip: select any passage in the lesson and hit “Ask the AI Professor” — that's exactly how it works inside the platform.

Built-in AI Professor Exclusive

Ask anything about the lesson and get an instant answer. The AI Professor knows the course content and helps you learn more effectively.

Select a passage in the lesson → it explains it on the spot Interactive chat — answers any question Automatic summaries with key points Personalized AI-generated quizzes

Before you touch a single line of training code, you need to answer a deceptively simple question: does your problem actually require fine-tuning at all? A large share of "we need a custom model" requests are solved faster, cheaper, and with less operational risk by better prompting or by retrieval-augmented generation (RAG). Fine-tuning is powerful, but it is also the option with the highest ongoing cost in engineering time, data curation, and maintenance. This lesson gives you a decision framework so you deploy the right tool for the right job.

The three techniques, precisely defined

Prompting (including few-shot examples and structured system prompts) changes model behavior purely through the input context. You do not modify any weights. You steer the model with instructions, examples, output-format specifications, and role framing. It is instant to iterate on and requires zero training infrastructure.

RAG (retrieval-augmented generation) adds an external knowledge source at inference time. You embed your documents into a vector store, retrieve the most relevant chunks for a given query, and inject them into the prompt. The model reasons over facts it was never trained on. RAG is the standard answer to "the model does not know my private or fresh data."

Fine-tuning updates the model weights (fully, or with parameter-efficient adapters such as LoRA) on your own examples. It changes the model's behavior and style durably: tone, formatting conventions, a domain-specific reasoning pattern, a niche output schema, or a language/register the base model handles poorly. It does not, by itself, reliably teach new facts.

The mental model that resolves most debates

Use this heuristic:

  • Prompting changes how you ask.
  • RAG changes what the model can see.
  • Fine-tuning changes how the model behaves by default.

A frequent and expensive mistake is trying to fine-tune facts into a model. If your requirement is "the assistant must answer questions about our 4,000-page internal policy handbook and stay current as it changes weekly," that is a RAG problem, not a fine-tuning problem. Fine-tuning on those documents will produce a model that confidently paraphrases and hallucinates, and every handbook update would force a retrain. RAG lets you update the knowledge base by re-indexing, with no training at all.

Conversely, if your requirement is "every response must follow our strict clinical-note format, in a terse professional register, even under adversarial input," prompting may get you 90% of the way but drift on edge cases. Fine-tuning bakes the behavior in so you no longer spend hundreds of tokens per request re-teaching format, which also cuts latency and cost per call.

Comparison table

Dimension Prompting RAG Fine-tuning
Changes weights? No No Yes
Teaches new/fresh facts Weakly Strongly Poorly
Teaches style/format/behavior Moderately Weakly Strongly
Time to first result Minutes Hours to days Days to weeks
Upfront cost Very low Medium High
Per-request token cost High (long prompts) High (retrieved context) Low (behavior is internal)
Inference latency Higher (long context) Higher (retrieval + context) Lower
Freshness / update speed Instant Fast (re-index) Slow (retrain)
Data needed A few examples A document corpus Curated example pairs
Best at Quick steering, prototyping Grounded factual answers Consistent behavior, niche tasks

Cost, latency, and freshness trade-offs

The token economics matter more than people expect. If you rely on a 1,500-token system prompt with ten few-shot examples on every call, you pay for those tokens on every request forever, and they inflate latency. Fine-tuning can move that behavior into the weights, shrinking prompts dramatically. Over millions of requests, the training cost amortizes quickly. This is a classic reason to fine-tune even when prompting "works."

Freshness is the mirror-image argument. RAG wins decisively when data changes often, because updating the index is cheap and immediate. A fine-tuned model freezes knowledge at training time; the moment your facts change, the model is stale and possibly wrong. Never fine-tune volatile facts.

Latency has three contributors here: prompt length (prompting and RAG inflate it), retrieval round-trips (RAG only), and model size. Self-hosting a smaller fine-tuned open model can beat a large general model on both latency and unit cost for a narrow task.

Combining them (the usual production answer)

These techniques are not mutually exclusive; strong systems combine all three. A common, robust architecture is: fine-tune a compact open model so it reliably produces your output format and domain tone and calls tools correctly; use RAG to feed it fresh, private facts at inference; and keep a lean system prompt for final guardrails and per-request instructions. Fine-tuning reduces prompt length and improves format adherence; RAG supplies grounded facts; prompting handles the last mile.

Measure before and after, always

None of these decisions should be made on intuition alone. Build a small, representative evaluation set of real inputs with known-good outputs before you change anything, and score your current baseline on it. Then, when you try improved prompting, add RAG, or fine-tune, re-score against the same set and compare. Without this discipline you cannot tell whether a change helped, hurt, or merely shifted the failure modes. A common trap is to "feel" that a fine-tune improved quality while an honest evaluation shows regression on cases the base model handled fine, a symptom of overfitting to your narrow training distribution or of catastrophic forgetting of general capability.

A worked example and common anti-patterns

Consider a support assistant that must answer product questions in a fixed JSON envelope. The knowledge (product specs, prices) changes weekly, so those facts belong in RAG. The strict envelope, the terse tone, and the refusal behavior on out-of-scope questions are stable, so they are fine-tuning candidates once prompting proves inconsistent under load. The anti-pattern is the reverse: teams often try to fine-tune the product catalog into the weights (guaranteeing stale, hallucinated prices) while relying on a fragile prompt to enforce the JSON envelope on every call. Matching each requirement to the right technique is the whole game. A second frequent anti-pattern is jumping straight to fine-tuning to avoid the "effort" of prompt engineering, only to discover that the same weak prompt now sits underneath an expensive, hard-to-update model.

Decision checklist

Work through this in order and stop at the first honest "yes":

  1. Have you exhausted prompting? Rewrite the system prompt, add few-shot examples, specify the output schema explicitly. If quality is now acceptable, ship it. Do not fine-tune yet.
  2. Is the gap about knowledge the model lacks (private, proprietary, or fresh facts)? Use RAG. Do not fine-tune.
  3. Does the knowledge change frequently? Strongly favor RAG; fine-tuning would go stale.
  4. Is the gap about consistent behavior, style, format, tone, or a narrow skill the base model does inconsistently? This is where fine-tuning earns its cost.
  5. Are per-request prompt tokens or latency a real business cost at your volume? Fine-tuning to shorten prompts can pay for itself.
  6. Do you have (or can you build) at least a few hundred high-quality, consistent examples? If not, you are not ready to fine-tune; fix the data first.
  7. Can you commit to maintenance (re-training as requirements evolve, evaluation, versioning)? If not, prefer RAG/prompting.

If you reach step 4 or 5 with a "yes," fine-tuning is likely justified. Everything that follows in this course assumes you have honestly worked through this checklist and concluded that adapting the weights is the right investment.

Sequencing the three techniques in a greenfield project

When you start a new AI feature, resist the urge to pick a technique on day one. Sequence them so each decision is informed by evidence:

  1. Week 1 — prompt baseline. Write the best system prompt you can, add few-shot examples, specify the output schema, and score it on your 20-example eval set. This is now your baseline; you will compare everything against it.
  2. Week 1-2 — add retrieval if the failures are knowledge-shaped. If the errors are "the model does not know our facts," stand up a minimal RAG pipeline and re-score. If retrieval closes the gap, you may be done — no training required.
  3. Week 2-3 — consider fine-tuning only for residual behavior gaps. If, after good prompting and retrieval, the remaining failures are about format, tone, consistency, or a narrow skill, and the volume justifies it, gather examples and run a cheap LoRA. Re-score against the same set.

The discipline is that each step is cheap relative to the next, and each is validated before you escalate. Teams that invert this order — fine-tuning first, prompting last — routinely spend weeks training a model to do something a better prompt would have solved in an afternoon, and they end up maintaining an expensive artifact they did not need. The sequence protects both your time and your budget, and it produces a written trail of evidence you can show stakeholders when they ask why you chose the approach you did.

Token economics: a worked example

Intuition about "prompting is cheap" breaks down at volume, so make the arithmetic explicit. Suppose a classification endpoint uses a system prompt of roughly 1,500 tokens (detailed instructions plus twelve few-shot examples) and the user turn adds another 200 tokens. Every single call therefore pays to process about 1,700 input tokens before the model emits its short answer. At one million calls per month, that is 1.7 billion input tokens just to re-teach the model what it should already know by default.

Now fine-tune a compact open model so the behavior lives in the weights. The system prompt collapses to perhaps 150 tokens of guardrails, and the few-shot block disappears entirely. You now process roughly 350 input tokens per call instead of 1,700 — a reduction of about 80% on the dominant cost driver, plus lower latency because the model reads far less context. The one-time training cost (a few GPU-hours for a QLoRA run) is trivially amortized against 1.7 billion tokens per month. This is the canonical "prompting works but fine-tuning is still correct" situation: the deciding factor is not capability but recurring unit economics at scale.

Two cautions keep this honest. First, this only pays off when volume is high and the behavior is stable; for a low-traffic internal tool, the engineering and maintenance cost of a fine-tune outweighs the token savings. Second, always verify current per-token pricing at the provider or your own infrastructure cost — do not treat any specific number here as a live quote; treat the structure of the calculation as the transferable skill.

Three extended scenarios and the right call

Scenario A — Clinical note formatter. A hospital wants dictated notes reshaped into a rigid SOAP structure with a controlled vocabulary and a terse register, and the behavior must hold even on messy, adversarial input. The knowledge (medical facts) already lives in the base model and in retrieved guidelines; the gap is durable formatting behavior. Verdict: prompt first, and if edge-case drift persists under load, fine-tune the format. Keep RAG for the guideline citations that change.

Scenario B — Internal policy chatbot. Employees ask questions over a 4,000-page handbook that legal revises weekly. The gap is fresh, private knowledge, not behavior. Verdict: RAG, unambiguously. Fine-tuning here would freeze last week's policy into the weights and hallucinate confidently. If, additionally, you want a specific answer format and refusal style, a light fine-tune can sit on top of RAG — behavior in the weights, facts in the context.

Scenario C — High-volume support triage. A model routes millions of tickets into 40 categories and drafts a first reply in a fixed JSON envelope. Categories and tone are stable; product facts change. Verdict: fine-tune the classification-and-envelope behavior into a small open model for cost and latency, feed current product facts via RAG, and keep a lean prompt for per-ticket instructions. This is the "combine all three" architecture in production form.

When RAG and fine-tuning genuinely conflict

Occasionally teams try to solve the same gap with both and get worse results. If you fine-tune heavily on domain documents and retrieve them, the model can start to trust its (stale, memorized) version over the retrieved (fresh) version, producing contradictions the user can spot. The clean separation of concerns avoids this: fine-tune for how to behave, retrieve for what is true right now, and never fine-tune the volatile facts you also retrieve. When behavior and knowledge are cleanly separated, the two techniques reinforce rather than fight each other.

Ready-to-use decision template

Copy this into your design doc and fill it in before writing any training code:

  • Problem statement (one sentence): ______
  • Is the gap knowledge or behavior? knowledge / behavior / both
  • Does the knowledge change faster than monthly? yes -> RAG; no -> either
  • Have we exhausted prompt + few-shot + schema? yes / no (if no, stop and do that)
  • Volume per month and per-request prompt length: ______ (compute token cost)
  • Do we have >= a few hundred consistent, high-quality examples? yes / no
  • Can we own maintenance (retrain, eval, version)? yes / no
  • Chosen approach and why (one paragraph): ______
  • Baseline eval score before any change: ______

If the last two data fields are blank, you are not ready to fine-tune — you are ready to build an evaluation set and gather data.

Early-warning signals that you chose the wrong tool

Reversing a bad choice is cheap early and expensive late, so learn the signals:

Symptom in production Likely wrong choice Corrective move
Answers cite outdated facts weeks after a source changed Facts baked via fine-tuning Move facts to RAG; retrain only behavior
Format breaks under unusual or adversarial input Relying on prompt alone for critical format Fine-tune the format; keep prompt for guardrails
Latency and bill dominated by huge system prompts at scale Over-reliance on prompting Fine-tune to shorten prompts
Model contradicts the retrieved context Fine-tuned on the same volatile documents you retrieve Stop fine-tuning those facts; trust retrieval
Every requirement change needs a retrain Behavior and knowledge fused into weights Separate concerns: RAG for knowledge, weights for behavior

The pattern is consistent: when weights and knowledge are entangled you get stale, contradictory, expensive systems; when they are cleanly separated each layer stays cheap to update. Diagnose by asking a single question about any failure — "is this a knowledge problem or a behavior problem?" — and route the fix to the matching layer.

Common mistakes recap

  • Fine-tuning to inject facts (produces confident hallucination and forces retrains).
  • Skipping prompt engineering because fine-tuning "feels" more serious, then discovering the weak prompt now sits under an expensive model.
  • Fine-tuning volatile data that goes stale within days.
  • Changing prompting, RAG, and weights at once so you cannot attribute which move helped.
  • Never building a baseline eval, then "feeling" that quality improved while it silently regressed.

Mini-lab

Take one real task from your own backlog. Write its one-sentence problem statement, classify the gap as knowledge or behavior, and predict the right technique using the checklist — before reading ahead. Assemble twenty representative inputs with known-good outputs as a first evaluation set. You will reuse this exact set at the end of the course to prove whether your fine-tune actually helped. Everything that follows assumes you have honestly worked through this framework and concluded that adapting the weights is the right investment.

Real quiz · from Lesson 1

**[Easy]** Which technique modifies the model's weights?

First lesson — read in full, for free

Enjoyed it? All 30 lessons look like this.

You just read a complete lesson, exactly as it appears in the platform. Create your account in under a minute and pick the option that fits you best:

Just this course €49+ VAT / month All 30 lessons + AI Professor (fair-use limit)
Recommended IT Pro bundle €399+ VAT / month Every IT Pro course + smart quizzes + full AI Professor
Instant access to Lesson 2 All 30 lessons in the course Interactive quizzes with feedback AI Professor built into every lesson Notes & progress saved automatically Access from any device
Instant access Cancel anytime Secure payment via Stripe

Up next in the course

  • 2 Anatomy of an Open-Source LLM 52 min
  • 3 The Open-Source Licensing Landscape 48 min
  • 4 Dataset Design: Formats, Structure, and Chat Templates 52 min
Unlock all 30 lessons
Course curriculum

Everything you'll learn in this course

10 modules
30 lessons
~25h of content
Advanced level
1 When to Fine-Tune: Foundations & Decision Framework 3 lessons
  • Fine-Tuning vs RAG vs Prompting: Choosing the Right Tool Reading now 50 min
  • Anatomy of an Open-Source LLM 52 min
  • The Open-Source Licensing Landscape 48 min
2 Data: The Foundation of Fine-Tuning 3 lessons
  • Dataset Design: Formats, Structure, and Chat Templates 52 min
  • Data Quality, Curation, and Synthetic Data 51 min
  • Legal and Ethical Fine-Tuning Data 50 min
3 Parameter-Efficient Fine-Tuning (PEFT): LoRA 3 lessons
  • How LoRA Works: Low-Rank Adaptation Explained 52 min
  • LoRA Hyperparameters: Rank, Alpha, Target Modules, Dropout 51 min
  • Full Fine-Tuning vs PEFT: Trade-offs 48 min
4 QLoRA and Quantized Training 3 lessons
  • Quantization Fundamentals and bitsandbytes 50 min
  • QLoRA in Practice: Fine-Tuning on a Single GPU 52 min
  • Memory Math: VRAM Budgeting for Training 49 min
5 The Fine-Tuning Toolchain 3 lessons
  • Hugging Face Stack: transformers, PEFT, and TRL 51 min
  • Unsloth: Faster, Memory-Efficient Fine-Tuning 49 min
  • Axolotl: Config-Driven Fine-Tuning at Scale 50 min
6 Instruction Tuning & Alignment 4 lessons
  • Supervised Fine-Tuning and Chat Templates 52 min
  • Preference Optimization: DPO and Beyond 51 min
  • Common Pitfalls: Catastrophic Forgetting and Overfitting 49 min
  • Reinforcement Fine-Tuning: RLHF, GRPO, and Verifiable Rewards 50 min
7 Evaluation and Quantization for Inference 3 lessons
  • Evaluating a Fine-Tuned Model 51 min
  • Inference Quantization: GGUF, GPTQ, and AWQ 51 min
  • Merging Adapters and Exporting Models 48 min
8 Self-Hosting and Serving 4 lessons
  • Ollama: Local Serving Made Simple 49 min
  • vLLM: High-Throughput Production Serving 51 min
  • TGI and Choosing a Serving Stack 49 min
  • Serving Many Adapters: Multi-LoRA and Multi-Tenant Inference 50 min
9 Production, Cost, and Case Studies 3 lessons
  • Cost and Hardware Planning 51 min
  • Deploying to Production: Monitoring, Scaling, and Safety 52 min
  • Case Studies: Real-World Fine-Tuning Projects 50 min
10 Final Quiz — Fine-Tuning Open-Source LLMs 1 lessons
  • Final Assessment — Fine-Tuning and Customizing Open-Source LLMs 50 min
What you get on the platform

Everything you need to learn effectively

Interactive quizzes

Check your knowledge at the end of every lesson with scored quizzes and feedback.

Personal notes

Save notes on every lesson, accessible anytime from your dashboard.

Scheduled reviews

Revisit lessons exactly when it matters, at the right intervals — so you remember for the long term.

Progress & Achievements

Track your progress, unlock achievements, and visualize what you've learned.

Bookmarks

Save the lessons that matter and find them instantly when you need them.

Questions & Answers

Ask questions right on the lesson and get answers from our team.

Frequently asked questions

Good to know before you start

How do I get access to the course?

You can read the first lesson in full for free, right on this page — no account needed. For the rest of the course you create an account, pick the subscription that fits — a single course or a bundle — and get access immediately after your payment is confirmed. Everything happens 100% online.

Can I cancel my subscription anytime?

Yes. Cancel anytime, straight from your account, in just a few clicks. Your access stays active until the end of the period you have already paid for.

What does the subscription for this course include?

All 30 lessons in the course, interactive quizzes, the AI professor built into every lesson (select any passage and it explains it on the spot), personal notes, automatically saved progress, and content updates included.

Is there a fixed learning schedule?

No. You learn at your own pace, on any device. Lessons are structured step by step, and the platform saves your progress automatically, so you can pick up right where you left off — anytime.

Ready to unlock all the content?

Just this course — €49 + VAT / month — or every IT Pro course, with smart quizzes and the full AI Professor, in the bundle at €399 + VAT / month.

Instant access Cancel anytime Secure payment via Stripe
From €49 + VAT / month · Cancel anytime
Read the free lesson