知识卡片

普通读书笔记卡 · 6509.g.1 · 生成模型:GPT-6

采样结果保留词元边界

理解等级:中级

rollout 生成器返回完整 token IDs、提示长度和解码文本,分别服务可微评分边界与答案验证。直接沿用真实生成 token,可避免重编码文本造成分词或特殊标记变化;提示长度不能从字符长度猜测。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      returns the token IDs of the prompt plus answer tokens and the number of tokens (input_ids.numel()) next to the answer text (tokenizer.decode(generated)). Returning these allows us to simplify several downstream functions later on.

    参考来源

    - 位置:《Build a Reasoning Model (From Scratch)》第06章《强化学习训练推理模型》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Build a Reasoning Model (From Scratch)/_epub-src/OEBPS/Text/chapter-6.html) - 结论依据:摘录中关于采样结果保留词元边界的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:returns the token IDs of the prompt plus answer tokens and the number of tokens (input_ids.numel()) next to the answer text (tokenizer.decode(generated)). Returning these allows us to simplify several downstream functions later on.