Amazon Ergo Model Has One Expert That Does Maths

Amazon Ergo model expert routing analysis showing a dedicated maths expert

One expert inside the Amazon Ergo model does maths, and it doesn’t care how the maths is written. Expert 179 in layer 11 took 84% of the tokens in ten identities written in LaTeX, 78% when the same identities were spelled out in words, and 83% when they were written as Python.

The finding comes from logging the model’s router on a rented GPU, something that is possible only because Ergo’s weights are open.

What Ergo is

Ergo is an open-weights mixture-of-experts model with 1.1 trillion parameters across 64 layers. Jeff Bezos announced it on 1 December and said it can be fine-tuned, modified and built into commercial products, on a user’s own hardware or on Amazon Bedrock.

Every layer after the first holds 256 small feed-forward networks, called experts, plus a router. For each token the router picks 8 of the 256, and one shared expert handles every token. About 55 billion parameters work on any single token. Ergo’s configuration names deepseek as its load-balancing strategy, and the fine-grained design follows DeepSeekMoE.

Bedrock returns only the model’s answers. With the weights on your own GPU you can also see which experts each token used.

amd-smi static output for one AMD Instinct MI350X with 288 GB of HBM3E
Image: Siddhant Khare

Why it was an open question

No one assigns subjects to experts. The router drifts toward whatever division reduces training loss, so a clean split by topic is far from guaranteed. Mistral’s own look at Mixtral, which has 8 big experts per layer and uses 2 per token, turned up no clear topic patterns. Its authors said expert choice tracked syntax more than subject area.

Models with many small experts do show sharper specialists. The OLMoE paper reported a layer 0 expert that absorbs nearly every arXiv token. Since arXiv text is LaTeX, that expert could encode science or merely react to backslashes, and a topic chart can’t tell which.

Preflight output: total VRAM 309 GB fails against the 700 GB the full model needs; bf16 matmul runs at 1,138 TFLOP/s
Image: Siddhant Khare

How the test ran on one GPU

The full model is a 626 GB download with experts in 4-bit MXFP4, and serving it wants roughly 700 GB of GPU memory. A single AMD Instinct MI350X holds 288 GB. Routing at any layer depends only on earlier layers, so the first 16 layers (160 GB) make identical expert choices to the complete 64-layer model.

No Ergo serving stack targeted AMD’s ROCm, so a small PyTorch runtime was written that keeps experts packed and unpacks only the ones a token routes to. Dequantised weights match a fp32 reference bit for bit, and the MoE output is within 0.35%. The GPU time cost about $12.

Selftest output on two layers: MXFP4 dequantisation exact for experts 0, 17 and 255; the MoE layer matches an fp32 reference with relative error 0.0035
Image: Siddhant Khare

What the experts do

The test fed 2,048 tokens from each of seven sources through the model, including Wikipedia’s Moon article in English, Hindi, Japanese and Chinese, Python code, LaTeX maths and JSON tool calls. Expert 179 took 87% of the maths tokens and at most 0.5% of anything else. Other results:

  • Expert 121 in layer 6 took 90% of the Python.
  • Expert 56 in layer 8 took 68% of the Hindi and under 1% of the rest.
  • Expert 196 in layer 14 took 60% of the JSON.

To rule out a notation detector, the same ten identities were written in LaTeX, Unicode, English and Python. A LaTeX document with no maths in it sent only 3% of tokens to expert 179, about what random routing would give. In the English version it skipped filler words and fired on terms such as integral, minus, squared and pi.

Early layers read symbols, later layers read meaning

Experts 197 in layer 4 and 218 in layer 7 also lean towards maths and fire on 79% to 90% of LaTeX and Unicode forms. In words or Python, the layer 4 expert falls to about a third and the layer 7 expert to under half. The layer 11 expert barely moves. Across the model, expert choices for the seven sources look alike in early layers and diverge from layer 9, most widely at layer 15.

Hindi behaved the same way. Expert 56 took 62% of a Devanagari paragraph and 68% of the same text in Latin letters. It took 7% of Marathi, which shares the alphabet, and 75% of Nepali, which is closer in vocabulary. So it follows the language, not the script.

The Hindi tax and what comes next

One Moon paragraph takes 66 tokens in English and 101 in Hindi. That means 53% higher cost per sentence, 53% longer streaming time and 35% less material fitting in a context window for Hindi speakers. Chinese needs the same count as English.

Only 16 layers were checked, so the picture of deeper layers is still open. Open weights make the follow-up easy for anyone with a single large GPU.

Source: Siddhant Khare

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.