Skip to Content
Recodocs

01 · Should you fine-tune at all?

A lookup answered 8 of 8 changed-policy questions correctly where a fine-tuned model gave 8 of 8 stale answers, and a 41-second CPU classifier scored 92.2% on BANKING77 against 64.5% for the best prompt. Measure the cheaper fixes first, then fine-tune only for the gap that is left.

16 min read
Part 1
Decide
Model
Qwen/Qwen2.5-0.5B-Instruct
Data
BANKING77 (77 intents, 13,083 messages)
Hardware
One T4, in Google Colab
Open in ColabSaved with the outputs of a GPU run

A request to fine-tune usually starts with a model getting something wrong. Before anyone trains anything, name what is wrong, because fine-tuning fixes one kind of failure well and the other kind badly. This lesson sorts failures into those two kinds, gives the order in which to try fixes, and measures the cheaper fixes on a small open model so you can see the difference rather than take it on trust. The result comes first and the exact setup, time and cost are in How it was built at the end. Each step is then checked against what companies actually did: the Business cases page documents 76 programmes in which a company trained a model, and the decision they made is the one this lesson teaches.

Two kinds of failure

A helpful diagnostic is to supply the missing fact yourself. If the answer improves with the correct policy or records in context, fix the evidence path first. If the model still performs the same task incorrectly despite clear instructions and the right evidence, investigate behaviour and training. The concept guide separates these two causes.

The model does not know something. It quotes last year's price, an old returns policy or a product that no longer exists. This is a knowledge failure. The fix is to give the model the current text at the moment it answers, which is retrieval. Fine-tuning is a poor tool for facts. When Ovadia and colleagues taught Mistral-7B post-cutoff news, accuracy rose from 0.481 to 0.875 with retrieval and only to 0.504 with fine-tuning. Gekhman and colleagues found that facts a model did not already know were learned slowly and made it more likely to invent answers.

The companies that combined the two kept the facts in retrieval and trained the behaviour around it. Kasisto's banking assistant was trained to answer from retrieved documents, cite them and refuse when they do not contain the answer; deployed at more than 40 financial institutions, it raised query resolution by 7.1 percentage points. SK Telecom's proof of concept fine-tuned a Claude model to give concise answers and cite the right links from the retrieved telecom documents. In both, the documents carried the facts; training taught the model how to use them.

The model does the job the wrong way. It knows enough, but the output is wrong in shape: the wrong label, a reply in prose where a program needs JSON, a tool call with a missing argument, a tone the brand would not use. This is a behaviour failure, and behaviour is what fine-tuning changes reliably. Even here, cheaper fixes often close the gap, and each should be measured first.

Name the failure first: a fact goes to retrieval, a fixed label to a classifier, and only a measured behaviour gap to a fine-tune

The order in which to try fixes, with what each step scored in this lesson’s two experiments

1
Name the failure on 50 real examplesA fact is wrong or missingknowledge failure✓Put the current source text in the promptretrieval: the page changes, so the answer doesweek 2, lookup8 of 8 current×Not: train the fact into the weightsweek 1: 8 of 8 right after 64 steps, 6.4 sweek 2, tuned8 of 8 staletuned + new page2 of 8 still stale10 days (current)7 days (stale)The job is done the wrong waybehaviour failure: label, format, tool call, style1Fixed labels and data? Train a classifierTF-IDF and logistic regression, 41 s on a CPU92.2%0.14 ms2Format or style? The strongest prompt first10 retrieved labelled examples, no trainingzero-shot 21.064.5%51 ms3Fine-tune only for the gap that is leftwhen a check scores it and volume, latency or adeployment rule pays for owning the model
Source: lesson notebook, Colab T4. Left: 8 held-out questions after the returns window changed from 7 to 10 days (each square is one answer). Right: accuracy on 770 BANKING77 test messages. The steps are the lesson’s order of fixes; they were not run as one sequence.

The rest of this lesson runs two experiments from the notebook, one for each branch, on Qwen2.5-0.5B-Instruct, a model small enough to train on a free Colab GPU.

Experiment 1: a fact that changes

A store's assistant answers customer questions. In week 1 its returns window is 7 days, and the team fine-tunes the model so that it answers correctly. In week 2 the window becomes 10 days. The notebook writes forty ways customers ask about returns, trains a LoRA adapter on 32 of them and keeps 8 aside. The alternative to training is a lookup: search a four-page handbook for the page that matches the question and put that page in the prompt.

def ask_policy(model, questions, pages=None):
    """Ask each question, optionally with the retrieved handbook page in the prompt."""
    if pages:
        # Retrieval: the most similar handbook page (TF-IDF cosine) goes into the prompt.
        questions = [
            "Answer using only this policy text.\n\n"
            f"Policy: {retrieve(q, pages)}\n\nQuestion: {q}"
            for q in questions
        ]
    answers, _ = generate(model, questions, SYSTEM, max_new_tokens=32)
    return answers

Each answer is sorted by the number of days it states. These are the counts on the 8 held-out questions, after the policy changed to 10 days:

ModelSays 7 days (stale)Says 10 days (correct)Other
Base, no lookup206
Tuned on week 1, no lookup800
Base + week-2 lookup080
Tuned on week 1 + week-2 lookup260

Read it row by row.

  • The Base model does not know the policy. It invents one: "within 30 days of purchase", "within 14 days of receiving it". Its two "7 days" answers come from a generic "3-7 business days", not from knowledge.
  • Fine-tuning taught the fact. Sixty-four training steps, under seven seconds on a T4, and every held-out question got "You have 7 calendar days from delivery". In week 1 that is a success.
  • Then the fact changed, and the weights did not. In week 2 the tuned model gives the old answer to all eight questions. Fixing it means a new dataset, a new training run and a new release.
  • The lookup was right the moment the page changed. No training at all, 8 of 8.
  • The adapter fought the document. Given the current page, the tuned model still said 7 days twice. It had learned the old answer well enough to override the text in front of it. A fact trained into weights is not only stale; it can contradict the source you later give the model.

Two of the notebook's printed answers, side by side. The first question shows the whole sequence; the second is one of the two where the adapter overrode the page:

What's the deadline for returns?

Base
The exact return deadline can vary by product and retailer, but it's usually within 3-7 business days after receiving the item.
Tuned
You have 7 calendar days from delivery to return an item for a full refund.
Tuned + lookup
You have 10 calendar days from delivery to return an item for a full refund.

The tuned model is confident and stale without the page, and follows the page when the page is in the prompt.

How long do customers get to return purchases?

Base
Customers can return purchases within 30 days of purchase, unless otherwise specified by the seller or applicable laws.
Tuned
You have 7 calendar days from delivery to return an item for a full refund.
Tuned + lookup
Customers have 7 calendar days from delivery to return an item for a full refund.

With the current page in front of it, the tuned model still answers 7 days: the weights beat the text.

This is the small-scale version of what Ovadia and colleagues measured on a 7B model, and it matches the business cases above: where companies combine retrieval and training, the documents carry the facts and training shapes the behaviour. Facts belong in a source you can update, and the model should read them at answer time.

Experiment 2: a real labelling task

BANKING77 is a public set of 13,083 real messages sent to an online bank, each labelled with one of 77 intents such as card_arrival or transaction_charged_twice (PolyAI, CC BY 4.0). Routing messages like these is a real job, the labels are fixed, and there are 10,003 labelled training examples. It is exactly the situation in which teams ask whether to fine-tune a language model.

The notebook tries three cheaper options before any training:

  1. Zero-shot prompt. The 77 intent names and the message; the model replies with one name.
  2. Prompt with retrieved examples. The same, plus the 10 training messages most similar to this one, with their labels. This is the strongest prompt you can build without training, and it uses the labelled data you already have.
  3. A text classifier. Word and character n-grams fed to logistic regression, trained on the CPU.
# The classifier: no GPU, no language model.
clf = make_pipeline(
    make_union(
        # words and word pairs
        TfidfVectorizer(ngram_range=(1, 2), sublinear_tf=True),
        # fragments of 2 to 5 characters, which catch typos and word endings
        TfidfVectorizer(analyzer="char_wb", ngram_range=(2, 5), sublinear_tf=True),
    ),
    LogisticRegression(C=10, max_iter=2000),
)
clf.fit(train["text"], train["category"])

The language model is scored on 770 test messages (10 per intent, fixed seed) to keep the lab short; the classifier is scored on the same 770 and on all 3,080. Six test messages also appear word for word in the training set, too few to move any result.

A CPU classifier beat the best prompt by 28 points and answered about 370 times faster

BANKING77, 77 intents, 770 test messages (10 per intent); every reply sorted as the right intent, a wrong intent or no intent name at all

2

Where each reply went

% of 770 messages; whisker: 95% interval on accuracy

a
Qwen2.5-0.5B, zero-shot21.0not an intent 14.9Qwen2.5-0.5B + 10 retrieved examples64.5not an intent 3.5TF-IDF classifier92.2right intentwrong intentnot an intent name

Time per message

ms, log scale; the model on the T4, the classifier on the CPU

b
0.111010077 intent names in the prompt29 msnearest labelled training messages51 msword and character n-grams, logistic regression0.14 msrows in the same order as panel a
Source: lesson notebook, Colab T4, Qwen2.5-0.5B-Instruct with greedy decoding. The classifier scores 91.4% on all 3,080 test messages. Wrong intent = 100 − right − not an intent; the interval 1.96·√(p(1−p)/770) and the ratio 50.8 ÷ 0.136 are derived.

Three things stand out.

  • Retrieved examples tripled the prompt's accuracy, from 21.0% to 64.5%, without touching a weight. Before anyone trains, this is the number a fine-tune has to beat, and most teams never measure it.
  • A plain classifier beat both, at 92.2%, trained in 41 seconds on a CPU and answering in a seventh of a millisecond, a few hundred times faster than the language model. For fixed labels with thousands of examples, that is the baseline. A fine-tuned language model might reach it; it would still be slower and dearer to run.
  • Format failures are their own problem. One zero-shot reply in seven was not an intent name at all. Counting those apart from wrong answers tells you whether the model misunderstood the message or ignored the instruction, which is exactly the kind of behaviour fine-tuning fixes.

This is one small model, chosen so the lab runs on a free GPU, and a larger model may well score higher with the same prompts. Whatever model you are considering, score it against the classifier on the same 770 messages before deciding.

Companies with labelling jobs at volume arrive at the same place: the model that serves traffic is small. The difference is that most of them did not have ten thousand labels to start with, so they used a large model to make them. DoorDash fine-tuned a teacher on human relevance labels (86% accurate on its three-way task), had it label six months of production queries, and trained a small model on those labels to serve ads in real time. Etsy and Pinterest do the same for search relevance, with a two-tower student and a lightweight student serving the traffic. The large model's job was to create the labels, not to answer every query. Airbnb took the other route to a small serving model: its production policy classifier is itself a fine-tuned language model with about two billion effective parameters, and its benchmark showed it matching frontier models in under 100 milliseconds.

When fine-tuning is the right tool

Neither experiment says fine-tuning is useless. They say it is the wrong tool for facts and an expensive one for fixed labels. It earns its place when all three of these hold.

  1. The failure is behaviour, and a check can score it. A JSON schema, a valid tool call, a label set, a rubric that two reviewers apply the same way. Without a check you cannot tell a gain from a loss.
  2. The strongest prompt has been measured and falls short. Prompting is a strong rival: Bertsch and colleagues found long-context prompting with many examples matching LoRA on most of the classification tasks they tested, and Medprompt beat a medically tuned model with prompting alone. The gap you train for is the one left after that effort, on the same held-out set.
  3. Something makes owning a smaller tuned model worth it. High volume, where a short prompt on a small model costs less than a long one on a large model (the formula below). Latency. Or a deployment constraint: data that may not leave your hardware, or a model that must run on a device. Apple's on-device foundation model is a public example of the last one: a roughly 3-billion-parameter model on the phone, specialised for each feature by small LoRA adapters that take tens of megabytes and are swapped in as needed. The model has to run on the phone, and one base model has to serve many features; small adapters on a shared base meet both constraints.

Fine-tuning can also help a model use retrieved text rather than replace it. RAFT trained a 7B model on questions paired with a relevant document and distractors, and it scored 73.30 on a biomedical question set against 58.8 for the same base model with retrieval alone. That is training a behaviour (read the document, ignore the distractors), not storing a fact.

The three conditions in real cases

The documented cases meet the same three conditions, and the ones that publish their numbers show each condition plainly: a check that scores the output, a baseline that was measured, and a constraint that made a smaller model worth owning.

3

Eight companies, the same three conditions

What scored the output, the baseline it had to beat, why owning a model paid, and what the company reported

Company and job1A check that scores it2The baseline it had to beat3Why owning a model paidReported result
AirbnbPolicy-content classifierMax F1 on 10,000 held-out examplesOpen-weight and proprietary frontier modelsScreening at volume: cost and latencyFrontier-level quality, under 100 ms, ~1% of the cost
Offline benchmark
IntercomIssue extractor before retrievalDownstream answer rateGPT-4.1: 63.3%Cost per transaction63.4% offline; live: cost −12.5%, answer rate −0.1 pt
Live A/B
VercelCode-repair stepError-free outputGemini 2.5 Flash: 89.6% at 559 chars/sRuns on every generation86.1% at 8,130 chars/s: 14.5× faster
Company benchmark
CursorCode completionUser accepts or rejectsIts previous completion modelThe signal arrives free, at volume21% fewer suggestions, 28% higher accept rate
Live rollout
ShopifySearch candidate generatorPurchases recall@10Qwen3-14B: 35.0 at 108 ms p95Shares a live request’s latency budget32.3 at 25.5 ms p95: 4× faster
Company benchmark
PinterestUser-interest inferenceEngagement with notificationsFrontier model, too dear for hundreds of millions of usersScale4B student served; email clicks +88% vs interest-based
Company-reported
Booking.comTravel text featuresQuality against the teacherLlama 3.1 70B teacherResponse speed1.1B student at teacher quality, 10–20× faster
Company-reported
AmazonProduct-attribute generationUser acceptance, completenessClaude Sonnet 4.5~98% lower cost by list priceLed offline; trailed in production: acceptance −1.9 pts
Live A/B
Sources: each company's engineering post or paper (linked). Booking.com's result is from an Amazon Science post on joint work. Amazon is the warning: a cheaper model that won offline and lost in production.

Read the columns, not just the results. Every case names the check it was scored by (column 1), and every one compared against a strong alternative, usually a frontier model or the team's previous model (column 2). Column 3 is never "it was more accurate": it is cost, speed or scale. Amazon's row is the reason the comparison has to continue into production. Its tuned model led Claude Sonnet 4.5 offline and trailed it in the live test.

Across all 76 cases the same shape holds: the trained model does one narrow job inside a larger product.

Most fine-tuned models do one narrow job inside a bigger product

76 documented fine-tuning programmes, by the job the trained model does and by sector; one dot per case

4
Production reportedPilot or rollout unclearResearch or model releaseRetiredCommerce, travelSoftware, supportFinance, legal, healthIndustry, telecomAllUnderstand a requestPinterest: User-journey inference for recommendations and notificationsLinkedIn: Natural-language job-search retrieval and rankingJD.com: Query rewriting with relevance alignmentInstacart: Tail-query semantic-role labelingWalmart: Mission-based generative shopping search5Intercom: Fin issue detection and extraction before retrieval1Abridge: LLM-based clinical speech recognition supporting clinical notesRogo: Financial query expansion and later specialized reasoningMendel AI: Natural language to symbolic clinical queries; patient cohort abstraction39Extract fieldsDoorDash: Generalized product-attribute extractionDoorDash: Food and restaurant metadata generationShopify: Global Catalogue product understandingAmazon: Progressive product-attribute generationWalmart: Catalog attribute extraction and quality validation5Ambience Healthcare: ICD-10 medical coding within a coding-aware clinical scribeEXL: Medical-claims tagging, summaries, Q&A and negotiation guidanceApoidea Group: Financial-table image-to-HTML extractionMethod Financial: Extract liability/payoff data from unstructured banking interactions4Grab: Street-image lane counts and traffic-sign localizationGrab: Multilingual document OCR and key-information extraction211Rank, score, classifyDoorDash: AutoEval whole-page search relevance evaluationDoorDash: Sponsored-search relevance teacher and compact scorerDoorDash: Item-aware store rerankingShopify: Shared generative search and recommendation candidatesPinterest: Search relevance modeling and experiment assessmentAirbnb: Pricing/payment transparency content classifierEtsy: Semantic search relevance labels and online filteringFlipkart: Product Analyser relevance labelingAlibaba / Taobao: TaoSR1 online product relevanceAlibaba / Alimama: LORE search-ad relevance program10LinkedIn: EON Hiring Assistant candidate-requirement assessment111Generate text or codeAmazon: COSMO shopping-intent knowledge generationEtsy: Product summaries optimized for downstream retrievalInstacart: Discovery-theme retrieval-keyword generationBooking.com: Trip features, smart filters and property descriptionsBooking.com: Conversational destination recommendations5Indeed: Invite to Apply match explanationsServiceNow: Now Assist text generation, summaries, intent and Q&AGitHub: Copilot inline code completionsDistyl: Natural-language-to-SQLGrammarly: CoEdIT instruction-following text revisionCursor: Tab next-action suggestionsNinjaTech AI: NinjaLLM research, writing, coding and advisory specialistsZoom: AI Companion meeting summariesCanva: Brush editable-design changesCresta: Knowledge Assist customer-specific RAG responsesNotion: Low-latency AI features and workflow submodelsUpwork: Uma freelancer proposal drafts12Harvey: Case-law research and cited legal answersAccordance: Expert tax analysisHippocratic AI: Patient conversations, escalation, scheduling and specialist verifiersKasisto / Backbase research: Grounded banking questions, citations and calibrated refusal (FinRAG-12B)Experian: Latte email response automationHeidi Health: Ambient clinical note generation6SK Telecom: Korean telco grounded Q&A and reference citationSK Telecom: Korean customer-service summaries and intent recognitionAT&T: Customer-care response and call-center analytics optimizationAT&T: Text-to-SQL for customer targeting and campaign analysisAT&T: OTel context-grounded telecom answersCisco / Splunk: Structured security-alert summariesInfosys: TOSCA/YAML service-template generation730Check or fix outputDecagon: Low-latency voice concierge reasoning and checkersVercel: v0 AutoFix streaming code repair2BMW Group: Incident-ticket quality and root-cause matching13Act with toolsShopify: Natural-language Shopify Flow automationsShopify: Sidekick GraphQL agent continual learning2Cosine: Genie software engineer agentSalesforce: xLAM function calling and action-model researchGenspark: Deep Research agent3Harvey: Long-horizon legal-agent task completion (Tenet research)Intuit: Accounting agents in QuickBooks Online and Intuit Enterprise Suite27Adapt to a domaineBay: e-Llama commerce-domain models1Fujitsu / Cohere: Takane Japanese enterprise language adaptationOrange: Wolof assistant capability for Senegal-oriented servicesRicoh: Japanese/English/Chinese business-language modelNVIDIA: ChipNeMo engineering Q&A, EDA scripts and bug summaries45All jobs28 cases18 cases15 cases15 cases
Sources: company engineering posts, papers and model cards; provider case studies where marked; Recohut analysis of 76 verified cases

The Business cases page charts how they trained, what they measured and what their savings figures cover, with a filterable list of every case and its source.

Does it pay?

Fine-tuning to save money on inference pays only when the saving per request, times the number of requests, exceeds what the fine-tune costs to build:

N (clong−cshort)  >  CtuneN \,\bigl(c_{\text{long}} - c_{\text{short}}\bigr) \;>\; C_{\text{tune}}
SymbolMeaning
NNRequests over the life of the fine-tuned model, before the base model is replaced
clongc_{\text{long}}Cost per request of the untuned model with the long prompt (instructions and examples)
cshortc_{\text{short}}Cost per request of the tuned model with a short prompt, serving included
CtuneC_{\text{tune}}One-off cost: data, training runs, evaluation and the engineer's time

A worked example, with numbers chosen for illustration. Suppose the examples in the long prompt add 1,500 input tokens per request, input costs $0.40 per million tokens, and the two models cost the same to serve otherwise. The saving per request is

clong−cshort=1,500×$0.40106=$0.0006.c_{\text{long}} - c_{\text{short}} = 1{,}500 \times \frac{\$0.40}{10^{6}} = \$0.0006 .

If building the fine-tune costs $2,000, most of it the evaluation work rather than the GPU time, the break-even is

N>$2,000$0.0006≈3.3 million requests.N > \frac{\$2{,}000}{\$0.0006} \approx 3.3 \text{ million requests.}

At 5,000 requests a day that is almost two years, which is longer than most base models stay current. Put your own numbers in before you decide; the shape of the answer is usually the same. Volume alone rarely justifies a fine-tune. A constraint usually does.

The companies' own numbers say the same. Per-call savings are large: Airbnb's classifier runs at about 1% of the cost of frontier models, and Amazon's tuned model at about 98% less by list price. But Amazon's came with 1.9 points lower acceptance in production, and Intercom's 12.5% saving per transaction came with an answer rate 0.1 points lower and 100 milliseconds more latency. Count the cost of a task that meets your standard, after fallbacks and review, not the cost of a call; the Business cases page works through it.

What to keep

QuestionAnswer from the lessonMeasured
A fact changesPut the current text in the prompt8 of 8 current with a lookup; 8 of 8 stale when trained in
Fixed labels, thousands of examplesTrain a classifier first92.2% (±1.9, derived), 41 s on a CPU
Behaviour a prompt might fixMeasure the strongest prompt64.5% (±3.4) with 10 retrieved examples, from 21.0% zero-shot

If you have a task like this one:

  • Name the failure before choosing the fix. A wrong or missing fact goes to retrieval; a wrong shape goes to the cheaper behaviour fixes, then to training.

  • Score the strongest prompt on your own held-out set. Retrieved examples took the same model from 21.0% to 64.5% with no training; that is the number a fine-tune has to beat.

  • Train a classifier before a language model when the labels are fixed. It cost 41 seconds and no GPU, and answered about 370 times faster (derived).

  • Keep changing facts out of the weights. A trained-in fact was stale on 8 of 8 questions, and still overrode the page on 2 of 8.

  • Check these before the first run, and the concept page explains each: a baseline (the untuned model with your strongest prompt, scored in the harness the tuned model will use); a held-out set you never train or tune on, with error bars smaller than the gain you hope for; data you may train on, with a known source for every example; and an owner and a rollback.

  • Next to try, not tested here: a larger base model with the same retrieved-example prompt, since this one is 0.5B.

  • Next to try, not tested here: fine-tuning the language model on the 10,003 BANKING77 messages and scoring it against the 92.2% classifier on the same 770.

  • Next to try, not tested here: an eval set larger than 8 questions for the policy experiment, so the 2 of 8 override rate has an interval.

How it was built

ItemSetting
Base modelQwen/Qwen2.5-0.5B-Instruct, 494,032,768 parameters, loaded in fp16 on the T4
Data, Experiment 140 hand-written returns questions, shuffled with seed 42: 32 train, 8 held out; one fixed week-1 answer ("7 calendar days"); a four-page handbook, of which only the returns page changes in week 2
Data, Experiment 2BANKING77 (PolyAI, pinned commit): 10,003 train, 3,080 test, 77 intents; 6 exact train/test overlaps
TestExperiment 1: the 8 held-out questions, each answer sorted by the number of days it states. Experiment 2: 770 test messages (10 per intent, random_state=0), scored by accuracy of the parsed intent name; the classifier also on all 3,080
Method, LoRARank 8, alpha 16, dropout 0.0, target modules q_proj and v_proj, 540,672 trainable parameters (0.1093%), adapter kept in float32
Method, retrievalExperiment 1: the most similar handbook page by TF-IDF cosine. Experiment 2: the 10 most similar training messages (word and word-pair TF-IDF), nearest last
Method, classifierWord (1 to 2) and character (2 to 5, char_wb) TF-IDF, sublinear term frequency, logistic regression with C=10, max_iter=2000, on the CPU
TrainingHand-written loop, 2 epochs over 32 examples = 64 steps, batch size 1, no accumulation, AdamW at a constant learning rate of 2e-4 (no schedule), loss on the answer tokens only (prompt masked with -100), seed 42
DecodingGreedy; 32 new tokens for the policy answers, 12 for intent names; batch size 32 (16 for the retrieved-example prompt)
HardwareColab Tesla T4; torch 2.14.1+cu130, transformers 4.51.3, peft 0.15.2, accelerate 1.6.0, scikit-learn 1.6.1

Time and cost. Training the adapter took 6.4 seconds for 64 steps (loss 1.259 at the first step, 0.002 by the end). The classifier trained in 41 seconds on a CPU. Scoring takes 28.9 ms per message zero-shot, 50.8 ms with 10 retrieved examples and 0.136 ms for the classifier, so the language-model runs take about 22 and 39 seconds over the 770 messages (derived). The notebook does not record peak GPU memory or the adapter's file size. Experiment 1's numbers come from the 8 held-out returns questions; every Experiment 2 number comes from the 770 BANKING77 messages unless it says 3,080.

Run it yourself

The notebook runs top to bottom on a free Colab T4; its compute is the 6.4-second training run, the 41-second classifier fit and about a minute of scoring (derived), plus the install and model download. Its sections follow this page: 1 is the setup in How it was built, Part 1 is Experiment 1, Part 2 is Experiment 2, and "Read the result" is What to keep. Try three changes and predict each result before you run it:

  1. Change the week-2 policy to 15 days without retraining. Which rows of the table change?
  2. Train the adapter for one epoch instead of two. Does the tuned model still override the retrieved page?
  3. Give the zero-shot prompt three examples per intent instead of retrieved ones. How much of the gap to the classifier closes?

The next lesson, Choose a base model that fits, works out which models a given GPU can train, before any data is prepared.

How is this page?

Last updated on