Fdxyra
Laguna-XS-2.1
Available on FriendliAI
Run this model inference on single tenant GPU with unmatched speed and reliability at scale.
Model Details
Model Provider
Fdxyra
Model Tree
Input Modalities
Output Modalities
Supported Functionality
GLM-5.2 is live. #1 throughput on OpenRouter, pay-per-token on FriendliAI. Try it today ➜
Fdxyra
Available on FriendliAI
Run this model inference on single tenant GPU with unmatched speed and reliability at scale.
Model Details
Model Provider
Fdxyra
Model Tree
Input Modalities
Output Modalities
Supported Functionality
| Model | Size (total params.) | SWE-bench Verified | SWE-bench Multilingual | SWE-Bench Pro (Public Dataset) | Terminal-Bench 2.0 |
|---|---|---|---|---|---|
| Laguna XS 2.1 | 33B | 70.9% | 63.1% | 47.6% | 37.5% |
| Laguna XS.2 | 33B | 69.9% | 57.7% | 46.3% | 35.7% |
| Qwen3.6-35B-A3B |
We used the highest publicly-referenced scores for all comparison models across each benchmark. In all cases these were official scores published in release blog posts or equivalent, with the exception of gpt-oss-120b and Claude Haiku 4.5 where the highest published (verified) scores for SWE-Bench Pro and Terminal-Bench 2.0 are from their respective official leaderboards.
All benchmarking for Laguna XS 2.1 was completed using Laude Institute’s Harbor Framework with our agent harness, with a maximum of 500 steps and sandboxed execution. The same sampling parameters were used for all Laguna XS 2.1 benchmarking: temperature=1.0, top_k=20 and top_p=1, with thinking mode enabled and a context length of 256K tokens. All tasks were run in their own sandbox using 8 GB RAM/2 CPUs, with the exception of Terminal-Bench 2.0, which used 48 GB RAM/32 CPUs.
Some base task images and verifiers were patched to fix infrastructure reliability issues inherent in task setup, such as rate limits on third-party dependencies in external registries used by the verifier. All four agentic benchmarks were run with patched images. We also ran a reward-hack judge post-hoc on Laguna XS 2.1 evaluation runs and did not find significant reward hacking after joint judge review and manual review.
Laguna XS 2.1 has launch-day support in vLLM, SGLang, Transformers and Llama.cpp, and TRT-LLM thanks to the support of the team at NVIDIA.
The fastest way to get started is using OpenRouter.
[!NOTE] We are providing free inference for a limited time for Laguna XS 2.1, as well as our larger 225B model, Laguna M.1. Visit our provider page on OpenRouter to get started.
pool is a lightweight terminal-based coding agent and a dual Agent Client Protocol client-server.
Download and install for macOS and Linux:
shell
curl -fsSL https://downloads.poolside.ai/pool/install.sh | bash
Launch and > Log in with Poolside to get a free, limited-use API key.
Alternatively, use Poolside models alongside the wide catalog of models available on OpenRouter by selecting > Log in with OpenRouter.
shell
pool login
Use in any ACP client. Configure Zed and JetBrains automatically:
shell
pool acp setup --editor zed|jetbrains
Use pool with Ollama with one-command setup:
shell
ollama pull laguna-xs-2.1ollama launch pool --model laguna-xs-2.1
Submit feedback with /feedback and read the full documentation on GitHub.
Laguna XS 2.1 is supported in vLLM, SGLang, Transformers and Llama.cpp, and TRT-LLM thanks to the support of the team at NVIDIA. Use Laguna-XS 2.1 with Ollama (with MLX support) and the mlx-lm framework for the best experience on your local machine.
Serve Laguna XS 2.1 locally with vLLM and query it from any OpenAI-compatible client (see Controlling reasoning for tool calls, streaming, and reasoning extraction):
[!NOTE] Laguna XS 2.1 support is available in vLLM 0.21.0 and later (vllm-project/vllm#41129).
[!IMPORTANT] Use a vLLM build that includes vllm-project/vllm#47311. Without that fix, the
poolside_v1tool parser silently drops Laguna XS 2.1 tool calls that have no newline after the function name, and the raw tool-call markup leaks into the response. On an older build, pass--tool-call-parser glm47(the GLM 4.7 parser) instead.
shell
pip install 'vllm>=0.21.0'vllm serve \--model poolside/Laguna-XS-2.1 \--tool-call-parser poolside_v1 \--reasoning-parser poolside_v1 \--enable-auto-tool-choice \--served-model-name laguna \--default-chat-template-kwargs '{"enable_thinking": true}'
See the vLLM recipes page for additional deployment guidance.
[!NOTE] Optional: speculative decoding with DFlash. For lower latency, pair Laguna XS 2.1 with the DFlash speculator, a 5-layer Llama-style draft model that proposes up to 7 tokens per step at ~70% per-position acceptance on coding tasks. vLLM support is in progress in vllm-project/vllm#46853; once it lands, add
--speculative-config '{"model":"poolside/Laguna-XS-2.1-DFlash","num_speculative_tokens":7,"method":"dflash"}'to the serve command above.
Laguna XS 2.1 is supported in SGLang via sgl-project/sglang#24204. See the SGLang cookbook entry for a serving recipe.
shell
git clone https://github.com/sgl-project/sglang.gitcd sglangpip install -e "python[all]"python -m sglang.launch_server \--model-path poolside/Laguna-XS-2.1 \--tp-size 8 \--mem-fraction-static 0.7 \--reasoning-parser poolside_v1 \--trust-remote-code
[!NOTE] Optional: speculative decoding with DFlash. The DFlash speculator can be paired with Laguna XS 2.1 for lower latency. SGLang support was added in sgl-project/sglang#29446. Add
--speculative-algorithm DFLASH \ --speculative-draft-model-path poolside/Laguna-XS-2.1-DFlash-FP8to the serve command above.
Laguna XS 2.1 is supported in Transformers v5.7.0 and later (huggingface/transformers#45673).
python
import torchfrom transformers import AutoModelForCausalLM, AutoTokenizermodel_id = "poolside/Laguna-XS-2.1"tokenizer = AutoTokenizer.from_pretrained(model_id)model = AutoModelForCausalLM.from_pretrained(model_id,dtype=torch.bfloat16,device_map="auto",)messages = [{"role": "user", "content": "Write a Python retry wrapper with exponential backoff."},]# Reasoning is on by default; pass enable_thinking=False to skip the <think> block.inputs = tokenizer.apply_chat_template(messages,add_generation_prompt=True,return_tensors="pt",enable_thinking=True,).to(model.device)outputs = model.generate(inputs,max_new_tokens=1024,do_sample=True,temperature=1.0,top_k=20,)response = tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True)print(response)
Laguna XS 2.1 support is merged into TensorRT-LLM (NVIDIA/TensorRT-LLM#13559) and ships in the v1.3.0rc16 pre-release wheels and later.
[!NOTE] A stable
v1.3.0has not been released yet, so install a pre-release wheel from NVIDIA's package index (the latest stable,v1.2.x, does not include Laguna XS 2.1 support). To build from source instead, see the TensorRT-LLM build documentation. Laguna XS 2.1 support is onmain.
Install the CUDA-13 torch build first, then TensorRT-LLM. The default PyPI torch is a CUDA-12 build whose cuda-bindings pin conflicts with TRT-LLM's cuda-python 13.x, so a bare pip install tensorrt-llm fails to resolve; installing the cu130 torch up front avoids it.
shell
# 1. CUDA-13 torch build (pins cuda-bindings 13.x, matching TRT-LLM's cuda-python)pip install 'torch==2.10.0' torchvision --index-url https://download.pytorch.org/whl/cu130# 2. TRT-LLM from NVIDIA's index (torch already satisfied, so it is not replaced)pip install --pre 'tensorrt-llm>=1.3.0rc16' \--extra-index-url https://pypi.nvidia.com \--extra-index-url https://download.pytorch.org/whl/cu130
This resolves to tensorrt-llm 1.3.0rc20 with torch 2.10.0+cu130, cuda-python 13.0.3, and transformers 5.5.4.
Load the checkpoint directly with trust_remote_code=True. No transformers compatibility overlay is required: v1.3.0rc16+ pins transformers 5.5.4, which provides the symbols Laguna XS 2.1's config needs (earlier TRT-LLM releases pinned transformers 4.57, which did not).
python
from tensorrt_llm import LLM, SamplingParamsllm = LLM(model="poolside/Laguna-XS-2.1",trust_remote_code=True,tensor_parallel_size=1,)sampling = SamplingParams(max_tokens=1024, temperature=1.0, top_k=20)out = llm.generate(["Write a Python retry wrapper with exponential backoff."], sampling)print(out[0].outputs[0].text)
Or serve with an OpenAI-compatible endpoint:
shell
trtllm-serve poolside/Laguna-XS-2.1 --port 8000 --trust-remote-code --tool_parser poolside_v1 --reasoning_parser laguna
The Laguna XS 2.1 tool-call and reasoning parsers are built into TRT-LLM >=1.3.0rc16 (shipped with #13559), so no extra install is needed. Note that the flag names differ from vLLM's (--tool_parser, and the reasoning parser is laguna, not poolside_v1).
The same recipe works for the FP8 and NVFP4 variants: quantization is detected automatically from quantization_config, no extra flags required.
[!NOTE] Optional: speculative decoding with DFlash. The DFlash speculator can be paired with Laguna XS 2.1 for lower latency. TRT-LLM support is in progress in NVIDIA/TensorRT-LLM#15666.
[!NOTE] Requires building llama.cpp from the upstream PR that adds Laguna XS 2.1 support until it lands (ggml-org/llama.cpp#25165).
Official GGUF conversions (BF16 and Q4_K_M) are available at poolside/Laguna-XS-2.1-GGUF.
shell
# Build llama.cpp from the PR branchgit clone https://github.com/ggml-org/llama.cpp && cd llama.cppgit fetch origin pull/25165/head:laguna && git checkout lagunacmake -B build && cmake --build build -j# Download a GGUF and serve an OpenAI-compatible endpointhuggingface-cli download poolside/Laguna-XS-2.1-GGUF Laguna-XS-2.1-Q4_K_M.gguf --local-dir ~/models/Laguna-XS-2.1-GGUF./build/bin/llama-server -m ~/models/Laguna-XS-2.1-GGUF/Laguna-XS-2.1-Q4_K_M.gguf --jinja --port 8000
Available on the Ollama library.
markdown
ollama run laguna-xs-2.1 # default — Q4_K_M (imatrix)ollama run laguna-xs-2.1:q8_0 # higher precisionollama run laguna-xs-2.1:bf16 # full precision
Reasoning and tool-calling work out of the box via the built-in laguna template.
[!NOTE] macOS (Metal) users: Chat (
ollama run//api/chat) works as expected on Linux/CUDA. On macOS/Metal it may currently return empty output; the root cause is not yet fully understood and we're investigating it with the Ollama team. On a Mac, use a Linux/CUDA host, or the/api/generateendpoint with"raw": true.
Laguna XS 2.1 is also available in Atomic Chat, a desktop app for running local models with a simple chat UI. To try it, download Atomic Chat, open the app, and choose Laguna XS 2.1 from the recommended models.
Laguna XS 2.1 has native reasoning support and is designed to work best with preserved thinking, where reasoning content from prior assistant messages is preserved in the message history. This model will generally reason before calling tools and between tool calls.
Reasoning may not be generated in follow-up steps if prior thinking blocks are dropped (i.e., thinking is not preserved) when messages are reconstructed over multiple steps.
python
import jsonfrom openai import OpenAIclient = OpenAI(base_url="https://openrouter.ai/api/v1",api_key="...",)model = "poolside/laguna-xs-2.1"tools = [{"type": "function", "function": {"name": "shell","description": "Execute a bash command and return the output.","parameters": {"type": "object", "properties": {"cmd": {"type": "string"}}, "required": ["cmd"]},}}]messages = [{"role": "system", "content": "You are a coding agent with access to a shell tool."},{"role": "user", "content": "Run uname -a"},]# Thinking is enabled by default when the server sets --default-chat-template-kwargs {"enable_thinking": True}# When using OpenRouter's Chat API (https://openrouter.ai/api/v1), this flag is set by defaultresponse = client.chat.completions.create(model=model,messages=messages,tools=tools,stream=True,)reasoning, content, tool_calls = "", "", []for chunk in response:delta = chunk.choices[0].deltaif hasattr(delta, "reasoning_content") and delta.reasoning_content:reasoning += delta.reasoning_contentif hasattr(delta, "content") and delta.content:content += delta.contentif hasattr(delta, "tool_calls") and delta.tool_calls:for tc in delta.tool_calls:if tc.index >= len(tool_calls):tool_calls.append({"id": tc.id, "function": {"name": "", "arguments": ""}})if tc.function.name:tool_calls[tc.index]["function"]["name"] = tc.function.nameif tc.function.arguments:tool_calls[tc.index]["function"]["arguments"] += tc.function.argumentsprint(f"Reasoning: {reasoning}\nContent: {content}\nTool calls: {tool_calls}\n")# Return reasoning in the next request for best performancemessages.append({"role": "assistant","content": content,"reasoning_content": reasoning,"tool_calls": [{"id": tc["id"], "type": "function", "function": tc["function"]} for tc in tool_calls]})messages.append({"role": "tool","tool_call_id": tool_calls[0]["id"],"content": json.dumps({"stdout": "Darwin arm64", "exit_code": "0"})})response = client.chat.completions.create(model=model,messages=messages,tools=tools,stream=True,)reasoning, content = "", ""for chunk in response:delta = chunk.choices[0].deltaif hasattr(delta, "reasoning_content") and delta.reasoning_content:reasoning += delta.reasoning_contentif hasattr(delta, "content") and delta.content:content += delta.contentprint(f"Reasoning: {reasoning}\nContent: {content}")
You can disable thinking by setting enable_thinking to False in a request or by not providing --default-chat-template-kwargs {"enable_thinking": True} or equivalent when starting the server.
python
from openai import OpenAIclient = OpenAI()completion = client.chat.completions.create(model="poolside/laguna-xs-2.1",messages=[{"role": "user", "content": "Write a retry wrapper with exponential backoff."}],extra_body={"chat_template_kwargs": { "enable_thinking": False },},stream=True)for chunk in completion:print(chunk.choices[0].delta)
For agentic coding use cases, we recommend enabling thinking and preserving reasoning in message history as outlined in the Controlling reasoning section.
This model is licensed under the OpenMDW-1.1 License.
Laguna XS 2.1 is designed for software engineering and agentic coding use cases, and you are responsible for confirming that it is appropriate for your intended application. Laguna XS 2.1 is subject to the OpenMDW-1.1 License, and should be used consistently with Poolside's Acceptable Use Policy. We advise against circumventing Laguna XS 2.1 safety guardrails without implementing substantially equivalent mitigations appropriate for your use case.
Please report security vulnerabilities or safety concerns to security@poolside.ai.
| 35B |
| 73.4% |
| 67.2% |
| 49.5% |
| 51.5% |
| North Mini Code | 30B | 67.6% | - | 40.2% | 36.0% |
| MAI-Code-1-Flash | 137B | 71.6% | 65.5% | 51.2% | 54.8% |
| gpt-oss-120B | 120B | - | - | 16.2% | 18.7% |
| Claude Haiku 4.5 | - | 73.3% | - | 39.5% | 29.8% |
| GPT-5.4 Nano | - | - | - | 52.4% | 46.3% |