Embodiments of the present specification provide a
data processing method and
system, the method comprising: a reasoning framework, in response to a
cold start instruction sent by a cloud platform, cold starting on a target
graphics processor, sending an opening hijacking command to a hijacking module, and during the process of loading first model weights of a first reasoning model, initiating a
video memory application to the target
graphics processor; the hijacking module, in response to the opening hijacking command, hijacking the
video memory application, and redirecting the
video memory application to a first virtual address in a fixed
virtual address space; the reasoning framework, in a case where it is determined that the first model weights are completed loading, sending an ending hijacking command to the hijacking module, and based on the first model weights in the first virtual address, constructing a first reasoning execution graph to execute a first reasoning task using the first reasoning execution graph. By hijacking the
CUDA video memory allocation and redirecting it to a pre-reserved fixed address, the address of the model weights is ensured to be persistent and stable, so that the
CUDA Graph continues to be effective in multiple loadings and hot switching.