The invention discloses a model
code generation method and device, and relates to the technical field of model
code generation. The method comprises the steps of displaying a first configuration interface; in response to a first operation of a user on the
model configuration control, the
integration type configuration control and the task starting control, obtaining first model information and an integration
result type of the target model, and a model framework template, a code format template and a code integration template of the target platform; based on the model framework template, converting the first model information into a first model file of which the
model configuration parameters are matched with the model framework template; based on the code format template, converting the first model file into a first code file of which the code format is matched with the code format template; and based on the code integration template, converting the first code file into a second code file matched with the integration
result type. According to the invention, the generation efficiency of the model code can be improved.