-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Bug: Automatically upgrade md2tgmd version in the Docker startup sc…
…ript
- Loading branch information
Showing
2 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import md2tgmd | ||
a = "### `probs.scatter_(1, ind`" | ||
# a = "`🤖️ gpt-4-0125-preview`\n\n这段代码是一个关于如何在PyTorch中实现自回归模型生成功能的示例。其中包含了一个`top_k`函数和一个`AutoregressiveWrapper`类。首先,我会解释`top_k`函数中的`probs.scatter_(1, ind, val)`是如何工作的,然后再对整个代码进行概括说明。\n\n### `probs.scatter_(1, ind`" | ||
print(md2tgmd.escape(a)) |