原创github地址https://github.com/chenyujiehome/finetune_llama2_huggingface_format/tree/master
欢迎star
llama2微调指南
微调流程
1.配置环境
pip install -r requirements.txt
#pip安装环境
conda -n finetune python=3.11
#conda 创建环境
pip install git+https://github.com/huggingface/transformers
pip install -e ./llama
#安装model
2.创建huggingface格式的llama2文件
python convert_llama_weights_to_hf.py --input_dir ./llama/llama-2-7b --model_size 7B --output_dir models_hf/7B
3.在huggingface格式微调llama2模型
4.运行你的微调模型
大文件
- 大文件(bin文件,pth文件,以及llama2 原始格式文件,llama2 huggingface格式文件)放在百度网盘: https://pan.baidu.com/s/1d3lVnNO5iI2iCRBR6i_kdQ?pwd=styw 提取码: styw
- 大文件存放位置参见 tree.txt
2349

被折叠的 条评论
为什么被折叠?



