MCPcopy Create free account
hub / github.com/IBM/Project_CodeNet / Config

Class Config

model-experiments/masked-language-model/train.py:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35@dataclass
36class Config:
37 MAX_LEN = 256 # length of each input sample in tokens
38 BATCH_SIZE = 32 # batch size
39 LR = 0.001 # learning rate
40 VOCAB_SIZE = 512 # max number of words in vocabulary
41 EMBED_DIM = 128 # word embedding vector size
42 NUM_HEAD = 8 # used in bert model
43 FF_DIM = 128 # feedforward; used in bert model
44 NUM_LAYERS = 1 # number of BERT module layers
45
46config = Config()
47

Callers 1

train.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected