The invention discloses a fair
resource management method and
system for multi-user shared large
language model reasoning, and the method is characterized in that the method employs a cold data recognition
elimination mechanism and a fair cache distribution mechanism, carries out the unified quantification of the
resource consumption of a request in GPU calculation, decoding and cache transmission, and carries out the
fair scheduling based on the accumulated CPI value of each user; the
system comprises a user request management module, a CPI
fair scheduling module, a model reasoning execution module, a resource monitoring module and a
cache management module. Compared with the prior art, the method has the advantages that users can share computing and caching resources fairly, efficient operation performance of the
system is guaranteed, users with high
cache hit rate are prevented from excessively occupying GPU execution opportunities due to low apparent computing overhead, the overall reasoning efficiency and the
cache hit rate of the system are remarkably improved, and the user experience is improved. Unified and
fair distribution of computing resources and cache resources is achieved, the effect is prominent especially in a multi-tenant high-load scene, and the method has good application prospects and commercial development value.