The application discloses a kind of geographical distribution type heterogeneous scene in big
model inference architecture design method and
system, first, the environment of big
model inference system comprising multiple physical location computing nodes, big
model inference task and its performance constraint are modeled, construct big model
inference node architecture optimization model, using the
heuristic node
selection strategy based on
cost benefit score Candidate hardware topology set satisfying basic constraint is screened;Second, based on
dynamic programming idea, model parallel decision is executed to each candidate topology, using the
hybrid parallel strategy of intra-node
tensor parallel, inter-node pipelined parallel, determine optimal model layer distribution and
tensor parallel degree;Finally, verify whether the
inference delay of candidate topology meets the performance constraint, screen feasible scheme and select the
inference architecture with the lowest total cost.The application can improve the flexibility of heterogeneous
resource utilization in distributed environment, while ensuring the real-time performance requirements of big model inference, reduce the overall deployment cost of
system.