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
| 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 checkout -b $tmp_branch | |
| git add . | |
| git commit -am 'update model' | |
| git push -f hgf $tmp_branch:main | |
| git checkout - | |
| git branch -D $tmp_branch | |