feat: add sync.sh for copy-to-modelscope
parent
8a03c9bf17
commit
1d364fd628
|
|
@ -13,8 +13,8 @@ if [ -z "${MODEL_ID}" ]; then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git clone https://oauth2:${ACCESS_TOKEN}@www.modelscope.cn/$MODEL_ID.git ms_model
|
git clone https://oauth2:${ACCESS_TOKEN}@www.modelscope.cn/$MODEL_ID.git ms_model --depth 1
|
||||||
git clone https://huggingface.co/$MODEL_ID hf_model
|
git clone https://huggingface.co/$MODEL_ID hf_model --depth 1
|
||||||
|
|
||||||
echo "Sync directory"
|
echo "Sync directory"
|
||||||
rsync -avh --exclude '.git' --delete hf_model/ ms_model/
|
rsync -avh --exclude '.git' --delete hf_model/ ms_model/
|
||||||
|
|
@ -52,6 +52,7 @@ set -x
|
||||||
pushd ms_model
|
pushd ms_model
|
||||||
git add .
|
git add .
|
||||||
git commit -m "sync with upstream"
|
git commit -m "sync with upstream"
|
||||||
|
git lfs push origin
|
||||||
git push origin
|
git push origin
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
# TabbyML/StarCoder-3B
|
||||||
|
|
||||||
|
MODELS=$(cat <<EOF
|
||||||
|
TabbyML/StarCoder-7B
|
||||||
|
TabbyML/WizardCoder-1B
|
||||||
|
TabbyML/WizardCoder-3B
|
||||||
|
TabbyML/CodeLlama-7B
|
||||||
|
TabbyML/CodeLlama-13B
|
||||||
|
TabbyML/StarCoder-1B
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
|
||||||
|
for i in $MODELS; do
|
||||||
|
./main.sh $i $1
|
||||||
|
done
|
||||||
|
|
||||||
Loading…
Reference in New Issue