Commit From AutoNLP a4519d4
AutoNLP Admin commited on
How to use clem/autonlp-test3-2101787 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="clem/autonlp-test3-2101787") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("clem/autonlp-test3-2101787")
model = AutoModelForSequenceClassification.from_pretrained("clem/autonlp-test3-2101787", device_map="auto")