add fifth chapter

This commit is contained in:
skindhu 2024-11-07 15:40:50 +08:00
parent 9540a8821b
commit a0cf213251
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ tensor([ -9.5042, -10.3796, -11.3677, -11.4798, -9.7764, -12.2561])
> >
> 在计算交叉熵损失时我们希望最大化模型分配给每个正确目标token的概率。交叉熵损失的数学公式为 > 在计算交叉熵损失时我们希望最大化模型分配给每个正确目标token的概率。交叉熵损失的数学公式为
> >
> $$ \text { Loss }=-\sum_{t=1}^{T} \ln P\left(y_{t} \mid x, \theta\right) $$ > $$\text { Loss }=-\sum_{t=1}^{T} \ln P\left(y_{t} \mid x, \theta\right)$$
> >
> 其中: > 其中:
> >