Instructions to use AiresPucrs/bert-base-bookcorpus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AiresPucrs/bert-base-bookcorpus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="AiresPucrs/bert-base-bookcorpus")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("AiresPucrs/bert-base-bookcorpus") model = AutoModelForMaskedLM.from_pretrained("AiresPucrs/bert-base-bookcorpus", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download plot.ipynb from AiresPucrs/bert-base-bookcorpus: direct link, hf CLI and curl.
- Browser
- Download file 71.3 kB
-
https://huggingface.co/AiresPucrs/bert-base-bookcorpus/resolve/main/plot.ipynb
- Command line
-
hf download hf://AiresPucrs/bert-base-bookcorpus/plot.ipynb
-
curl -L -o plot.ipynb https://huggingface.co/AiresPucrs/bert-base-bookcorpus/resolve/main/plot.ipynb
71.3 kB