← 返回刚才阅读的位置

知识卡片

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

分布包装器要履行形状契约

理解等级:高级

把生成器包装成概率分布,须明确sample_shape、batch_shape、event_shape、支持域与log_prob返回形状。仅继承mixin并忽略sample_shape,不能保证适用于所有Pyro算法;变长离散序列也不能仅因存成tensor就直接使用连续梯度MCMC。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      TorchDistributionMixin to model the causal Markov kernels with the language models. We’ll use the GPT-2 model of the King vignettes to create the causal Markov kernel of the King variable.

    参考来源

    - 位置:《Causal AI》第13章《因果与大语言模型》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-13.xhtml) - 结论依据:摘录中关于分布包装器要履行形状契约的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:TorchDistributionMixin to model the causal Markov kernels with the language models. We’ll use the GPT-2 model of the King vignettes to create the causal Markov kernel of the King variable.