Instructions to use approach0/dpr-cotbert-320 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use approach0/dpr-cotbert-320 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="approach0/dpr-cotbert-320")# Load model directly from transformers import AutoTokenizer, DprEncoder tokenizer = AutoTokenizer.from_pretrained("approach0/dpr-cotbert-320") model = DprEncoder.from_pretrained("approach0/dpr-cotbert-320") - Notebooks
- Google Colab
- Kaggle
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
|