The invention provides a Kubernetes-based
large model reasoning optimization method,
system and equipment, and the method comprises the steps: constructing a
resource scheduling assembly for a
large model, and monitoring a real-time resource state at a current moment; constructing a
batch processing agent component for the
large model, performing feature analysis on the received reasoning
request queue, and determining request features corresponding to the reasoning requests in the reasoning
request queue; the real-time resource state is evaluated according to the request features, and the
batch processing size is adjusted based on the
evaluation result to generate the optimal
batch processing length; batching the reasoning requests in the reasoning
request queue according to the optimal batch
processing length, and packaging each batch of reasoning requests into batch data; the
resource scheduling component is utilized to distribute batch data to Pod in the K8s cluster for reasoning, a large model reasoning result is obtained, the quantity of the reasoning Pod is automatically adjusted according to the flow and the resource load required by reasoning, a GPU with poor performance is prevented from becoming a
system bottleneck, and the responsiveness and the stability of service are improved.