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

Class Config

model-experiments/masked-language-model/test.py:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19@dataclass
20class Config:
21 MAX_LEN = 256 # length of each input sample
22 BATCH_SIZE = 32 # batch size
23 LR = 0.001 # learning rate
24 VOCAB_SIZE = 512 # max number of words in vocabulary
25 EMBED_DIM = 128 # word embedding vector size
26 NUM_HEAD = 8 # used in bert model
27 FF_DIM = 128 # feedforward; used in bert model
28 NUM_LAYERS = 1 # number of BERT module layers
29
30config = Config()
31

Callers 1

test.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected