← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 6607.a · 生成模型:GPT-6

终止协议可能截断有效内容

理解等级:中级

长度预算与停止字符串共同限制生成。停止字符串可能出现在正常回答内部,预算耗尽也可能留下不完整结果;调用方要识别终止原因并决定是否继续、重试或返回部分内容,不能把所有停止都当成功完成。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      stop allows you to specify end tokens that, if generated, would stop the generation process. An example stop sequence is the newline token. If you ask the model to adhere to a particular output format, like a numbered list of sentences, then to stop generating after a particular number of sentences have been output, you can just provide the final number as a stop parameter.

    参考来源

    - 位置:《Designing Large Language Model Applications》第01章《大语言模型入门》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Designing Large Language Model Applications/_epub-src/OEBPS/ch01.html) - 结论依据:摘录中关于终止协议可能截断有效内容的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:stop allows you to specify end tokens that, if generated, would stop the generation process. An example stop sequence is the newline token. If you ask the model to adhere to a particular output format, like a numbered list of sentences, then to stop generating after a particular number of sentences have been output, you can just provide the final number as a stop parameter.