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: 129 Bytes
7367ca3 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:822d8cf801bfa348d04514d9565ec22e76915c32db40e3844abaed4d059dd960
size 3823
|