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 "bigatuna/Qwen3-0.6B-Sushi-Coder" \
    --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": "bigatuna/Qwen3-0.6B-Sushi-Coder",
		"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 "bigatuna/Qwen3-0.6B-Sushi-Coder" \
        --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": "bigatuna/Qwen3-0.6B-Sushi-Coder",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Qwen3-0.6B-Sushi-Coder

Qwen3-0.6B-Sushi-Coder

A 0.6B code generation model fine-tuned from Qwen3-0.6B for Python code generation.

Training

This model was trained in two stages:

  1. GRPO using TRL with reward model based on test execution and formatting
  2. SFT on microsoft/rStar-Coder and open-r1/codeforces-cots

Training was done on HuggingFace Jobs infrastructure using TRL.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "bigatuna/Qwen3-0.6B-Sushi-Coder"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")

messages = [
    {"role": "user", "content": "Write a Python function to check if a number is prime."}
]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)

outputs = model.generate(
    **inputs,
    max_new_tokens=512,
    temperature=0.6,
    top_p=0.95,
    do_sample=True
)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))

Recommended Parameters

Setting Value
Temperature 0.6
Top-p 0.95
Top-k 20
Max tokens 2048

Note: Avoid greedy decoding (temperature=0) as it can cause repetition issues with Qwen3 models.

Evaluation

Model pass@1
Qwen/Qwen3-0.6B (base) 20.1%
Qwen3-0.6B-Sushi-Coder 29.3%

Note: The model scores slightly higher with prompt tuning and max_model_len=4000, but the results above represent baseline settings.

The evaluation can be reproduced with the following command:

lm_eval \
  --model vllm \
  --model_args pretrained=bigatuna/Qwen3-0.6B-Sushi-Coder,tensor_parallel_size=1,dtype=float16,gpu_memory_utilization=0.8,max_model_len=2048,trust_remote_code=True \
  --tasks humaneval \
  --batch_size 1 \
  --confirm_run_unsafe_code

Baseline comparison:

lm_eval \
  --model vllm \
  --model_args pretrained=Qwen/Qwen3-0.6B,tensor_parallel_size=1,dtype=float16,gpu_memory_utilization=0.8,max_model_len=2048,trust_remote_code=True \
  --tasks humaneval \
  --batch_size 1 \
  --confirm_run_unsafe_code

Limitations

  • Optimized for Python; other languages may have reduced quality
  • Small model size limits complex reasoning
  • May generate plausible but incorrect code for edge cases

License

Apache 2.0

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

Model tree for bigatuna/Qwen3-0.6B-Sushi-Coder

Finetuned
Qwen/Qwen3-0.6B
Finetuned
(1207)
this model
Merges
3 models

Datasets used to train bigatuna/Qwen3-0.6B-Sushi-Coder