Editing
Finetuning Llms
(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;">Creating</span> == Designing a full fine-tuning pipeline: '''1. Dataset curation (most important step)''' <syntaxhighlight lang="text"> Source data collection (domain documents, logs, demonstrations) β Quality filtering (deduplication, length filtering, toxic content removal) β Formatting (convert to chat template, add system prompt) β Review sample (manually inspect 100+ examples) β Train/validation split (90/10 or 95/5) </syntaxhighlight> '''2. Training configuration decision tree''' * <1k examples and 1 GPU β QLoRA with early stopping * 1kβ100k examples and 2β8 GPUs β LoRA with gradient checkpointing * >100k examples and production budget β Full fine-tune with DDP/FSDP '''3. Iterative refinement loop''' <syntaxhighlight lang="text"> v1: SFT on demonstrations β evaluate β identify failure cases v2: Add failure case examples to dataset, retrain β evaluate β identify preference gaps v3: Collect human preference data β train reward model β PPO/DPO fine-tune </syntaxhighlight> '''4. Serving the fine-tuned model''' * Merge LoRA adapters into base model: <code>model.merge''and''unload()</code> * Export to GGUF format for llama.cpp (local/edge deployment) * Push to HuggingFace Hub or deploy with vLLM for API serving [[Category:Artificial Intelligence]] [[Category:Large Language Models]] [[Category:Machine Learning]] </div>
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