LLAMA Factory 微调Qwen2.0-VL-2B视觉大模型

本文主要参考:https://developer.aliyun.com/article/1643200

LLAMA Factory安装和使用参考:https://blog.csdn.net/pangxing6491/article/details/153682310?spm=1001.2014.3001.5501

一、制作数据集

1、增加mllm_data_tiny文件夹,并且修改dataset_info.json

2、mllm_data_tiny中包含图片和一个mllm_data_tiny.json文件,文件夹的名称和json文件名保持一致;

3、mllm_data_tiny.json格式如下,messages字段包含问题和答案,images包含图片的路径;

python 复制代码
[
  {
    "messages": [
      {
        "content": "<image>图片中的诊断结果是怎样?",
        "role": "user"
      },
      {
        "content": "The image is a non-contrasted computed tomography (CT) scan of the brain, showing the cerebral structures without any medical devices present. The region of interest, located centrally and in the middle of the image, exhibits an area of altered density, which is indicative of a brain hemorrhage. This area is distinct from the surrounding brain tissue, suggesting a possible hematoma or bleeding within the brain parenchyma. The location and characteristics of this abnormality may suggest a relationship with the surrounding brain tissue, potentially causing a mass effect or contributing to increased intracranial pressure.",
        "role": "assistant"
      }
    ],
    "images": [
      "mllm_data_tiny/8031efe0-1b5c-11ef-8929-000066532cad.jpg"
    ]
  }
]

二、选择基础大模型和目标数据集进行训练;

具体参考:https://blog.csdn.net/pangxing6491/article/details/153682310?spm=1001.2014.3001.5501

相关推荐
硅谷秋水10 小时前
InstAgent:一种用于异构机器人协作的RSI智能体操作系统
人工智能·机器学习·语言模型·机器人
有Li11 小时前
医疗大模型从刷榜走向临床试验|促进基层至专科转诊衔接的大语言模型聊天机器人:一项随机对照试验文献速递
人工智能·语言模型·机器人
硅谷秋水1 天前
迈向物理层面的RSI:人形机器人“身体-控制”协同设计
人工智能·机器学习·语言模型·机器人
硅谷秋水1 天前
RoboKit:加速机器人学习中的并行可微分优化
人工智能·机器学习·语言模型·机器人
Dawson Zhu1 天前
【AI×半导体】09 虚拟量测(上):不测量,也能算出 CD 吗
人工智能·语言模型·架构·aigc·agi
硅谷秋水3 天前
LEASH:确保自主机器人系统的安全
人工智能·安全·机器学习·语言模型·机器人
Dawson Zhu3 天前
【AI×半导体】01 从三条指数曲线到晶圆厂:AI 到底从哪六个口子进入制造?
人工智能·语言模型·架构·aigc·agi
硅谷秋水3 天前
RoboACE:用于机器人自我提升的对抗性协同进化
人工智能·机器学习·语言模型·机器人
硅谷秋水4 天前
CRAFT:一种具备-觉察自适应能力的机器人-智能体驾驭
人工智能·机器学习·语言模型·机器人
Dawson Zhu4 天前
【AI×半导体】03 FDC(下):T²、SPE、贡献图,以及决定系统开不开的告警算术
人工智能·语言模型·架构·aigc·agi