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

nanowhale-100m

Date: 2026-11-14Commit: 6a3bed5Signed: 2DC28CC7B26A283B ✓

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

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

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

Fine-tune of nanowhale-100m-base.

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.

Base model: HuggingFaceTB/nanowhale-100m-base

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 6a3bed5. Shown as plain text with links; images open at the publisher.

nanowhale-100m 🐳#

A small ~110M parameter language model implementing the DeepSeek-V4 architecture, fine-tuned for chat/instruction following. Trained from scratch — no weights from DeepSeek-V4 were used.

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)
MLAMulti-head Latent Attention with q_lora_rank=160
MoE4 routed experts + 1 shared, top-2 routing
Hyper-Connectionshc_mult=4, Sinkhorn routing (replacing residual connections)
MTP1 next-token prediction layer
Vocab129,280 (DeepSeek-V4 tokenizer)
Context2,048 tokens

Training#

Stage 1: Pretraining#
  • Dataset: HuggingFaceFW/fineweb-edu
  • Steps: 5,000 | Tokens: ~2.6B
  • Batch: 32 effective (8 × 4 GA) | Seq length: 2,048
  • LR: 6e-4, cosine, 3% warmup
  • Precision: bf16 mixed
Stage 2: SFT (this model)#
  • Dataset: HuggingFaceTB/smol-smoltalk (460K conversations)
  • Steps: 3,000 | Tokens: ~72.7M
  • Batch: 32 effective (8 × 4 GA) | Seq length: 2,048
  • LR: 2e-5, cosine, 5% warmup
  • Precision: fp32
Metrics#
MetricPretrainedSFT
Eval loss—2.607
Perplexity (held-out)13.6212.90
Token accuracy33.8%48.5%

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", 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", "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")

# Chat
messages = [{"role": "user", "content": "What are 3 benefits of exercise?"}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
input_ids = tokenizer.encode(prompt, return_tensors="pt").cuda()
output = model.generate(input_ids, max_new_tokens=200, temperature=0.7, top_p=0.9,
                        pad_token_id=tokenizer.eos_token_id)
print(tokenizer.decode(output[0][input_ids.shape[1]:], skip_special_tokens=True))

Limitations#

  • Tiny model: 110M params with 129K vocabulary — most capacity goes to embeddings. Generations are often incoherent or factually wrong.
  • Undertrained: Only 5K pretrain + 3K SFT steps. Production models train for 100K+ steps on trillions of tokens.
  • Educational purpose: This model demonstrates the DeepSeek-V4 architecture at small scale. It is not suitable for any production use.
  • bf16 NaN: Use fp32 — the Hyper-Connections architecture produces values that overflow bf16 range at this scale.
  • Custom code: Requires trust_remote_code=True.

Hardware#

Trained on 1× NVIDIA H100 80GB.

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.17 KB1ae8eb8e3cdcc3fa85339243b91206b3ffcc18090cbf31f6b86b7fddc4d1c031
chat_template.jinja1.10 KB5b36e3f50d9941012ae66d0496b8a76ac0401448ab7d3f6e4ed092547d052ed1
config.json1.52 KBdb983080add70846ba3818786d391fa27b25b1bb20fb94e1550807e1102790d8
configuration_deepseek_v4.py4.63 KBf9565745ab619710776b258e26b831adf826ada56d2d4d7796f25e4ec31c2e99
generation_config.json226 B5ed2a1791ec72bba9e09ae0acf838c5e6f0f721a86e000f2bef7e2d8149f29f9
model.safetensors442 MB21b28b6962110a16b4e46e4a8eff7ddf5ac3c6db701d73142667511fdb86c98e
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
6a3bed5ff8 pinned now manifest updated, same commit2026-11-14 21:11 UTC10 files · 452 MB
6a3bed5ff82026-11-14 21:11 UTC10 files · 452 MB

Use it

$ fw get HuggingFaceTB/nanowhale-100m
# manifest sha256 9f5d9bed76a1… · 452 MB · 10 files
$ fw verify ./nanowhale-100m HuggingFaceTB/nanowhale-100m
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.json --dir ./nanowhale-100m $ python3 fw.py verify ./nanowhale-100m ./HuggingFaceTB__nanowhale-100m.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/nanowhale-100m --revision 6a3bed5ff8f3ffa23238e146caa003191e6f3c0a --local-dir ./nanowhale-100m
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", revision="6a3bed5ff8f3ffa23238e146caa003191e6f3c0a") model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/nanowhale-100m", revision="6a3bed5ff8f3ffa23238e146caa003191e6f3c0a", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve HuggingFaceTB/nanowhale-100m --revision 6a3bed5ff8f3ffa23238e146caa003191e6f3c0a

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
1ae8eb8e3cdcc3fa85339243b91206b3ffcc18090cbf31f6b86b7fddc4d1c031
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-100mDate: 2026-11-14Commit: 6a3bed5Signed: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/nanowhale-100m
Pinned commit
6a3bed5ff8f3ffa23238e146caa003191e6f3c0a
Manifest
nanowhale-100m.json · .minisig
Manifest sha256
9f5d9bed76a1e0471e0a233af8e1288c09493d7c157031d6d60f3526d0a57c34
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.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/nanowhale-100m.json.minisig $ minisign -Vm nanowhale-100m.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

Parent

HuggingFaceTB/nanowhale-100m-base · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/nanowhale-100m
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.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