This invention discloses a method for constructing an intelligent diagnosis and
treatment system based on the Med-PaLM 2 medical large-
scale model, comprising the following steps: Fine-tuning of the Med-PaLM 2 medical large-
scale model based on prompting learning: setting a task for designing a pre-trained
language model, designing input template styles,
label styles, and mapping methods to labels, and training and fine-tuning the Med-PaLM 2 medical large-
scale model; Implementation of medical large-scale model diagnosis and treatment based on multi-frequency
contextual information interaction: using StreamingLLM technology, improving the
Softmax function in the Attention mechanism of the Med-PaLM 2 medical large-scale model, optimizing Window Attention and injecting positional information, enhancing its multi-frequency
contextual information interaction capability and increasing the text output length; The beneficial effects of this invention are: improving the accuracy of the model in diagnosing
lung X-
ray diseases; simultaneously, the application of multi-frequency
contextual information interaction enables the model to comprehensively analyze the patient's condition information at different time points, providing doctors with more comprehensive and accurate diagnostic basis, reducing the occurrence of missed diagnoses and misdiagnoses.