Instructions to use bstds/fewshot_re_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bstds/fewshot_re_bert with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, BertForFewRelZeroShot tokenizer = AutoTokenizer.from_pretrained("bstds/fewshot_re_bert", trust_remote_code=True) model = BertForFewRelZeroShot.from_pretrained("bstds/fewshot_re_bert", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update modeling_re_bert.py
599c238 -
Update modeling_re_bert.py
8fc43d5 -
Update modeling_re_bert.py
703174e -
Update relations.json
39d9009 -
Update modeling_re_bert.py
4878584 -
Update config.json
247a8c4 -
Upload relations.json
061dbaf
-
Rename modeling_fewshot_re_bert.py to modeling_re_bert.py
7e76a00 -
Update modeling_fewshot_re_bert.py
cda2ab1 -
Update config.json
a3c9fef -
Update config.json
4a0a94b -
Create modeling_fewshot_re_bert.py
9b99bfe -
Update config.json
a15fa22 -
Upload tokenizer
5c92f12 -
Upload BertForFewRelZeroShot
020a799 -
initial commit
c0475ff