Instructions to use ltg/ltg-bert-bnc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ltg/ltg-bert-bnc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="ltg/ltg-bert-bnc", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("ltg/ltg-bert-bnc", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update modeling_ltgbert.py
Verified signaturee1a145d
-
Update modeling_ltgbert.py
Verified signatureFixing error in the re-bucketing for the Attention module3f2f30b
-
Upload tokenizer.json
c23a888 -
Update configuration_ltgbert.py
34de87e -
Update modeling_ltgbert.py
33d2d19 -
Update config.json
3b2a8c4 -
Delete base.json
335b7bc -
Create __init__.py
3ce1ecd
-
fixed tokenizer
442f442
-
Update README.md
5137c8d
-
Create README.md
036e551 -
Update configuration_ltgbert.py
cfe44fe -
Update modeling_ltgbert.py
8e47ceb
-
Upload 8 files
7f719ea -
initial commit
bc4fcf5