A collection of EXL3 quants of TheDrummer/Artemis-31B-v1.2 at revision 73c8815a.
Artemis declares no license of its own. This quant follows the Apache-2.0 license of its Gemma 4 base.
We quantized the full precision model of Artemis-31B-v1.2 by TheDrummer into three different artifacts
Additionally, we ran some tests, specific for RP usage, to obtain additional, hard data to better understand how the quantizations differ and which ones are better at preserving the quality of the original model. With this data, hopefully we're helping you to decide which quantization is the best for your system.
The vast majority of people using RP models such as Artemis-31B-v1.2 are running them on consumer-grade computers, usually with limited VRAM. Many of the available, high-quality quantizations for this particular model, are catered to stronger machines, leaving a big gap for the average user. On VRAM-limited systems, it's important to optimize the quantizations to preserve as much quality as possible in small-size files.
Additionally, we realized that while there are more formal testing and benchmarking approaches for coding models, there has been little effort in the RP world to determine the quality of the quantizations. This leaves the users in a position where they're picking quants just based on generic terminology such as Q5_K_M, 4.50 bpw, among others, without really being able to determine which quantization is better at preserving the quality of the original model. Our hope is that this report will make it easier for users to determine which quantization is the most appropriate for their particular case.
Sizes below are the weights held on the GPU, which is the size the charts use.
| File | Maker | GPU weights |
|---|---|---|
| 2.15 bpw | ||
| EXL3 2.15 bpw RP recipe | ours | 8.95 GB |
| i1-IQ2_XXS | mradermacher | 8.67 GB |
| EXL3 2.25 bpw | MikeRoz | 9.31 GB |
| i1-IQ2_S | mradermacher | 10.1 GB |
| IQ2_S | bartowski | 10.2 GB |
| 3.00 bpw | ||
| EXL3 3.0 bpw RP recipe | ours | 12.06 GB |
| i1-IQ3_XXS | mradermacher | 12.1 GB |
| IQ3_XXS | bartowski | 13.3 GB |
| 5.00 bpw | ||
| EXL3 5.0 bpw | ours | 19.38 GB |
| Q4_K_M | bartowski | 19.5 GB |
| IQ4_XS | bartowski | 17.2 GB |
| Q5_K_M | bartowski | 23.5 GB |
| Q8_0 | bartowski | 32.6 GB |
IQ4_XS (17.2 GB) was measured, and it appears on the two size charts. We decided not to include it in the card-class charts since it is too large for a 16 GB card, and too small and too far from the original BF16 model for the 24 GB group.
Disclaimer: These models were chosen because they're publicly available and are comparable to our quantizations in size. The purpose is not to throw shade at them in any way. Team mradermacher and Bartowski have done, and continue to do a great service to the open source community, and we're extremely grateful for all of the work they've done.
As expected, larger files stay closer to the original, while the smaller files fall away quickly. Q8_0 and the 5.0 bpw sit near the original (~0.0015 and ~0.005 KLD, respectively). Q4_K_M has 4.32x higher KLD than our standard 5.0 bpw artifact, at comparable GPU memory weights. Q5_K_M sits in between (0.00756 KLD), at the cost of a much larger memory footprint.
Our 3.0 bpw is comparable in weight size to the i1-IQ3_XXS artifact, while having a much more favourable KLD (0.0725, against 0.176 for i1-IQ3_XXS).
For the 12 GB class cards, our 2.15 bpw quantization has less KLD (0.293) than bigger files such as EXL3 2.25 bpw by MikeRoz (0.343), i1-IQ2_S by mradermacher (0.402) and IQ2_S by Bartowski (0.487), while having a smaller memory footprint. Compared to the similarly-sized i1-IQ2_XXS, KLD divergence is smaller by a factor of 3.09.
The same files, counted as how often the next token would come out different. Q8_0 changes about 1% of tokens, while our 5.0 bpw changes about 3%, the 3.0 bpw about 11%, and the 2.15 bpw about 23%. The furthest small file changes about 38%. The step from Q8_0 down to the 5.0 bpw is small, but the steps from the 5.0 bpw down to the 3.0 bpw, and from there to the 2.15 bpw, are much larger.
In comparable sizes, the 5.0 bpw changes 2.8% of tokens, against 5.7% for Q4_K_M at the same GPU weight. Q5_K_M changes 3.4%, but it takes more memory.
The 3.0 bpw changes 10.9% of tokens, against 16.3% for the similar-sized i1-IQ3_XXS and 13.8% for the larger IQ3_XXS.
For the 12 GB cards, the 2.15 bpw changes 22.5% of tokens, against 24.1% for i1-IQ2_S, 24.5% for MikeRoz's 2.25, and 27.2% for IQ2_S. Quality-wise, the performance is similar, but those three are larger files. Compared with the similarly sized i1-IQ2_XXS (37.7%), the share is smaller by a factor of 1.67.
The same rates, split by the card a file fits on. Past 24 GB, Q8_0 (32.6 GB) is the closest file we measured, and Q5_K_M (23.5 GB) changes tokens more often than the 5.0 bpw (19.38 GB) does, while being significantly larger.
On 24 GB, our standard 5.0 bpw (19.38 GB) changes about 3%, against about 6% for Q4_K_M (19.5 GB) at the same size.
For 16 GB cards, our custom 3.0 bpw (12.06 GB) changes about 11%, against about 14% for IQ3_XXS (13.3 GB) and about 16% for i1-IQ3_XXS (12.1 GB).
Finally, for the 12 GB cards, the 2.15 bpw (8.95 GB) changes about 23% of tokens, while the other files in that group sit around 24–27% and are larger (9.31–10.2 GB). The smallest file, i1-IQ2_XXS (8.67 GB), changes about 38%.
The same result, read along a reply. Q8_0 differs vs the expected BF16 response about once every 70 tokens. The standard 5.0 bpw provided in this repository differs about once every 36, a longer run than Q5_K_M at about 30, and about twice Q4_K_M at about 17. The 3.0 bpw differs about once every 9 tokens, ahead of the IQ3 files at about 7 and 6. The 2.15 bpw differs about once every 4 tokens. The other 12 GB files sit just behind it, down to a bit under 3 for the smallest.
Note that there is a steep drop in the divergence from the quantizations designed for 24 GB cards to the ones that can fit on GPUs with 16 GB or less VRAM. EXL3 5.0 bpw is competitive and outperforms the much larger Q5_K_M quantization. Even Q4_K_M, a bit further from the original, still goes about 1.9× as long between token changes as the much smaller 3.0 bpw, about once every 17 tokens, against about once every 9. On files designed to fit on 12 GB GPUs, the models are much less competitive. They predict a different token from the BF16 about once every 4 tokens, and the smallest of them about once every 3.
Each file is split by whether the full model was already confident in that next word. Where it was sure, the quants stay close to it: under 1% of tokens for the 5.0 bpw, about 1% for the 3.0 bpw, and about 6% for the 2.15 bpw. Where it was unsure, the rates rise, and the smaller files rise the most. The 2.15 bpw differs on about a third of those tokens, and the weakest 12 GB file on more than half. The 5.0 bpw stays around 5%. Most of the gap between these quants is in the tokens the original model was uncertain about.
Just as in the previous chart, note how everything designed for 24 GB+ cards performs quite strongly, rarely sampling a different token than BF16 would when the token probability is high (less than 1% share at token probability of 90% or higher). EXL3 5.0 bpw samples a token differently from BF16 only once every 658 tokens when the model has high confidence in the prediction of the next token.
This is how often the quant's most likely next token is the one the original model ranked first, before any sampler. The previously shown metric "About 1 token in N sampled differently" is more representative of the model's performance in real life usage, while Top-1 agreement provides a representation of the performance before applying any sampler settings.
Past 24 GB, Q8_0 (32.6 GB) agrees on 98.4% of tokens. Q5_K_M (23.5 GB) agrees on 96.0%, a touch behind the smaller 5.0 bpw.
On 24 GB, the 5.0 bpw (19.38 GB) agrees on 96.5% of tokens, beating the much larger Q5_K_M (96%), and outpacing Q4_K_M (93.8%) at the same size (19.5 GB).
For 16 GB cards, the 3.0 bpw (12.06 GB) agrees on 88.2%, against 83.6% for IQ3_XXS (13.3 GB) and 81.9% for i1-IQ3_XXS (12.1 GB).
For the 12 GB cards, the 2.15 bpw (8.95 GB) agrees on 76.3% of tokens. The larger files in that group agree on 74.3% (i1-IQ2_S, 10.1 GB), 74.0% (MikeRoz's 2.25, 9.31 GB), and 71.6% (IQ2_S, 10.2 GB). The smallest, i1-IQ2_XXS (8.67 GB), agrees on 61.9%.
The same order shows up on every chart. For each card size, one of the three files here is the closest to the original of the files we measured.
On 24 GB, that file is our 5.0 bpw. It stays closer than Q4_K_M at the same size, and closer than Q5_K_M, which is larger. Q8_0 is closer still, at 32.6 GB, but it requires a substantially beefier GPU to be run at this precision. At this category, all of the tested quantizations are very strong and conserve most of the fidelity of the full precision model. Those fidelity runs were measured, but a context fit on a single card was not since I don't have a 24 GB card, so the 5.0 bpw has no row in the VRAM table.
On 16 GB, the strongest file is our 3.0 bpw. It is ahead of both IQ3_XXS files, and it holds 32K context with an 8-bit cache. The step down from the 5.0 bpw is the large one, with a sampled token differing about once every 9, where the 5.0 bpw differs about once every 36. Still, at this size, it performs better than the comparable GGUF artifacts (IQ3_XXS by bartowski and i1-IQ3_XXS by mradermacher).
On 12 GB, the most-performant file is our 2.15 bpw. It is ahead of the other files in that group, including the ones that are larger, and well ahead of the similar-sized i1-IQ2_XXS. A sampled token differs about once every 4, and the quant's first choice matches the original on about three tokens in four. Most of that gap is on words the original model was already unsure about. At this bitrate, running the model is a compromise, and fidelity vs BF16 is greatly reduced. With a 4-bit cache you get 16K of context. With an 8-bit cache you can squeeze in about 12K, but it's right at the limit for a 12 GB card.
Moving down a card size changes the result more than switching between files that fit on the same card.
We calculated metrics using a main reference: Artemis-31B-v1.2 own BF16 weights. To determine how much the quants diverged from the replies by the full precision model, we worked with several real-life roleplay conversations. The full-precision model wrote the reply at the end of each one, with thinking off. Those replies are the only text that is scored.
We worked with a teacher-forced approach, which means we did not let the quant write its own story and then grade the prose. We walked through the reply the full model had already written, one token at a time. At every token, the full model and the quant had seen exactly the same words, and we compared the probability each one gave to the next word. The same process was done for our three files and for the other published quants of a similar size.
The full-vocabulary comparison uses every probability, all 262,144 tokens included in the base model, not only the winner. Top-1 is the narrower question: did both models put the same token first? The sampler figure is a third pass over those same probabilities, but now cutting each model's probabilities with a sampler (temperature 0.95, top-p 0.95, min-p 0.05, top-k off), which is the way this model is run by people while using it. The sampler is only used when we measure "sampled differently."
From these tests, we calculated relevant metrics such as the Kullback–Leibler divergence (KL divergence, or KLD), Top-1 agreement and the derived "sampled differently", among other metrics not shown in this card.
For metrics such as KLD and "sampled differently", a smaller number means the quant is closer to the original, full precision weights. Metrics like Top-1 agreement are the opposite, with higher values meaning a stronger reflection of the original BF16 model.
The context numbers are a different test. On one 16 GB card, headless, we loaded the quant and sent one prompt that nearly filled the context we were claiming, then recorded the highest VRAM during that request. A pass leaves 1 GB free for a desktop since most people are not running these models on dual GPU systems.
All three files were made with ExLlamaV3 1.6.6. On every file the output head is 6 bits, which is the H6 in the names above, and the token embeddings stay at 16 bits in system RAM. Vision weights are also kept at 16 bits. The fits in this card leave vision off.
The 5.0 bpw is a standard quant. The decoder weights are 5 bits each.
The 3.0 bpw and the 2.15 bpw are not uniform. Each tensor's bitrate was chosen by measuring how much roleplay quality it loses when quantized, and spending more bits on the tensors that lose more. The average of the tensor's bitrate choices is the 3.00 and 2.15 in the name.
Highest VRAM measured on my machine while loading the quant and running one near-full prompt, using a headless 16 GB card. The test was designed to leave 1 GiB free for the main display + a browser (otherwise how would you even load the front end?). In this case, the target was to use at most 11.0 GiB on a 12 GB card, and 15.0 GiB on a 16 GB card.
The tests were done to show the maximum context on 8,8 KV cache. For more VRAM constrained systems, the only way to get higher context is to go with 4,4 KV cache, as it is with the 2.15 bpw RP recipe quantization. On internal testing, we found little effect of lower KV cache values (6,6 or 4,4) for RP. To be on the safe side in terms of quality, use 8,8. To fit as much context as possible, 4,4 is the way to go. If you're running the 5.0 bpw for quality, I'd recommend sticking with 8,8.
| File | Context | Cache | Peak |
|---|---|---|---|
| 12 GB | |||
| EXL3 2.15 bpw RP recipe | 16K | 4,4 | 10.94 GiB |
| EXL3 2.15 bpw RP recipe* | 12K | 8,8 | 11.00 GiB (11.11 GiB for 0.2 s at load) |
| EXL3 2.25 bpw (MikeRoz) | 8K | 4,4 | 10.94 GiB |
| 16 GB | |||
| EXL3 3.0 bpw RP recipe | 32K | 8,8 | 14.94 GiB |
* This one is right on the edge. I ran it with cuda_malloc_async off, which saved about 96 MiB. During the request it sat at 11.00 GiB, just 4 MiB over the target, and it jumped to 11.11 GiB for a split second at the end of loading. It worked fine on my machine, but if your desktop uses a bit more VRAM it may not fit. To play it safe on a 12 GB card, go with 16K and a 4-bit cache.
The files were tested using TabbyAPI and ExLlamaV3 1.6.6 on Windows 11. I would recommend loading these files using TabbyAPI as a server and ExLlamaV3 1.6.6 (or newer) as the backend. The Gemma 4 chat template is included as chat_template.jinja. Leave vision off for maximum VRAM savings, and the context fits shown above assume it is off.
Download one quant at a time:
hf download Gen4536/Artemis-31B-v1.2-exl3 --revision 2.15bpw-rp --local-dir artemis-2.15
hf download Gen4536/Artemis-31B-v1.2-exl3 --revision 3.0bpw-rp --local-dir artemis-3.0
hf download Gen4536/Artemis-31B-v1.2-exl3 --revision 5.0bpw --local-dir artemis-5.0
Context and cache are in the table above. All of those rows were measured with two settings that aren't the defaults, so set both if you want the same fit. The first is EXL3_QC_STAGING=0, an environment variable you set before starting TabbyAPI (ExLlamaV3's default is 1). I didn't test the speed hit, but according to exllamav3 it saves VRAM at the cost of some prefill speed, around 6 to 26% in the attention kernel depending on the cache bitrate. For RP, I think getting more context is the way to go, so it may be a worthwhile tradeoff. The second is cuda_malloc_async: true in TabbyAPI's config.yml (the default is false). The asterisked 12K row is the one exception and ran with it off, which saved 96 MiB against the same run with it on. Without these settings the peaks will be higher, and the tighter rows may not fit. The 5.0 bpw is in the fidelity charts. A context fit on a single card was not measured for it.
The sampler behind the "sampled differently" figures is temperature 0.95, top-p 0.95, min-p 0.05, and top-k off. Gemma 4 31B's own defaults are temperature 1.0, top-p 0.95, and top-k 64, with min-p off. On this test the two samplers stayed within about 1%. The test replies were written with thinking off.
The reference is this model's own BF16 weights. The measurements done for these tests are only for roleplay replies, teacher-forced, so both models are scored on the same text. The KV cache is full precision unless a line names a cache setting.
TheDrummer/Artemis-31B-v1.2