Hugging Face releases nanowhale, a 110M DeepSeek-V4-style model
In short
- At the end of April 2026, Hugging Face, under its HuggingFaceTB account, put two small models on its site: nanowhale-100m-base and a chat version, nanowhale-100m.
- Each has about 110 million parameters (Hugging Face counts 110,369,621 in the files). They copy the design of DeepSeek-V4, which the Chinese lab DeepSeek had released a week earlier at up to 1.6 trillion parameters.
- Hugging Face trained them from scratch. The card says "no weights from DeepSeek-V4 were used", only DeepSeek's tokeniser, the part that cuts text into pieces.
- The whole training run used one Nvidia H100 graphics card and about 2.6 billion words and word-pieces (tokens) of text, the card says.
- The point is teaching, not chatting. The card itself warns that the answers are "often incoherent or factually wrong" and that the model is "not suitable for any production use".
110M parameters, about 14,500 times fewer than DeepSeek-V4-Pro; 1 H100 GPU used for training; ~2.6B tokens of pre-training text; 12.90 perplexity of the chat model, Hugging Face's own measure
Why build such a small DeepSeek-style model?
The big open models of 2026 are hard to study from the inside. DeepSeek-V4-Pro, whose card lists 1.6 trillion parameters, 49 billion of them active per token, and pre-training on more than 32 trillion tokens, needs a data centre to train and a rack of GPUs to run.
nanowhale shrinks the same blueprint until it fits on one card. The training code is public, with configuration files, a pre-training script and a fine-tuning script, so a student or researcher can rerun the whole thing, change one part and see what happens (our reading of what the repository offers; Hugging Face published no blog post explaining its aims). The modelling file says it was "ported from" DeepSeek-V4-Pro's own inference code and rewritten in plain PyTorch, so it runs without DeepSeek's custom GPU kernels.
What is inside
The card lists four DeepSeek-V4 ideas rebuilt at small scale. In plain words (our explanations):
- Mixture of experts. Instead of one big block of arithmetic in each layer, the model has several smaller blocks, the "experts", and a small router that picks which ones handle each token. nanowhale has 4 routed experts and 1 shared expert that is always on; the router switches on 2 of the 4 for every token.
- Multi-head latent attention. Attention is how a model looks back over earlier text. This version squeezes what it stores into a smaller, compressed form, which saves memory on long texts.
- Hyper-connections. Normally each layer's output is simply added to its input, a "residual connection". Here the model keeps 4 parallel copies of its working state and learns how to mix them between layers. DeepSeek calls its version manifold-constrained hyper-connections (mHC).
- Multi-token prediction. A small extra layer that learns to guess one token further ahead. The card lists one such layer (see "Not quite matching" below).
One quirk follows from the miniature scale: DeepSeek's vocabulary is so large that the word table alone takes about 37% of the model, the GitHub README says, leaving little room for the part that does the thinking.
How it was trained
Training came in two stages, both on one Nvidia H100 with 80 GB of memory, according to the cards.
- Pre-training: 5,000 steps over FineWeb-Edu, Hugging Face's collection of educational web pages, about 2.6 billion tokens in all. This produced the base model, which only continues text.
- Fine-tuning for chat: 3,000 more steps on smol-smoltalk, a set of 460,000 example conversations, about 72.7 million tokens. This produced nanowhale-100m.
How well it works
All numbers are Hugging Face's own; its README says perplexity was measured on held-out English text and does not say what that text was. No one else has published a test of the model that we found.
Perplexity is roughly how many choices the model is torn between when it guesses the next token, so lower is better (our explanation). Token accuracy is how often its top guess is the right next token. They are training-health checks; the card reports no reasoning or knowledge tests.
This is a demonstration model. Its own card calls it "undertrained" and says its answers are often incoherent or wrong. It also needs 32-bit numbers: in the more common 16-bit format (bf16) the hyper-connections produce values too big to store, and the model breaks.
Is nanowhale open source?
Both models' weights can be downloaded from Hugging Face without an access form, under the Apache 2.0 licence. In plain words (our reading), that lets anyone use, change, fine-tune and redistribute the model, also commercially, as long as the licence and copyright notices go with it. The training code on GitHub is marked MIT in its README, an even shorter permissive licence. DeepSeek-V4 itself is released under MIT, its card says.
Loading it takes one extra step: the architecture is not yet part of the standard Transformers library, so the model needs trust_remote_code=True, which runs the modelling file shipped with the weights.
The upload history shows how fast it followed DeepSeek:
22 Apr 2026: DeepSeek's V4-Pro and V4-Flash repositories appear on Hugging Face. 24 Apr 2026: The two nanowhale repositories are created, still empty. 30 Apr 2026: The base and chat weights and their model cards are uploaded. 4 May 2026: The cards are corrected to point to the HuggingFaceTB copies and get their metadata.
Not quite matching
- Multi-token prediction. The card lists "1 next-token prediction layer" and the config file sets one. But the header of the modelling file published with the weights says multi-token prediction is "disabled for small models", and we found no code for it in that file; the model trains on ordinary next-token loss.
- Attention. DeepSeek-V4's headline idea is a compressed, sparse attention for million-token texts. The modelling file names "Compressed Sparse Attention (CSA) with sliding window" in its header, but the attention it runs is ordinary full attention over the 2,048-token context, and the config sets every compression ratio to zero.
- Token count. The pre-training batch the card gives, 32 sequences of 2,048 tokens, over 5,000 steps comes to about 330 million tokens (our arithmetic), not the 2.6 billion the card states. The card does not explain the gap.
- Loss and perplexity. The base card gives a final training loss of "~5.3" alongside a held-out perplexity of 13.62; a loss of 5.3 would match a perplexity near 200 if both were measured the same way (our arithmetic), and the cards do not say how either was computed.
Sources
- nanowhale-100m, chat model card, configuration, files and modelling code, Hugging Face (HuggingFaceTB)
- nanowhale-100m-base, base model card and files, Hugging Face (HuggingFaceTB)
- huggingface/nanowhale, training code and README, GitHub
- DeepSeek-V4-Pro, model card, Hugging Face (deepseek-ai)
Sources
- HuggingFaceTB/nanowhale-100m model card
- HuggingFaceTB/nanowhale-100m-base
- huggingface/nanowhale training code
- DeepSeek-V4-Pro model card
- https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu
- https://huggingface.co/datasets/HuggingFaceTB/smol-smoltalk
Related stories
- Alibaba's Qwen releases open Qwen4-35B-A3B with 3B active
- Ai2 releases Molmo 3, an open model that judges depth in photos
- MiniMax releases M4, a 2.74T-parameter model; weights to follow
- Recension releases Coatl-1, an open model for DNA, proteins and text
- Google DeepMind releases CellGemma, an open cell-response model
- Hugging Face's 2026 releases are mostly open tools, no flagship model
More from Open Models
- Tilde's open 30B European-language model gets a long-context version
- PrismML releases Ternary Bonsai, small open ternary models
- Cloudflare says it cut time per token on huge open AI models
- PrismML releases 1-bit Bonsai 8B, an open language model
- Krutrim's two Indic OCR models bar commercial use without a deal