The application discloses a model deployment method and device, and the method comprises the following steps: acquiring a pre-trained visual
convolution model, setting an accuracy target and search parameters for
pruning the visual
convolution model, wherein the search parameters at least comprise an initial
pruning ratio and a search interval length; searching a first target
pruning ratio of an attention mechanism module and a second target pruning ratio of a feedforward neural module respectively; optimizing the visual
convolution model according to the first target pruning ratio and the second target pruning ratio to obtain a target visual convolution model; and deploying the target visual convolution model on an
edge computing device of a substation. In this way, after the visual convolution model is pruned, the model size is in a minimum state, so that the requirement for the running environment is reduced. The visual convolution model is deployed on the
edge computing device, real-time reception of
monitoring data is realized, so that real-time detection and warning can be achieved, and the safety of the power
system is improved.