alt.freeweights.smollm / nanowhale-100m-base
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject:

nanowhale-100m-base

Date: 2026-11-14Commit: 8ea74ccSigned: 2DC28CC7B26A283B ✓

Text generation model with 110M parameters. Safetensors weights, 452 MB in all. Published by HuggingFaceTB under Apache-2.0.

110M params452MBnanowhale-100m-basesafetensorspermissive
FactsParams110MSize452 MBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get HuggingFaceTB/nanowhale-100m-base
# manifest sha256 99bf27a8492a… · 452 MB · 10 files
$ fw verify ./nanowhale-100m-base HuggingFaceTB/nanowhale-100m-base
From sourceHosted (signed)HuggingFaceTB/nanowhale-100m-baseLast check: 2026-11-14 21:11 UTC

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

Works with

Overview

Size
452 MB
Weights
442 MB (safetensors)
Parameters
110M
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
10, each with a sha256
Publisher
HuggingFaceTB
Added
2026-11-14
Section
alt.freeweights.smollm
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:11 UTCpassed

Model card

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

nanowhale-100m-base 🐳#

A small ~110M parameter language model implementing the DeepSeek-V4 architecture from scratch. This is the pretrained base model — see HuggingFaceTB/nanowhale-100m for the SFT/chat version.

Training code: github.com/huggingface/nanowhale

Architecture#

This model implements key DeepSeek-V4 innovations at a miniature scale:

ComponentDetails
Parameters~110M total (41M embeddings, 69M non-embedding)
Hidden size320
Layers8
Attention heads8 (1 KV head — MQA-style)
Head dim96 (32 RoPE + 64 NoPE)
MLAq_lora_rank=160, o_groups=2, o_lora_rank=80
MoE4 routed experts + 1 shared, top-2 routing
Expert FFNSwiGLU, intermediate_size=640
Routingsqrtsoftplus scoring, noaux_tc method
Hyper-Connectionshc_mult=4, Sinkhorn routing (2 iters)
MTP1 next-token prediction layer
Vocab129,280 (DeepSeek-V4 tokenizer)
Context2,048 tokens
DeepSeek-V4 Features Implemented#
  • Multi-head Latent Attention (MLA): Compressed KV cache via latent projections
  • Mixture of Experts (MoE): Sparse activation — only 2 of 4 experts per token
  • Hyper-Connections: Multi-copy hidden states with learned Sinkhorn routing replacing residual connections
  • SwiGLU FFN with configurable limit
  • Grouped output projection (o_groups)

Training#

  • Dataset: HuggingFaceFW/fineweb-edu (streaming)
  • Steps: 5,000
  • Tokens seen: ~2.6B
  • Batch size: 8 × 4 gradient accumulation = 32 effective
  • Sequence length: 2,048
  • Learning rate: 6e-4, cosine schedule, 3% warmup
  • Optimizer: AdamW (β1=0.9, β2=0.95, weight_decay=0.1)
  • Precision: bf16 mixed precision
  • Hardware: 1× NVIDIA H100 80GB
Training Metrics#
MetricValue
Final loss~5.3 (cross-entropy)
Final entropy3.77
Token accuracy33.8%

Usage#

import torch
from safetensors.torch import load_file
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
from huggingface_hub import hf_hub_download

# Load model (recommended: manual load for reliability)
config = AutoConfig.from_pretrained("HuggingFaceTB/nanowhale-100m-base", trust_remote_code=True)
model = AutoModelForCausalLM.from_config(config, trust_remote_code=True).float()

# Download and load weights
weights_path = hf_hub_download("HuggingFaceTB/nanowhale-100m-base", "model.safetensors")
state_dict = load_file(weights_path)
model.load_state_dict(state_dict, strict=True)
model = model.cuda().eval()

tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/nanowhale-100m-base")

# Generate
input_ids = tokenizer.encode("The meaning of life is", return_tensors="pt").cuda()
output = model.generate(input_ids, max_new_tokens=100, temperature=0.7, top_p=0.9,
                        pad_token_id=tokenizer.eos_token_id)
print(tokenizer.decode(output[0], skip_special_tokens=True))

Limitations#

  • Small model: 110M params with 129K vocab means ~37% of parameters are in embeddings, limiting model capacity
  • Limited training: Only 5K steps / 2.6B tokens — significantly undertrained compared to production models
  • Pretrained only: This is a base model without instruction tuning. Outputs are language-model completions, not conversations.
  • bf16 NaN: Use fp32 — the Hyper-Connections architecture produces values that overflow bf16 range at this scale.
  • Custom architecture: Requires trust_remote_code=True

License#

Apache-2.0

Files

10 files · 452 MBWeights 442 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md4.00 KB029fe9027b029b2be8556fd2c26188f5a60407bbfe25b34230db4022f783f764
chat_template.jinja1.10 KB5b36e3f50d9941012ae66d0496b8a76ac0401448ab7d3f6e4ed092547d052ed1
config.json1.52 KBdb983080add70846ba3818786d391fa27b25b1bb20fb94e1550807e1102790d8
configuration_deepseek_v4.py4.63 KBf9565745ab619710776b258e26b831adf826ada56d2d4d7796f25e4ec31c2e99
generation_config.json225 B714f1ff3079f0305d4ae98c3273b61e0a728c9c8d45e58d6c2b5d323cc504327
model.safetensors442 MB50b1afd7059d1f1e0be6513ebbb88030deb1de10d200f392c7b736d37f2fb532
modeling_deepseek_v4.py28.8 KBffad5944f427d6241b619a14f49cdde5a7c081f00ab08bb05fbdffe6646c1d1a
tokenizer.json10.1 MB8421075aceec0741baf15179b6c337f443f9029e53ea88d8c1e909dd0d69b70b
tokenizer_config.json316 Bf829b42325608e714d58da87aa1f5ebf9cc82e3dd6a93eb8811a13d9d03e5a12
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
8ea74cc04b pinned now manifest updated, same commit2026-11-14 21:11 UTC10 files · 452 MB
8ea74cc04b2026-11-14 21:11 UTC10 files · 452 MB

Use it

$ fw get HuggingFaceTB/nanowhale-100m-base
# manifest sha256 99bf27a8492a… · 452 MB · 10 files
$ fw verify ./nanowhale-100m-base HuggingFaceTB/nanowhale-100m-base
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/HuggingFaceTB/nanowhale-100m-base.json --dir ./nanowhale-100m-base $ python3 fw.py verify ./nanowhale-100m-base ./HuggingFaceTB__nanowhale-100m-base.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/nanowhale-100m-base --revision 8ea74cc04bebfe7feeec74b29018884eec0265d3 --local-dir ./nanowhale-100m-base
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("HuggingFaceTB/nanowhale-100m-base", revision="8ea74cc04bebfe7feeec74b29018884eec0265d3") model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/nanowhale-100m-base", revision="8ea74cc04bebfe7feeec74b29018884eec0265d3", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve HuggingFaceTB/nanowhale-100m-base --revision 8ea74cc04bebfe7feeec74b29018884eec0265d3

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
029fe9027b029b2be8556fd2c26188f5a60407bbfe25b34230db4022f783f764
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: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject: nanowhale-100m-baseDate: 2026-11-14Commit: 8ea74ccSigned: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/nanowhale-100m-base
Pinned commit
8ea74cc04bebfe7feeec74b29018884eec0265d3
Manifest
nanowhale-100m-base.json · .minisig
Manifest sha256
99bf27a8492aa3107e2d2b978f1e4455e9571ac81ca0342a2d1ef810998eba55
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:11 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/nanowhale-100m-base.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/nanowhale-100m-base.json.minisig $ minisign -Vm nanowhale-100m-base.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.

Fine-tunes
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/nanowhale-100m-base
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. nanowhale-100m-base.json. Provenance. Takedown history: none.
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Subject: 135M-lc-100k-rope-12B
From: nisten <huggingface.co/nisten>Subject: Biggie-SmoLlm-0.4B
From: onnx-community <huggingface.co/onnx-community>Subject: Biggie-SmoLlm-0.4B-ONNX
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-bnb-4bit
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-Instruct
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-135M-bnb-4bit