The invention discloses a method, a
system and a device for finely tuning a large
language model in a closed-loop
fine tuning environment. The method comprises the steps that firstly,
fine tuning task information is preprocessed to obtain target data, then a closed-loop
fine tuning environment is created according to a preset strategy, and
noise disturbance is conducted on the target data through
differential privacy in the environment to obtain disturbance data; performing preliminary fine tuning iteration based on the disturbance data, and obtaining associated information including check points, intermediate indexes and the like after a first preset condition is met; then refining and iterating by using a parameter efficient fine tuning
algorithm and associated information, and inputting an adversarial sample to perform a robustness test after the number of times is reached; if the conditions are met, the refined and iterated model is a fine-tuned model; and if not, activating a
rollback mechanism, recovering the model to a
check point state, dynamically adjusting hyper-parameters, and refining and iterating again based on new information. According to the method, data privacy can be effectively guaranteed, it can be effectively guaranteed that the fine-tuned model has high credibility, and safety guarantee of the model fine-tuning process is achieved.