From: chandar-lab <huggingface.co/chandar-lab>Newsgroups: alt.freeweights.embedSubject:

NeoBERT

Date: 2026-11-15Commit: 5424c8eSigned: 2DC28CC7B26A283B ✓

Feature extraction model with 245M parameters. Safetensors weights, 982 MB in all. Published by chandar-lab under MIT.

245M params982MBNeoBERTsafetensorspermissive
FactsParams245MSize982 MBFormatssafetensorsTaskfeature extractionLicenseMITFrom sourcepermissive
$ fw get chandar-lab/NeoBERT
# manifest sha256 f5c2bac49c2a… · 982 MB · 11 files
$ fw verify ./NeoBERT chandar-lab/NeoBERT
From sourceHosted (signed)chandar-lab/NeoBERTLast check: 2026-11-15 02:35 UTC

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

Works with

Evaluate with

Overview

Size
982 MB
Weights
981 MB (safetensors)
Parameters
245M
Formats
safetensors
Task
feature extraction
License
MIT (permissive)
Files
11, each with a sha256
Publisher
chandar-lab
Added
2026-11-15
Section
alt.freeweights.embed
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-15 02:35 UTCpassed

Model card

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

NeoBERT#

Hugging Face Model Card

NeoBERT is a next-generation encoder model for English text representation, pre-trained from scratch on the RefinedWeb dataset. NeoBERT integrates state-of-the-art advancements in architecture, modern data, and optimized pre-training methodologies. It is designed for seamless adoption: it serves as a plug-and-play replacement for existing base models, relies on an optimal depth-to-width ratio, and leverages an extended context length of 4,096 tokens. Despite its compact 250M parameter footprint, it is the most efficient model of its kind and achieves state-of-the-art results on the massive MTEB benchmark, outperforming BERT large, RoBERTa large, NomicBERT, and ModernBERT under identical fine-tuning conditions.

Get started#

Ensure you have the following dependencies installed:

pip install transformers torch xformers==0.0.28.post3

If you would like to use sequence packing (un-padding), you will need to also install flash-attention:

pip install transformers torch xformers==0.0.28.post3 flash_attn

How to use#

Load the model using Hugging Face Transformers:

from transformers import AutoModel, AutoTokenizer

model_name = "chandar-lab/NeoBERT"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModel.from_pretrained(model_name, trust_remote_code=True)

# Tokenize input text
text = "NeoBERT is the most efficient model of its kind!"
inputs = tokenizer(text, return_tensors="pt")

# Generate embeddings
outputs = model(**inputs)
embedding = outputs.last_hidden_state[:, 0, :]
print(embedding.shape)

Features#

FeatureNeoBERT
Depth-to-width28 × 768
Parameter count250M
ActivationSwiGLU
Positional embeddingsRoPE
NormalizationPre-RMSNorm
Data SourceRefinedWeb
Data Size2.8 TB
Tokenizergoogle/bert
Context length4,096
MLM Masking Rate20%
OptimizerAdamW
SchedulerCosineDecay
Training Tokens2.1 T
EfficiencyFlashAttention

License#

Model weights and code repository are licensed under the permissive MIT license.

Citation#

If you use this model in your research, please cite:

@misc{breton2025neobertnextgenerationbert,
      title={NeoBERT: A Next-Generation BERT}, 
      author={Lola Le Breton and Quentin Fournier and Mariam El Mezouar and Sarath Chandar},
      year={2025},
      eprint={2502.19587},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2502.19587}, 
}

Contact#

For questions, do not hesitate to reach out and open an issue on here or on our GitHub.


Files

11 files · 982 MBWeights 981 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes1.56 KBef934a0e4ce5885b6d06c247c5a20863ff9067f305c79f0501f9ecebb4a3de4e
README.md3.65 KB4e0ca4ad92f2ca62aa7c064176412890fed593d6eb8e8b60050ce5bfd4ae4774
config.json928 Be8a7e7aa346814e780523dcf227655f86d8e46661cd9ea63a995ea70af4fa5d2
logo.jpeg144 KB675cf306fe2912ea2cab9cb37ab060a1e4a16ab4a7e69d340fd80d27af3148d4
model.py15.8 KB7a1a127d343604fe1f168f72cedb16c5899e316a3c7916a6434b3333e8cf8617
model.safetensors981 MBb547ae956c4ef7024a444d93464a9028cc6594cf36830fd5069a7ef9a53d799f
rotary.py2.58 KBaaf408678fb7509fc69ad0f2207b10c14009a30b95a7eaf53d995f3004f22945
special_tokens_map.json125 Bb6d346be366a7d1d48332dbc9fdf3bf8960b5d879522b7799ddba59e76237ee3
tokenizer.json711 KBd241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66
tokenizer_config.json1.31 KBb57b9571381f792e7f19d87f78c22a9dc2bfd3704c2deb89064d504ace48c502
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
5424c8efee pinned now2026-11-15 02:35 UTC11 files · 982 MB

Use it

$ fw get chandar-lab/NeoBERT
# manifest sha256 f5c2bac49c2a… · 982 MB · 11 files
$ fw verify ./NeoBERT chandar-lab/NeoBERT
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/chandar-lab/NeoBERT.json --dir ./NeoBERT $ python3 fw.py verify ./NeoBERT ./chandar-lab__NeoBERT.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download chandar-lab/NeoBERT --revision 5424c8efeea6491b151d62dee55a752165407430 --local-dir ./NeoBERT
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModel, AutoTokenizer tok = AutoTokenizer.from_pretrained("chandar-lab/NeoBERT", revision="5424c8efeea6491b151d62dee55a752165407430") model = AutoModel.from_pretrained("chandar-lab/NeoBERT", revision="5424c8efeea6491b151d62dee55a752165407430", device_map="auto")

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-15
Text in
README.md
Text sha256
4e0ca4ad92f2ca62aa7c064176412890fed593d6eb8e8b60050ce5bfd4ae4774
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: chandar-lab <huggingface.co/chandar-lab>Newsgroups: alt.freeweights.embedSubject: NeoBERTDate: 2026-11-15Commit: 5424c8eSigned: 2DC28CC7B26A283B ✓
Upstream
chandar-lab/NeoBERT
Pinned commit
5424c8efeea6491b151d62dee55a752165407430
Manifest
NeoBERT.json · .minisig
Manifest sha256
f5c2bac49c2a8c3dae55ab3b1921ff4497ce448101f09121a8ff0757eb7c3cf8
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:35 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/chandar-lab/NeoBERT.json $ curl -O https://freeweights.allternit.com/manifests/chandar-lab/NeoBERT.json.minisig $ minisign -Vm NeoBERT.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

1 model in the catalog name this one as their parent.

Quantizations
1
Quantizations 1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download chandar-lab/NeoBERT
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. NeoBERT.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of NeoBERT. Each has its own license check and page.

From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-MiniLM-L6-v1
From: unsloth <huggingface.co/unsloth>Subject: all-MiniLM-L6-v2
From: mlx-community <huggingface.co/mlx-community>Subject: all-MiniLM-L6-v2-4bit
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-mpnet-base-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: allenai-specter
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: bert-base-nli-max-tokens