Use this skill when a DeBERTa recovery needs a RACE-style article, question, four-option candidate layout, and accuracy calculation. The skill owns label handling and metric computation; attention and decoder helpers should return scores, not final benchmark semantics.
Inputs
Article text.
Question text.
Four answer option strings.
Gold label A, B, C, or D.
Optional token budget.
Outputs
Four candidate records containing article, question, option, label, candidate text, token positions, and absolute option position.
Predicted label from candidate logits.
Accuracy as a numeric metric.
Workflow
Normalize whitespace.
Tokenize deterministically for reduced recovery, or preserve supplied tokenizer output in full recovery.
Build one candidate per option using the conceptual layout [CLS] article [SEP] question option [SEP].
Score candidates externally.
Use scripts/race_protocol.py to choose the maximum-logit label and compute accuracy.
Validation
The tests confirm four-option validation, label preservation, packed candidate records, and exact accuracy behavior.
Limitations
This skill does not download or parse the full RACE benchmark. A reduced recovery item must clearly mark whether it is benchmark-style or resource-derived.
The standard-library tokenizer is only a recovery proxy. When truncation is used, record the requested max_seq_len, the emitted candidate token lengths, and whether absolute positions refer to the original untruncated item or the truncated packed sequence.
1---2name: deberta-race-multiple-choice-protocol3description: Build and evaluate RACE style multiple choice candidate records for DeBERTa recovery experiments.4metadata:5 source: https://skillmd.com/skills/yzj623/deberta-race-multiple-choice-protocol6---78# DeBERTa RACE Multiple Choice Protocol910Use this skill when a DeBERTa recovery needs a RACE-style article, question, four-option candidate layout, and accuracy calculation. The skill owns label handling and metric computation; attention and decoder helpers should return scores, not final benchmark semantics.1112## Inputs1314- Article text.15- Question text.16- Four answer option strings.17- Gold label `A`, `B`, `C`, or `D`.18- Optional token budget.1920## Outputs2122- Four candidate records containing article, question, option, label, candidate text, token positions, and absolute option position.23- Predicted label from candidate logits.24- Accuracy as a numeric metric.2526## Workflow27281. Normalize whitespace.292. Tokenize deterministically for reduced recovery, or preserve supplied tokenizer output in full recovery.303. Build one candidate per option using the conceptual layout `[CLS] article [SEP] question option [SEP]`.314. Score candidates externally.325. Use `scripts/race_protocol.py` to choose the maximum-logit label and compute accuracy.3334## Validation3536The tests confirm four-option validation, label preservation, packed candidate records, and exact accuracy behavior.3738## Limitations3940This skill does not download or parse the full RACE benchmark. A reduced recovery item must clearly mark whether it is benchmark-style or resource-derived.4142The standard-library tokenizer is only a recovery proxy. When truncation is used, record the requested `max_seq_len`, the emitted candidate token lengths, and whether absolute positions refer to the original untruncated item or the truncated packed sequence.
Run npx get-skill add yzj623/deberta-race-multiple-choice-protocol in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Build and evaluate RACE style multiple choice candidate records for DeBERTa recovery experiments. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: reads secrets. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
yzj623 (@yzj623) published this skill. Their other Agent Skills are listed on their SkillMD profile.