Track the final version of the model 6bf737b
Amr Keleg commited on
How to use VARabi/Sentence-ALDi-30 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="VARabi/Sentence-ALDi-30") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("VARabi/Sentence-ALDi-30")
model = AutoModelForSequenceClassification.from_pretrained("VARabi/Sentence-ALDi-30", device_map="auto")