alt.freeweights.vision / bart-large-mnli
From: facebook <huggingface.co/facebook>Newsgroups: alt.freeweights.visionSubject:

bart-large-mnli

Date: 2026-11-14Commit: d7645e1Signed: 2DC28CC7B26A283B ✓

Zero shot classification model with 407M parameters. Safetensors weights, 6.93 GB in all. Published by facebook under MIT.

407M params6.93GBbart-large-mnlisafetensorspermissive
FactsParams407MSize6.93 GBFormatssafetensorsTaskzero shot classificationLicenseMITFrom sourcepermissive
$ fw get facebook/bart-large-mnli
# manifest sha256 65a868c83354… · 6.93 GB · 11 files
$ fw verify ./bart-large-mnli facebook/bart-large-mnli
From sourceHosted (signed)facebook/bart-large-mnliLast check: 2026-11-14 21:35 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Overview

Size
6.93 GB
Weights
1.63 GB (safetensors)
Parameters
407M
Formats
safetensors
Task
zero shot classification
License
MIT (permissive)
Files
11, each with a sha256
Publisher
facebook
Added
2026-11-14
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:35 UTCpassed

Model card

From the publisher at commit d7645e1. Shown as plain text with links; images open at the publisher.

bart-large-mnli#

This is the checkpoint for bart-large after being trained on the MultiNLI (MNLI) dataset.

Additional information about this model:

  • The bart-large model page
  • [BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension

](https://arxiv.org/abs/1910.13461)

NLI-based Zero Shot Text Classification#

Yin et al. proposed a method for using pre-trained NLI models as a ready-made zero-shot sequence classifiers. The method works by posing the sequence to be classified as the NLI premise and to construct a hypothesis from each candidate label. For example, if we want to evaluate whether a sequence belongs to the class "politics", we could construct a hypothesis of This text is about politics.. The probabilities for entailment and contradiction are then converted to label probabilities.

This method is surprisingly effective in many cases, particularly when used with larger pre-trained models like BART and Roberta. See this blog post for a more expansive introduction to this and other zero shot methods, and see the code snippets below for examples of using this model for zero-shot classification both with Hugging Face's built-in pipeline and with native Transformers/PyTorch code.

With the zero-shot classification pipeline#

The model can be loaded with the zero-shot-classification pipeline like so:

from transformers import pipeline
classifier = pipeline("zero-shot-classification",
                      model="facebook/bart-large-mnli")

You can then use this pipeline to classify sequences into any of the class names you specify.

sequence_to_classify = "one day I will see the world"
candidate_labels = ['travel', 'cooking', 'dancing']
classifier(sequence_to_classify, candidate_labels)
#{'labels': ['travel', 'dancing', 'cooking'],
# 'scores': [0.9938651323318481, 0.0032737774308770895, 0.002861034357920289],
# 'sequence': 'one day I will see the world'}

If more than one candidate label can be correct, pass multi_label=True to calculate each class independently:

candidate_labels = ['travel', 'cooking', 'dancing', 'exploration']
classifier(sequence_to_classify, candidate_labels, multi_label=True)
#{'labels': ['travel', 'exploration', 'dancing', 'cooking'],
# 'scores': [0.9945111274719238,
#  0.9383890628814697,
#  0.0057061901316046715,
#  0.0018193122232332826],
# 'sequence': 'one day I will see the world'}
With manual PyTorch#
# pose sequence as a NLI premise and label as a hypothesis
from transformers import AutoModelForSequenceClassification, AutoTokenizer
nli_model = AutoModelForSequenceClassification.from_pretrained('facebook/bart-large-mnli')
tokenizer = AutoTokenizer.from_pretrained('facebook/bart-large-mnli')

premise = sequence
hypothesis = f'This example is {label}.'

# run through model pre-trained on MNLI
x = tokenizer.encode(premise, hypothesis, return_tensors='pt',
                     truncation_strategy='only_first')
logits = nli_model(x.to(device))[0]

# we throw away "neutral" (dim 1) and take the probability of
# "entailment" (2) as the probability of the label being true 
entail_contradiction_logits = logits[:,[0,2]]
probs = entail_contradiction_logits.softmax(dim=1)
prob_label_is_true = probs[:,1]

Files

11 files · 6.93 GBWeights 1.63 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes445 B98c91dabef4df27b2fc7c8454d220aba47476f73593cbd034d961fe4927304c1
README.md3.79 KBd022b7cb54ca2f65fac41cf6c9601b4491b4ac22a301227288a38beef2a18aeb
config.json1.15 KBa0f9bcb245b680a96ccae0ad8d155f267ec3e3c971ef4a4937e52ea9ba368a86
flax_model.msgpack1.63 GB5e07d1ae73ae1c1267fd174a3b21c73b0d77bad288f8ed17fb685f79c419a897
merges.txt456 KB1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
model.safetensors1.63 GBcfbb687dbbd9df99fe865e1860350a22aebac4d26ee4bcb50217f1df606a018e
pytorch_model.bin1.63 GBce253627f98f9db22af6a86efee6e905f001f7d8dc02dd14a8b4b4710c302b17
rust_model.ot2.04 GBb48c2b60d9a63b6ad67d99720b4d41ecb235287f10fcaeaae412291cdaf28578
tokenizer.json1.36 MB847bbeab6174d66a88898f729d52fa8d355fafe1bea101cf960dd404581df70e
tokenizer_config.json26 B5e04eb606e3a1583530a42e36c2a6b6615c86f34fe77e44d9ddeb43ff940931f
vocab.json899 KB06b4d46c8e752d410213d9548eb27a54db70fda0319b6271fb8d59dead5e1cab
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
d7645e127e pinned now manifest updated, same commit2026-11-14 21:35 UTC11 files · 6.93 GB
d7645e127e2026-11-14 21:35 UTC11 files · 6.93 GB

Use it

$ fw get facebook/bart-large-mnli
# manifest sha256 65a868c83354… · 6.93 GB · 11 files
$ fw verify ./bart-large-mnli facebook/bart-large-mnli
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/facebook/bart-large-mnli.json --dir ./bart-large-mnli $ python3 fw.py verify ./bart-large-mnli ./facebook__bart-large-mnli.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download facebook/bart-large-mnli --revision d7645e127eaf1aefc7862fd59a17a5aa8558b8ce --local-dir ./bart-large-mnli

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
d022b7cb54ca2f65fac41cf6c9601b4491b4ac22a301227288a38beef2a18aeb
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: facebook <huggingface.co/facebook>Newsgroups: alt.freeweights.visionSubject: bart-large-mnliDate: 2026-11-14Commit: d7645e1Signed: 2DC28CC7B26A283B ✓
Upstream
facebook/bart-large-mnli
Pinned commit
d7645e127eaf1aefc7862fd59a17a5aa8558b8ce
Manifest
bart-large-mnli.json · .minisig
Manifest sha256
65a868c83354810a86d4981454dbc58a8fa1b53a6771817ad7fb72e3f292ab8c
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:35 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/facebook/bart-large-mnli.json $ curl -O https://freeweights.allternit.com/manifests/facebook/bart-large-mnli.json.minisig $ minisign -Vm bart-large-mnli.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download facebook/bart-large-mnli
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. bart-large-mnli.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX