From 94631e700476be55d87bcde4c553637bb566f276 Mon Sep 17 00:00:00 2001 From: ms911112 Date: Sat, 10 Oct 2026 00:09:01 -0700 Subject: [PATCH] feat(manifests/hpc02): add pr153-kq-imatrix-downs-qkv-z-q configuration Introduces a new manifest for pr153, detailing the kq_imatrix configuration with attention q and o projections for layers 11-39 on Q4_K. This configuration includes specific rules for encoding various components, ensuring optimized performance and memory usage. --- .../hpc02/pr153-kq-imatrix-downs-qkv-z-q.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 manifests/hpc02/pr153-kq-imatrix-downs-qkv-z-q.yaml diff --git a/manifests/hpc02/pr153-kq-imatrix-downs-qkv-z-q.yaml b/manifests/hpc02/pr153-kq-imatrix-downs-qkv-z-q.yaml new file mode 100644 index 0000000..54bce06 --- /dev/null +++ b/manifests/hpc02/pr153-kq-imatrix-downs-qkv-z-q.yaml @@ -0,0 +1,44 @@ +schema: bittrellis/manifest@2 +track: HPC-02 +name: pr153-kq-imatrix-downs-qkv-z-q +description: > + #153 (#142 with the attention q and o of layers 11-39 on Q4_K, every re-encoded tensor on kq_imat: + RP-KL 0.0634, decode 460.3, prefill 40,141, 23.32 GiB) with kq_imatrix on the Q4_K tensors whose pinned + input statistics it reads: every routed expert down, every recurrent qkv, the recurrent z of layers 20-39, + and the attention q of layers 11-39. #158 made this swap on #147's downs and qkv only (RP-KL 0.0855 to + 0.0807, decode and memory unchanged). On #153 those two groups are still kq_imat, and kq_imatrix's GPTQ path + also covers gdn.z and attn.q from attn_input.xtx, which #158 left on kq_imat. Recurrent out, attention o, + lm_head and the embeddings have no pinned covariance and stay kq_imat; unsloth's gate/up and Q8_0 bytes + stay. Formats, kernels, speed and memory stay #153's. +default: Q8_0 +encoders: {Q4_K: unsloth_ud, Q5_K: unsloth_ud, Q6_K: unsloth_ud, Q8_0: unsloth_ud} +rules: + - match: "L*.exps.gate" + format: Q4_K + - match: "L*.exps.up" + format: Q4_K + - match: "L*.exps.down" + format: Q4_K + encoder: kq_imatrix + - match: "L*.gdn.qkv" + format: Q4_K + encoder: kq_imatrix + - match: "L*.gdn.z" + layers: "20-39" + format: Q4_K + encoder: kq_imatrix + - match: "L*.gdn.out" + layers: "20-39" + format: Q4_K + encoder: kq_imat + - match: "L*.attn.q" + layers: "11-39" + format: Q4_K + encoder: kq_imatrix + - match: "L*.attn.o" + layers: "11-39" + format: Q4_K + encoder: kq_imat +modules: + lm_head: {format: Q4_K, encoder: kq_imat} + embed: {format: Q4_K, encoder: kq_imat}