The invention discloses a power industry
large model continuous pre-training method and
system based on dynamic self-constraint, and belongs to the technical field of
artificial intelligence, and the method comprises the steps: obtaining industry pre-training corpora and instruction training corpora, dynamically adjusting the
mixing ratio of the industry pre-training corpora and the instruction training corpora through a curriculum-type strategy, and obtaining an industry pre-training corpora and an instruction training corpora; obtaining a dynamic mixed
data set; configuring a
reference model based on the dynamic mixed
data set, and training a target power industry
large model by adopting a differential
loss function and the
reference model for different types of data in the dynamic mixed
data set; according to the differential
loss function, self-adaptive KL
divergence is calculated according to inter-partition optimization logic, and the self-adaptive KL
divergence is adopted to construct a
loss function; and obtaining the probability of the
reference model through an online reasoning framework, and enabling the training to be continuously carried out based on the probability of the reference model. According to the method, the knowledge conflict problem in professional
field training is effectively solved, and the generality of the model is kept while the professional property of the power field is improved.