forked from danielzuegner/code-transformer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
great_java_small.yaml
72 lines (65 loc) · 1.45 KB
/
great_java_small.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
experiment_setup:
executable: 'code_transformer/experiments/great/code_summarization.py'
data_setup:
language: 'java-small'
use_validation: True
num_sub_tokens: 5
num_subtokens_output: 6
use_pointer_network: True
data_transforms:
max_distance_mask: None
relative_distances:
- ppr
- ancestor_sp
- sibling_sp
- shortest_paths
distance_binning:
type: 'exponential'
growth_factor: 1.3
n_fixed_bins: 9
model:
with_cuda: True
label_smoothing: 0.1
lm_encoder:
transformer_config:
embed_dim: 1024
num_layers: 3
num_heads: 8
ff_dim: 2048
dropout_rate: 0.2
lm_decoder:
output_nonlinearity: None
n_layers: 1
decoder_dropout: 0
decoder_nhead: 8
decoder_dim_feedforward: 2048
decoder_activation: 'gelu'
use_teacher_forcing: True
pointer_attention_type: 'additive'
use_pointer_query_linear: False
use_pointer_query_self_attention: False
attend_cls_token: False
optimizer:
optimizer: 'Adam'
learning_rate: 8e-5
reg_scale: 3e-5
training:
random_seed: 456
batch_size: 8
simulated_batch_size: 128
simulated_batch_size_valid: 1280
accumulate_tokens_batch: False
validate_every: 100
persistent_snapshot_every: 10000
early_stopping_patience: 20
max_validation_samples: 50000
metrics:
- top1_accuracy
- top5_accuracy
- non_trivial_accuracy
- precision
- recall
- f1_score
- micro_f1_score
- rouge-2
- rouge-l