Views
No views yet
open-r1/codeforces-cots.| Model | Score | Problems Passed |
|---|---|---|
| Base (Qwen3-0.6B) | 40.24% | 66/164 |
| Fine-tuned | 40.85% | 67/164 |
| Improvement | +0.61% | +1 problem |
| Run | Score | Result |
|---|---|---|
| 1 | 40.85% | Win (+1) |
| 2 | 40.24% | Tie |
| 3 | 39.63% | Loss (-1) |
codeforces-cots dataset is ~90% C++. Training on it for a Python benchmark (HumanEval) hurt performance in early attempts. Using the solutions_py subset doubled the baseline from ~18% to 40%.open-r1/codeforces-cots (solutions_py subset) - 500 examplesHF_TOKEN as a secret1hf jobs uv run \
2 --flavor a10g-small \
3 --timeout 14400 \
4 --secrets HF_TOKEN \
5 "https://huggingface.co/passagereptile455/training-scripts/resolve/main/train_humaneval_clean.py"1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("passagereptile455/qwen3-humaneval-sft")
4tokenizer = AutoTokenizer.from_pretrained("passagereptile455/qwen3-humaneval-sft")
5
6messages = [{"role": "user", "content": "Write a Python function to check if a number is prime"}]
7text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
8inputs = tokenizer(text, return_tensors="pt")
9outputs = model.generate(**inputs, max_new_tokens=256)
10print(tokenizer.decode(outputs[0], skip_special_tokens=True))processing_class not tokenizerHfApi(token=) not login()token= to push_to_hub() explicitly