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

Function model_provider

tests/test_inference.py:12–23  ·  view source on GitHub ↗

Build the model.

(args)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 1

CodeGeeXModelClass · 0.90

Tested by

no test coverage detected