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

Function model_provider

deployment/server_gradio.py:14–24  ·  view source on GitHub ↗

Build the model.

(args)

Source from the content-addressed store, hash-verified

12
13
14def model_provider(args):
15 """Build the model."""
16
17 model = CodeGeeXModel(
18 args.hidden_size,
19 args.num_layers,
20 args.num_attention_heads,
21 args.padded_vocab_size,
22 args.max_position_embeddings
23 )
24 return model
25
26
27def add_code_generation_args(parser):

Callers 1

mainFunction · 0.70

Calls 1

CodeGeeXModelClass · 0.90

Tested by

no test coverage detected