Instructions to use albert/albert-xxlarge-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use albert/albert-xxlarge-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="albert/albert-xxlarge-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("albert/albert-xxlarge-v1") model = AutoModelForMaskedLM.from_pretrained("albert/albert-xxlarge-v1", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download spiece.model from albert/albert-xxlarge-v1: direct link, hf CLI and curl.
- Browser
- Download file 760 kB
-
https://huggingface.co/albert/albert-xxlarge-v1/resolve/main/spiece.model
- Command line
-
hf download hf://albert/albert-xxlarge-v1/spiece.model
-
curl -L -o spiece.model https://huggingface.co/albert/albert-xxlarge-v1/resolve/main/spiece.model
760 kB
This file contains binary data. It cannot be displayed, but you can still download it.