Editing
Fine-tuning Large Language Models
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Remembering</span> == * '''Pre-training''' β The initial phase where a model is trained on massive, general-purpose datasets to develop broad language capabilities. This is done once and is extremely expensive. * '''Fine-tuning''' β Continuing training of a pre-trained model on a smaller dataset to specialize behavior. The model's weights are adjusted, typically starting from the pre-trained state. * '''Supervised Fine-Tuning (SFT)''' β Fine-tuning on labeled input-output pairs, teaching the model to follow instructions or produce specific response formats. * '''Instruction tuning''' β A form of SFT where the model is trained on instruction-following examples to make it more helpful and controllable. * '''RLHF (Reinforcement Learning from Human Feedback)''' β A multi-stage process: SFT, then reward model training, then RL optimization β used to align model outputs with human preferences. * '''LoRA (Low-Rank Adaptation)''' β A parameter-efficient fine-tuning technique that adds small trainable low-rank matrices to frozen base model weights, drastically reducing compute and memory requirements. * '''QLoRA''' β LoRA applied to a quantized base model (typically 4-bit), enabling fine-tuning of large models on consumer GPUs. * '''PEFT (Parameter-Efficient Fine-Tuning)''' β An umbrella term for methods like LoRA, Prefix Tuning, and Adapter layers that update only a small fraction of model parameters. * '''Catastrophic forgetting''' β The tendency of a model to lose previously learned capabilities when trained extensively on new data. * '''Learning rate''' β Typically much lower during fine-tuning than pre-training (e.g., 1e-5 to 2e-4) to avoid destroying pre-trained representations. * '''Chat template''' β A structured format for instruction-tuned models defining how system prompts, user turns, and assistant turns are delimited. * '''Prompt template''' β The format used to structure training examples, which must match the format used at inference time. * '''Validation loss''' β The key metric monitored during fine-tuning to detect overfitting and determine when to stop. </div> <div style="background-color: #006400; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information