Skip to content

Instantly share code, notes, and snippets.

@bryanlimy
Last active October 15, 2019 02:36
Show Gist options
  • Save bryanlimy/032e7f69035ec55a0dab49433bd5b73c to your computer and use it in GitHub Desktop.
Save bryanlimy/032e7f69035ec55a0dab49433bd5b73c to your computer and use it in GitHub Desktop.
NUM_LAYERS = 2
D_MODEL = 256
NUM_HEADS = 8
UNITS = 512
DROPOUT = 0.1
model = transformer(
vocab_size=VOCAB_SIZE,
num_layers=NUM_LAYERS,
units=UNITS,
d_model=D_MODEL,
num_heads=NUM_HEADS,
dropout=DROPOUT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment