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
e5af66b
-
upload flax model
51dbd9d -
allow flax
670cc74
-
Add size details
6b6560e -
Create ALBERT readme
a1e0407
-
For clarity, delete deprecated modelcard.json
We now use the README.md model card instead Approved-by: Julien Chaumond <julien@huggingface.co>7fd236f
-
addition of Rust model
be1be66
-
Update tokenizer.json
24bf5c0
-
Update tokenizer.json
005498f
-
Update tf_model.h5
44ec114
-
Update config.json
842ba04
-
Update with-prefix-tf_model.h5
216e2f2
-
Update config.json
6b2e831
-
Update config.json
cec8f77
-
Update modelcard.json
7419622
-
Update pytorch_model.bin
ada8cde
-
Update config.json
9238864 -
Update spiece.model
ea54100 -
initial commit
ab4635a