LoRA fine tuning method based on attention-free module
Патент · CN B
Полный текст
The invention relates to a LoRA fine tuning method based on a non-parametric attention module, which comprises the steps of obtaining a pre-training model and model parameters, setting a parameter fine tuning module on each layer of the pre-training model, obtaining a fine tuning data set, loading and freezing parameters of the pre-training model and initializing the parameters of the parameter fine tuning module, and fine tuning the parameters of the parameter fine tuning module based on the fine tuning data set to obtain a fine tuned large language model. The invention has the beneficial effects that the training parameters of the invention are only LoRA modules, the full parameter fine adjustment of the diffusion model is not needed, in addition, the invention is modified on the basis of LoRA, and a parameter-free attention module is added before LoRA parameters, so that LoRA can better acquire the semantic information of natural language in learning and has better effect.