How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("zero-shot-classification", model="protectai/MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("protectai/MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx")
model = AutoModelForSequenceClassification.from_pretrained("protectai/MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx", device_map="auto")
Quick Links

THIS PROJECT HAS BEEN ARCHIVED.

This project and its associated code on GitHub are no longer under active development or maintained.

ONNX version of MoritzLaurer/roberta-base-zeroshot-v2.0-c

This model is a conversion of MoritzLaurer/roberta-base-zeroshot-v2.0-c to ONNX format using the 🤗 Optimum library.

Downloads last month
68,303
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for protectai/MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx

Quantized
(2)
this model

Collection including protectai/MoritzLaurer-roberta-base-zeroshot-v2.0-c-onnx