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
Download tokenizer.json from Twitter/twhin-bert-base: direct link, hf CLI and curl.
- Browser
- Download file 17.1 MB
-
https://huggingface.co/Twitter/twhin-bert-base/resolve/main/tokenizer.json
- Command line
-
hf download hf://Twitter/twhin-bert-base/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/Twitter/twhin-bert-base/resolve/main/tokenizer.json
17.1 MB
- Xet hash:
- 6c817fd51edadfac59db79178c12fb84bd39546a74e6669baa7aaa394a8353be
- Size of remote file:
- 17.1 MB
- SHA256:
- 8666fdab5ac4930b05db388cb079d1e8848f7db3e786d5f53994e3666d18a0b4
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.