eulogik / nanowhale-100m-DIME

huggingface.co
Total runs: 18
24-hour runs: 0
7-day runs: 0
30-day runs: 4
Model's Last Updated: July 19 2026
text-generation

Introduction of nanowhale-100m-DIME

Model Details of nanowhale-100m-DIME

DIME logo

๐Ÿ‹ nanowhale-100m-DIME

Library: numpy License: Apache 2.0 Architecture: MoE+MLA Bit-exact: cos=1.000 Powered by DIME Org: eulogik

Pure-NumPy reference implementation of the DeepSeek-V4-Tiny architecture (MLA + Hyper-Connections + MoE).

Maintained by eulogik โ€” building DIME , the disk-streaming Mixture Engine for running 284B-class MoE models on 16 GB Macs.

No PyTorch. No GPU. No CUDA. Just numpy + safetensors . And it matches the official PyTorch reference exactly โ€” cosine similarity = 1.000 on logits, verified across 1โ€“9 tokens.

This is the reference engine behind DIME (Disk-streaming Mixture Engine) โ€” the runtime that runs 284B-class MoE models on a 16 GB Mac Mini by streaming experts from disk.

โšก Run a 110M-parameter MoE model in ~10 lines, in the browser, on a phone, or on a toaster. The weights are ~441 MB and load with zero ML frameworks.


๐Ÿš€ Quickstart
pip install numpy safetensors
from huggingface_hub import snapshot_download
from nanowhale_dime import NanowhaleDIME

model_dir = snapshot_download("cmpatino/nanowhale-100m")
model = NanowhaleDIME(model_dir)

print(model.generate("The future of efficient inference is", max_new_tokens=32))

Or just open the Colab notebook โ€” zero setup.


๐Ÿง  What's inside

nanowhale-100m is a 110M-parameter DeepSeek-V4-Tiny that distills the key ideas of DeepSeek-V4 into a tiny, hackable package:

Component Detail
Layers 8
Attention Multi-head Latent Attention (MLA) with RoPE
Experts 4 routed + 1 shared, top-2 routing
Hyper-Connections hc_mult=4 with Sinkhorn-iterating mixer
MTP Multi-Token Prediction head
Params ~110M (float32, ~441 MB safetensors)

All of it is reimplemented in readable NumPy in a single file ( nanowhale_dime.py ) that you can read end-to-end in one sitting. Great for learning how modern MoE + MLA models actually work under the hood.


โœ… Why "bit-exact"?

We compared our NumPy forward pass against the official PyTorch reference model on logits for sequences of length 1, 4, and 9 tokens:

tokens=1  cos=1.000
tokens=4  cos=1.000
tokens=9  cos=1.000

The implementation faithfully reproduces:

  • RMSNorm with the exact variance epsilon
  • MLA query/key de-rotation (inverse RoPE on attention output)
  • The Softplus + gate-bias router normalization
  • Hyper-Connection pre/post mixing with Sinkhorn-balanced combination matrix
  • Shared + routed expert summation with top-2 scaling

๐ŸŒŠ What is DIME?

DIME is an MoE inference runtime for Apple Silicon that breaks the "must fit in RAM" rule. It lazily loads expert weights from local or networked NVMe and keeps a frequency-promoted hot tier of the experts you actually use (the same trick ktransformers uses to run 236B models on consumer hardware).

nanowhale-100m-DIME is the fully self-contained, verified reference. Once the math is proven at 110M params, the same engine scales to DeepSeek-V4-Flash-class (284B) models โ€” streamed, not loaded.

Follow eulogik for the 284B-on-a-Mac-Mini release. ๐ŸŽ


๐Ÿ“Ž Original model

Weights and tokenizer are from cmpatino/nanowhale-100m . This repo contains only the NumPy inference engine + Colab + this card.


๐ŸŒŠ Maintained by eulogik

eulogik on HF DIME on GitHub Follow eulogik

We build DIME (Disk-streaming Mixture Engine) โ€” MoE inference for Apple Silicon that runs models far larger than RAM by streaming experts from disk. Follow @eulogik and star eulogik/dime for the 284B-on-a-Mac-Mini release. ๐ŸŽ

๐Ÿ“„ License

Apache-2.0 (weights inherit their original license).

Runs of eulogik nanowhale-100m-DIME on huggingface.co

18
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
4
30-day runs

More Information About nanowhale-100m-DIME huggingface.co Model

More nanowhale-100m-DIME license Visit here:

https://choosealicense.com/licenses/apache-2.0

nanowhale-100m-DIME huggingface.co

nanowhale-100m-DIME huggingface.co is an AI model on huggingface.co that provides nanowhale-100m-DIME's model effect (), which can be used instantly with this eulogik nanowhale-100m-DIME model. huggingface.co supports a free trial of the nanowhale-100m-DIME model, and also provides paid use of the nanowhale-100m-DIME. Support call nanowhale-100m-DIME model through api, including Node.js, Python, http.

nanowhale-100m-DIME huggingface.co Url

https://huggingface.co/eulogik/nanowhale-100m-DIME

eulogik nanowhale-100m-DIME online free

nanowhale-100m-DIME huggingface.co is an online trial and call api platform, which integrates nanowhale-100m-DIME's modeling effects, including api services, and provides a free online trial of nanowhale-100m-DIME, you can try nanowhale-100m-DIME online for free by clicking the link below.

eulogik nanowhale-100m-DIME online free url in huggingface.co:

https://huggingface.co/eulogik/nanowhale-100m-DIME

nanowhale-100m-DIME install

nanowhale-100m-DIME is an open source model from GitHub that offers a free installation service, and any user can find nanowhale-100m-DIME on GitHub to install. At the same time, huggingface.co provides the effect of nanowhale-100m-DIME install, users can directly use nanowhale-100m-DIME installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

nanowhale-100m-DIME install url in huggingface.co:

https://huggingface.co/eulogik/nanowhale-100m-DIME

Url of nanowhale-100m-DIME

nanowhale-100m-DIME huggingface.co Url

Provider of nanowhale-100m-DIME huggingface.co

eulogik
ORGANIZATIONS

Other API from eulogik

huggingface.co

Total runs: 388
Run Growth: 218
Growth Rate: 56.19%
Updated:October 01 2026
huggingface.co

Total runs: 336
Run Growth: 50
Growth Rate: 14.88%
Updated:October 05 2026
huggingface.co

Total runs: 216
Run Growth: 162
Growth Rate: 75.00%
Updated:September 29 2026
huggingface.co

Total runs: 107
Run Growth: 93
Growth Rate: 86.92%
Updated:September 29 2026
huggingface.co

Total runs: 61
Run Growth: 39
Growth Rate: 63.93%
Updated:September 26 2026
huggingface.co

Total runs: 9
Run Growth: 9
Growth Rate: 100.00%
Updated:October 06 2026