Felladrin's picture
Add/update the quantized ONNX model files and README.md for Transformers.js v3 (#1)
c8e80b1 verified
|
raw
history blame
890 Bytes
metadata
library_name: transformers.js
base_model:
  - facebook/bart-large-mnli

bart-large-mnli (ONNX)

This is an ONNX version of facebook/bart-large-mnli. 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/transformers

Example: Natural Language Inference (NLI) classification.

import { pipeline } from '@huggingface/transformers';

const classifier = await pipeline('text-classification', 'onnx-community/bart-large-mnli-ONNX');
const output = await classifier('I love transformers!');