Views
No views yet
This is a community conversion. Model architecture, license, intended use, and safety guidance belong to the original Poolside release.
| Item | Value |
|---|---|
| Base model | poolside/Laguna-S-2.1 |
| Format | MLX / Safetensors |
| Quantization | 8-bit affine |
| Group size | 64 |
| Apparent local size | ~116 GB |
| Parameters | 118B total, ~8B active |
| Context window | 1,048,576 tokens in the base config |
| Recommended hardware | Apple Silicon with enough unified memory for the weights plus KV/cache headroom |
enable_thinking in the chat template.| Benchmark | Laguna S 2.1 |
|---|---|
| Terminal-Bench 2.1 | 70.2% |
| SWE-bench Multilingual | 78.5% |
| SWE-Bench Pro | 59.4% |
| DeepSWE | 40.4% |
| SWE Atlas (Codebase QnA) | 46.2% |
| Toolathlon Verified | 49.7% |
mlx-lm cannot import model_type: laguna, use a Laguna-capable branch until support lands in your preferred release.1python -m venv ~/.venvs/mlx-laguna
2source ~/.venvs/mlx-laguna/bin/activate
3
4pip install -U mlx huggingface_hub
5pip install -U "git+https://github.com/pierre427/mlx-lm.git@pr/laguna-windowed-kv-sanitize"1from mlx_lm import load, generate
2
3model, tokenizer = load("Vontra/Laguna-S-2.1-MLX-8bit", tokenizer_config={"trust_remote_code": True})
4
5messages = [
6 {"role": "user", "content": "Write a Python retry helper with exponential backoff."}
7]
8
9prompt = tokenizer.apply_chat_template(
10 messages,
11 add_generation_prompt=True,
12 tokenize=False,
13 enable_thinking=False,
14)
15
16text = generate(model, tokenizer, prompt=prompt, max_tokens=512, verbose=True)
17print(text)1source ~/.venvs/mlx-laguna/bin/activate
2
3mlx_lm.server \
4 --model Vontra/Laguna-S-2.1-MLX-8bit \
5 --host 0.0.0.0 \
6 --port 8021 \
7 --trust-remote-code \
8 --chat-template-args '{"enable_thinking":false}' \
9 --max-tokens 4096 \
10 --decode-concurrency 1 \
11 --prompt-concurrency 1 \
12 --prefill-step-size 10241curl http://localhost:8021/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "default_model",
5 "messages": [
6 {"role": "user", "content": "Say hello in one short sentence."}
7 ],
8 "max_tokens": 64,
9 "stream": false
10 }'1{
2 "providers": {
3 "MLX-Studio": {
4 "baseUrl": "http://127.0.0.1:8021/v1",
5 "api": "openai-completions",
6 "models": [
7 {
8 "id": "default_model",
9 "name": "Laguna-S-2.1-MLX-8bit",
10 "reasoning": false,
11 "input": ["text"],
12 "contextWindow": 131072,
13 "maxTokens": 4096
14 }
15 ]
16 }
17 }
18}enable_thinking=false unless they understand separate reasoning fields.mlx-lm releases may not yet include Laguna support; a Laguna-capable branch may be required.