alt.freeweights.vision / mobilebert-uncased-squad-v2
From: csarron <huggingface.co/csarron>Newsgroups: alt.freeweights.visionSubject:

mobilebert-uncased-squad-v2

Date: 2026-11-15Commit: 6d49c30Signed: 2DC28CC7B26A283B ✓

Question answering model with 25M parameters. Onnx and safetensors weights, 296 MB in all. Published by csarron under MIT.

25M params296MBmobilebert-uncased-squad-v2onnx safetensorspermissive
FactsParams25MSize296 MBFormatsonnx, safetensorsTaskquestion answeringLicenseMITFrom sourcepermissive
$ fw get csarron/mobilebert-uncased-squad-v2
# manifest sha256 9cf0b69ae5af… · 296 MB · 10 files
$ fw verify ./mobilebert-uncased-squad-v2 csarron/mobilebert-uncased-squad-v2
From sourceHosted (signed)csarron/mobilebert-uncased-squad-v2Last check: 2026-11-15 02:40 UTC

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

Works with

Overview

Size
296 MB
Weights
98.5 MB (safetensors)
Parameters
25M
Formats
onnx, safetensors
Task
question answering
License
MIT (permissive)
Files
10, each with a sha256
Publisher
csarron
Added
2026-11-15
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-15 02:40 UTCpassed

Model card

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

MobileBERT fine-tuned on SQuAD v2#

MobileBERT is a thin version of BERT_LARGE, while equipped with bottleneck structures and a carefully designed balance between self-attentions and feed-forward networks.

This model was fine-tuned from the HuggingFace checkpoint google/mobilebert-uncased on SQuAD2.0.

Details#

DatasetSplit# samples
SQuAD2.0train130k
SQuAD2.0eval12.3k
Fine-tuning#
  • Python: 3.7.5
  • Machine specs: CPU: Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz Memory: 32 GiB GPUs: 2 GeForce GTX 1070, each with 8GiB memory GPU driver: 418.87.01, CUDA: 10.1
  • script:
  # after install https://github.com/huggingface/transformers

  cd examples/question-answering
  mkdir -p data

  wget -O data/train-v2.0.json https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v2.0.json

  wget -O data/dev-v2.0.json  https://rajpurkar.github.io/SQuAD-explorer/dataset/dev-v2.0.json

  export SQUAD_DIR=`pwd`/data

  python run_squad.py \
    --model_type mobilebert \
    --model_name_or_path google/mobilebert-uncased \
    --do_train \
    --do_eval \
    --do_lower_case \
    --version_2_with_negative \
    --train_file $SQUAD_DIR/train-v2.0.json \
    --predict_file $SQUAD_DIR/dev-v2.0.json \
    --per_gpu_train_batch_size 16 \
    --per_gpu_eval_batch_size 16 \
    --learning_rate 4e-5 \
    --num_train_epochs 5.0 \
    --max_seq_length 320 \
    --doc_stride 128 \
    --warmup_steps 1400 \
    --save_steps 2000 \
    --output_dir $SQUAD_DIR/mobilebert-uncased-warmup-squad_v2 2>&1 | tee train-mobilebert-warmup-squad_v2.log

It took about 3.5 hours to finish.

Results#

Model size: 95M

Metric# Value# Original (Table 5)
EM75.276.2
F178.879.2

Note that the above results didn't involve any hyperparameter search.

Example Usage#

from transformers import pipeline

qa_pipeline = pipeline(
    "question-answering",
    model="csarron/mobilebert-uncased-squad-v2",
    tokenizer="csarron/mobilebert-uncased-squad-v2"
)

predictions = qa_pipeline({
    'context': "The game was played on February 7, 2016 at Levi's Stadium in the San Francisco Bay Area at Santa Clara, California.",
    'question': "What day was the game played on?"
})

print(predictions)
# output:
# {'score': 0.71434086561203, 'start': 23, 'end': 39, 'answer': 'February 7, 2016'}

Created by Qingqing Cao | GitHub | Twitter

Made with ❤️ in New York.

Files

10 files · 296 MBWeights 98.5 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes399 Ba368a21c472071feec9095f63d5f7d3433826c1c476a6995f072b6755ccc6f59
README.md5.24 KB415ca18ae8e1d992e6d9c1b74e944c0774348af74b46bd8287a162c93c05820c
config.json765 B3ac196c44711dc206bd7d21704cc5753c95018b9d8d4aefb1d2c3b0e413b0ad1
model.onnx99.0 MB545d75decc2b153877571d3857845a9a7cc3be4ed8e8976cf4eb2c51c1751ffb
model.safetensors98.5 MB5a9adc5001ddb8b9760606c20ac9bb2109e1eb292a3d914c9816235daa218269
pytorch_model.bin98.6 MB226fbd74da60509880994c22d927f06f4e620f674fdf436211ad6902f01de7fb
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tokenizer_config.json85 Bb13116b0941ee0b93b1b2d75c3dd87e9e4897e4a21e737c06ca1e94a78dddd6e
training_args.bin1.68 KBb27e5e03c784063ec2616a4a8e24ecf4a025831374da352c982b138ec77e6459
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
6d49c30d06 pinned now2026-11-15 02:40 UTC10 files · 296 MB

Use it

$ fw get csarron/mobilebert-uncased-squad-v2
# manifest sha256 9cf0b69ae5af… · 296 MB · 10 files
$ fw verify ./mobilebert-uncased-squad-v2 csarron/mobilebert-uncased-squad-v2
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/csarron/mobilebert-uncased-squad-v2.json --dir ./mobilebert-uncased-squad-v2 $ python3 fw.py verify ./mobilebert-uncased-squad-v2 ./csarron__mobilebert-uncased-squad-v2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download csarron/mobilebert-uncased-squad-v2 --revision 6d49c30d06c6042041039f6fe076b011f0c2053c --local-dir ./mobilebert-uncased-squad-v2

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
415ca18ae8e1d992e6d9c1b74e944c0774348af74b46bd8287a162c93c05820c
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: csarron <huggingface.co/csarron>Newsgroups: alt.freeweights.visionSubject: mobilebert-uncased-squad-v2Date: 2026-11-15Commit: 6d49c30Signed: 2DC28CC7B26A283B ✓
Upstream
csarron/mobilebert-uncased-squad-v2
Pinned commit
6d49c30d06c6042041039f6fe076b011f0c2053c
Manifest
mobilebert-uncased-squad-v2.json · .minisig
Manifest sha256
9cf0b69ae5afaceaa6cf9e94885dda4218b66529f76736f6f202a95e90b5d61b
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:40 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/csarron/mobilebert-uncased-squad-v2.json $ curl -O https://freeweights.allternit.com/manifests/csarron/mobilebert-uncased-squad-v2.json.minisig $ minisign -Vm mobilebert-uncased-squad-v2.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
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download csarron/mobilebert-uncased-squad-v2
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. mobilebert-uncased-squad-v2.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of mobilebert-uncased-squad-v2. Each has its own license check and page.

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