YTan2000 commited on
Commit
6da464b
·
verified ·
1 Parent(s): 8b5ad7e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +142 -0
README.md ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: openmdw-1.1
3
+ language:
4
+ - en
5
+ library_name: gguf
6
+ pipeline_tag: text-generation
7
+ model_name: TurboLaguna-XS
8
+ tags:
9
+ - gguf
10
+ - llama.cpp
11
+ - laguna
12
+ - poolside
13
+ - turboquant
14
+ - tq3_4s
15
+ - code
16
+ base_model:
17
+ - poolside/Laguna-XS-2.1-GGUF
18
+ model-index:
19
+ - name: TurboLaguna-XS
20
+ results: []
21
+ ---
22
+
23
+ # TurboLaguna-XS
24
+
25
+ **Canonical artifact:** `Laguna-XS-2.1-TQ3_4S`
26
+
27
+ `TurboLaguna-XS` is the TurboQuant GGUF build of Poolside's Laguna XS 2.1 — a sigmoid-routed mixture-of-experts coding model with 256 experts per layer, a shared expert, QK-norm, and hybrid YaRN/sliding-window RoPE.
28
+
29
+ The exact file and runtime artifact name is:
30
+
31
+ - `Laguna-XS-2.1-TQ3_4S.gguf`
32
+
33
+ ## Required Runtime
34
+
35
+ > **This model uses the custom `TQ3_4S` tensor type.** Stock `llama.cpp` builds
36
+ > **cannot** load it. You must use the TurboQuant runtime fork:
37
+ >
38
+ > **[turbo-tan/llama.cpp-tq3](https://github.com/turbo-tan/llama.cpp-tq3)**
39
+ >
40
+ > This is a standard (non-MTP) model — no draft-MTP flags are needed.
41
+
42
+ ## Parent Model
43
+
44
+ - Upstream parent: [poolside/Laguna-XS-2.1-GGUF](https://huggingface.co/poolside/Laguna-XS-2.1-GGUF)
45
+ - Source quant: `Laguna-XS-2.1-BF16.gguf` (63.8 GB, 16.01 bpw)
46
+ - Format conversion and TurboQuant packaging: [turbo-tan/llama.cpp-tq3](https://github.com/turbo-tan/llama.cpp-tq3)
47
+
48
+ ## Files
49
+
50
+ | File | Size | Notes |
51
+ |---|---|---|
52
+ | `Laguna-XS-2.1-TQ3_4S.gguf` | 16 GB (4.05 bpw) | Main model — 678 tensors, 40 layers × 256 routed experts |
53
+ | `thumbnail.png` | — | Model card image |
54
+ | `benchmark.png` | — | Benchmark summary |
55
+
56
+ ## Quantization Recipe
57
+
58
+ Quantized from the official BF16 GGUF using the standard TQ3_4S recipe:
59
+
60
+ ```bash
61
+ ./build/bin/llama-quantize --allow-requantize \
62
+ --output-tensor-type q6_K \
63
+ --token-embedding-type q6_K \
64
+ Laguna-XS-2.1-BF16.gguf \
65
+ Laguna-XS-2.1-TQ3_4S.gguf \
66
+ TQ3_4S
67
+ ```
68
+
69
+ Tensor policy:
70
+ - Routed experts, attention projections, shared experts → `tq3_4s` (4.0 bpw)
71
+ - Token embeddings, output head → `q6_K`
72
+ - Norms, gates, biases → `f32` (untouched)
73
+
74
+ Result: **63.8 GB → 16 GB** (3.98× compression), 42% smaller than Poolside's own Q4_K_M (20 GB).
75
+
76
+ ## Recommended Runtime
77
+
78
+ ```bash
79
+ ./build/bin/llama-server \
80
+ -m Laguna-XS-2.1-TQ3_4S.gguf \
81
+ --host 127.0.0.1 --port 8080 \
82
+ -c 8192 -np 1 -ngl 99 -fa on \
83
+ --reasoning off --jinja
84
+ ```
85
+
86
+ Build note:
87
+ - `-fa on` is the runtime flash-attention flag, not the CMake `GGML_CUDA_FA_ALL_QUANTS` build flag.
88
+
89
+ ## GPU Memory Profiles
90
+
91
+ | GPU memory | Suggested context | KV cache | Notes |
92
+ |---:|---:|---|---|
93
+ | 16 GiB | `4096` | `-ctk q4_0 -ctv tq3_0` | Tight fit — keep context small |
94
+ | 24 GiB | `8192` to `32768` | `-ctk q8_0 -ctv tq3_0` | Validated desktop profile |
95
+ | 128 GiB GB10 | `65536+` | `-ctk q4_0 -ctv tq3_0` | Full headroom for long context |
96
+
97
+ ## Tested Hardware
98
+
99
+ - **NVIDIA RTX 3090 24 GB** — primary validation platform
100
+ - llama.cpp-tq3 fork, branch `feat/laguna-arch` (Laguna arch from upstream [ggml-org/llama.cpp#25165](https://github.com/ggml-org/llama.cpp/pull/25165))
101
+
102
+ ## Benchmarks
103
+
104
+ All scores: greedy decoding, reasoning off, `-ngl 99 -fa on`, RTX 3090.
105
+
106
+ | Benchmark | Score | tok/s |
107
+ |---|---|---|
108
+ | HumanEval (base) | **0.805** | 196 |
109
+ | HumanEval+ (extra tests) | **0.762** | 196 |
110
+ | MBPP (base) | **0.833** | 199 |
111
+ | MBPP+ (extra tests) | **0.720** | 199 |
112
+ | Hard86 (20 tasks / 86 assertions) | **64.0%** (55/86) | 202 |
113
+ | BenchLoop coding | **100.0** (12/12) | — |
114
+ | BenchLoop overall | **73.7** | — |
115
+ | BenchLoop speed | **96.4** (9/9) | — |
116
+
117
+ ### Comparison (all TQ3_4S, same RTX 3090)
118
+
119
+ | Model | HE+ | MBPP+ | Hard86 | Coding | tok/s | Size |
120
+ |---|---|---|---|---|---|---|
121
+ | **Laguna XS 2.1** | 0.762 | 0.720 | 64.0% | 100.0 | **196** | 16 GB |
122
+ | Qwen3.5 9B | 0.671 | 0.563 | 44.2% | 79.2 | 134 | 4.5 GB |
123
+ | Qwen3.6 27B MTP | 0.927 | 0.878 | — | 100.0 | 42–54 | 12.9 GB |
124
+
125
+ Laguna XS is a coding specialist: perfect BenchLoop coding (same as the 27B), +19.8pp Hard86 over the 9B, at 3.6–4.6× the 27B's decode speed.
126
+
127
+ ## Validation
128
+
129
+ ```
130
+ llama-simple-chat coherence smoke: PASS
131
+ llama-server --reasoning off strict smoke: PASS (content = "ok")
132
+ llama-bench pp2048: 745 tok/s
133
+ llama-bench tg128: 196 tok/s
134
+ evalplus HE/HE+/MBPP/MBPP+: scored (see above)
135
+ hard86: 55/86
136
+ benchloop v0.2.3: overall 73.7
137
+ ```
138
+
139
+ ## License
140
+
141
+ - Parent model: [OpenMDW-1.1](https://huggingface.co/poolside/Laguna-XS-2.1) (Poolside)
142
+ - Runtime: [turbo-tan/llama.cpp-tq3](https://github.com/turbo-tan/llama.cpp-tq3) (MIT)