kopia lustrzana https://github.com/jaymody/picoGPT
Update gpt2.py
rodzic
7e2e2e9cfd
commit
a0a78ba4b9
2
gpt2.py
2
gpt2.py
|
@ -3,6 +3,8 @@
|
|||
import numpy as np
|
||||
|
||||
|
||||
|
||||
|
||||
def gelu(x):
|
||||
return 0.5 * x * (1 + np.tanh(np.sqrt(2 / np.pi) * (x + 0.044715 * x**3)))
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue