Instructions to use albert/albert-base-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use albert/albert-base-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="albert/albert-base-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("albert/albert-base-v2") model = AutoModelForMaskedLM.from_pretrained("albert/albert-base-v2", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#2)
- Adding `safetensors` variant of this model (e5af66bcb01baf5eced82d51947bc71c95b4c434) Co-authored-by: Nicolas Patry <Narsil@users.noreply.huggingface.co>c3fcc1d
-
allow flax
670cc74
-
initial commit
ab4635a