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

相关推荐
神奇小汤圆10 小时前
从 0 用 AgentTeams 搭一个多 Agent 模拟面试系统
人工智能
潘正翔11 小时前
DeepSeek Harness从0到1部署
人工智能·开发·codex·deepseek·harness·deepseekharness·cludecode
bulingg11 小时前
bert输入长度有限,如何处理超长文本?
人工智能·深度学习·bert
神奇小汤圆11 小时前
DeepSeek Harness 这波,搞得全世界都在安装 Node.js
人工智能
nanawinona11 小时前
2026年手工思路量化后,工具重点会怎样变化
人工智能·python
武子康11 小时前
DeepSeek Harness、Codex、Claude Code、LangGraph 应该怎么选:先判断你缺的是产品、底盘还是工作流
人工智能·llm·agent
美团技术团队11 小时前
美团搜索3.0:LLM 语义表征在排序模型的探索与应用
人工智能
爱学堂IT分享11 小时前
DeepSeek+SpringAI实战AI家庭医生应用-慕课网实战课程
人工智能
科技发布11 小时前
传播易整合商圈媒体,商场停车场灯箱广告高效落地
大数据·人工智能·媒体
今天AI了吗11 小时前
从聊天到委派:AI Agent 如何推进长期任务
数据库·人工智能·python·sql·rust