大模型手撕 · 简单 · 评估指标、语言模型
给定语言模型在每个位置上的 logits (T, V) 和真实的下一个 token targets (T,),计算困惑度:
在 RagCodes 上用 Python / C++ / Java 在线编写并提交,核心代码模式与 ACM 模式均可评测。