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

相关推荐
武子康35 分钟前
150毫秒和2400毫秒:同一 Agent 任务的两种延迟
人工智能·后端·agent
暖心hebbie设计学习41 分钟前
GitHub 热榜周报(10.19)|5 个把 AI 装回本地的开源项目:多 agent 控制台、本地语音、节点式生成(含技术看点)
人工智能·github
猪脚踏浪1 小时前
open webui 在docker容器里跑,并且是在内网断绝互联网的环境下。生成ppt
人工智能
海边捡石子1 小时前
FreeSWITCH 入门:把电话系统接入语音客服机器人
人工智能·后端
桃西西呀1 小时前
我把网关限流配置成每秒 100 请求,大促一来照样被打挂,还把别人也拖垮了
人工智能·llm·ai编程
武子康1 小时前
Agent 偏好记忆怎样确认写入:范围、版本与撤销的一个最小例
人工智能·后端·agent
王中阳Go2 小时前
质保期第 90 天我翻了一遍日志目录:交付后真正会坏的 3 处
人工智能·后端·agent
桃西西呀2 小时前
我把整本接口文档塞进 system prompt,前 3 轮答得准,第 8 轮开始胡说,账单还翻了 4 倍
人工智能·llm·ai编程
天天代码码天天2 小时前
给孩子打印一本“数字连点画”!连出小鱼、火箭,画完还能涂色
人工智能
SL_staff3 小时前
规则联动:给工厂装上‘自动化神经反射弧’——JVS·物联网平台规则引擎实战教程
java·人工智能·物联网