MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / model_provider

Function model_provider

DeepSpeedExample/pretrain_bert.py:31–41  ·  view source on GitHub ↗

Build the model.

()

Source from the content-addressed store, hash-verified

29
30
31def model_provider():
32 """Build the model."""
33
34 print_rank_0('building BERT model ...')
35
36 model = BertModel(
37 num_tokentypes=2,
38 add_binary_head=True,
39 parallel_output=True)
40
41 return model
42
43
44def get_batch(data_iterator):

Callers

nothing calls this directly

Calls 2

print_rank_0Function · 0.90
BertModelClass · 0.90

Tested by

no test coverage detected