stanfordnlp/snli
Viewer • Updated • 570k • 31.8k • 91
How to use schift-io/schift-nli with Transformers.js:
// npm i @huggingface/transformers
import { pipeline } from '@huggingface/transformers';
// Allocate pipeline
const pipe = await pipeline('zero-shot-classification', 'schift-io/schift-nli');ONNX-quantized DeBERTa-v3-xsmall for Natural Language Inference, optimized for Dot local inference.
Loaded automatically by Dot's local NLI classifier. No manual setup needed.
import { pipeline } from '@huggingface/transformers';
const classifier = await pipeline('text-classification', 'schift-io/schift-nli', {
quantized: true,
});
const result = await classifier(
{ text: 'A man is eating pizza', text_pair: 'A man is eating food' },
{ top_k: 3 }
);
// [{ label: 'entailment', score: 0.97 }, ...]
Apache 2.0 (inherited from base model)
Base model
microsoft/deberta-v3-xsmall