The invention provides an agricultural field large
language model training method and device and a medium, and the method comprises the steps: collecting agricultural
field data book information, and carrying out the preprocessing of the information, and obtaining a first Chinese
data set and a first minority language
data set, collecting the first Chinese
data set and the first minority language data set, generating a first mixed language data set,
processing the first mixed language data set by adopting a word segmentation
library, performing secondary
processing by adopting a preset special character
processing method, constructing a word segmentation
list, and constructing a WordPiece word piece model to process and divide the word segmentation
list; converting each word in the word segmentation
list into a word vector by adopting a
word embedding algorithm; the method comprises the following steps of: constructing a coding component and a decoder component which are based on a Transform architecture and adopt a self-attention mechanism, generating an agricultural field large
language model, and training the agricultural field large
language model by taking a word vector as an input to obtain a trained agricultural field large language model. The problem of supporting a large language model of Chinese and minority languages is solved.