large agent model
Allosaurus v0.2
Qwen3.8-Flash-Next on a 48 GB Mac
Qwen's 125B Qwen3.8-Flash-Next, compressed to fit a 48 GB Mac. About 27 GiB in memory, with its 54 GiB lookup table on the SSD. 93% correct on everyday tasks, and tool-calling turns up to 36% faster with speculative decoding.
125B
Parameters, 6.7B active
27 GiB
In memory
48 GB
Minimum Mac memory
56 tokens/s
Speed, M5 Max
Allosaurus v0.2 is Qwen's Qwen3.8-Flash-Next, a 125-billion-parameter AI model, compressed so it fits on a Mac with 48 GB of memory. We did not retrain it or change what it knows. We changed how it is stored and loaded.
In plain terms:
- It runs well on a 48 GB Mac, and 48 GB is the minimum. About 27 GiB of the model sits in memory. Our earlier build, Allosaurus v0.1, needs 35 GiB, which is more than a 48 GB Mac can set aside for the GPU, so it slows down sharply there. v0.2 fits, with conversations of up to 32,000 tokens and speculative decoding on.
- It handles everyday work. On our everyday-task set (finance, reasoning, coding, terminal and tool calls), 93% of its answers were correct at the default settings, with no loops.
- It is quicker with tools. A small built-in helper guesses ahead, which made tool-calling turns 27 to 36% faster.
- It reads text only. Unlike v0.1, it does not read images or video.
- It is the smaller model, not the better one. It agrees with the original model's next word 75% of the time, against 81% for v0.1. If your Mac has 64 GB or more, use v0.1.
The rest of this page explains how we did it. Each section opens with a short summary in plain language, and there is a glossary at the end for the technical terms.
Should you download it?
In short: If you have a 48 GB Mac and want a large model for coding, agent work and reasoning, this is the one. With 64 GB or more, or if you need images, use v0.1.
Allosaurus v0.2 is for Macs with 48 GB of memory and for work that benefits from a large model: coding, agent tasks that use tools, security work, and reasoning through problems step by step. 48 GB is the floor: it runs well on a 48 GB Mac, and it will not fit on one with less.
You need Osaurus 0.25.24 or newer. The download is about 86 GB. That is much larger than the 27 GiB it uses in memory, because one big part of the model stays on your SSD and is read from there as needed (explained below). Make sure you have the disk space.
Use Osaurus's default memory mode. Strict memory mode refuses to load it, because its estimate is above Strict's budget. If loading is refused, switch back to the default mode.
On a Mac with 64 GB or more, Allosaurus v0.1 is the better choice: it stays closer to the original model and also reads images and video. On a smaller Mac, Raptor 0.6 runs on 8 GB, and Which model fits your Mac? shows what runs well on yours.
v0.1 or v0.2?
In short: Both are the same Qwen model. v0.2 is compressed further so it fits a 48 GB Mac, and gives up some accuracy and the ability to read images to get there.
| v0.2 | v0.1 | |
|---|---|---|
| in memory | 27.2 GiB | 34.8 GiB |
| best on | 48 GB Macs | 64 GB Macs and up |
| next-word agreement with the original (top-1) | 75.0% | 80.8% |
| median KL against the original (lower is better) | 0.0585 | 0.0196 |
| images and video | no | yes |
| download | about 86 GB | about 95 GB |
| needs | Osaurus 0.25.24 | Osaurus 0.25.18 |
The model underneath
In short: The model is huge, but only a small slice of it works on any given word: about 6.7 billion of its 125 billion parameters. That is what makes it practical to run on a Mac.
Qwen3.8-Flash-Next is a 125-billion-parameter mixture-of-experts model. A few things about it shape everything else:
- Only a small slice runs per token. Each of its 48 layers has 512 "routed experts", small feed-forward networks. A router picks 10 of them for each token, and one shared expert always runs. About 6.7B parameters are active per token, not counting embedding lookups.
- Two kinds of attention. Most layers use linear attention, which keeps a fixed-size running state instead of a cache that grows with the conversation. The others use sparse attention: a small indexer picks which earlier tokens are worth looking at.
- A very large lookup table. The model has an n-gram embedding table with 51 billion entries. For every token it looks up a few rows based on the last few tokens and adds them to the model's input.
- It also has one multi-token prediction (MTP) layer, used for speculative decoding.
Qwen's release also has a vision tower for images and video. v0.2 leaves it out to save memory.
What sits in memory and what does not
In short: One very large part of the model, a 54 GiB lookup table, stays on your Mac's SSD, and Osaurus reads only a few small rows of it for each word. Everything else, about 27 GiB, sits in memory.
The n-gram table is 54 GiB even after compression, but each token only needs a few small rows from it. So Osaurus leaves it on the SSD and reads just those rows as each token needs them. Everything else stays in memory:
| part | how it is stored |
|---|---|
| routed experts (48 layers × 512) | JANGT, 1 to 2 bits per weight, 1.62 on average (explained below) |
| mixers, sparse-attention indexer, n-gram projections, output layer | 8-bit |
| linear attention, sparse attention, shared experts, token embeddings | 4-bit |
| routers and norms | original precision (BF16) |
| MTP layer | 4-bit, with 2-bit experts |
| n-gram table | 8-bit, on the SSD |
| vision tower | not included |
Across everything in memory, that averages 1.797 bits per weight (the name rounds it to 1.8), counting the stored bytes against the original model's parameters and leaving out the table on the SSD.
Measured on an M5 Max running with a 48 GB memory budget, the model weights take 27.2 GiB. Peak GPU memory, weights included:
| context | plain decoding | with MTP |
|---|---|---|
| 8,000 tokens | 28.1 GiB | 29.3 GiB |
| 32,000 tokens | 29.3 GiB | 30.6 GiB |
These figures were measured on an M5 Max with its memory capped at a 48 GB budget (the engine's memory policy plus memory locked away). The model also runs well on an actual 48 GB Mac.
JANGT: fewer bits for the experts
In short: The experts take up most of the model's memory, so that is where v0.2 saves. Each expert weight gets between 1 and 2 bits, where full-precision models use 16. We measured how much error each layer could tolerate and gave more bits only where they were needed.
The routed experts are the bulk of what sits in memory, so their format decides how small the model can get. v0.2 stores them as JANGT trellis codes. Rather than rounding each weight on its own to one of a few fixed levels, a trellis code encodes a run of weights together, as a path through a small state machine. That is what allows widths in between whole bits, such as 1.5 bits per weight.
Not every part of every layer gets the same width. We measured the error each choice caused in the real output of the experts, then allocated widths per layer and per projection:
- gate and up projections: 1 bit in 20 layers, 1.5 bits in 28 layers
- down projection: 1.5 bits in 6 layers, 2 bits in 42 layers
That averages 1.62 bits per weight across the experts. A few more details keep the error down:
- Rotation first. Each block of 128 weights is mixed by a fixed Hadamard rotation with column signs, so that one unusually large value is spread across the block instead of distorting its neighbors.
- One scale per row, kept at unit gain.
- Outliers kept exact. Up to 8 columns per projection that do not compress well are stored exactly.
Calibration
In short: Compressing a model always loses some detail. Calibration decides which detail to protect, by showing the compressor examples of the work the model will do. We used real Osaurus-style agent sessions alongside general work, and kept the test data separate.
For each expert we captured statistics on the inputs that actually reached it, over a general corpus (code, security, agentic tasks, office work, science, systems, reasoning traces and tool conversations) and over Osaurus-style agent sessions. The test sets below were kept separate from all of this.
The parts kept in memory outside the experts use importance-weighted quantization with AWQ: activation statistics pick the scales that protect the weights that matter most, and inputs are rescaled so the most important channels lose less precision. The MTP layer was calibrated on its own captured inputs.
How close is it to the original?
In short: Run side by side with the full-size model, v0.2 picks the same next word 75% of the time, against 81% for v0.1. Most of the gap is in open-ended writing and long agent sessions. On office work, long documents and reasoning it stays much closer.
We report two numbers throughout:
- Top-1 agreement is how often both models pick the same most likely next token. Higher is better.
- KL divergence measures how much the whole spread of next-token probabilities changed. Osaurus samples from that whole spread, not just the top pick, so KL catches changes that top-1 misses. Lower is better.
One thing to know first: 100% top-1 is not achievable. Many next tokens are near-ties, and any tiny change to the weights flips some of them. Adding just 0.1% random noise to one weight matrix of the unquantized model limits top-1 to about 94.5% on general text. Compare against that ceiling, not against 100%.
The whole model
In short: On held-out general text, v0.2 agrees with the original 75% of the time and v0.1 81%. That is the price of the 7.6 GiB saved.
Run in the Osaurus engine on 8 held-out general sequences (13,385 positions) and compared with the full BF16 model:
| build | in memory | median KL | mean KL | top-1 |
|---|---|---|---|---|
| Allosaurus v0.2 | 27.2 GiB | 0.0585 | 0.951 | 75.00% |
| Allosaurus v0.1 | 34.8 GiB | 0.0196 | 0.700 | 80.82% |
The experts on their own
In short: To see where the error comes from, we compressed only the experts and left everything else at full precision. Office, finance and reasoning stay close to the original. Long agent sessions drift the most, though the model still gets most tool-call tokens right.
For this test only the routed experts are compressed. Everything else stays at full precision, and the router is forced to pick the same experts as the original. None of these sets were used for calibration.
| test set | positions | median KL | top-1 | top-5 | tool-call tokens, top-1 (original) |
|---|---|---|---|---|---|
| general: code, security, systems, office, chat | 67,716 | 0.0093 | 86.60% | 97.79% | 89.0% (91.4%) |
| reasoning traces | 35,252 | 0.0102 | 89.71% | 99.44% | n/a |
| tool conversations | 44,057 | 0.0128 | 80.95% | 93.95% | 89.5% (91.6%) |
| office, finance, math | 10,729 | 0.0034 | 91.02% | 99.03% | n/a |
| model-written traces | 45,369 | 0.0058 | 87.97% | 98.64% | 78.6% (81.3%) |
| Osaurus-style agent sessions | 105,296 | 0.1792 | 71.52% | 90.59% | 90.8% (93.3%) |
The last column compares each build's accuracy on the tokens that make up tool calls; the figure in brackets is the original model's own. On every set the gap is under 3 points.
By kind of work, top-1 on the general set ranges from 92.6% on long context and 91.5% on office work, down to 78.9% on terminal work and 69.1% on creative writing.
What to expect
In short: It does everyday work well. It is weaker than v0.1 at long hand arithmetic, and on some calculation-heavy prompts it can keep re-checking until it runs out of room, so give it a sensible length limit.
- Everyday work holds up. On our everyday-task set (finance, reasoning, coding, terminal, tool calls), 93% of answers were correct at the default temperature, with no loops.
- Long hand arithmetic is where the extra compression shows. It slips on digit-by-digit calculations, such as long Collatz sequences, large Fibonacci numbers or the digit sum of 2^100, more often than v0.1.
- Reasoning does not always close. Some hand-computation prompts make it re-check its arithmetic until it runs out of tokens. v0.1 does the same on the same mortgage-style prompts, and a lower temperature does not fix it. Give reasoning a sensible output limit, or use
mediumeffort.
Sampling: temperature 0.45
In short: Qwen's default temperature made this build think longer than it needed to. We tested several settings and ship 0.45, which thinks less and gets more hard prompts right. Going lower makes it loop.
Temperature controls how adventurous the model is when picking each word. Qwen's default of 1.0 made this build reason longer than needed, so it ships with temperature 0.45, top-k 20 and top-p 0.95.
We measured that choice. Two prompt sets were each run with several seeds at every temperature: 30 everyday tasks (finance, reasoning, coding, terminal and tool calls) and 42 hard prompts. The sweeps ran on an earlier build of v0.2 with the same quality.
| temperature | everyday correct | everyday thinking tokens, median / 90th percentile | hard prompts correct | hard prompts, median thinking tokens | loops |
|---|---|---|---|---|---|
| 1.0 (Qwen's default) | 93.3% | 158 / 464 | 81.0% | 279 | 0 of 72 |
| 0.6 | 93.3% | 159 / 379 | 81.0% | 230 | 0 of 72 |
| 0.45 (shipped) | 93.3% | 149 / 324 | 85.7% | 215 | 0 of 72 |
| 0.3 | 100% | 129 / 453 | 81.0% | 218 | 2 of 72 |
Going lower is not safer. At 0.3, and when always picking the single most likely word, the model can fall into real loops. A temperature you set in Osaurus overrides the default.
Speed
In short: On an M5 Max it writes about 56 tokens per second (a token is roughly three-quarters of a word). With speculative decoding on, tool-calling turns ran 27 to 36% faster.
Allosaurus ships with its multi-token prediction (MTP) layer. On each step the MTP layer guesses the next token, and the full model checks the guess in the same pass. The output is still the full model's output: with MTP on, greedy output is identical to plain decoding. MTP only changes how many tokens each pass produces.
| Allosaurus v0.2 | original model | |
|---|---|---|
| MTP guess matches the next token (113,711 held-out positions) | 69.8% | 72.1% |
In Osaurus on a 48 GB memory budget, turning MTP from Off to Auto made tool-calling turns 27 to 36% faster. Code and essay replies came out about even.
| on an M5 Max | |
|---|---|
| writing speed, greedy, short prompt | 56.1 tokens per second |
| load time, cold / warm | 10.6 s / 2 to 3 s |
Using it
- Requires: Osaurus 0.25.24 or newer, in the default memory mode (not Strict).
- Reasoning: on by default. Effort is low, medium or xhigh (xhigh is the default). Reasoning can also be turned off.
- Inputs: text only.
- Tools: calls tools in Qwen's native XML format, which Osaurus parses.
- Speculative decoding: MTP is available; Auto made tool-calling turns faster in our tests.
- Defaults: temperature 0.45, top-p 0.95, top-k 20, no repetition penalty. Context up to 262,144 tokens.
- License: the Qwen community license, inherited from the base model.
Allosaurus was quantized and validated by Jinho Jang. The base model is by the Qwen team.
Glossary
- Parameter (weight): one of the numbers a model learned during training. Allosaurus has 125 billion of them.
- Token: the unit a model reads and writes, roughly three-quarters of an English word on average. Speeds are given in tokens per second.
- Quantization: storing each weight with fewer bits so the model takes less memory. Like saving a photo at a lower quality setting: a much smaller file, with some detail lost.
- Bits per weight: how much storage each weight gets. Full-precision models typically use 16; Allosaurus v0.2's experts use 1.62 on average.
- BF16 (unquantized model): the original, uncompressed model from Qwen. Every comparison on this page is against it.
- Mixture of experts (MoE): a model split into many small specialist networks, called experts. For each token a router picks a few to run, so most of the model sits idle at any moment. A shared expert runs on every token.
- Attention: how the model looks back at earlier parts of the conversation. Linear attention keeps a fixed-size running summary; sparse attention rereads only the earlier tokens an indexer picks as relevant.
- N-gram table: a very large lookup table keyed on the last few tokens, which adds extra context to each token's input.
- JANGT and trellis codes: our expert format for v0.2. A trellis code stores a run of weights together as a path through a small state machine, which allows fractional widths such as 1.5 bits per weight.
- Hadamard rotation: a simple, fixed transform that mixes a block of numbers evenly, spreading out any unusually large value.
- Calibration: showing the compressor example inputs so it knows which weights matter most.
- AWQ: a method that rescales inputs so the most important channels keep more precision.
- Top-1 agreement: how often two models pick the same most likely next token.
- KL divergence: how much the full set of next-token probabilities changed between two models. Zero means identical; lower is better.
- Temperature: how adventurous the model is when picking each word. Lower is more predictable.
- Reasoning effort: how long the model thinks before it answers: low, medium or xhigh.
- MTP and speculative decoding: a small extra layer guesses ahead, and the full model verifies the guesses in the same pass, producing more tokens per step without changing the answer.
- Vision tower: the part of the original model that reads images and video. v0.2 leaves it out.
- GB and GiB: Mac memory is sold in GB; model sizes on this page are in GiB, which is about 7% larger. 27 GiB is about 29 GB.