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")# 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
File size: 133 Bytes
ab4c8d9 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:8666fdab5ac4930b05db388cb079d1e8848f7db3e786d5f53994e3666d18a0b4
size 17082660
|