How to use from
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 "Vicen-te/qwen3.5-2b-sql" \
    --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": "Vicen-te/qwen3.5-2b-sql",
		"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 "Vicen-te/qwen3.5-2b-sql" \
        --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": "Vicen-te/qwen3.5-2b-sql",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Qwen3.5-2B · SQL (merged)

Qwen/Qwen3.5-2B with a LoRA SQL adapter merged in. Drop-in replacement for the base — same architecture, same tokenizer, no PEFT runtime dependency.

Usage with transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

tok = AutoTokenizer.from_pretrained("Vicen-te/qwen3.5-2b-sql")
model = AutoModelForCausalLM.from_pretrained("Vicen-te/qwen3.5-2b-sql", dtype="auto", device_map="auto")

Usage with vLLM

vllm serve Vicen-te/qwen3.5-2b-sql --max-model-len 4096 --served-model-name sql-ft

Training

  • Base model: Qwen/Qwen3.5-2B
  • Method: LoRA (rank=16, α=32) → merged via peft.merge_and_unload()
  • Dataset: Vicen-te/sql-create-context-mini — 300 train / 200 eval
  • Recipe: 3 epochs, bf16, effective batch 16, cosine LR 2e-4

Evaluation

Compared against the base model on a held-out 200-example split. See the project repo for the full report (executable accuracy, exact match, BLEU, latency, 4-bit quantization trade-off).

License

Apache 2.0, inherited from the base model.

Downloads last month
7
Safetensors
Model size
2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Vicen-te/qwen3.5-2b-sql

Finetuned
Qwen/Qwen3.5-2B
Finetuned
(307)
this model

Dataset used to train Vicen-te/qwen3.5-2b-sql