[assets] update wechat (#8385)

This commit is contained in:
Yaowei Zheng
2025-06-16 18:23:22 +08:00
committed by GitHub
parent 8e4ac78607
commit 9a2d1dec62
5 changed files with 21 additions and 11 deletions

View File

@@ -585,7 +585,10 @@ def create_custom_scheduler(
def get_batch_logps(
logits: "torch.Tensor", labels: "torch.Tensor", label_pad_token_id: int = IGNORE_INDEX, ld_alpha: Optional[float] = None
logits: "torch.Tensor",
labels: "torch.Tensor",
label_pad_token_id: int = IGNORE_INDEX,
ld_alpha: Optional[float] = None,
) -> tuple["torch.Tensor", "torch.Tensor"]:
r"""Compute the log probabilities of the given labels under the given logits.