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

Function model_provider

codegeex/megatron/inference.py:18–24  ·  view source on GitHub ↗

Build the model.

()

Source from the content-addressed store, hash-verified

16
17
18def model_provider():
19 """Build the model."""
20
21 model = CodeGeeXModel(num_tokentypes=0,
22 parallel_output=False)
23
24 return model
25
26
27def set_random_seed(seed):

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls 1

CodeGeeXModelClass · 0.90

Tested by

no test coverage detected