Update. Transformer里的位置编码方法(原文)

master
ben.guo 1 year ago
parent 719e43eb7b
commit 29136ec781

@ -32,7 +32,7 @@ GPT-2的位置编码是可学习的参数。这意味着模型在训练过程中
### Transformer里的原始方法
### Transformer里的位置编码方法(原文)
~~~python
import numpy as np
@ -109,6 +109,10 @@ We chose this function because we hypothesized it would allow the model to easil
### GPT-2的位置编码方法
### 向量加法
以GPT-2为例Hugging Face开源的GPT
Loading…
Cancel
Save