PuzzleZeroShot
Collection
3 items โข Updated
How to use belyakoff/DeBERTa-NLI with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="belyakoff/DeBERTa-NLI") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("belyakoff/DeBERTa-NLI")
model = AutoModelForSequenceClassification.from_pretrained("belyakoff/DeBERTa-NLI", device_map="auto")No model card