File size: 366 Bytes
b100e1c
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# ByT5 Small model.

include 't5x/examples/t5/byt5/base.gin'  # imports vocab, optimizer and model.

# ------------------- Network specification overrides --------------------------
network.Transformer.config = @network.T5Config()
network.T5Config:
  emb_dim = 1472
  num_heads = 6
  num_encoder_layers = 12
  num_decoder_layers = 4
  head_dim = 64
  mlp_dim = 3584