facebook/xnli
Viewer • Updated • 6.4M • 34.3k • 71
How to use iagovar/zeroshot_selectra_medium_onnx with Transformers.js:
// npm i @huggingface/transformers
import { pipeline } from '@huggingface/transformers';
// Allocate pipeline
const pipe = await pipeline('zero-shot-classification', 'iagovar/zeroshot_selectra_medium_onnx');This is just a conversion of the Recognai/zeroshot_selectra_medium model to ONNX, using the conversion script provided by HF transformers.js