Ergo DSpark EXL3 4-bit, English and code head
Amazon's Ergo DSpark draft model with its layers at 4 bits a weight, in the EXL3 format of exllamav3. The pack takes 2.47 GB where the BF16 checkpoint takes 6.48 GB.
A draft model proposes the next few tokens and Ergo checks them in one pass. Ergo decides every token, so a quantized draft changes how fast text arrives and never what the text says. A draft step reads all of the draft's weights, and a smaller draft makes that step shorter.
dgpp serves this pack beside the Ergo EXL3 packs on a cluster of four DGX Sparks. This pack also carries its own output head over 152,064 English and code tokens, so a draft step reads a head of 0.57 GB in place of Ergo's head of 1.61 GB. HawkBearPig/Ergo-dspark-EXL3-4bit is the same draft through Ergo's own head, for text in any language.
At a glance
| Base model | Amazon-FMR/Ergo-dspark: 3.24 B parameters, five decoder layers of width 8,192 |
| Format | EXL3 with the mul1 codebook, one safetensors file |
| Bit widths | layers 4, tap projection 6, output head 4 |
| Quantized weights | 3.10 B of the checkpoint's 3.24 B, and a head of 1.25 B |
| Size | 2.47 GB |
| Calibration | 42 sequences of 1,024 tokens of source code, technical writing, prose and chat sessions |
| License | Amazon Ergo Open-Weights License |
Accuracy
The measure that matters for a draft is how many of its proposals the target accepts. The table scores the draft on text the calibration never saw: source code, technical writing, prose and chat sessions, 10,240 tokens in all. A block of seven proposals starts at every position of the text. The states the draft reads come from the Ergo 3.25 bpw pack.
| Text | Blocks | Accepted proposals, BF16 draft | Accepted proposals, this pack | Agreement on the first proposal | Agreement on the seventh |
|---|---|---|---|---|---|
| All text | 10,160 | 2.31 | 2.31 | 96.6 % | 86.0 % |
| Chat sessions | 1,016 | 3.09 | 3.10 | 92.8 % | 82.5 % |
| Source code | 4,064 | 3.36 | 3.36 | 98.6 % | 90.0 % |
| Technical writing | 3,048 | 1.18 | 1.18 | 95.8 % | 81.7 % |
| Prose | 2,032 | 1.50 | 1.50 | 95.4 % | 86.5 % |
Accepted proposals counts the leading proposals of a block that equal the text's own next tokens. Agreement is how often a proposal equals the BF16 draft's proposal at the same place.
The pack's head holds 152,064 of Ergo's 262,144 tokens: every token written in ASCII, the common typographic characters, the special tokens and the byte tokens. 0.02 % of the held-out text's tokens fall outside those rows, and the draft cannot propose them. Ergo still writes such a token itself, one step later.
Serving
Name the pack as the draft in a dgpp deployment file:
"engine": {
"dflash_model": "HawkBearPig/Ergo-dspark-EXL3-4bit-english-code",
"mtp_schedule": true
}
Each node loads its slice of every matrix as stored. The draft's activations are large, and an EXL3 product keeps its rotated input in half precision. The pack therefore moves a power of two from the input factor to the output factor of the ten matrices that need it, which leaves each matrix unchanged. exl3_input_shift in config.json lists the shifts, and quantization_report.json lists the room each matrix keeps above the largest input seen in the calibration text.
Measured on four DGX Sparks with the Ergo 3.25 bpw pack, FP8 key and value rows and a verify depth that follows the draft's confidence. Ergo without a draft writes 25.5 tokens/s at one request and 46.5 at four. The text is the same token for token in every column.
| BF16 checkpoint, FP8 at load | Ergo's own head | This pack | |
|---|---|---|---|
| Draft step, one request | 7.5 ms | 6.1 ms | 4.3 ms |
| Tokens/s, one request, code prompt | 39.9 | 40.7 | 42.1 |
| Tokens/s, one request, chat answer | 36.9 | 37.9 | 38.9 |
| Tokens/s, four requests | 63.2 | 64.5 | 65.5 |
Format
Every quantized matrix is an EXL3 quadruple. A matrix NAME with weight [N, K] is stored as NAME.trellis (int16, [K/16, N/16, 16 x bits]), NAME.suh (float16, [K]), NAME.svh (float16, [N]) and the scalar marker NAME.mul1.
| Matrix | N | K | Bits |
|---|---|---|---|
layers.N.self_attn.qkv_proj |
10,240 | 8,192 | 4 |
layers.N.self_attn.o_proj |
8,192 | 8,192 | 4 |
layers.N.mlp.gate_proj |
16,384 | 8,192 | 4 |
layers.N.mlp.up_proj |
16,384 | 8,192 | 4 |
layers.N.mlp.down_proj |
8,192 | 16,384 | 4 |
fc |
8,192 | 40,960 | 6 |
draft_head |
152,064 | 8,192 | 4 |
qkv_proj stacks the rows of the checkpoint's q_proj, k_proj and v_proj in that order, since the three read the same input. The norms, the Markov head and the confidence head keep their BF16 tensors and their checkpoint names. config.json is Amazon's with an exl3 object that names each class's width, and draft_vocab_size with the head's rows. d2t holds the token id of each head row in ascending order, and markov_head.markov_w2.weight holds the rows of the same tokens.
The draft's layers are decoder layers: a row of a block reads the context before the block and the block's rows up to its own.
How the pack was made
Each matrix is quantized with exllamav3's EXL3 quantizer against the inputs it sees in a draft block. The target's states after layers 1, 16, 31, 46 and 61 come from the Ergo 3.25 bpw pack as dgpp serves it, and a reference forward of the draft runs blocks of seven rows over them. The tap projection and the first layer are calibrated on the BF16 stream, and every later layer on the stream of the layers already quantized, so a layer absorbs the error before it. The q, k and v rows share one input and are quantized as one matrix. The head's rows come from the 3.25 bpw pack's own head and are quantized against the rows the quantized draft gives it.
Limitations
The head covers English and code. On text in other scripts the draft's proposals fail, and the text arrives at Ergo's plain rate or below it. Use HawkBearPig/Ergo-dspark-EXL3-4bit there.
The pack is a draft model. It produces no text on its own and needs Ergo as the target.
An input far outside the range of the calibration text can overflow a product's half-precision input for one block. Ergo rejects that block's proposals, and the text is unaffected.
The accuracy figures come from one calibration set and one held-out set of the same kinds of text. Acceptance on other text follows that text.
The format is this pack's own layout of EXL3 tensors. exllamav3 has no DSpark architecture, and transformers does not read EXL3.
License
Amazon Ergo Open-Weights License. To verify the files, run sha256sum -c SHA256SUMS in the pack's directory.
- Downloads last month
- 62