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

Function model_provider

DeepSpeedExample/tools/generate_samples_gpt2.py:35–41  ·  view source on GitHub ↗

Build the model.

()

Source from the content-addressed store, hash-verified

33
34
35def 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
44def add_text_generate_args(parser):

Callers

nothing calls this directly

Calls 2

print_rank_0Function · 0.90
GPT2ModelClass · 0.90

Tested by

no test coverage detected