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: 133 Bytes
7367ca3 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:838597c738f7dd6767578e949c23be652f93f41a8f46a8b0269afa7505abea9c
size 16671393
|