azbert-base / upload2hgf.sh
w32zhong's picture
added upload2hgf.sh
42031f1
raw
history blame
252 Bytes
#!/bin/bash
set -ex
git lfs install
find ckpt -type f | xargs -I{} cp {} .
git lfs track events.out.*
git lfs track pytorch_model.bin
tmp_branch=hgf-`uuidgen`
git co -b tmp_branch
git add .
git commit -am 'update model'
git push -f hgf tmp_branch:main