Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/encoder #7

Merged
merged 22 commits into from
Oct 17, 2020
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: add transformer base and big configs
inmoonlight committed Sep 12, 2020
commit c39d7ee07becae325a02abc75c91da2da15404d1
23 changes: 23 additions & 0 deletions configs/model/transformer-base.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
max_len: 100 # ref: http://nlp.seas.harvard.edu/2018/04/03/attention.html
dim_ff: 2048
dim_model: 512
dim_q: 512
dim_k: 512
dim_v: 512
num_head: 8
num_encoder_layer: 6
num_decoder_layer: 6
residual_dropout: 0.1

data_params:
num_workers: 8

train_hparams:
batch_size: 12000
warmup_steps: 4000
optimizer: adam
beta_1: 0.9 # activates when optimizer is Adam
beta_2: 0.98 # activates when optimizer is Adam
eps: 1e-9
steps: 300000 # big
steps: 100000
22 changes: 22 additions & 0 deletions configs/model/transformer-big.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
max_len: 100 # ref: http://nlp.seas.harvard.edu/2018/04/03/attention.html
dim_ff: 2048
dim_model: 512
dim_q: 512
dim_k: 512
dim_v: 512
num_head: 8
num_encoder_layer: 6
num_decoder_layer: 6
residual_dropout: 0.1

data_params:
num_workers: 8

train_hparams:
batch_size: 12000
warmup_steps: 4000
optimizer: adam
beta_1: 0.9 # activates when optimizer is Adam
beta_2: 0.98 # activates when optimizer is Adam
eps: 1e-9
steps: 300000
7 changes: 0 additions & 7 deletions configs/model/transformers.yaml

This file was deleted.