Views
No views yet
<think><focus>…</focus><focus_attr>…</focus_attr></think> \boxed{reply}; the \boxed{} content is the
in-character answer and <focus> carries the cognitive tags the rule-based reward optimizes.1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base = "Qwen/Qwen2.5-3B-Instruct"
5tok = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
6model = AutoModelForCausalLM.from_pretrained(base, torch_dtype="bfloat16", device_map="auto")
7model = PeftModel.from_pretrained(model, "Bot42/Anima")| axis | Base | SFT | DPO | GRPO |
|---|---|---|---|---|
| role-play heldout (rule replay) | 0.00 | 0.82 | 0.82 | 0.82 |
| quality proxy (4-bit scalar) | 0.30 | 0.41 | 0.41 | 0.40 |
| social/role MCQ | 0.19 | 0.23 | 0.24 | 0.24 |
| general-capability canary | 0.46 | 0.53 | 0.51 | 0.53 |
https://github.com/Firefly0237/Anima).