CoolFace
Modelpublic

IIGroup/X-Coder-SFT-Qwen3-8B

sourceHugging Faceapache-2.0updated 9mo agoView on Hugging Face
3likes29downloads
Model Card

X-Coder-SFT-Qwen3-8B

X-Coder-SFT-Qwen3-8B is a code generation model fine-tuned on fully synthetic instruction data, designed for competitive programming tasks. It serves as the foundation for subsequent RLVR training.

Model Description

Training

This model was trained using ms-swift. For training details and code, please refer to the X-Coder GitHub repository.

Training Hyperparameters

ParameterValue
Base ModelQwen/Qwen3-8B-Base
Training TypeFull Parameter
Epochs8
Global Batch Size128
Learning Rate5e-5
Max Grad Norm1.0
Max Length32768
Torch Dtypebfloat16
DeepSpeedZero3 Offload (80GB VRAM) / Zero2 (142GB VRAM)
PackingTrue (2x faster training, slightly worse performance)

Performance on LiveCodeBench v5.

[image]

Recommended Inference Parameters

ParameterValue
temperature0.6
top_p0.95
top_k20 (or -1 to disable)
maxnewtokens32768

Usage

python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "IIGroup/X-Coder-SFT-Qwen3-8B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")

prompt = "Write a Python function to solve the two sum problem."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
    **inputs,
    max_new_tokens=32768,
    temperature=0.6,
    top_p=0.95,
    top_k=20,
    do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Related Models

Citation

bibtex
@misc{wu2026xcoderadvancingcompetitiveprogramming,
      title={X-Coder: Advancing Competitive Programming with Fully Synthetic Tasks, Solutions, and Tests}, 
      author={Jie Wu and Haoling Li and Xin Zhang and Jiani Guo and Jane Luo and Steven Liu and Yangyu Huang and Ruihang Chu and Scarlett Li and Yujiu Yang},
      year={2026},
      eprint={2601.06953},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2601.06953}, 
}

License

This project is licensed under the Apache License 2.0.