Created
November 24, 2023 12:47
-
-
Save sleepingcat4/83ba3cfa77ec63451f24b2d0f762d936 to your computer and use it in GitHub Desktop.
main body code (4 lines)
This file contains hidden or 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
from torchscale.architecture.config import EncoderConfig | |
from torchscale.architecture.encoder import Encoder | |
config = EncoderConfig( | |
vocab_size=64000, | |
hidden_size=1000, | |
num_layers=10 | |
) | |
model = Encoder(config) | |
print(model) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment