Build the model.
(args)
| 15 | os.environ["ONEFLOW_LINEAR_EMBEDDING_SKIP_INIT"] = "1" |
| 16 | |
| 17 | def model_provider(args): |
| 18 | """Build the model.""" |
| 19 | |
| 20 | model = CodeGeeXModel( |
| 21 | args.hidden_size, |
| 22 | args.num_layers, |
| 23 | args.num_attention_heads, |
| 24 | args.padded_vocab_size, |
| 25 | args.max_position_embeddings |
| 26 | ) |
| 27 | |
| 28 | return model |
| 29 | |
| 30 | |
| 31 | def add_code_generation_args(parser): |