conver-model.sh 515 Bytes
Newer Older
hepj's avatar
hepj committed
1
2
3
4
5
6
7
8
9
10
11
12
#clip 需要从源码安装 pip install git https://github.com/openai/CLIP.git 这里用的1.0
export HIP_VISIBLE_DEVICES=6
cd /public/new-pai/Pai-Megatron-Patch/toolkits/model_checkpoints_convertor/llava
bash hf2mcore_convertor_llava.sh \
    7B \
    /public/new-pai/model/Mistral-7B-Instruct-v0.3 \
    /public/new-pai/model/AI-ModelScope/clip-vit-large-patch14-336/  \
    /public/new-pai/Pai-Megatron-Patch/examples/llava_mcore/Mistral-7B-Instruct-v0.3-to-mcore-tp2-pp1 \
    2  \
    1  \
    false \
    fp16