added upload2hgf.sh
Browse files- upload2hgf.sh +11 -0
upload2hgf.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -ex
|
| 3 |
+
git lfs install
|
| 4 |
+
find ckpt -type f | xargs -I{} cp {} .
|
| 5 |
+
git lfs track events.out.*
|
| 6 |
+
git lfs track pytorch_model.bin
|
| 7 |
+
tmp_branch=hgf-`uuidgen`
|
| 8 |
+
git co -b tmp_branch
|
| 9 |
+
git add .
|
| 10 |
+
git commit -am 'update model'
|
| 11 |
+
git push -f hgf tmp_branch:main
|