Instructions to use YTan2000/Laguna-XS-2.1-TQ3_4S with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use YTan2000/Laguna-XS-2.1-TQ3_4S with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf YTan2000/Laguna-XS-2.1-TQ3_4S # Run inference directly in the terminal: llama cli -hf YTan2000/Laguna-XS-2.1-TQ3_4S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf YTan2000/Laguna-XS-2.1-TQ3_4S # Run inference directly in the terminal: llama cli -hf YTan2000/Laguna-XS-2.1-TQ3_4S
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf YTan2000/Laguna-XS-2.1-TQ3_4S # Run inference directly in the terminal: ./llama-cli -hf YTan2000/Laguna-XS-2.1-TQ3_4S
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf YTan2000/Laguna-XS-2.1-TQ3_4S # Run inference directly in the terminal: ./build/bin/llama-cli -hf YTan2000/Laguna-XS-2.1-TQ3_4S
Use Docker
docker model run hf.co/YTan2000/Laguna-XS-2.1-TQ3_4S
- LM Studio
- Jan
- vLLM
How to use YTan2000/Laguna-XS-2.1-TQ3_4S with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "YTan2000/Laguna-XS-2.1-TQ3_4S" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "YTan2000/Laguna-XS-2.1-TQ3_4S", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/YTan2000/Laguna-XS-2.1-TQ3_4S
- Ollama
How to use YTan2000/Laguna-XS-2.1-TQ3_4S with Ollama:
ollama run hf.co/YTan2000/Laguna-XS-2.1-TQ3_4S
- Unsloth Studio
How to use YTan2000/Laguna-XS-2.1-TQ3_4S with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for YTan2000/Laguna-XS-2.1-TQ3_4S to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for YTan2000/Laguna-XS-2.1-TQ3_4S to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for YTan2000/Laguna-XS-2.1-TQ3_4S to start chatting
- Pi
How to use YTan2000/Laguna-XS-2.1-TQ3_4S with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf YTan2000/Laguna-XS-2.1-TQ3_4S
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "YTan2000/Laguna-XS-2.1-TQ3_4S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use YTan2000/Laguna-XS-2.1-TQ3_4S with Docker Model Runner:
docker model run hf.co/YTan2000/Laguna-XS-2.1-TQ3_4S
- Lemonade
How to use YTan2000/Laguna-XS-2.1-TQ3_4S with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull YTan2000/Laguna-XS-2.1-TQ3_4S
Run and chat with the model
lemonade run user.Laguna-XS-2.1-TQ3_4S-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use YTan2000/Laguna-XS-2.1-TQ3_4S with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf YTan2000/Laguna-XS-2.1-TQ3_4S
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default YTan2000/Laguna-XS-2.1-TQ3_4S
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use YTan2000/Laguna-XS-2.1-TQ3_4S with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf YTan2000/Laguna-XS-2.1-TQ3_4S
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "YTan2000/Laguna-XS-2.1-TQ3_4S" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload README.md with huggingface_hub
Browse files
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)
|