Instructions to use Twitter/twhin-bert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Twitter/twhin-bert-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Twitter/twhin-bert-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Twitter/twhin-bert-base") model = AutoModelForMaskedLM.from_pretrained("Twitter/twhin-bert-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Make mask token explicit
Make the mask token explicit to prevent the error `No mask_token (<mask>) found on the input` in the Hosted Inference API. See [related issue](https://github.com/huggingface/transformers/issues/11884#issuecomment-851590598) for more context on this fix.62e5dd2 -
Update README.md
3382538
-
Update yaml metadata.
613cdc7 -
Add model card v1.
971d357
-
Upload pytorch model
ab4c8d9 -
initial commit
4c101ca