[{"data":1,"prerenderedAt":468},["ShallowReactive",2],{"chrome":3,"glossary-entry-supervised-fine-tuning-sft":417},{"header":4,"footer":321},{"items":5,"cta":317,"notice":320},[6,174,276,280,284,295],{"label":7,"url":8,"target":8,"icon":8,"children":9},"Solutions",null,[10,47,128,140,169],{"label":11,"url":12,"target":8,"icon":13,"children":14},"Customer Support","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fcustomer-support\u002F","https:\u002F\u002Fhugoinc.com\u002Fwp-content\u002Fuploads\u002F2026\u002F01\u002FAsset-102.svg",[15,19,23,27,31,35,39,43],{"label":16,"url":17,"target":8,"icon":8,"children":18},"Call Center Support","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fcall-center-outsourcing\u002F",[],{"label":20,"url":21,"target":8,"icon":8,"children":22},"Technical Support","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Ftechnical-support-outsourcing\u002F",[],{"label":24,"url":25,"target":8,"icon":8,"children":26},"Live Chat Support","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Flive-chat-support-outsourcing\u002F",[],{"label":28,"url":29,"target":8,"icon":8,"children":30},"Email Support","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Femail-support-outsourcing\u002F",[],{"label":32,"url":33,"target":8,"icon":8,"children":34},"Customer Experience Outsourcing","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fcustomer-experience-outsourcing\u002F",[],{"label":36,"url":37,"target":8,"icon":8,"children":38},"Multilingual Customer Experience Teams","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fmultilingual-customer-experience-teams\u002F",[],{"label":40,"url":41,"target":8,"icon":8,"children":42},"Omnichannel CX Outsourcing","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fomnichannel-cx-outsourcing\u002F",[],{"label":44,"url":45,"target":8,"icon":8,"children":46},"Secure Customer Support Operations","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fsecure-customer-support-operations\u002F",[],{"label":48,"url":49,"target":8,"icon":50,"children":51},"Sales Outsourcing","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fsales-outsourcing\u002F","https:\u002F\u002Fhugoinc.com\u002Fwp-content\u002Fuploads\u002F2023\u002F11\u002FAsset-104.svg",[52,112,116,120,124],{"label":53,"url":54,"target":8,"icon":8,"children":55},"Vacation Ownership & Timeshare","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fvacation-ownership-timeshare\u002F",[56,60,64,68,72,76,80,84,88,92,96,100,104,108],{"label":57,"url":58,"target":8,"icon":8,"children":59},"Inbound Vacation Ownership Sales","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Finbound-vacation-ownership-sales\u002F",[],{"label":61,"url":62,"target":8,"icon":8,"children":63},"Timeshare Transfer Programs","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Ftimeshare-transfer-programs\u002F",[],{"label":65,"url":66,"target":8,"icon":8,"children":67},"Vacation Web & Form Lead Follow-Up","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fvacation-web-lead-follow-up\u002F",[],{"label":69,"url":70,"target":8,"icon":8,"children":71},"Outbound Vacation Package Sales","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Foutbound-vacation-package-sales\u002F",[],{"label":73,"url":74,"target":8,"icon":8,"children":75},"Owner Upgrade & Cross-Sell","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fowner-upgrade-cross-sell\u002F",[],{"label":77,"url":78,"target":8,"icon":8,"children":79},"Vacation Renewals & Rebooking","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fvacation-renewals-rebooking\u002F",[],{"label":81,"url":82,"target":8,"icon":8,"children":83},"Win-Back Campaigns","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fwin-back-campaigns\u002F",[],{"label":85,"url":86,"target":8,"icon":8,"children":87},"Owner Referral Programs (POR, NOR, BAF)","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fowner-referral-programs\u002F",[],{"label":89,"url":90,"target":8,"icon":8,"children":91},"Tour No Buy (TNB) Follow-Up","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Ftour-no-buy-follow-up\u002F",[],{"label":93,"url":94,"target":8,"icon":8,"children":95},"Event & Partnership Lead Campaigns","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fevent-lead-campaigns\u002F",[],{"label":97,"url":98,"target":8,"icon":8,"children":99},"Day Drive Tour Generation","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fday-drive-tour-generation\u002F",[],{"label":101,"url":102,"target":8,"icon":8,"children":103},"Lead Qualification & Screening","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Flead-qualification-screening\u002F",[],{"label":105,"url":106,"target":8,"icon":8,"children":107},"Tour Confirmation & Concierge","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Ftour-confirmation-concierge\u002F",[],{"label":109,"url":110,"target":8,"icon":8,"children":111},"Service-to-Sales","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fservice-to-sales\u002F",[],{"label":113,"url":114,"target":8,"icon":8,"children":115},"Outbound Sales & Owner Activation","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Foutbound-owner-activation\u002F",[],{"label":117,"url":118,"target":8,"icon":8,"children":119},"Appointment Setting & Lead Qualification","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fappointment-setting-qualification\u002F",[],{"label":121,"url":122,"target":8,"icon":8,"children":123},"Revenue-Generating Customer Care","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Frevenue-generating-customer-care\u002F",[],{"label":125,"url":126,"target":8,"icon":8,"children":127},"Sales Quality & Compliance","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fsales-quality-compliance\u002F",[],{"label":129,"url":130,"target":8,"icon":131,"children":132},"Trust & Safety","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Ftrust-safety\u002F","https:\u002F\u002Fhugoinc.com\u002Fwp-content\u002Fuploads\u002F2023\u002F11\u002FAsset-103.svg",[133,136],{"label":134,"url":130,"target":8,"icon":8,"children":135},"General Support",[],{"label":137,"url":138,"target":8,"icon":8,"children":139},"Community Management","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fcommunity-management\u002F",[],{"label":141,"url":142,"target":8,"icon":143,"children":144},"Omni Evals","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fomni-evals\u002F","https:\u002F\u002Fhugoinc.com\u002Fwp-content\u002Fuploads\u002F2023\u002F11\u002FAsset-105.svg",[145,149,153,157,161,165],{"label":146,"url":147,"target":8,"icon":8,"children":148},"Perception & Annotation","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fperception-annotation\u002F",[],{"label":150,"url":151,"target":8,"icon":8,"children":152},"Speech & Audio Diarization","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fspeech-audio-diarization\u002F",[],{"label":154,"url":155,"target":8,"icon":8,"children":156},"Multimodal Grounding","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fmultimodal-grounding\u002F",[],{"label":158,"url":159,"target":8,"icon":8,"children":160},"Agentic & Coding Evals","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fagentic-coding-evals\u002F",[],{"label":162,"url":163,"target":8,"icon":8,"children":164},"Red Teaming & Alignment","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fred-teaming-alignment\u002F",[],{"label":166,"url":167,"target":8,"icon":8,"children":168},"Embodied AI & Robotics","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fembodied-ai-robotics\u002F",[],{"label":170,"url":171,"target":8,"icon":172,"children":173},"Enterprise BPO","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fenterprise-outsourcing\u002F","https:\u002F\u002Fhugoinc.com\u002Fwp-content\u002Fuploads\u002F2023\u002F10\u002FAsset-37@2x.png",[],{"label":175,"url":8,"target":8,"icon":8,"children":176},"Industries",[177,228,245],{"label":178,"url":8,"target":8,"icon":8,"children":179},"CX Outsourcing",[180,184,188,192,196,200,204,208,212,216,220,224],{"label":181,"url":182,"target":8,"icon":8,"children":183},"Healthcare BPO","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fhealthcare-bpo-services\u002F",[],{"label":185,"url":186,"target":8,"icon":8,"children":187},"Healthcare CX Outsourcing Services","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fhealthcare-cx-outsourcing\u002F",[],{"label":189,"url":190,"target":8,"icon":8,"children":191},"CX Outsourcing for HealthTech Startups","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fhealthtech-startup-cx-outsourcing\u002F",[],{"label":193,"url":194,"target":8,"icon":8,"children":195},"Gaming","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fgaming-outsourcing\u002F",[],{"label":197,"url":198,"target":8,"icon":8,"children":199},"Crypto","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fcrypto-outsourcing\u002F",[],{"label":201,"url":202,"target":8,"icon":8,"children":203},"Ecommerce","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fecommerce-outsourcing\u002F",[],{"label":205,"url":206,"target":8,"icon":8,"children":207},"SaaS","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fsaas-outsourcing\u002F",[],{"label":209,"url":210,"target":8,"icon":8,"children":211},"Fintech","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Ffintech-outsourcing\u002F",[],{"label":213,"url":214,"target":8,"icon":8,"children":215},"CX Outsourcing for Fintech","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Ffintech-cx-outsourcing\u002F",[],{"label":217,"url":218,"target":8,"icon":8,"children":219},"Edtech","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fedtech-outsourcing\u002F",[],{"label":221,"url":222,"target":8,"icon":8,"children":223},"Online Subscriptions","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fonline-subscriptions-outsourcing\u002F",[],{"label":225,"url":226,"target":8,"icon":8,"children":227},"Rewards & GPT Platforms","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fgpt-platforms\u002F",[],{"label":48,"url":8,"target":8,"icon":8,"children":229},[230,233,237,241],{"label":53,"url":231,"target":8,"icon":8,"children":232},"https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fvacation-ownership-timeshare-sales-outsourcing\u002F",[],{"label":234,"url":235,"target":8,"icon":8,"children":236},"Cruise Lines","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fcruise-line-sales-outsourcing\u002F",[],{"label":238,"url":239,"target":8,"icon":8,"children":240},"Travel Wholesalers & Packagers","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Ftravel-wholesaler-sales-outsourcing\u002F",[],{"label":242,"url":243,"target":8,"icon":8,"children":244},"Car Rental & Mobility","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fcar-rental-sales-outsourcing\u002F",[],{"label":246,"url":8,"target":8,"icon":8,"children":247},"Artificial Intelligence",[248,252,256,260,264,268,272],{"label":249,"url":250,"target":8,"icon":8,"children":251},"Frontier & Reasoning Labs","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Ffrontier-reasoning-labs\u002F",[],{"label":253,"url":254,"target":8,"icon":8,"children":255},"Robotics & Embodied AI","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Frobotics-embodied-ai\u002F",[],{"label":257,"url":258,"target":8,"icon":8,"children":259},"GenAI Applications & Media Models","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fgenai-applications-media\u002F",[],{"label":261,"url":262,"target":8,"icon":8,"children":263},"Enterprise AI & B2B Software","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fenterprise-ai-software\u002F",[],{"label":265,"url":266,"target":8,"icon":8,"children":267},"Defense, Geospatial & Government","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fdefense-geospatial-government\u002F",[],{"label":269,"url":270,"target":8,"icon":8,"children":271},"Healthtech, Bio & Clinical AI","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Fhealthtech-bio-clinical-ai\u002F",[],{"label":273,"url":274,"target":8,"icon":8,"children":275},"Universities & Research Institutions","https:\u002F\u002Fhugoinc.com\u002Findustry\u002Funiversities-research-institutions\u002F",[],{"label":277,"url":278,"target":8,"icon":8,"children":279},"Our Agents","https:\u002F\u002Fhugoinc.com\u002Fhugo-agents\u002F",[],{"label":281,"url":282,"target":8,"icon":8,"children":283},"Pricing","https:\u002F\u002Fhugoinc.com\u002Fpricing\u002Fcustomer-support-outsourcing\u002F",[],{"label":285,"url":8,"target":8,"icon":8,"children":286},"Company",[287,291],{"label":288,"url":289,"target":8,"icon":8,"children":290},"About","https:\u002F\u002Fhugoinc.com\u002Fabout\u002F",[],{"label":292,"url":293,"target":8,"icon":8,"children":294},"Careers","https:\u002F\u002Fhugoinc.com\u002Fcareers\u002F",[],{"label":296,"url":8,"target":8,"icon":8,"children":297},"Resources",[298,301,305,309,313],{"label":296,"url":299,"target":8,"icon":8,"children":300},"https:\u002F\u002Fhugoinc.com\u002Fresources",[],{"label":302,"url":303,"target":8,"icon":8,"children":304},"Case Studies","https:\u002F\u002Fhugoinc.com\u002Fcase-studies\u002F",[],{"label":306,"url":307,"target":8,"icon":8,"children":308},"News","https:\u002F\u002Fhugoinc.com\u002Fnews\u002F",[],{"label":310,"url":311,"target":8,"icon":8,"children":312},"FAQs","https:\u002F\u002Fhugoinc.com\u002Ffaqs\u002F",[],{"label":314,"url":315,"target":8,"icon":8,"children":316},"Glossary","https:\u002F\u002Fhugoinc.com\u002Fglossary\u002F",[],{"label":318,"url":319,"target":8},"Get Started","https:\u002F\u002Fhugoinc.com\u002F#!","Hugo is hiring! Explore our positions and apply today.",{"items":322,"legals":389,"outsourcing":394,"newsletter":397,"social":398,"certifications":403,"legal":416},[323,356,365,374,380,383,386],{"label":7,"url":8,"target":8,"icon":8,"children":324},[325,337,343],{"label":48,"url":49,"target":8,"icon":8,"children":326},[327,329,331,333,335],{"label":53,"url":54,"target":8,"icon":8,"children":328},[],{"label":113,"url":114,"target":8,"icon":8,"children":330},[],{"label":117,"url":118,"target":8,"icon":8,"children":332},[],{"label":121,"url":122,"target":8,"icon":8,"children":334},[],{"label":125,"url":126,"target":8,"icon":8,"children":336},[],{"label":129,"url":130,"target":8,"icon":8,"children":338},[339,341],{"label":134,"url":130,"target":8,"icon":8,"children":340},[],{"label":137,"url":138,"target":8,"icon":8,"children":342},[],{"label":141,"url":142,"target":8,"icon":8,"children":344},[345,348,352],{"label":134,"url":346,"target":8,"icon":8,"children":347},"https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fdata-ai\u002F",[],{"label":349,"url":350,"target":8,"icon":8,"children":351},"AI & ML Model Training","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fgenerative-ai\u002F",[],{"label":353,"url":354,"target":8,"icon":8,"children":355},"Data Processing","https:\u002F\u002Fhugoinc.com\u002Fservice\u002Fdata-processing\u002F",[],{"label":285,"url":8,"target":8,"icon":8,"children":357},[358,360,362],{"label":288,"url":289,"target":8,"icon":8,"children":359},[],{"label":292,"url":293,"target":8,"icon":8,"children":361},[],{"label":363,"url":319,"target":8,"icon":8,"children":364},"Contact",[],{"label":296,"url":8,"target":8,"icon":8,"children":366},[367,370,372],{"label":296,"url":368,"target":8,"icon":8,"children":369},"https:\u002F\u002Fhugoinc.com\u002Fresources\u002F",[],{"label":310,"url":311,"target":8,"icon":8,"children":371},[],{"label":314,"url":315,"target":8,"icon":8,"children":373},[],{"label":375,"url":8,"target":8,"icon":8,"children":376},"Headquarters",[377],{"label":378,"url":8,"target":8,"icon":8,"children":379},"401 N Michigan Ave Chicago, IL 60611",[],{"label":381,"url":8,"target":8,"icon":8,"children":382},"Call Center Outsourcing",[],{"label":384,"url":8,"target":8,"icon":8,"children":385},"Live Chat Support Outsourcing",[],{"label":387,"url":8,"target":8,"icon":8,"children":388},"Email Support Outsourcing",[],[390],{"label":391,"url":392,"target":8,"icon":8,"children":393},"Privacy Policy","https:\u002F\u002Fhugoinc.com\u002Finfo\u002Fprivacy-policy\u002F",[],{"title":395,"cta":396},"Outsourcing + built to make you better.",{"label":318,"url":319,"target":8},"Sign up to our newsletter and stay hip.",{"x":399,"instagram":8,"facebook":400,"linkedin":401,"youtube":402},"https:\u002F\u002Ftwitter.com\u002Fthehugohq","https:\u002F\u002Fwww.facebook.com\u002FtheHugohq","https:\u002F\u002Fwww.linkedin.com\u002Fcompany\u002Fhugo-africa\u002F","https:\u002F\u002Fwww.youtube.com\u002F@thehugohq",[404,407,410,413],{"src":405,"alt":406},"https:\u002F\u002Fhugoinc.com\u002Fwp-content\u002Fuploads\u002F2023\u002F10\u002Fiso.svg","Information Security Management System Certification (ISO\u002FIEC 27001)",{"src":408,"alt":409},"https:\u002F\u002Fhugoinc.com\u002Fwp-content\u002Fuploads\u002F2023\u002F10\u002Fmbe.svg","Minority Business Enterprise (MBE) Certification",{"src":411,"alt":412},"https:\u002F\u002Fhugoinc.com\u002Fwp-content\u002Fuploads\u002F2025\u002F01\u002FHIPAA_1@0.5x.png","Health Insurance Portability and Accountability Act (HIPAA) Certification",{"src":414,"alt":415},"https:\u002F\u002Fhugoinc.com\u002Fwp-content\u002Fuploads\u002F2025\u002F01\u002FSOC_1@0.5x.png","AICPA System and Organization Controls (SOC) Certification for Service Organizations","© %YEAR% Copyright | All Rights Reserved",{"post":418,"author":8,"related":429,"more":448,"judgmentCall":467},{"title":419,"date":420,"updated":420,"seoTitle":421,"description":422,"focusKeyphrase":423,"slug":424,"author":425,"body":426,"schema":427,"minutes":428},"Supervised Fine-Tuning (SFT)","2026-11-10","Supervised Fine-Tuning (SFT): How It Works, Limits","Supervised fine-tuning (SFT) trains a pretrained LLM on prompt and response pairs. How it works, where it fits before RLHF and DPO, and its limits.","supervised fine-tuning","supervised-fine-tuning-sft","hugo","\u003Cp>Supervised fine-tuning (SFT) is a post-training method that continues training a pretrained language model on paired inputs and target outputs, such as prompts and reference responses, so the model learns to produce outputs like the targets. Hugging Face's TRL documentation calls it the simplest and most commonly used method to adapt a language model to a target dataset.\u003C\u002Fp>\n\n\u003Cp>In published chat-model pipelines such as InstructGPT and Llama 2-Chat, SFT comes first. For InstructGPT, labelers wrote demonstrations of the desired behavior, GPT-3 was fine-tuned on them with supervised learning, and only then was the model trained further with a reward model and reinforcement learning. Meta built an initial Llama 2-Chat with SFT and refined it with RLHF.\u003C\u002Fp>\n\n\u003Ch2>Supervised Fine-Tuning (SFT) at a Glance\u003C\u002Fh2>\n\n\u003Ctable>\u003Ctbody>\u003Ctr>\u003Cth scope=\"row\">Also called\u003C\u002Fth>\u003Ctd>SFT; instruction tuning (when the pairs are instructions and responses); fine-tuning on demonstrations\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Cth scope=\"row\">What it does\u003C\u002Fth>\u003Ctd>Trains the model to predict each token of a target response given the input, by minimizing token-level cross-entropy (negative log-likelihood)\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Cth scope=\"row\">Where it's used in model development\u003C\u002Fth>\u003Ctd>After pretraining and before preference tuning or reinforcement learning; also for chat formatting, tool calling and vision-language models\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Cth scope=\"row\">The human role\u003C\u002Fth>\u003Ctd>Writing and reviewing demonstrations, and evaluating the tuned model\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Cth scope=\"row\">Limits\u003C\u002Fth>\u003Ctd>Can cause forgetting of earlier knowledge, can weaken safety alignment, and tends to memorize rather than generalize out of distribution\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\n\n\u003Ch2>How Supervised Fine-Tuning Works\u003C\u002Fh2>\n\n\u003Cp>Supervised fine-tuning works by showing a pretrained model a prompt with its target response and updating the weights so that response becomes more likely, one token at a time.\u003C\u002Fp>\n\n\u003Ch3>The data\u003C\u002Fh3>\n\n\u003Cp>Each example is plain text or a prompt and completion pair. Conversational datasets store messages with user and assistant roles. For conversational data, the trainer applies a chat template that defines role markers, special tokens and turn boundaries. The EOS token must align with that template so the model's responses terminate correctly.\u003C\u002Fp>\n\n\u003Ch3>The loss\u003C\u002Fh3>\n\n\u003Cp>SFT uses token-level cross-entropy: the model predicts each target token from the tokens before it, and padding tokens are masked out. In TRL, prompt-completion datasets compute loss on the completion only by default, and an assistant-only setting ignores user and system messages. TRL logs the loss and mean token accuracy, the share of non-masked tokens where the model's top prediction matches the target.\u003C\u002Fp>\n\n\u003Ch3>Full or parameter-efficient\u003C\u002Fh3>\n\n\u003Cp>Full fine-tuning retrains all model parameters. LoRA freezes the pretrained weights and injects trainable rank decomposition matrices into each Transformer layer. Compared with GPT-3 175B fine-tuned with Adam, LoRA can reduce trainable parameters by 10,000 times and the GPU memory requirement by 3 times.\u003C\u002Fp>\n\n\u003Ch2>Where SFT Is Used in Model Development\u003C\u002Fh2>\n\n\u003Cp>SFT is used wherever a team has examples of the exact output it wants, from instruction following to preparing a model for reinforcement learning.\u003C\u002Fp>\n\n\u003Cul>\u003Cli>\u003Cstrong>Instruction following.\u003C\u002Fstrong> The FLAN paper instruction-tuned a 137B-parameter model on over 60 NLP tasks phrased as natural language instructions. It surpassed zero-shot 175B GPT-3 on 20 of 25 evaluated tasks.\u003C\u002Fli>\u003Cli>\u003Cstrong>A starting point for RL.\u003C\u002Fstrong> Chu et al. found that SFT stabilizes the model's output format, which lets subsequent RL achieve its gains.\u003C\u002Fli>\u003Cli>\u003Cstrong>Tools and images.\u003C\u002Fstrong> TRL's SFT trainer accepts tool-calling conversations, with available tools given as JSON schemas, and image datasets for vision-language models.\u003C\u002Fli>\u003C\u002Ful>\n\n\u003Cp>Regulation also tracks fine-tuning. The EU AI Office states that downstream entities that fine-tune an existing general-purpose AI model may become providers of new models, and that Article 53 obligations should then be limited to the modification or fine-tuning. An indicative criterion for when a downstream modifier becomes the provider is training compute for the modification greater than a third of the original model's training compute.\u003C\u002Fp>\n\n\u003Ch2>SFT Limits and the Human Role\u003C\u002Fh2>\n\n\u003Cp>SFT's limits come from the quality of its demonstrations and from what imitation alone cannot teach.\u003C\u002Fp>\n\n\u003Ch3>Demonstration quality\u003C\u002Fh3>\n\n\u003Cp>For InstructGPT, OpenAI hired 40 contractors based on their performance on a screening test. Model-generated data is one alternative: Self-Instruct generates instructions, inputs and outputs from a model, filters invalid or similar ones, and uses the rest to fine-tune the original model. Its authors note that human-written instruction data is often limited in quantity, diversity and creativity.\u003C\u002Fp>\n\n\u003Ch3>Forgetting\u003C\u002Fh3>\n\n\u003Cp>An empirical study found that catastrophic forgetting is generally observed in LLMs from 1b to 7b parameters during continual instruction tuning. Its findings indicate that general instruction tuning can help alleviate forgetting during later fine-tuning.\u003C\u002Fp>\n\n\u003Ch3>Safety drift\u003C\u002Fh3>\n\n\u003Cp>Qi et al. found that safety alignment can be compromised by fine-tuning on only a few adversarially designed examples, and that benign, commonly used datasets also degraded it, to a lesser extent. Initial alignment is not necessarily maintained after custom fine-tuning, so safety evaluation belongs after each run.\u003C\u002Fp>\n\n\u003Ch3>Generalization\u003C\u002Fh3>\n\n\u003Cp>On an arithmetic reasoning card game and a real-world navigation environment, Chu et al. found that SFT tends to memorize training data and struggles out of distribution, while RL with an outcome-based reward generalized.\u003C\u002Fp>\n\n\u003Ch2>Supervised Fine-Tuning vs. RLHF and DPO\u003C\u002Fh2>\n\n\u003Cp>Supervised fine-tuning learns from target responses, while RLHF and DPO learn from human judgments of which response is better.\u003C\u002Fp>\n\n\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth scope=\"col\">Factor\u003C\u002Fth>\u003Cth scope=\"col\">SFT\u003C\u002Fth>\u003Cth scope=\"col\">RLHF\u003C\u002Fth>\u003Cth scope=\"col\">DPO\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Cth scope=\"row\">Human data\u003C\u002Fth>\u003Ctd>Written demonstrations\u003C\u002Ftd>\u003Ctd>Rankings of model outputs\u003C\u002Ftd>\u003Ctd>Labels of relative quality between outputs\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Cth scope=\"row\">Training objective\u003C\u002Fth>\u003Ctd>Cross-entropy on target tokens\u003C\u002Ftd>\u003Ctd>RL to maximize a learned reward without drifting too far from the original model\u003C\u002Ftd>\u003Ctd>A simple classification loss on preferences\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Cth scope=\"row\">Separate reward model\u003C\u002Fth>\u003Ctd>No\u003C\u002Ftd>\u003Ctd>Yes\u003C\u002Ftd>\u003Ctd>No\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Cth scope=\"row\">Position in the pipeline\u003C\u002Fth>\u003Ctd>First post-training step in InstructGPT and Llama 2\u003C\u002Ftd>\u003Ctd>After SFT in both\u003C\u002Ftd>\u003Ctd>Replaces RLHF's reward model and RL step\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\n\n\u003Ch2>Supervised Fine-Tuning (SFT) at Hugo\u003C\u002Fh2>\n\n\u003Cp>Hugo builds dedicated teams whose specialists write and review the instruction-response pairs that set a model's behavior, formatting and domain accuracy, with domain experts for medical, legal, financial and technical responses. Each team works from a rubric written with the client and a calibration set every rater passes before production, with agreement tracked per criterion. The same team can rank outputs and audit safety for later stages through Hugo's \u003Ca href=\"\u002Fservices\u002Fpreference-alignment-post-training\u002F\">preference alignment and post-training teams\u003C\u002Fa>. For dataset design, see \u003Ca href=\"\u002Fblog\u002Fwhat-is-sft-data-supervised-fine-tuning-datasets\u002F\">What Is SFT Data?\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Ch2>Related Terms\u003C\u002Fh2>\n\n\u003Cul>\u003Cli>\u003Ca href=\"\u002Fglossary-post\u002Fllm-post-training\u002F\">LLM Post-Training\u003C\u002Fa>\u003C\u002Fli>\u003Cli>\u003Ca href=\"\u002Fglossary-post\u002Fdirect-preference-optimization-dpo\u002F\">Direct Preference Optimization (DPO)\u003C\u002Fa>\u003C\u002Fli>\u003Cli>\u003Ca href=\"\u002Fglossary-post\u002Flarge-language-model-llm\u002F\">Large Language Model (LLM)\u003C\u002Fa>\u003C\u002Fli>\u003Cli>\u003Ca href=\"\u002Fglossary-post\u002Fdata-annotation\u002F\">Data Annotation\u003C\u002Fa>\u003C\u002Fli>\u003Cli>\u003Ca href=\"\u002Fglossary-post\u002Fsynthetic-data\u002F\">Synthetic Data\u003C\u002Fa>\u003C\u002Fli>\u003Cli>\u003Ca href=\"\u002Fglossary-post\u002Finter-annotator-agreement-iaa\u002F\">Inter-Annotator Agreement (IAA)\u003C\u002Fa>\u003C\u002Fli>\u003Cli>\u003Ca href=\"\u002Fglossary-post\u002Fai-model-training\u002F\">AI Model Training\u003C\u002Fa>\u003C\u002Fli>\u003Cli>\u003Ca href=\"\u002Fglossary-post\u002Freward-hacking\u002F\">Reward Hacking\u003C\u002Fa>\u003C\u002Fli>\u003C\u002Ful>\n\n\u003Ch2>Supervised Fine-Tuning (SFT) FAQs\u003C\u002Fh2>\n\n\u003Ch3>What is supervised fine-tuning (SFT) in LLMs?\u003C\u002Fh3>\n\n\u003Cp>Supervised fine-tuning (SFT) is the post-training step in which a pretrained LLM is trained on prompt and response pairs so it learns to produce responses like the targets. The model minimizes the negative log-likelihood of each target token given the input. Hugging Face's TRL documentation calls SFT the simplest and most commonly used method to adapt a language model to a target dataset. In InstructGPT, labelers wrote demonstrations, and GPT-3 was fine-tuned on them before any reinforcement learning. Write the target behavior into a guideline before collecting data, because the model imitates whatever the demonstrations show.\u003C\u002Fp>\n\n\u003Ch3>Is SFT the same as instruction tuning?\u003C\u002Fh3>\n\n\u003Cp>Instruction tuning is a type of supervised fine-tuning in which the training pairs are instructions and responses. The FLAN paper defines it as finetuning language models on a collection of tasks described via instructions; its 137B-parameter model, tuned on over 60 NLP tasks, surpassed zero-shot 175B GPT-3 on 20 of 25 evaluated tasks. SFT is the broader term: the same supervised loss can also teach a chat format, tool calls or answers about images. When a paper or provider says SFT, ask what the pairs contain.\u003C\u002Fp>\n\n\u003Ch3>How much data do you need for supervised fine-tuning?\u003C\u002Fh3>\n\n\u003Cp>Supervised fine-tuning can work with far less data than pretraining, and published results point to curation over volume. The LIMA study fine-tuned a 65B-parameter LLaMa model on only 1,000 carefully curated prompts and responses, with no reinforcement learning. In a controlled human study, its responses were equivalent or strictly preferred to GPT-4 in 43% of cases, and the authors say the results strongly suggest that almost all knowledge is learned during pretraining. LIMA also learned specific response formats from only a handful of training examples. Start with a small reviewed set, evaluate, and scale only the categories that fall short.\u003C\u002Fp>\n\n\u003Ch3>What is the difference between SFT and RLHF?\u003C\u002Fh3>\n\n\u003Cp>SFT trains a model to imitate written target responses, while RLHF trains it to maximize a reward model learned from human rankings of its outputs. In InstructGPT, demonstrations and SFT came first, then comparison data and a reward model, then PPO against that reward. The DPO paper describes RLHF as complex and often unstable, and DPO replaces the reward model and RL loop with a simple classification loss on preferences. SFT shows the model good answers; preference methods show which of two answers is better. Plan both datasets so they follow the same guideline.\u003C\u002Fp>\n\n\u003Ch3>Can synthetic data replace human-written SFT data?\u003C\u002Fh3>\n\n\u003Cp>Synthetic data can supply many SFT examples, but in the Self-Instruct study it still trailed a model trained with human annotations on expert-written instructions. Self-Instruct generated instructions, inputs and outputs from GPT3, filtered invalid or similar ones, and fine-tuned the original model, reporting a 33% absolute improvement over the original model on Super-NaturalInstructions, on par with InstructGPT-001. In human evaluation on expert-written instructions for novel tasks, it left only a 5% absolute gap behind InstructGPT-001, which was trained with private user data and human annotations. For clinical, legal, financial or code data, have qualified reviewers check generated responses before training.\u003C\u002Fp>\n\n\u003Ch3>What are the risks of supervised fine-tuning?\u003C\u002Fh3>\n\n\u003Cp>The main risks of supervised fine-tuning are forgetting existing capabilities, weakening safety behavior and fitting the training data too narrowly. One empirical study found that catastrophic forgetting is generally observed in LLMs from 1b to 7b parameters during continual instruction tuning. Qi et al. jailbroke GPT-3.5 Turbo's safety guardrails by fine-tuning on only 10 adversarially designed examples, and found that benign datasets can also degrade safety alignment, to a lesser extent. Chu et al. report that SFT tends to memorize training data and struggles out of distribution. Run capability and safety evaluations after every fine-tuning run.\u003C\u002Fp>\n\n\u003Ch3>How much does supervised fine-tuning cost?\u003C\u002Fh3>\n\n\u003Cp>Supervised fine-tuning costs come from two places: the compute to train the model and the people who write and review the demonstrations. Meta's Llama 2 paper notes that heavily fine-tuning LLMs to align with human preferences can require significant costs in compute and human annotation. Parameter-efficient methods reduce the compute side: compared with GPT-3 175B fine-tuned with Adam, LoRA can reduce trainable parameters by 10,000 times and the GPU memory requirement by 3 times. Ask data providers to price per reviewed example and state how much data gets a second review.\u003C\u002Fp>\n\n\u003Ch3>When should you outsource SFT data creation?\u003C\u002Fh3>\n\n\u003Cp>Outsourcing SFT data creation fits when demonstrations need more volume or domain expertise than an internal team can supply, while the lab keeps ownership of the target behavior. Published recipes set a high bar for writers: for InstructGPT, OpenAI hired 40 contractors selected on a screening test, and LIMA's results rest on carefully curated examples. Ask a provider how writers are screened, who reviews each response, how disagreements are resolved against the written guideline, and whether the same people stay on the program as guidelines change.\u003C\u002Fp>\n\n\u003Ch2>Sources\u003C\u002Fh2>\n\n\u003Col>\u003Cli>European Commission, AI Office. \u003Ca href=\"https:\u002F\u002Fdigital-strategy.ec.europa.eu\u002Fen\u002Ffaqs\u002Fgeneral-purpose-ai-models-ai-act-questions-answers\">General-Purpose AI Models in the AI Act, Questions &amp; Answers\u003C\u002Fa>. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Ouyang, L., Wu, J., Jiang, X., et al. (OpenAI). \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fpdf\u002F2203.02155\">Training language models to follow instructions with human feedback\u003C\u002Fa>. Updated March 4, 2022. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Touvron, H., Martin, L., Stone, K., et al. (Meta). \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fhtml\u002F2307.09288v2\">Llama 2: Open Foundation and Fine-Tuned Chat Models\u003C\u002Fa>. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Hugging Face. \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Ftrl\u002Fsft_trainer\">SFT Trainer\u003C\u002Fa>. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Zhou, C., Liu, P., Xu, P., et al. \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2305.11206\">LIMA: Less Is More for Alignment\u003C\u002Fa>. Updated May 18, 2023. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Wei, J., Bosma, M., Zhao, V. Y., et al. \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2109.01652\">Finetuned Language Models Are Zero-Shot Learners\u003C\u002Fa>. Updated February 8, 2022. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Hu, E. J., Shen, Y., Wallis, P., et al. \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2106.09685\">LoRA: Low-Rank Adaptation of Large Language Models\u003C\u002Fa>. Updated October 16, 2021. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Chu, T., Zhai, Y., Yang, J., et al. \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fpapers\u002F2501.17161\">SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-training\u003C\u002Fa>. Updated January 28, 2025. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Wang, Y., Kordi, Y., Mishra, S., et al. \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2212.10560\">Self-Instruct: Aligning Language Models with Self-Generated Instructions\u003C\u002Fa>. Updated May 25, 2023. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Luo, Y., Yang, Z., Meng, F., et al. \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2308.08747\">An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning\u003C\u002Fa>. Updated January 5, 2025. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Qi, X., Zeng, Y., Xie, T., et al. \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2310.03693\">Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!\u003C\u002Fa>. Updated October 5, 2023. Accessed November 10, 2026.\u003C\u002Fli>\u003Cli>Rafailov, R., Sharma, A., Mitchell, E., et al. \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2305.18290\">Direct Preference Optimization: Your Language Model is Secretly a Reward Model\u003C\u002Fa>. Updated July 29, 2024. Accessed November 10, 2026.\u003C\u002Fli>\u003C\u002Fol>",[],9,[430,436,442],{"title":431,"date":420,"updated":420,"seoTitle":432,"description":433,"focusKeyphrase":434,"slug":435,"author":425},"Agent Trajectory","Agent Trajectory: Definition, Grading and Uses","An agent trajectory is the full record of an AI agent's run: reasoning, tool calls and results. How it is graded, used in training and where it falls short.","agent trajectory","agent-trajectory",{"title":437,"date":420,"updated":420,"seoTitle":438,"description":439,"focusKeyphrase":440,"slug":441,"author":425},"AI Agent Evaluation","AI Agent Evaluation: Methods, Metrics and Pitfalls","How AI agent evaluation works: sandboxed tasks, outcome grading, transcript review, pass@k and pass^k, cost tracking, and how agents cheat on benchmarks.","ai agent evaluation","ai-agent-evaluation",{"title":443,"date":420,"updated":420,"seoTitle":444,"description":445,"focusKeyphrase":446,"slug":447,"author":425},"Benchmark Contamination","Benchmark Contamination: Causes, Detection, Fixes","Benchmark contamination is when test data leaks into LLM training and inflates scores. How it happens, how it is detected and how teams prevent it.","benchmark contamination","benchmark-contamination",[449,455,461],{"title":450,"date":420,"updated":420,"seoTitle":451,"description":452,"focusKeyphrase":453,"slug":454,"author":425},"Chain-of-Thought (CoT)","Chain-of-Thought (CoT): How It Works and Its Limits","Chain-of-thought (CoT) explained: few-shot and zero-shot prompting, process supervision, reasoning models, faithfulness limits and CoT monitoring.","chain-of-thought","chain-of-thought-cot",{"title":456,"date":420,"updated":420,"seoTitle":457,"description":458,"focusKeyphrase":459,"slug":460,"author":425},"Direct Preference Optimization (DPO)","Direct Preference Optimization (DPO): How It Works","Direct Preference Optimization (DPO) explained: how the loss and beta work, what data it needs, how it compares with PPO-based RLHF, and its limits.","direct preference optimization","direct-preference-optimization-dpo",{"title":462,"date":420,"updated":420,"seoTitle":463,"description":464,"focusKeyphrase":465,"slug":466,"author":425},"Group Relative Policy Optimization (GRPO)","Group Relative Policy Optimization: How GRPO Works","Group Relative Policy Optimization (GRPO) explained: how group-relative advantages work, how GRPO differs from PPO and DPO, and its known limits.","group relative policy optimization","group-relative-policy-optimization-grpo",false,1795189927692]