Advanced Technologies: Beyond Prompting - Fine-tuning

Whereas RAG gives you one way to give additional information to a large language model;

Fine-tuning is another way to give it more information.

  • In particular, if you have a bigger context that can fit into the input length, or the input context window length of the LM.
  • Get an LM to absorb this information
  • Getting the LM ot output text in a certain given style

Pretraining and Fine-tuning

  • Pre-training: Learns from a lot of data
  • Fine-tuning: cause the LM to do a little bit more learning to change its outputs to be
    • a set of sentences or a set of text
    • Create an additional data set
    • Fine-tuning to this relatively modest-sized data set

Why fine-tune?

  • To carry out a task that isn't easy to define in a prompt.
    • A summary of this specific style
    • Mimicking a writing or speaking style
  • To help LLM gain specific knowledge
    • gain a domain of knowledge: medical、legal、financial
  • To get a smaller model to perform a task.
    • larger model: 100B +parameters
    • small model: 1B parameters, Lower cost/latency to deploy
    • can run on mobile/laptop(edge devices)

  • Use it for tasks that are hard to specify in a prompt.
  • gain a body of knowledge
  • Get a smaller and cheaper-to-run LM

RAG is just a modification of your prompt

fine tuning

pre-training

相关推荐
前端之虎陈随易4 分钟前
编程语言级别的Skill市场,AI Agent 的未来形态
前端·vue.js·人工智能·typescript·node.js
QiLinkOS14 分钟前
第三视觉理解徐玉生与他的商业活动(30)
大数据·c++·人工智能·算法·开源协议
武汉唯众智创26 分钟前
当汉字成为心理CT:AI汉字联想投射分析的技术实现与心理评估价值
人工智能·ai心理健康·ai心理评估·本土化心理测评·校园心理健康解决方案·ai心理监测·多模态情绪模型
Longvox36 分钟前
Agent为什么会死循环?
人工智能·ai编程
陈天伟教授1 小时前
FreeCAD 启动后小窗口闪现即退的解决思路
人工智能·机器人·工业设计
酒旅Agent开发实战1 小时前
AI 旅行规划助手如何接入真实酒旅数据:从自然语言到酒店预订的全流程 MCP 实战
人工智能·ai·旅游·skill·酒店api·机票api
workflower1 小时前
设备单元级(L1)实施路径
人工智能·线性代数·矩阵·机器人·开源
Dragon Wu1 小时前
ComfyUI Desktop 实例进入后一直loading的问题解决
人工智能·ai
AI行业学习1 小时前
Notepad++ 官方下载 + 完整安装 + 全套优化配置(2026最新)
开发语言·人工智能·python·前端框架·html·notepad++
“码”力全开2 小时前
AI视频分析飞书告警常见问题和排查清单
人工智能·音视频·飞书