A model file management method, comprising: receiving, by a terminal device, parameters that are of K model file packages and that are sent by a server, wherein K is a positive integer; and determining, by the terminal device, a parameter of a target model file package from the parameters of the K model file packages based on a parameter of a locally stored model file package, wherein the parameter of the model file package comprises a first-type parameter and a second-type parameter, and a matching priority of the first-type parameter is higher than a matching priority of the second-type parameter, and wherein determining the parameter of the target model file package comprises: when a first-type parameter of the locally stored model file package matches first-type parameters of N model file packages in the K model file packages, determining, by the terminal device, the parameter of the target model file package based on a second-type parameter of the locally stored model file package and second-type parameters of the N model file packages, wherein N is a positive integer less than or equal to K (S1302); sending, by the terminal device, a first request to the server based on the parameter of the target model file package, wherein the first request is used to request the target model file package; and receiving, by the terminal device, a storage address of the target model file package from the server (S1402); and obtaining, by the terminal device, the target model file package based on the storage address of the target model file package (S1403). receiving, by a terminal device, parameters that are of K model file packages and that are sent by a server, wherein K is a positive integer; and determining, by the terminal device, a parameter of a target model file package from the parameters of the K model file packages based on a parameter of a locally stored model file package, wherein the parameter of the model file package comprises a first-type parameter and a second-type parameter, and a matching priority of the first-type parameter is higher than a matching priority of the second-type parameter, and wherein determining the parameter of the target model file package comprises: when a first-type parameter of the locally stored model file package matches first-type parameters of N model file packages in the K model file packages, determining, by the terminal device, the parameter of the target model file package based on a second-type parameter of the locally stored model file package and second-type parameters of the N model file packages, wherein N is a positive integer less than or equal to K (S1302); sending, by the terminal device, a first request to the server based on the parameter of the target model file package, wherein the first request is used to request the target model file package; and receiving, by the terminal device, a storage address of the target model file package from the server (S1402); and obtaining, by the terminal device, the target model file package based on the storage address of the target model file package (S1403). when a first-type parameter of the locally stored model file package matches first-type parameters of N model file packages in the K model file packages, determining, by the terminal device, the parameter of the target model file package based on a second-type parameter of the locally stored model file package and second-type parameters of the N model file packages, wherein N is a positive integer less than or equal to K (S1302); sending, by the terminal device, a first request to the server based on the parameter of the target model file package, wherein the first request is used to request the target model file package; and receiving, by the terminal device, a storage address of the target model file package from the server (S1402); and obtaining, by the terminal device, the target model file package based on the storage address of the target model file package (S1403). <EOS>