MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / model_provider

Function model_provider

tests/test_inference_megatron.py:26–33  ·  view source on GitHub ↗

Build the model.

(pre_process=True, post_process=True)

Source from the content-addressed store, hash-verified

24
25
26def model_provider(pre_process=True, post_process=True):
27 """Build the model."""
28
29 print_rank_0("Building CodeGeeX model ...")
30 model = CodeGeeXModel(num_tokentypes=0,
31 parallel_output=False)
32
33 return model
34
35
36def add_code_generation_args(parser):

Callers

nothing calls this directly

Calls 2

print_rank_0Function · 0.90
CodeGeeXModelClass · 0.90

Tested by

no test coverage detected