Or you could try this project onnx_transformers 59, which let’s you speed up HF pipelines using onnx and also includes zero-shot-classification. Note that BART is not tested on ONNX yet, so it uses roberta-large-mnli instead of BART