The invention discloses a method for designing and training a two-dimensional table data multi-
modal model. According to the method, firstly, a two-dimensional table data multi-
modal model is designed, the two-dimensional table data multi-
modal model comprises a table representation module, and the table representation module is composed of a plurality of serial bidirectional attention modules; the table representation
word embedding set can interact with other related cells through
processing of the bidirectional attention module, and global structured table
semantics are captured; pre-training a table representation module, and training the table representation module by using a large amount of original table data to enable the table representation module to output accurate table representation information; and finally, carrying out alignment training on the table representation module and the large
language model decoder, and carrying out joint supervision
fine tuning by adopting the table representation module and the large
language model decoder. According to the method, the table modality and the text modality can be jointly input into the
large model to carry out table question-answering,
data analysis and other generative tasks, and the effect and performance of two-dimensional table question-answering,
code generation and other tasks are effectively improved.