Build the model.
()
| 33 | |
| 34 | |
| 35 | def model_provider(): |
| 36 | """Build the model.""" |
| 37 | |
| 38 | print_rank_0('building GPT2 model ...') |
| 39 | model = GPT2Model(num_tokentypes=0, parallel_output=False) |
| 40 | |
| 41 | return model |
| 42 | |
| 43 | |
| 44 | def add_text_generate_args(parser): |
nothing calls this directly
no test coverage detected