Ultra-Fast 3B-Active MoE Text-to-SQL RLVR Specialist on Apache-2.0 Qwen/Qwen3.6-35B-A3B (35B Total / 3B Active Parameters) — achieving #1 Complex SQL Execution Accuracy in the Flintglass Stack (74.73% across 459 non-basic SQL schemas, +2.62 pts), 64.14% Macro Complexity (+2.15 pts), +11.77 pts on Multi-Joins (64.71%), +5.00 pts on Single Joins (84.29%), and crisp 27.1 average tokens (-13%) at 3B-class inference speed!
Part of the Flintglass Prism Open-Source Agent & RAG Stack · GGUF Quantizations:
flintglass/PrismSQL-35B-A3B-GGUF(Q4_K_M,Q6_K)
Every prediction is executed against an isolated in-memory SQLite database populated with schema DDL + sample rows, and verified by normalized result-set equivalence against gold SQL (enable_thinking=False, greedy decoding):
| SQL Category | Tasks | Qwen/Qwen3.6-35B-A3B (Base) |
flintglass/PrismSQL-35B-A3B |
Delta |
|---|---|---|---|---|
| Overall SQLite Execution Accuracy | 1,000 | 81.10% | 82.00% | +0.90 pts |
| Complex SQL (Non-Basic, 459 tasks) | 459 | 72.11% | 74.73% | +2.62 pts |
| Macro Complexity Avg (7 cats) | 1,000 | 61.99% | 64.14% | +2.15 pts |
single join |
140 | 79.29% | 84.29% | +5.00 pts |
multiple_joins |
17 | 52.94% | 64.71% | +11.77 pts |
subqueries |
49 | 69.39% | 71.43% | +2.04 pts |
aggregation |
224 | 74.11% | 75.45% | +1.34 pts |
set operations |
7 | 28.57% | 28.57% | 0.00 pts |
basic SQL |
541 | 88.72% | 88.17% | -0.55 pts |
window functions |
22 | 40.91% | 36.36% | -4.55 pts |
| Raw Clean SQL Rate | 1,000 | 86.4% | 88.4% | +2.0 pts |
| Avg Output Tokens | 1,000 | 31.3 | 27.1 | -13% |
transformers)import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "flintglass/PrismSQL-35B-A3B"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
messages = [
{"role": "system", "content": "Return ONLY a valid SQLite SELECT query."},
{"role": "user", "content": "Schema:\nCREATE TABLE orders(id INT, customer_id INT, total REAL);\nCREATE TABLE customers(id INT, country TEXT);\n\nQuestion: Top 5 countries by total revenue."},
]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=192, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
Qwen/Qwen3.6-35B-A3B (Apache-2.0, 35B total / 3B active MoE)r=32, 50 steps, K=8 rollouts/prompt, live in-memory SQLite execution reward). Zero synthetic SFT, zero proprietary distillation.model-00001-of-00026.safetensors 3.7 GiBmodel-00006-of-00026.safetensors 3.7 GiBmodel-00016-of-00026.safetensors 3.7 GiBmodel-00008-of-00026.safetensors 3.7 GiBmodel-00010-of-00026.safetensors 3.7 GiBmodel-00018-of-00026.safetensors 3.7 GiBmodel-00025-of-00026.safetensors 3.6 GiBmodel-00014-of-00026.safetensors 3.2 GiBmodel-00012-of-00026.safetensors 3.2 GiBmodel-00020-of-00026.safetensors 3.2 GiBmodel-00022-of-00026.safetensors 3.1 GiBmodel-00024-of-00026.safetensors 3.1 GiBmodel-00004-of-00026.safetensors 3.1 GiBmodel-00023-of-00026.safetensors 3.1 GiBmodel-00003-of-00026.safetensors 3.1 GiBmodel-00005-of-00026.safetensors 3.1 GiBmodel-00026-of-00026.safetensors 2.1 GiBmodel-00015-of-00026.safetensors 1.5 GiBmodel-00021-of-00026.safetensors 1.5 GiBmodel-00013-of-00026.safetensors 1.5 GiBmodel-00002-of-00026.safetensors 1.2 GiBmodel-00007-of-00026.safetensors 1.0 GiBmodel-00009-of-00026.safetensors 1.0 GiBmodel-00019-of-00026.safetensors 1.0 GiBmodel-00011-of-00026.safetensors 1.0 GiBmodel-00017-of-00026.safetensors 1.0 GiB