alt.freeweights.vision / ModernBERT-large-zeroshot-v2.0-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

ModernBERT-large-zeroshot-v2.0-ONNX

Date: 2026-11-15Commit: ec09d63Signed: 2DC28CC7B26A283B ✓

Text classification model. Onnx weights, 4.69 GB in all. Published by onnx-community under Apache-2.0.

vision4.69GBModernBERT-large-zeroshot-v2.0-ONNXonnxpermissive
FactsParamsnot statedSize4.69 GBFormatsonnxTasktext classificationLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/ModernBERT-large-zeroshot-v2.0-ONNX
# manifest sha256 4cfb4bab07b0… · 4.69 GB · 15 files
$ fw verify ./ModernBERT-large-zeroshot-v2.0-ONNX onnx-community/ModernBERT-large-zeroshot-v2.0-ONNX
From sourceHosted (signed)onnx-community/ModernBERT-large-zeroshot-v2.0-ONNXLast check: 2026-11-15 05:28 UTC

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

Quantized of ModernBERT-large-zeroshot-v2.0.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Scan with

Overview

Size
4.69 GB
Weights
297 MB (smallest of 8 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text classification
License
Apache-2.0 (permissive)
Files
15, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: MoritzLaurer/ModernBERT-large-zeroshot-v2.0

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-15 05:28 UTCpassed

Model card

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

ModernBERT-large-zeroshot-v2.0 (ONNX)#

This is an ONNX version of MoritzLaurer/ModernBERT-large-zeroshot-v2.0. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for text-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextClassificationPipeline


ModernBERT-base-zeroshot-v2.0#

Model description#

This model is answerdotai/ModernBERT-large fine-tuned on the same dataset mix as the zeroshot-v2.0 models in the Zeroshot Classifiers Collection.

General takeaways:#

  • The model is very fast and memory efficient. It's multiple times faster and consumes multiple times less memory than DeBERTav3.

The memory efficiency enables larger batch sizes. I got a ~2x speed increase by enabling bf16 (instead of fp16).

  • It performs slightly worse then DeBERTav3 on average on the tasks tested below.
  • I'm in the process of preparing a newer version trained on better synthetic data to make full use of the 8k context window

and to update the training mix of the older zeroshot-v2.0 models.

Training results#
DatasetsMeanMean w/o NLImnli_mmnli_mmfevernlianli_r1anli_r2anli_r3wanlilingnliwellformedqueryrottentomatoesamazonpolarityimdbyelpreviewshatexplainmassivebanking77emotiondairemocontextempatheticagnewsyahootopicsbiasframes_sexbiasframes_offensivebiasframes_intentfinancialphrasebankappreviewshateoffensivetrueteacherspamwikitoxic_toxicaggregatedwikitoxic_obscenewikitoxic_identityhatewikitoxic_threatwikitoxic_insultmanifestocapsotu
Accuracy0.850.8510.9420.9440.8940.8120.7170.7160.8360.9090.8150.8990.9640.9510.9840.8140.80.7440.7520.8020.5440.8990.7350.9340.8640.8770.9130.9530.9210.8210.9890.9010.9270.9310.9590.9110.4970.73
F1 macro0.8340.8350.9350.9380.8820.7950.6880.6760.8230.8980.8140.8990.9640.9510.9840.770.7530.7630.690.8050.5330.8990.7290.9250.8640.8770.9010.9530.8550.8210.9830.9010.9270.9310.9520.9110.3620.662
Inference text/sec (A100 40GB GPU, batch=32)1116.01104.01039.01241.01138.01102.01124.01133.01251.01240.01263.01231.01054.0559.0795.01238.01312.01285.01273.01268.0992.01222.0894.01176.01194.01197.01206.01166.01227.0541.01199.01045.01054.01020.01005.01063.01214.01220.0
Training hyperparameters#

The following hyperparameters were used during training:

  • learning_rate: 9e-06
  • train_batch_size: 16
  • eval_batch_size: 32
  • seed: 42
  • gradient_accumulation_steps: 2
  • total_train_batch_size: 32
  • optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_ratio: 0.06
  • num_epochs: 2
Framework versions#
  • Transformers 4.48.0.dev0
  • Pytorch 2.5.1+cu124
  • Datasets 3.2.0
  • Tokenizers 0.21.0

Files

15 files · 4.69 GBWeights 297 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.83 KBeb7f8a7992226a0f7d7f9a8001aa2df1bebcc62160cd1b9d0c52daf759cbc797
config.json1.55 KBa0d3db5802168da0c0ac1a9b6428859932c51a5e729e79915a1ed87c1adaa10a
onnx/model.onnx1.58 GBcd908c8d97b2e17dd7febd921bf0df457af9b56a26d12651c738be705abcc7d4
onnx/model_bnb4.onnx401 MBeaded783d53085e006414edb1edf0b07bb075083efbb10ddc353ed5818583250
onnx/model_fp16.onnx792 MB002fa21c9804447a742b7da21822cf56edbd8f1eb2243369c2263b347e2a585a
onnx/model_int8.onnx398 MB7604c7e4e3b096c1c0fcf57622ffa9bfbbe26fb5c1f3a4369bcbf399197e4a52
onnx/model_q4.onnx422 MB052b626fa0b7c969d3415d2c5066257ed209119d55b6a31ae1dbdeec1f72baf6
onnx/model_q4f16.onnx297 MB18ee166da889aa163f49848ad7b46afe96bb2c97f95174b7bfb5333dcb83f844
onnx/model_quantized.onnx398 MB7604c7e4e3b096c1c0fcf57622ffa9bfbbe26fb5c1f3a4369bcbf399197e4a52
onnx/model_uint8.onnx398 MB5b9a90171f3b46ec1936dcafb2d71b858e5f3215925cc205e04bf3e26c7a972c
quantize_config.json310 B9b60b5877b9a1687b5cddbc06124a974cb7536af9dbf5295279bf73c3823170c
special_tokens_map.json694 Bea97ecdbcc73713039d8d64dbb05e3689495c96657fbd9a18f5bed381be81049
tokenizer.json3.58 MB6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30
tokenizer_config.json20.8 KBb23670e903ae7ddff4090c4b847274f9cab7da88d67ed1befc64619567e5e715
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
ec09d6340e pinned now2026-11-15 05:28 UTC15 files · 4.69 GB

Use it

$ fw get onnx-community/ModernBERT-large-zeroshot-v2.0-ONNX
# manifest sha256 4cfb4bab07b0… · 4.69 GB · 15 files
$ fw verify ./ModernBERT-large-zeroshot-v2.0-ONNX onnx-community/ModernBERT-large-zeroshot-v2.0-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/ModernBERT-large-zeroshot-v2.0-ONNX.json --dir ./ModernBERT-large-zeroshot-v2.0-ONNX $ python3 fw.py verify ./ModernBERT-large-zeroshot-v2.0-ONNX ./onnx-community__ModernBERT-large-zeroshot-v2.0-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/ModernBERT-large-zeroshot-v2.0-ONNX --revision ec09d6340e9f131ccca60fbd833668504cfc7230 --local-dir ./ModernBERT-large-zeroshot-v2.0-ONNX

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
eb7f8a7992226a0f7d7f9a8001aa2df1bebcc62160cd1b9d0c52daf759cbc797
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: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject: ModernBERT-large-zeroshot-v2.0-ONNXDate: 2026-11-15Commit: ec09d63Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/ModernBERT-large-zeroshot-v2.0-ONNX
Pinned commit
ec09d6340e9f131ccca60fbd833668504cfc7230
Manifest
ModernBERT-large-zeroshot-v2.0-ONNX.json · .minisig
Manifest sha256
4cfb4bab07b0dd15d51ad1fc95f070c3e20f8e866be65a72e88906cd204d32ee
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:28 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/ModernBERT-large-zeroshot-v2.0-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/ModernBERT-large-zeroshot-v2.0-ONNX.json.minisig $ minisign -Vm ModernBERT-large-zeroshot-v2.0-ONNX.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

Parent

MoritzLaurer/ModernBERT-large-zeroshot-v2.0 · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/ModernBERT-large-zeroshot-v2.0-ONNX
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. ModernBERT-large-zeroshot-v2.0-ONNX.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