知识卡片
微调闭环从标签到独立验收
结构图:
flowchart LR
T[定义任务与标签边界] --> D[数据构造与去重切分]
D --> C[模型配置及有效训练目标]
C --> U[训练与可复现记录]
U --> V[保留集质量与回退检查]
V --> E[错误分析]
E --> D
E --> C
训练成功执行只完成计算阶段;独立验收才检验目标是否改善及代价是否可接受。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 微调
原书出处 · 1 处
- · 查看原书依据
Putting It All Together Now that we have set up all the requisite parameters, here is the full code for the fine-tuning process: # Ensure that the specified versions of these libraries are installed. !pip install transformers==4.35.0 accelerate==0.24.0 peft==0.6.0 bitsandbytes==0.41.0 trl==0.7.4 from datasets import load_dataset from transformers import TrainingArguments, BitsAndBytesConfig from transformers import LlamaForCausalLM, LlamaTokenizer from peft import PeftModel, LoraConfig from trl import SFTTrainer train_params
参考来源
- 位置:《Designing Large Language Model Applications》第06章《微调》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Designing Large Language Model Applications/_epub-src/OEBPS/ch06.html)
- 结论依据:摘录中关于微调闭环从标签到独立验收的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Putting It All Together Now that we have set up all the requisite parameters, here is the full code for the fine-tuning process: # Ensure that the specified versions of these libraries are installed. !pip install transformers==4.35.0 accelerate==0.24.0 peft==0.6.0 bitsandbytes==0.41.0 trl==0.7.4 from datasets import load_dataset from transformers import TrainingArguments, BitsAndBytesConfig from transformers import LlamaForCausalLM, LlamaTokenizer from peft import PeftModel, LoraConfig from trl import SFTTrainer train_params