onnx-community/ModernBERT-base-nli-ONNX
33.6k
ModernBERT-base-nli (ONNX)
This is an ONNX version of tasksource/ModernBERT-base-nli. It was automatically converted and uploaded using this space.
Usage (Transformers.js)
If you haven't already, you can install the Transformers.js JavaScript library from NPM using:
npm i @huggingface/transformersExample: Text Classification with ModernBERT.
import { pipeline } from '@huggingface/transformers';
const classifier = await pipeline('text-classification', 'onnx-community/ModernBERT-base-nli-ONNX');
const output = await classifier('I love transformers!');