← 返回起始笔记位置

知识卡片

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

采样分布与评分分布须一致

理解等级:高级

top-p、温度和其他logits处理会改变实际生成分布。若sample按截断重归一后的分布生成,log_prob却按原始softmax评分,两者不构成同一概率分布接口,可能使重要性比值失效;应明确目标与提议各自使用的真实概率。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      top_p=0.9, #4 ) #4 return output #4 def convert_to_text(output): return decode(output[0]).strip().capitalize() #1 Encode text into tensor. #2 Decode tensor into text. #3 Get the encoding for empty text, for convenience. #4 A function for generating from models. These parameters do slightly different things for the GPT-2 and BART models, but they more or less overlap. We want to use our probabilistic ML approach, so we

    参考来源

    - 位置:《Causal AI》第13章《因果与大语言模型》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-13.xhtml) - 结论依据:摘录中关于采样分布与评分分布须一致的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:top_p=0.9, #4 ) #4 return output #4 def convert_to_text(output): return decode(output[0]).strip().capitalize() #1 Encode text into tensor. #2 Decode tensor into text. #3 Get the encoding for empty text, for convenience. #4 A function for generating from models. These parameters do slightly different things for the GPT-2 and BART models, but they more or less overlap. We want to use our probabilistic ML approach, so we