This invention provides a flexible
production line control method and
system based on a large vertical
domain model. The method includes: constructing a
pruning index combining temporal stability and
spatial similarity for the original large vertical
domain model to evaluate the redundancy of the activation tensors in the intermediate
layers, and performing structured
pruning accordingly to obtain a
sparse structure model; performing mixed-precision quantization on the pruned model: allocating quantization bits according to the sensitivity of each
network layer weight to task loss, and calculating scaling factors and zeros based on the range of non-zero weights to represent sparse weights; calculating the output deviation between the quantized pruned model and the original model under the same input, and training a feedforward network with the former's output as input to fit and compensate for the output deviation; combining the quantized pruned model and the feedforward network to form a composite control model; after deployment, adding the output command of the quantized pruned model to the compensation vector during
inference to generate control commands.