Build the model.
(args)
| 10 | |
| 11 | |
| 12 | def 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 | |
| 26 | def add_code_generation_args(parser): |