alt.freeweights.text / bert_uncased_L-2_H-128_A-2
From: google <huggingface.co/google>Newsgroups: alt.freeweights.textSubject:

bert_uncased_L-2_H-128_A-2

Date: 2026-11-15Commit: 30b0a37Signed: 2DC28CC7B26A283B ✓

Model with 4M parameters. Safetensors weights, 53.3 MB in all. Published by google under Apache-2.0.

4M params53.3MBbert_uncased_L-2_H-128_A-2safetensorspermissive
FactsParams4MSize53.3 MBFormatssafetensorsTasknot taggedLicenseApache-2.0From sourcepermissive
$ fw get google/bert_uncased_L-2_H-128_A-2
# manifest sha256 34e369196dc4… · 53.3 MB · 7 files
$ fw verify ./bert_uncased_L-2_H-128_A-2 google/bert_uncased_L-2_H-128_A-2
From sourceHosted (signed)google/bert_uncased_L-2_H-128_A-2Last check: 2026-11-15 02:28 UTC

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

Overview

Size
53.3 MB
Weights
17.7 MB (safetensors)
Parameters
4M
Formats
safetensors
Task
not tagged
License
Apache-2.0 (permissive)
Files
7, each with a sha256
Publisher
google
Added
2026-11-15
Section
alt.freeweights.text
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:28 UTCpassed

Model card

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

BERT Miniatures ===

This is the set of 24 BERT models referenced in Well-Read Students Learn Better: On the Importance of Pre-training Compact Models (English only, uncased, trained with WordPiece masking).

We have shown that the standard BERT recipe (including model architecture and training objective) is effective on a wide range of model sizes, beyond BERT-Base and BERT-Large. The smaller BERT models are intended for environments with restricted computational resources. They can be fine-tuned in the same manner as the original BERT models. However, they are most effective in the context of knowledge distillation, where the fine-tuning labels are produced by a larger and more accurate teacher.

Our goal is to enable research in institutions with fewer computational resources and encourage the community to seek directions of innovation alternative to increasing model capacity.

You can download the 24 BERT miniatures either from the official BERT Github page, or via HuggingFace from the links below:

H=128H=256H=512H=768
L=2[2/128 (BERT-Tiny)][2_128][2/256][2_256][2/512][2_512][2/768][2_768]
L=4[4/128][4_128][4/256 (BERT-Mini)][4_256][4/512 (BERT-Small)][4_512][4/768][4_768]
L=6[6/128][6_128][6/256][6_256][6/512][6_512][6/768][6_768]
L=8[8/128][8_128][8/256][8_256][8/512 (BERT-Medium)][8_512][8/768][8_768]
L=10[10/128][10_128][10/256][10_256][10/512][10_512][10/768][10_768]
L=12[12/128][12_128][12/256][12_256][12/512][12_512][12/768 (BERT-Base)][12_768]

Note that the BERT-Base model in this release is included for completeness only; it was re-trained under the same regime as the original model.

Here are the corresponding GLUE scores on the test set:

ModelScoreCoLASST-2MRPCSTS-BQQPMNLI-mMNLI-mmQNLI(v2)RTEWNLIAX
BERT-Tiny64.20.083.281.1/71.174.3/73.662.2/83.470.270.381.557.262.321.0
BERT-Mini65.80.085.981.1/71.875.4/73.366.4/86.274.874.384.157.962.326.1
BERT-Small71.227.889.783.4/76.278.8/77.068.1/87.077.677.086.461.862.328.6
BERT-Medium73.538.089.686.6/81.680.4/78.469.6/87.980.079.187.762.262.330.5

For each task, we selected the best fine-tuning hyperparameters from the lists below, and trained for 4 epochs:

  • batch sizes: 8, 16, 32, 64, 128
  • learning rates: 3e-4, 1e-4, 5e-5, 3e-5

If you use these models, please cite the following paper:

@article{turc2019,
  title={Well-Read Students Learn Better: On the Importance of Pre-training Compact Models},
  author={Turc, Iulia and Chang, Ming-Wei and Lee, Kenton and Toutanova, Kristina},
  journal={arXiv preprint arXiv:1908.08962v2 },
  year={2019}
}

[2_128]: https://huggingface.co/google/bert_uncased_L-2_H-128_A-2 [2_256]: https://huggingface.co/google/bert_uncased_L-2_H-256_A-4 [2_512]: https://huggingface.co/google/bert_uncased_L-2_H-512_A-8 [2_768]: https://huggingface.co/google/bert_uncased_L-2_H-768_A-12 [4_128]: https://huggingface.co/google/bert_uncased_L-4_H-128_A-2 [4_256]: https://huggingface.co/google/bert_uncased_L-4_H-256_A-4 [4_512]: https://huggingface.co/google/bert_uncased_L-4_H-512_A-8 [4_768]: https://huggingface.co/google/bert_uncased_L-4_H-768_A-12 [6_128]: https://huggingface.co/google/bert_uncased_L-6_H-128_A-2 [6_256]: https://huggingface.co/google/bert_uncased_L-6_H-256_A-4 [6_512]: https://huggingface.co/google/bert_uncased_L-6_H-512_A-8 [6_768]: https://huggingface.co/google/bert_uncased_L-6_H-768_A-12 [8_128]: https://huggingface.co/google/bert_uncased_L-8_H-128_A-2 [8_256]: https://huggingface.co/google/bert_uncased_L-8_H-256_A-4 [8_512]: https://huggingface.co/google/bert_uncased_L-8_H-512_A-8 [8_768]: https://huggingface.co/google/bert_uncased_L-8_H-768_A-12 [10_128]: https://huggingface.co/google/bert_uncased_L-10_H-128_A-2 [10_256]: https://huggingface.co/google/bert_uncased_L-10_H-256_A-4 [10_512]: https://huggingface.co/google/bert_uncased_L-10_H-512_A-8 [10_768]: https://huggingface.co/google/bert_uncased_L-10_H-768_A-12 [12_128]: https://huggingface.co/google/bert_uncased_L-12_H-128_A-2 [12_256]: https://huggingface.co/google/bert_uncased_L-12_H-256_A-4 [12_512]: https://huggingface.co/google/bert_uncased_L-12_H-512_A-8 [12_768]: https://huggingface.co/google/bert_uncased_L-12_H-768_A-12

Files

7 files · 53.3 MBWeights 17.7 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 7 files with their sha256
FileSizesha256
.gitattributes445 B98c91dabef4df27b2fc7c8454d220aba47476f73593cbd034d961fe4927304c1
README.md4.62 KBd13a54d652a2a54fbbc50e063b465fb273295870867821e1b06baba1d49d68a9
config.json382 B508e1f01aae55d73355cbdd82609be2f43ba5a0d3428837adbe56cf8391f8b39
flax_model.msgpack17.5 MBd1f885a549870769ba8b61c96b051ed6a98b68573062f03fd806fcaa9712eeb4
model.safetensors17.7 MB7fb69ad9f6866d8983183c930e33828f326470bf6ad8bbb2ad4ed957a92e9414
pytorch_model.bin17.7 MBdd152f8450c0579bd271ac0ccb4a88fa4f6a67d8035b7799dbf3a0fb7156d9d0
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
30b0a37cca pinned now2026-11-15 02:28 UTC7 files · 53.3 MB

Use it

$ fw get google/bert_uncased_L-2_H-128_A-2
# manifest sha256 34e369196dc4… · 53.3 MB · 7 files
$ fw verify ./bert_uncased_L-2_H-128_A-2 google/bert_uncased_L-2_H-128_A-2
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/google/bert_uncased_L-2_H-128_A-2.json --dir ./bert_uncased_L-2_H-128_A-2 $ python3 fw.py verify ./bert_uncased_L-2_H-128_A-2 ./google__bert_uncased_L-2_H-128_A-2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download google/bert_uncased_L-2_H-128_A-2 --revision 30b0a37ccaaa32f332884b96992754e246e48c5f --local-dir ./bert_uncased_L-2_H-128_A-2

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
d13a54d652a2a54fbbc50e063b465fb273295870867821e1b06baba1d49d68a9
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: google <huggingface.co/google>Newsgroups: alt.freeweights.textSubject: bert_uncased_L-2_H-128_A-2Date: 2026-11-15Commit: 30b0a37Signed: 2DC28CC7B26A283B ✓
Upstream
google/bert_uncased_L-2_H-128_A-2
Pinned commit
30b0a37ccaaa32f332884b96992754e246e48c5f
Manifest
bert_uncased_L-2_H-128_A-2.json · .minisig
Manifest sha256
34e369196dc4ed02c3f4e18e55dc59b2eb7fde425d1945e661dd1ca1592da175
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:28 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/google/bert_uncased_L-2_H-128_A-2.json $ curl -O https://freeweights.allternit.com/manifests/google/bert_uncased_L-2_H-128_A-2.json.minisig $ minisign -Vm bert_uncased_L-2_H-128_A-2.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 google/bert_uncased_L-2_H-128_A-2
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. bert_uncased_L-2_H-128_A-2.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B