当前位置: 首页 > news >正文

lmms-eval--微调实战笔记

lmms-eval--大模型调用平台,方便新手上手大模型微调
lmms-eval的更多用法,没有mathversehttps://github.com/EleutherAI/lm-evaluation-harness.git

单卡运行,模型gpt-j-6B,数据集hellaswag

git clone --depth 1 https://github.com/EleutherAI/lm-evaluation-harness
cd lm-evaluation-harness
pip install -e . -i https://pypi.tuna.tsinghua.edu.cn/simple#国内需要转镜像
export HF_ENDPOINT=https://hf-mirror.com#单卡运行,模型deepseek-math-7b,数据集MathVerse 
lm_eval --model hf --model_args pretrained=deepseek-ai/deepseek-math-7b-base --tasks MathVerse --device cuda:0 --batch_size 8#单卡运行,模型PUMA_DeepSeek-math-7b,数据集MathVerse 
lm_eval --model hf --model_args pretrained=Math-PUMA/Math-PUMA_DeepSeek-Math-VL-7B --tasks MathVerse --device cuda:1 --batch_size 8#多卡运行
accelerate launch -m lm_eval --model hf \--tasks MathVerse\--model_args pretrained=deepseek-ai/deepseek-math-7b-base\--batch_size 16--output_path /root/output.jsonl

将数据集改为hf上的任意数据集,需要在lm_eval/tasks/里面插入一个文件夹(命名为数据集的名字)放yaml文件,例如我要创建的是MathVerse文件夹,里面放着MathVerse.yaml。例如我自开发的:

https://github.com/Wchenjiahaoo/Mathverse--lm-evaluation-harness.githttps://github.com/Wchenjiahaoo/Mathverse--lm-evaluation-harness.git


http://www.mrgr.cn/news/100633.html

相关文章:

  • 52.[前端开发-JS实战框架应用]Day03-AJAX-插件开发-备课项目实战-Lodash
  • 相机-IMU联合标定:相机标定
  • 如何让自己的博客可以在百度、谷歌、360上搜索到(让自己写的CSDN博客可以有更多的人看到)
  • vue3代码规范管理;基于vite和vue3、 eslint、prettier、stylelint、husky规范;git触发eslint校验
  • 【Castle-X机器人】模块安装与调试
  • FFTW3.3.10库与QT结合的使用
  • Ant(Ubuntu 18.04.6 LTS)安装笔记
  • IP查询专业版:支持IPv4/IPv6自动识别并切换解析的API接口使用指南
  • Ubuntu安装SRS流媒体服务
  • 打印及判断回文数组、打印N阶数组、蛇形矩阵
  • Vue组件开发进阶:从通信原理到DOM异步更新实战
  • 【MySQL】Java代码操作MySQL数据库 —— JDBC编程
  • C++ 拷贝构造函数和重载赋值运算符
  • VLM-E2E:通过多模态驾驶员注意融合增强端到端自动驾驶——论文阅读
  • 一键叠图工具
  • ES练习册
  • LangChain入门(二)安装开发环境
  • 【Git】项目多个分支开发、维护与优化处理 ing
  • 3、CMake语法:制作和使用动态库和静态库
  • 细说fork-vfork-pthread_create-clone