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-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use feyninc/sqrl-4b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="feyninc/sqrl-4b") 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-4b") model = AutoModelForMultimodalLM.from_pretrained("feyninc/sqrl-4b", 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-4b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "feyninc/sqrl-4b" # 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-4b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/feyninc/sqrl-4b
- SGLang
How to use feyninc/sqrl-4b 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-4b" \ --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-4b", "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-4b" \ --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-4b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use feyninc/sqrl-4b with Docker Model Runner:
docker model run hf.co/feyninc/sqrl-4b
Model card: measured pass@1 and vote-of-8 results, family comparison, voting notes
Browse files
README.md
CHANGED
|
@@ -34,15 +34,29 @@ It was trained in two stages:
|
|
| 34 |
|
| 35 |
## Results
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
| Benchmark | Metric | Score |
|
| 38 |
|---|---|---|
|
| 39 |
-
| BIRD-dev
|
| 40 |
-
| BIRD-dev
|
| 41 |
| Spider-test (2147) | pass@1 (pre-RL SFT checkpoint) | **80.3%** EX |
|
| 42 |
|
| 43 |
-
|
| 44 |
-
(
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## How it works — the agentic protocol
|
| 48 |
|
|
|
|
| 34 |
|
| 35 |
## Results
|
| 36 |
|
| 37 |
+
All BIRD-dev numbers measured on the full 1534-question set at temperature 0.7 with the
|
| 38 |
+
agentic harness (execution-clustered majority vote = sample 8 candidates, group them by
|
| 39 |
+
identical execution result set, return the largest cluster's query).
|
| 40 |
+
|
| 41 |
| Benchmark | Metric | Score |
|
| 42 |
|---|---|---|
|
| 43 |
+
| BIRD-dev | pass@1 (avg over 8 samples) | **64.6%** EX |
|
| 44 |
+
| BIRD-dev | vote-of-8 (execution-clustered) | **68.8%** EX |
|
| 45 |
| Spider-test (2147) | pass@1 (pre-RL SFT checkpoint) | **80.3%** 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 |
+
- Voting buys the 4B **+4.3 points** over single-pass — the largest voting gain in the
|
| 54 |
+
family (smaller models keep more sample diversity). vote-of-4 captures ~85% of that
|
| 55 |
+
gain at half the cost.
|
| 56 |
+
- Base Qwen3.5-4B scores ~52% on the same harness; the pre-RL SFT checkpoint ~63.6%.
|
| 57 |
+
- Vote unanimity is a strong free confidence signal: when all 8 samples agree the answer
|
| 58 |
+
is right ~87% of the time; narrow/tied votes are right ~19-43% — useful for routing
|
| 59 |
+
or escalation.
|
| 60 |
|
| 61 |
## How it works — the agentic protocol
|
| 62 |
|