These are ballpark for a 4B model. Real usage varies by runtime and context length.
1./llama-cli -m Qwen-3-4b-Text_to_SQL-q4_k_m.gguf \
2 -p "Generate SQL to get average salary by department in 2024." \
3 -n 256 -t 6
1./llama-cli -m Qwen-3-4b-Text_to_SQL-q4_k_m.gguf \
2 -p "Generate SQL to get average salary by department in 2024." \
3 -n 256 -ngl 999 -t 6
1from llama_cpp import Llama
2
3llm = Llama(model_path="Qwen-3-4b-Text_to_SQL-q4_k_m.gguf", n_ctx=4096, n_gpu_layers=35) # set 0 for CPU-only
4prompt = "Generate SQL to list total orders and revenue by month for 2024."
5out = llm(prompt, max_tokens=256, temperature=0.2, top_p=0.9)
6print(out["choices"][0]["text"].strip())
1./llama-quantize Qwen-3-4b-Text_to_SQL-F16.gguf Qwen-3-4b-Text_to_SQL-q4_k_m.gguf Q4_K_M
2# likewise for q2_k, q3_k_m, q5_k_m, q8_0
Apache-2.0. Include license and NOTICE from upstream when redistributing the weights. Do not imply endorsement from Qwen or original authors.