A computer-implemented artificial intelligence resource scheduling method, comprising: obtaining scheduling information of each artificial intelligence, AI, device in a plurality of AI devices, wherein the scheduling information comprises task information of one or more AI tasks executed by each AI device and optionally resource information of each AI device, the one or more AI tasks comprise at least one of an AI task being executed or an AI task to be executed by each AI device, and the resource information indicates an AI computing resource used by each AI device to execute the one or more AI tasks; determining a first device and a second device from the plurality of AI devices based on the scheduling information of each AI device, wherein task information of the first device comprises a first time length which is an estimated time length required by the first device to complete all AI tasks being executed and to be executed, wherein task information of the second device comprises a second time length which is an estimated time length required by the second device to complete all AI tasks being executed and to be executed; and transferring at least one AI task in one or more AI tasks of the first device to the second device, wherein the first device and the second device meet the following condition: the first time length required by the first device to complete the one or more AI tasks of the first device is greater than the second time length required by the second device to complete one or more AI tasks of the second device, wherein the first time length is greater than or equal to a first time length threshold, the second time length is less than or equal to a second time length threshold, and the first time length threshold is greater than the second time length threshold. obtaining scheduling information of each artificial intelligence, AI, device in a plurality of AI devices, wherein the scheduling information comprises task information of one or more AI tasks executed by each AI device and optionally resource information of each AI device, the one or more AI tasks comprise at least one of an AI task being executed or an AI task to be executed by each AI device, and the resource information indicates an AI computing resource used by each AI device to execute the one or more AI tasks; determining a first device and a second device from the plurality of AI devices based on the scheduling information of each AI device, wherein task information of the first device comprises a first time length which is an estimated time length required by the first device to complete all AI tasks being executed and to be executed, wherein task information of the second device comprises a second time length which is an estimated time length required by the second device to complete all AI tasks being executed and to be executed; and transferring at least one AI task in one or more AI tasks of the first device to the second device, wherein the first device and the second device meet the following condition: the first time length required by the first device to complete the one or more AI tasks of the first device is greater than the second time length required by the second device to complete one or more AI tasks of the second device, wherein the first time length is greater than or equal to a first time length threshold, the second time length is less than or equal to a second time length threshold, and the first time length threshold is greater than the second time length threshold.