The invention relates to the technical field of large language models, in particular to a method for detecting a large
language model LoRA
fine tuning origin. Comprising the steps of generating an adaptability vocabulary, recording intermediate features of a to-be-verified model, selecting a base candidate model, obtaining output features of the base candidate model, calculating approximate intermediate features of the base model, extracting LoRA rank information through
singular value decomposition, determining minimum rank information and judging a
fine tuning origin. According to the method and the
system for detecting the LoRA fine-tuning origin of the large
language model, the fine-tuning origin of the model can still be accurately detected in the face of
confusion technologies such as parameter replacement and
zoom transformation, the defect of
confusion resistance in the prior art is effectively overcome, the LoRA rank information used in the fine-tuning process can be accurately extracted, a detailed basis is provided for model
verification, and the method and the
system are suitable for popularization and application. The method facilitates further analysis of fine adjustment details of the model, is suitable for large language models of various architectures and scales, is not limited by the size of the model and specific fine adjustment parameters, and has wide applicability.