mirror of
https://gitee.com/ascend/ModelLink.git
synced 2024-12-02 11:58:26 +08:00
670f729060
Merge pull request !1760 from guoxinjie/arrange_readme
15 lines
550 B
Bash
15 lines
550 B
Bash
# 请按照您的真实环境修改 set_env.sh 路径
|
|
source /usr/local/Ascend/ascend-toolkit/set_env.sh
|
|
|
|
python convert_ckpt.py \
|
|
--model-type GPT \
|
|
--loader megatron \
|
|
--saver megatron \
|
|
--load-dir ./model_weights/llama-2-7b-hf-v0.1-tp8-pp1/ \
|
|
--lora-load ./ckpt/llama-2-7b-lora \
|
|
--lora-r 8 \
|
|
--lora-alpha 16 \
|
|
--lora-target-modules query_key_value dense dense_h_to_4h dense_4h_to_h \
|
|
--target-tensor-parallel-size 1 \
|
|
--target-pipeline-parallel-size 1 \
|
|
--save-dir ./model_weights/llama2-7b-lora2legacy |