TheDrummer_Artemis-31B-v1.2-IQ4_XS-small — mixed 4.18 bpw
quantized from
TheDrummer/Artemis-31B-v1.2 · 15,307.8 MiB
Goal
llama.cpp PR #15550 budget-fit at 14.8g + embeddings restored to Q5_K = 30.7 B parameters across 60 layers at 4.18 bpw.
Only the measured results are claimed - it may NOT be better at RP, NIHS, performance and/or long context adherence than mainline uniform IQ4_XS, bartowski's 3-5 bit mix of the same size (IQ3_M), or any other quantization type.
Quant recipe
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| in | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
Input table (output is tied) Layer weights · 3.41–4.25 bpw
| family | type | MiB |
| Embeddings |
| token_embd | Q5_K | 924.0 |
| Total | 1 tensor | 924.0 |
No separate output.weight: the output projection is tied to token_embd, so that table carries the output quality. |
| Layer weights |
| attn_q | IQ4_XSIQ4_XS×44 · IQ3_XXS×9 · IQ3_S×7 | 1,459.2 |
| attn_k | IQ4_XSIQ4_XS×44 · IQ3_S×9 · IQ3_XXS×7 | 575.8 |
| attn_v | IQ4_XSIQ4_XS×48 · IQ3_XXS×1 · Q4_K×1 | 555.4 |
| attn_output | IQ4_XSIQ4_XS×48 · IQ3_S×12 | 1,468.0 |
| ffn_gate | IQ4_XSIQ4_XS×57 · IQ3_S×3 | 3,480.6 |
| ffn_up | IQ4_XSIQ4_XS×58 · IQ3_S×2 | 3,491.8 |
| ffn_down | IQ4_XSIQ4_XS×47 · IQ3_S×9 · IQ3_XXS×4 | 3,348.0 |
| attn_k_norm | F32 | <0.1 |
| attn_norm | F32 | 1.2 |
| attn_q_norm | F32 | <0.1 |
| ffn_norm | F32 | 1.2 |
| layer_output_scale | F32 | <0.1 |
| post_attention_norm | F32 | 1.2 |
| post_ffw_norm | F32 | 1.2 |
| Total | 60 layers | 14,383.8 |
By typeIQ4_XS 12,684.7 MiB · 346 tIQ3_S 1,272.3 MiB · 42 tQ5_K 924.0 MiB · 1 tIQ3_XXS 410.0 MiB · 21 tQ4_K 11.8 MiB · 1 tF32 5.1 MiB · 422 t
MeasuredmetricThis filebartowskiΔFile sizethe file on disk15322.915638.6-2.02%Hellaswag (acc_norm)400 tasks64.0060.75+3.25 ppWinogrande (accuracy)400 tasks67.5065.00+2.50 ppvs bartowski's TheDrummer_Artemis-31B-v1.2-IQ3_M.gguf · ctx 4096 · fit · -b 1024 · -ub 128 · KV q8_0/q8_0 · -fa on · seed 1 · 320 chunks · hellaswag over 400 tasks · winogrande over 400 tasks · llama.cpp b80ec40d
Reproducibility
llama-quantize --imatrix path\to\imatrix.gguf --tensor-type-file path\to\rules.txt path\to\model.gguf path\to\quant.gguf Q4_K
llama-quantize --cuda-quantize --imatrix path\to\imatrix.dat --custom-q "^token_embd\.weight$=q5_k,^blk\.(9)\.attn_v\.weight$=q4_k,^blk\.(12)\.attn_v\.weight$=iq3_xxs,^blk\.(3|4)\.ffn_up\.weight$=iq3_s,^blk\.(3|4|6)\.ffn_gate\.weight$=iq3_s,^blk\.(0|3|5|6)\.ffn_down\.weight$=iq3_xxs,^blk\.(3|7|8|9|12|15|20)\.attn_k\.weight$=iq3_xxs,^blk\.(2|6|10|13|14|17|19)\.attn_q\.weight$=iq3_s,^blk\.(3|5|7|8|9|11|12|15|20)\.attn_q\.weight$=iq3_xxs,^blk\.(2|5|6|10|11|13|14|17|19)\.attn_k\.weight$=iq3_s,^blk\.(1|2|4|7|10|11|12|13|14)\.ffn_down\.weight$=iq3_s,^blk\.(0|5|11|12|17|23|29|35|41|47|53|59)\.attn_output\.weight$=iq3_s,^blk\.(0|1|4|16|18|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59)\.attn_k\.weight$=iq4_xs,^blk\.(0|1|4|16|18|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59)\.attn_q\.weight$=iq4_xs,^blk\.(8|9|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59)\.ffn_down\.weight$=iq4_xs,^blk\.(0|1|2|3|4|6|7|8|10|13|14|15|16|18|19|20|21|22|24|25|26|27|28|30|31|32|33|34|36|37|38|39|40|42|43|44|45|46|48|49|50|51|52|54|55|56|57|58)\.attn_v\.weight$=iq4_xs,^blk\.(1|2|3|4|6|7|8|9|10|13|14|15|16|18|19|20|21|22|24|25|26|27|28|30|31|32|33|34|36|37|38|39|40|42|43|44|45|46|48|49|50|51|52|54|55|56|57|58)\.attn_output\.weight$=iq4_xs,^blk\.(0|1|2|5|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59)\.ffn_gate\.weight$=iq4_xs,^blk\.(0|1|2|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59)\.ffn_up\.weight$=iq4_xs" path\to\model.gguf path\to\quant.gguf Q4_K
importance matrix:
TheDrummer_Artemis-31B-v1.2-imatrix.gguf · 251,904 tokens (492 chunks × 512) · 410 tensors scored · dataset: TheDrummer_Artemis-31B-v1.2-calibration-v6.txt
sha256 of the files usedimatrix
TheDrummer_Artemis-31B-v1.2-imatrix.gguf1137ab5bbcb14b85ce090157f44c0f61479e33acd95a7bdd26aa6f327e614383
Cheers
TheDrummer - the base model.
the llama.cpp contributors - the quantizer this file was built with.
bartowski - imatrix dataset / imatrix file / reference model source
quantized with llama.cpp @ b80ec40d · plan
e3d6eba5 · verified against the produced file