Views
No views yet
Tess-4-27B, specifically engineered for local deployment on Dual RTX 3090 setups.
The primary research objective of this quantization is to achieve an extreme context length (full 262K tokens in F16 KV Cache) while maximizing inference speed through adapted BPW and Multi-Token Prediction (MTP / Self-Speculative Decoding) and retaining most of the original model's capacities. To achieve this, the base network was quantized to Q5_0 and Q8_0 using a custom iMatrix, while the critical NextN layers and embeddings were strictly preserved in Q8_0.
The base model used for this requantization is migtissera/Tess-4-27B.1--tensor-type 'token_embd\.weight=q8_0'
2--tensor-type 'output\.weight=q8_0'
3--tensor-type 'blk\.64\..*=q8_0'
4--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.attn_qkv\.weight=q8_0'
5--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.attn_q\.weight=q8_0'
6--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.attn_k\.weight=q8_0'
7--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.attn_v\.weight=q8_0'
8--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.attn_output\.weight=q8_0'
9--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.attn_gate\.weight=q5_0'
10--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.ssm_alpha\.weight=q5_0'
11--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.ssm_beta\.weight=q5_0'
12--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.ssm_out\.weight=q8_0'
13--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.ffn_up\.weight=q5_0'
14--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.ffn_down\.weight=q5_0'
15--tensor-type 'blk\.([0-9]|[1-5][0-9]|6[0-3])\.ffn_gate\.weight=q5_0'| Metric | Value |
|---|---|
| Mean PPL (Q) | 6.717543 ± 0.043015 |
| Mean PPL (Base) | 6.686070 ± 0.042694 |
| Correlation (ln PPL) | 99.84% |
| Mean ln(PPL(Q)/PPL(Base)) | 0.004696 ± 0.000367 |
| Mean PPL Ratio (Q/Base) | 1.004707 ± 0.000368 |
| Mean ΔPPL (Q − Base) | 0.031473 ± 0.002475 |
| Metric | Value |
|---|---|
| Mean KL Divergence | 0.006461 ± 0.000262 |
| Maximum | 19.347248 |
| 99.9th percentile | 0.339803 |
| 99th percentile | 0.054434 |
| 95th percentile | 0.015984 |
| 90th percentile | 0.009486 |
| Median | 0.002099 |
| 10th percentile | 0.000056 |
| 5th percentile | 0.000015 |
| 1st percentile | 0.000002 |
| 0.1th percentile | -0.000003 |
| Minimum | -0.000089 |
llama.cpp, use the following llama-server command. Note the specific use of --split-mode tensor and --tensor-split 1,1 for optimal PCIe bandwidth management across dual RTX 3090s. This command appeared to be the best one I could come across using an NVLink.1/path/to/llama.cpp/build/bin/llama-server \
2 -m /path/to/Tess-4-27B-Mixed-Q5\
3 --mmproj /path/to/mmproj-F16.gguf \
4 --split-mode tensor \
5 --tensor-split 1,1 \
6 --host 0.0.0.0 \
7 --port 8080 \
8 --ctx-size 262144 \
9 --parallel 1 \
10 --gpu-layers 999 \
11 --cache-type-k f16 \
12 --cache-type-v f16 \
13 --flash-attn on \
14 -b 2048 -ub 2048 \
15 --spec-type draft-mtp \
16 -sps 0.70 \
17 --image-min-tokens 1024 \
18 --alias Qwen3.6-27b \
19 --jinja"Preserve Thinking" option. You may find it on my GitHub.--ctx-size or using 8-bit cache (--cache-type-k q8_0 --cache-type-v q8_0).