完整的流程
安装依赖包
!pip install autotrain-advanced !pip install huggingface_hub
如果是在 Google Colab上运行还要执行下面的命令
!autotrain setup --update-torchHuggingFace 登录,获取token

from huggingface_hub import notebook_login notebook_login()

输入token
最后微调命令!autotrain llm --train --project_name your_project_name --model TinyPixel/Llama-2-7B-bf16-sharded --data_path your_data_set --use_peft --use_int4 --learning_rate 2e-4 --train_batch_size 2 --num_train_epochs 3 --trainer sft --model_max_length 2048 --push_to_hub --repo_id your_repo_id -

具体可以看:https://huggingface.co/autotrain
https://github.com/huggingface/autotrain-advanced
网友回复
systemd-nspawn与unshare区别?
Firejail、Bubblewrap沙箱与docker、podman容器区别?
如何访问unshare -n -- python3 -m http.server 8000创建的网站url?
linux中如何限制进程执行非法的系统调用命令,例如reboot 删除等等?
pivot_root与chroot有啥区别?
linux中如何限制进程使用cpu、内存、网络的最大值?
用户态沙箱、硬件隔离、namespace + cgroups的隔离有啥不同?
OverlayFS、AUFS 、 Btrfs的区别是啥?
linux上各种Namespace有啥作用?
linux体积最小最精简的版本是多大?


