Text Generation
Transformers
Safetensors
laguna
laguna-xs.2
vllm
conversational
custom_code
Eval Results
Instructions to use poolside/Laguna-XS.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use poolside/Laguna-XS.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="poolside/Laguna-XS.2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("poolside/Laguna-XS.2", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("poolside/Laguna-XS.2", trust_remote_code=True, device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- AMD Developer Cloud
- Local Apps Settings
- vLLM
How to use poolside/Laguna-XS.2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "poolside/Laguna-XS.2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "poolside/Laguna-XS.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/poolside/Laguna-XS.2
- SGLang
How to use poolside/Laguna-XS.2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "poolside/Laguna-XS.2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "poolside/Laguna-XS.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "poolside/Laguna-XS.2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "poolside/Laguna-XS.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use poolside/Laguna-XS.2 with Docker Model Runner:
docker model run hf.co/poolside/Laguna-XS.2
Commit History
-
Update README.md
Verified signaturecfcb898
-
Update .eval_results/terminal-bench-2.0.yaml
Verified signature1162d99 -
Update .eval_results/swe-bench_verified.yaml
Verified signaturec5fe6fd -
Update .eval_results/swe-bench_pro.yaml
Verified signature3b9ed24
-
update sampling parameters to match evals
07c6c8e
-
Update model card for 256K context length
Verified signaturea6da52e -
increase context length to 256k
339151d -
Add tech report
Verified signaturecfa46f7
-
Drop VLLM_USE_DEEP_GEMM=0 from vllm serve recipe (DeepGEMM is supported on Hopper and datacenter Blackwell)
Verified signaturebb5158c
-
Update vLLM install instructions: 0.21.0+ supports Laguna XS, no nightly needed
Verified signature3c519e6
-
Add DFlash speculative decoding section
e5916e1
-
Update README.md
Verified signature7ffaee5
-
Fix typo
Verified signatured38ff3c -
Fix typo
Verified signaturef07da4d
-
Enable thinking by default in recommended vllm serve command
Verified signatureAdds --default-chat-template-kwargs '{"enable_thinking": true}' so the local recipe matches the Poolside API behavior and the 'preserved thinking is recommended' guidance elsewhere in the card. Without this flag, the chat template defaults enable_thinking to false.be45e1e -
Update vLLM serve command and link to vLLM recipes page
Verified signatureSwitches the recommended vllm serve invocation to the new flag set (VLLM_USE_DEEP_GEMM=0, --enable-auto-tool-choice, --served-model-name laguna) and adds a pointer to https://recipes.vllm.ai/poolside/Laguna-XS.2.30ca10b -
Drop install-from-source note for Transformers
Verified signatureLaguna XS.2 support shipped in Transformers v5.7.0, so the source-install workaround is no longer needed.de04ba5 -
Update vLLM install instructions to use nightly wheel
Verified signatureLaguna XS.2 support landed upstream in vllm-project/vllm#41129, so the install-from-source dance is no longer needed. Point users at the nightly wheel until the next vLLM release.598f732
-
Add community evaluation results for SWE-BENCH_PRO, SWE-BENCH_VERIFIED, TERMINAL-BENCH-2.0 (#5)
- Add community evaluation results for SWE-BENCH_PRO, SWE-BENCH_VERIFIED, TERMINAL-BENCH-2.0 (ddf30910c08f1d788449c489cb408b07bf223bc8) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>06367f7 -
Laguna XS.2 upload
7b8e693