Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
text-to-sql
sql
bird
spider
agentic
qwen3.5
conversational
Instructions to use feyninc/sqrl-9b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use feyninc/sqrl-9b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="feyninc/sqrl-9b") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("feyninc/sqrl-9b") model = AutoModelForMultimodalLM.from_pretrained("feyninc/sqrl-9b", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use feyninc/sqrl-9b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "feyninc/sqrl-9b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "feyninc/sqrl-9b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/feyninc/sqrl-9b
- SGLang
How to use feyninc/sqrl-9b 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 "feyninc/sqrl-9b" \ --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": "feyninc/sqrl-9b", "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 "feyninc/sqrl-9b" \ --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": "feyninc/sqrl-9b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use feyninc/sqrl-9b with Docker Model Runner:
docker model run hf.co/feyninc/sqrl-9b
Model card: measured pass@1 and vote-of-8 results, family comparison, voting notes
Browse files
README.md
CHANGED
|
@@ -35,13 +35,29 @@ Training stages:
|
|
| 35 |
|
| 36 |
## Results
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
| Benchmark | Metric | Score |
|
| 39 |
|---|---|---|
|
| 40 |
-
| BIRD-dev
|
| 41 |
-
| BIRD-dev
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
## How it works — the agentic protocol
|
| 47 |
|
|
|
|
| 35 |
|
| 36 |
## Results
|
| 37 |
|
| 38 |
+
All BIRD-dev numbers measured on the full 1534-question set at temperature 0.7 with the
|
| 39 |
+
agentic harness (execution-clustered majority vote = sample 8 candidates, group them by
|
| 40 |
+
identical execution result set, return the largest cluster's query).
|
| 41 |
+
|
| 42 |
| Benchmark | Metric | Score |
|
| 43 |
|---|---|---|
|
| 44 |
+
| BIRD-dev | pass@1 (avg over 8 samples) | **66.6%** EX |
|
| 45 |
+
| BIRD-dev | vote-of-8 (execution-clustered) | **69.8%** EX |
|
| 46 |
+
|
| 47 |
+
Family comparison on identical seeds (pass@1 / vote@8):
|
| 48 |
+
[sqrl-4b](https://huggingface.co/feyninc/sqrl-4b) 64.6 / 68.8 ·
|
| 49 |
+
[sqrl-9b](https://huggingface.co/feyninc/sqrl-9b) 66.6 / 69.8 ·
|
| 50 |
+
[sqrl-35b-a3b](https://huggingface.co/feyninc/sqrl-35b-a3b) 68.7 / 70.6.
|
| 51 |
+
|
| 52 |
+
Notes from the measurement campaign:
|
| 53 |
+
- **sqrl-9b vote-of-8 (69.8%) is the family's cost/performance sweet spot** — within
|
| 54 |
+
0.8 pts of anything the whole family achieves under any sampling/voting scheme,
|
| 55 |
+
including the 35B. vote-of-4 captures ~85% of the voting gain at half the cost.
|
| 56 |
+
- Vote unanimity is a strong free confidence signal: when all 8 samples agree (~60% of
|
| 57 |
+
questions) the answer is right ~87% of the time; narrow/tied votes are right ~19-43% —
|
| 58 |
+
useful for routing or escalation.
|
| 59 |
+
- The pre-RL SFT checkpoint scores 64.0% pass@1 on the same harness; base Qwen3.5-9B
|
| 60 |
+
scores ~56%.
|
| 61 |
|
| 62 |
## How it works — the agentic protocol
|
| 63 |
|