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: 135 Bytes
7367ca3 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:300d9616bf0ba9e127ca90fdf02538d25610036df25d8ffe8e83a1a163236c51
size 1111072749
|