Instructions to use LEIA/LEIA-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LEIA/LEIA-multilingual with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="LEIA/LEIA-multilingual")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("LEIA/LEIA-multilingual") model = AutoModelForSequenceClassification.from_pretrained("LEIA/LEIA-multilingual", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 128 Bytes
7367ca3 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:2dff864b1b8e2d343c1c4e8123362d85799dcc06823941aac23f370ff3164cb1
size 559
|