alt.freeweights.embed / nomic-bert-2048
From: nomic-ai <huggingface.co/nomic-ai>Newsgroups: alt.freeweights.embedSubject:

nomic-bert-2048

Date: 2026-11-14Commit: 7710840Signed: 2DC28CC7B26A283B ✓

Fill mask model with 137M parameters. Safetensors weights, 1.10 GB in all. Published by nomic-ai under Apache-2.0.

137M params1.10GBnomic-bert-2048safetensorspermissive
FactsParams137MSize1.10 GBFormatssafetensorsTaskfill maskLicenseApache-2.0From sourcepermissive
$ fw get nomic-ai/nomic-bert-2048
# manifest sha256 9db6bb5eec26… · 1.10 GB · 11 files
$ fw verify ./nomic-bert-2048 nomic-ai/nomic-bert-2048
From sourceHosted (signed)nomic-ai/nomic-bert-2048Last check: 2026-11-14 21:10 UTC

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

Works with

Runs with

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

Overview

Size
1.10 GB
Weights
549 MB (safetensors)
Parameters
137M
Formats
safetensors
Task
fill mask
License
Apache-2.0 (permissive)
Files
11, each with a sha256
Publisher
nomic-ai
Added
2026-11-14
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-14 21:10 UTCpassed

Model card

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

nomic-bert-2048: A 2048 Sequence Length Pretrained BERT#

nomic-bert-2048 is a BERT model pretrained on wikipedia and bookcorpus with a max sequence length of 2048.

We make several modifications to our BERT training procedure similar to MosaicBERT. Namely, we add:

We evaluate the quality of nomic-bert-2048 on the standard GLUE benchmark. We find it performs comparably to other BERT models but with the advantage of a significantly longer context length.

ModelBszStepsSeqAvgColaSST2MRPCSTSBQQPMNLIQNLIRTE
NomicBERT4k100k20480.840.500.930.880.900.920.860.920.82
RobertaBase8k500k5120.860.640.950.900.910.920.880.930.79
JinaBERTBase4k100k5120.830.510.950.880.900.810.860.920.79
MosaicBERT4k178k1280.850.590.940.890.900.920.860.910.83

Pretraining Data#

We use BookCorpus and a 2023 dump of wikipedia. We pack and tokenize the sequences to 2048 tokens. If a document is shorter than 2048 tokens, we append another document until it fits 2048 tokens. If a document is greater than 2048 tokens, we split it across multiple documents. We release the dataset here

Usage#

from transformers import AutoModelForMaskedLM, AutoConfig, AutoTokenizer, pipeline

tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased') # `nomic-bert-2048` uses the standard BERT tokenizer

config = AutoConfig.from_pretrained('nomic-ai/nomic-bert-2048', trust_remote_code=True) # the config needs to be passed in
model = AutoModelForMaskedLM.from_pretrained('nomic-ai/nomic-bert-2048',config=config, trust_remote_code=True)

# To use this model directly for masked language modeling
classifier = pipeline('fill-mask', model=model, tokenizer=tokenizer,device="cpu")

print(classifier("I [MASK] to the store yesterday."))

To finetune the model for a Sequence Classification task, you can use the following snippet

from transformers import AutoConfig, AutoModelForSequenceClassification
model_path = "nomic-ai/nomic-bert-2048"
config = AutoConfig.from_pretrained(model_path, trust_remote_code=True)
# strict needs to be false here since we're initializing some new params
model = AutoModelForSequenceClassification.from_pretrained(model_path, config=config, trust_remote_code=True, strict=False)

Join the Nomic Community#

Files

11 files · 1.10 GBWeights 549 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.54 KBb4c606bbb0cb7f15b2efd3b819c17b6fddf11230e4e0f622bd0bed4114be4179
config.json1.88 KB53adc51a6b5b938e55f2e789f7059028aa452c19f790106353a5e05f2ecdb24f
configuration_hf_nomic_bert.py1.96 KBf7871694b8de3d3df4ac6640313d5799ce323261a0fb90c5cc567ecc34a0039e
model.safetensors549 MB9acacdb7c24a8eac0fc7c11b00c4a2e7986a49aacbd40c9b30ae12b2763ead19
modeling_hf_nomic_bert.py104 KB3b24a366c4cc31b869466ccfb7bbb8879e138c97f8de06c83d4fa1e31a21f149
pytorch_model.bin549 MBe0b1c7db843aeae0c744716acf3c7b7da60d142e7ca31edd11853f5b163c8776
special_tokens_map.json125 Bb6d346be366a7d1d48332dbc9fdf3bf8960b5d879522b7799ddba59e76237ee3
tokenizer.json711 KBd241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66
tokenizer_config.json1.19 KBd7e0000bcc80134debd2222220427e6bf5fa20a669f40a0d0d1409cc18e0a9bc
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
7710840340 pinned now manifest updated, same commit2026-11-14 21:10 UTC11 files · 1.10 GB
77108403402026-11-14 21:10 UTC11 files · 1.10 GB

Use it

$ fw get nomic-ai/nomic-bert-2048
# manifest sha256 9db6bb5eec26… · 1.10 GB · 11 files
$ fw verify ./nomic-bert-2048 nomic-ai/nomic-bert-2048
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/nomic-ai/nomic-bert-2048.json --dir ./nomic-bert-2048 $ python3 fw.py verify ./nomic-bert-2048 ./nomic-ai__nomic-bert-2048.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download nomic-ai/nomic-bert-2048 --revision 7710840340a098cfb869c4f65e87cf2b1b70caca --local-dir ./nomic-bert-2048

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-14
Text in
README.md
Text sha256
b4c606bbb0cb7f15b2efd3b819c17b6fddf11230e4e0f622bd0bed4114be4179
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: nomic-ai <huggingface.co/nomic-ai>Newsgroups: alt.freeweights.embedSubject: nomic-bert-2048Date: 2026-11-14Commit: 7710840Signed: 2DC28CC7B26A283B ✓
Upstream
nomic-ai/nomic-bert-2048
Pinned commit
7710840340a098cfb869c4f65e87cf2b1b70caca
Manifest
nomic-bert-2048.json · .minisig
Manifest sha256
9db6bb5eec26f3e785aea32ed01b3ae3925498cdb4dae4a2f89050a81e0079a2
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:10 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/nomic-ai/nomic-bert-2048.json $ curl -O https://freeweights.allternit.com/manifests/nomic-ai/nomic-bert-2048.json.minisig $ minisign -Vm nomic-bert-2048.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 nomic-ai/nomic-bert-2048
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. nomic-bert-2048.json. Provenance. Takedown history: none.
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