Views
No views yet
ByteDance-Seed/Seed-Coder-8B-Reasoning via the RLA-SPC two-stage alignment strategy:| Model | Pass@1 | Pass@5 | Pass@5_period | Pass@5_compliance | Pass@5_strict | Overall Avg |
|---|---|---|---|---|---|---|
| Seed-Coder-8B-R (baseline) | 11.72 | 21.09 | 0.78 | 3.13 | 0.78 | 6.51 |
| AutoBM-Seed-Coder-8B-R (this model) | 64.18 | 97.28 | 78.05 | 92.47 | 77.14 | 81.95 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "yongqiqng/AutoBM-Seed-Coder-8B-R"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10)
11
12prompt = '''Generate OpenSeesPy code to model a 5-story reinforced concrete frame building:
13- Floor height: 3.5 m
14- Bay width: 6 m (3 bays in X, 2 bays in Y)
15- Seismic intensity: 0.2g
16Compute the fundamental period.'''
17
18messages = [{"role": "user", "content": prompt}]
19inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)
20outputs = model.generate(inputs, max_new_tokens=4096, temperature=0.6, top_p=0.95, do_sample=True)
21print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))| Stage | Method | Data |
|---|---|---|
| Stage I | Supervised Fine-Tuning | CivilInstruct SFT (9,894 train + 202 val) |
| Stage II | SPC-GRPO with MGHR | CivilInstruct RL (455 train + 57 test) |
r_fmt (Format, weight 0.05) — <think>...</think><answer>...</answer> structurer_ast (AST, weight 0.25) — three-tiered OpenSeesPy API coverager_exec (Execution, weight 0.70) — sandboxed OpenSeesPy execution + period error grading1@article{jiang2026rethinking,
2 title={Rethinking Scientific Modeling: Toward Physically Consistent and Simulation-Executable Programmatic Generation},
3 author={Jiang, Yongqing and Wang, Jianze and Shen, Zhiqi and Lin, Zhenghong and Wang, Jiayuan and Yang, Yijian and Dai, Kaoshan and Luo, Haoran},
4 journal={arXiv preprint arXiv:2602.07083},
5 year={2026}
6}