The invention provides a large
language model operator conversion
system and method and an AI accelerator, the
system comprises an operator identification module, a conversion module and a
model reconstruction module, the operator identification module analyzes a computational graph structure of an input model to identify
convertible operators meeting preset conversion conditions in the computational graph structure; the conversion module converts the
convertible operator into an equivalent operator sequence based on a preset conversion strategy; and the
model reconstruction module replaces nodes corresponding to
convertible operators in the computational graph of the input model with an equivalent operator sequence, updates the connection relation and the weight initializer, and generates an updated model. According to the
system, pipeline
processing of model optimization is realized through an identification rule and a conversion strategy, and
adaptation for different hardware platforms can be realized by updating a preset conversion condition and a conversion strategy, so that the problems of low deployment efficiency and low expandability on a CNN (
Convolutional Neural Network) accelerator are solved.