技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
future_discriminator_data【数据与研究】Build prefix-level future-discriminator examples for FUDGE-style controlled generation from completed token sequences and sequence/target-word labels.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when implementing or testing FUDGE-like future discriminators. It converts completed token sequences into prefix examples whose labels indicate whether an attribute or target word will hold in the completed future.
Do not use this skill to perform decoding or choose output tokens; its output is only training/evaluation data for a discriminator.
mode: whole_sequence or future_suffix.whole_sequence: one binary label per sequence.future_suffix: a target token/word.A JSON-compatible object with examples and metadata. Each example contains prefix_tokens, label, position, target, and source_sequence_id.
Run python tests/test_prefix_data.py from this skill directory.
The helper operates on already-tokenized sequences. It does not train a neural model and does not read the original paper repository.