CN115730224A - Service processing method, device, equipment and storage medium - Google Patents

Service processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115730224A
CN115730224A CN202211511262.5A CN202211511262A CN115730224A CN 115730224 A CN115730224 A CN 115730224A CN 202211511262 A CN202211511262 A CN 202211511262A CN 115730224 A CN115730224 A CN 115730224A
Authority
CN
China
Prior art keywords
preset
level
terminal
model
algorithm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211511262.5A
Other languages
Chinese (zh)
Inventor
崇洋铭
边红昌
万鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202211511262.5A priority Critical patent/CN115730224A/en
Publication of CN115730224A publication Critical patent/CN115730224A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a service processing method, a service processing device, service processing equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: receiving a model algorithm obtaining request sent by a terminal, wherein the model algorithm obtaining request comprises an identifier of the terminal; determining a preset level of a preset model and a preset level of a preset algorithm based on the identifier of the terminal; and sending a model algorithm determination result to the terminal, wherein the model algorithm determination result comprises the preset model at the preset level and the preset algorithm at the preset level, and the model algorithm determination result is used for indicating the terminal to process the target service based on the preset model at the preset level and the preset algorithm at the preset level. The scheme provided by the disclosure can improve the efficiency of business processing and the effectiveness of business processing.

Description

Service processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a service processing method, apparatus, device, and storage medium.
Background
At present, different types of terminals can use a uniform algorithm and model to complete the processing process of related services.
However, in the above method, when different terminals process services using a unified algorithm and model, the unified algorithm and model may not be matched with performance data of each terminal, which causes the terminal to operate with a stuck state or a low video resolution, thereby reducing service processing performance.
Disclosure of Invention
The present disclosure provides a service processing method, device, equipment and storage medium, which solve the technical problem that when a terminal processes a service, a unified algorithm and model cannot be matched with performance data of each terminal, which results in that the terminal runs with a pause or the video resolution is low, thereby reducing the service processing performance.
The technical scheme of the embodiment of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a service processing method is provided. The method can comprise the following steps: receiving a model algorithm obtaining request sent by a terminal, wherein the model algorithm obtaining request comprises an identifier of the terminal; determining a preset level of a preset model and a preset level of a preset algorithm based on the identifier of the terminal, wherein the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the level of the terminal and the identifier of the terminal have a corresponding relation, the preset level of the preset model is used for representing the computing capacity of the preset model, and the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm; and sending a model algorithm determination result to the terminal, wherein the model algorithm determination result comprises the preset model at the preset level and the preset algorithm at the preset level, and the model algorithm determination result is used for indicating the terminal to process the target service based on the preset model at the preset level and the preset algorithm at the preset level.
Optionally, after the sending of the model algorithm determination result to the terminal, the service processing method further includes: receiving operation data sent by the terminal, wherein the operation data comprises a target duration, and the target duration is the duration for processing the target service by the terminal based on the preset model of the preset level and the preset algorithm of the preset level; and when the operating data do not meet the preset conditions, adjusting the preset level of the preset model and the preset level of the preset algorithm.
Optionally, the preset condition includes a preset duration range, data in the preset duration range is less than or equal to a first duration threshold, data in the preset duration range is greater than or equal to a second duration threshold, and the adjusting the preset level of the preset model and the preset level of the preset algorithm specifically includes: when the target duration is greater than a first duration threshold, reducing the preset level of the preset model and the preset level of the preset algorithm according to a first preset level difference, wherein the first duration threshold is the maximum value in the preset duration range; and when the target duration is smaller than a second duration threshold, increasing the preset level of the preset model and the preset level of the preset algorithm according to the first preset level difference, wherein the second duration threshold is the minimum value in the preset duration range.
Optionally, the service processing method further includes: when the target duration is greater than or equal to a third duration threshold, reducing the preset level of the preset model and the preset level of the preset algorithm according to a second preset level difference, wherein the third duration threshold is greater than the first duration threshold, and the second preset level difference is greater than the first preset level difference.
Optionally, the determining the preset level of the preset model and the preset level of the preset algorithm based on the identifier of the terminal specifically includes: determining performance parameters of the terminal based on the identity of the terminal, the performance parameters including at least one of: the computing capacity of the terminal, the rendering capacity of the terminal, the memory size of the terminal and the service life of the terminal; determining a performance value of the terminal based on the performance parameter, wherein the performance value is used for representing the operation capacity of the terminal; determining a level corresponding to a preset value range as the level of the terminal, wherein the preset value range comprises the performance value, and determining the preset level of the preset model and the preset level of the preset algorithm based on the level of the terminal.
Optionally, the determining the preset level of the preset model and the preset level of the preset algorithm based on the level of the terminal specifically includes: obtaining a first mapping relation and a second mapping relation, wherein the first mapping relation comprises a plurality of first levels and a second level corresponding to each of the first levels, the second mapping relation comprises the first levels and a third level corresponding to each of the first levels, the first levels are used for representing the levels of the terminal, the second levels are used for representing the levels of the preset model, and the third levels are used for representing the levels of the preset algorithm; determining a preset level of the preset model based on the level of the terminal and the first mapping relation, and determining a preset level of the preset algorithm based on the level of the terminal and the second mapping relation.
According to a second aspect of the embodiments of the present disclosure, a method for processing a service is provided. The method can comprise the following steps: sending a model algorithm obtaining request to a server, wherein the model algorithm obtaining request comprises an identifier of the terminal, the model algorithm obtaining request is used for requesting to obtain a preset model at a preset level and a preset algorithm at the preset level, the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the level of the terminal and the identifier of the terminal have a corresponding relation, the preset level of the preset model is used for representing the computing capacity of the preset model, and the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm; receiving a model algorithm determination result sent by the server, wherein the model algorithm determination result comprises a preset model at the preset level and a preset algorithm at the preset level; and processing the target service based on the preset model of the preset level and the preset algorithm of the preset level.
Optionally, after receiving the model algorithm determination result sent by the server, the service processing method further includes: and sending operation data to the server, wherein the operation data comprises target duration, and the target duration is duration for processing the target service by the terminal based on the preset model of the preset level and the preset algorithm of the preset level.
According to a third aspect of the embodiments of the present disclosure, a service processing apparatus is provided. The apparatus may include: the device comprises a receiving module, a determining module and a sending module; the receiving module is configured to receive a model algorithm obtaining request sent by a terminal, wherein the model algorithm obtaining request comprises an identifier of the terminal; the determining module is configured to determine a preset level of a preset model and a preset level of a preset algorithm based on the identifier of the terminal, the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the level of the terminal and the identifier of the terminal have a corresponding relationship, the preset level of the preset model is used for representing the computing capability of the preset model, and the preset level of the preset algorithm is used for representing the processing capability of the preset algorithm; the sending module is configured to send a model algorithm determination result to the terminal, where the model algorithm determination result includes the preset model at the preset level and the preset algorithm at the preset level, and the model algorithm determination result is used to instruct the terminal to process the target service based on the preset model at the preset level and the preset algorithm at the preset level.
Optionally, the service processing apparatus further includes a processing module; the receiving module is further configured to receive operation data sent by the terminal, where the operation data includes a target duration, and the target duration is a duration for the terminal to process the target service based on the preset model of the preset level and the preset algorithm of the preset level; the processing module is configured to adjust a preset level of the preset model and a preset level of the preset algorithm when the operation data does not satisfy a preset condition.
Optionally, the preset condition includes a preset duration range, data in the preset duration range is smaller than or equal to a first duration threshold, and data in the preset duration range is greater than or equal to a second duration threshold, the processing module is specifically configured to, when the target duration is greater than the first duration threshold, reduce the preset level of the preset model and the preset level of the preset algorithm according to a first preset level difference, where the first duration threshold is a maximum value in the preset duration range; the processing module is specifically configured to increase the preset level of the preset model and the preset level of the preset algorithm according to the first preset level difference when the target duration is less than a second duration threshold, where the second duration threshold is a minimum value in the preset duration range.
Optionally, the processing module is further configured to, when the target duration is greater than or equal to a third duration threshold, decrease the preset level of the preset model and the preset level of the preset algorithm according to a second preset level difference, where the third duration threshold is greater than the first duration threshold, and the second preset level difference is greater than the first preset level difference.
Optionally, the determining module is configured to determine a performance parameter of the terminal based on the identifier of the terminal, where the performance parameter includes at least one of: the computing capacity of the terminal, the rendering capacity of the terminal, the memory size of the terminal and the service life of the terminal; the determining module is further configured to determine a performance value of the terminal based on the performance parameter, wherein the performance value is used for representing the operation capability of the terminal; the determining module is further configured to determine a level corresponding to a preset value range as the level of the terminal, where the preset value range includes the performance value, and specifically, the determining module is further configured to determine a preset level of the preset model and a preset level of the preset algorithm based on the level of the terminal.
Optionally, the service processing apparatus further includes an obtaining module, configured to obtain a first mapping relationship and a second mapping relationship, where the first mapping relationship includes a plurality of first levels and a second level corresponding to each of the plurality of first levels, the second mapping relationship includes the plurality of first levels and a third level corresponding to each of the plurality of first levels, the first levels are used to represent the levels of the terminal, the second levels are used to represent the levels of the preset model, and the third levels are used to represent the levels of the preset algorithm; the determining module is further configured to determine a preset level of the preset model based on the level of the terminal and the first mapping relationship, and determine a preset level of the preset algorithm based on the level of the terminal and the second mapping relationship.
According to a fourth aspect of the embodiments of the present disclosure, a service processing apparatus is provided. The device can comprise a sending module, a receiving module and a processing module; the sending module is configured to send a model algorithm obtaining request to a server, wherein the model algorithm obtaining request comprises an identifier of the terminal, the model algorithm obtaining request is used for requesting to obtain a preset model at a preset level and a preset algorithm at the preset level, the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, and the level of the terminal and the identifier of the terminal have a corresponding relation; the receiving module is configured to receive a model algorithm determination result sent by the server, where the model algorithm determination result includes the preset model at the preset level and the preset algorithm at the preset level; the processing module is configured to process the target service based on the preset model of the preset level and the preset algorithm of the preset level.
Optionally, the sending module is further configured to send operation data to the server, where the operation data includes a target duration, and the target duration is a duration for the terminal to process the target service based on the preset model of the preset level and the preset algorithm of the preset level.
According to a fifth aspect of embodiments of the present disclosure, there is provided an apparatus, which may include: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the optional service processing methods of the first aspect described above or to implement any of the optional service processing methods of the second aspect described above.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having instructions stored thereon, which, when executed by a processor of a device, enable the device to perform any one of the above-mentioned first aspect optional service processing methods or perform any one of the above-mentioned second aspect optional service processing methods.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer instructions which, when run on a processor of an apparatus, cause the apparatus to perform any one of the optional business processing methods of the first aspect or to perform any one of the optional business processing methods of the second aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
based on any one of the above aspects, in the present disclosure, the server may receive a model algorithm obtaining request sent by the terminal, where the model algorithm obtaining request includes an identifier of the terminal, the service may determine a level of the terminal based on the identifier of the terminal, and since the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the server may determine the preset level of the preset model and the preset level of the preset algorithm, and send a model algorithm determination result to the terminal, where the model algorithm determination result includes the preset model of the preset level and the preset algorithm of the preset level. In the embodiment of the disclosure, since the level of the terminal has a corresponding relationship with the identifier of the terminal, the server may determine the level of the terminal based on the identifier of the terminal; and the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, which means that the server can determine the level of the preset model (namely the preset level) and the level of the preset algorithm (namely the preset level) which are matched with the level of the terminal based on the identifier of the terminal. The level of the terminal can represent the operation capacity of the terminal, the preset level of the preset model is used for representing the calculation capacity of the preset model, and the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm, so that the preset model of the preset level determined by the server is a model with the calculation capacity similar to the operation capacity of the terminal, and the preset algorithm of the preset level determined by the server is an algorithm with the processing capacity similar to the operation capacity of the terminal, namely the server can realize customized model and algorithm configuration for the terminal. Furthermore, the terminal processes the target service based on the preset model at the preset level and the preset algorithm at the preset level, so that the running speed of the preset model and the preset algorithm can be guaranteed while the preset model and the preset algorithm are effectively run on the terminal, and the efficiency of service processing and the effectiveness of service processing can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a schematic diagram illustrating a service processing system provided by an embodiment of the present disclosure;
fig. 2 is a schematic flowchart illustrating a service processing method according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart illustrating another service processing method provided by the embodiment of the present disclosure;
fig. 4 is a schematic flowchart illustrating another service processing method provided in the embodiment of the present disclosure;
fig. 5 is a schematic flowchart illustrating another service processing method provided in the embodiment of the present disclosure;
fig. 6 is a flowchart illustrating another service processing method provided by the embodiment of the present disclosure;
fig. 7 is a flowchart illustrating another service processing method provided by the embodiment of the present disclosure;
fig. 8 is a flowchart illustrating another service processing method provided in the embodiment of the present disclosure;
fig. 9 is a flowchart illustrating another service processing method provided by the embodiment of the present disclosure;
fig. 10 is a flowchart illustrating another service processing method provided in the embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of a service processing apparatus provided in an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of another service processing apparatus provided in the embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of another service processing apparatus provided in the embodiment of the present disclosure;
fig. 14 is a schematic structural diagram of another service processing apparatus provided in the embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in other sequences than those illustrated or described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, and/or components.
It should be noted that, the user information (including but not limited to user device information, user personal information, user behavior information, etc.) and data (including but not limited to computing capability of the terminal, etc.) referred to in the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
In the related art, different types of terminals can use a uniform algorithm and model to complete the processing process of related services. However, when different terminals process services using a unified algorithm and model, the unified algorithm and model may not be matched with performance data of each terminal, resulting in that the terminal operates in a stuck state or the video resolution is low, thereby reducing service processing performance.
Based on this, the embodiment of the present disclosure provides a service processing method, where the level of the terminal and the identifier of the terminal have a corresponding relationship, and therefore the server may determine the level of the terminal based on the identifier of the terminal; and the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, which means that the server can determine the level of the preset model (namely, the preset level) and the level of the preset algorithm (namely, the preset level) which are matched with the level of the terminal based on the identifier of the terminal. The level of the terminal can represent the operation capacity of the terminal, the preset level of the preset model is used for representing the calculation capacity of the preset model, and the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm, so that the preset model of the preset level determined by the server is a model with the calculation capacity similar to the operation capacity of the terminal, and the preset algorithm of the preset level determined by the server is an algorithm with the processing capacity similar to the operation capacity of the terminal, namely the server can realize customized model and algorithm configuration for the terminal. Furthermore, the terminal processes the target service based on the preset model at the preset level and the preset algorithm at the preset level, so that the running speed of the preset model and the preset algorithm can be guaranteed while the preset model and the preset algorithm are effectively run on the terminal, and the efficiency of service processing and the effectiveness of service processing can be improved.
The service processing method, device, equipment and storage medium provided by the embodiment of the disclosure are applied to a scene of service processing (specifically, a terminal processes a target service based on a model and an algorithm sent by a server). When the server receives a model algorithm obtaining request sent by the terminal, the server may determine a preset level of a preset model and a preset level of a preset algorithm based on the identifier of the terminal according to the method provided by the embodiment of the present disclosure, and send a model algorithm determination result to the terminal, where the model algorithm determination result includes the preset model at the preset level and the preset algorithm at the preset level.
The service processing method provided by the embodiment of the present disclosure is exemplarily described below with reference to the accompanying drawings:
fig. 1 is a schematic diagram of a service processing system according to an embodiment of the present disclosure, as shown in fig. 1, the service processing system may include a terminal 101 and a server 102, and the terminal 101 may establish a connection with the server 102 through a wired network or a wireless network.
The terminal 101 may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) device, a Virtual Reality (VR) device, and the like, and the specific form of the terminal 101 is not particularly limited in this disclosure. The system can perform man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment and the like. In the embodiment of the present disclosure, the terminal 101 may send a model algorithm obtaining request to the server, where the model algorithm obtaining request includes an identifier of the terminal, the model algorithm obtaining request is used to request to obtain a preset model at a preset level and a preset algorithm at the preset level, and the terminal may process the target service based on the preset model at the preset level and the preset algorithm at the preset level.
The server 102 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a network acceleration service (CDN), a big data and an artificial intelligence platform. In the embodiment of the present disclosure, the server 102 may receive a model algorithm request sent by a terminal, and determine a preset level of a preset model and a preset level of a preset algorithm based on an identifier of the terminal.
As shown in fig. 2, when the service processing method is applied to the terminal 101, the service processing method may include S101 to S103.
S101, the terminal sends a model algorithm obtaining request to the server.
The model algorithm obtaining request comprises an identification of the terminal, the model algorithm obtaining request is used for requesting to obtain a preset model at a preset level and a preset algorithm at the preset level, the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the level of the terminal and the identification of the terminal have a corresponding relation, the preset level of the preset model is used for representing the computing capacity of the preset model, and the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm.
It should be understood that the preset model may be a model corresponding to a preset application program, and the preset algorithm may be an algorithm corresponding to the preset application program, where the preset application program is an application program included in the terminal.
It will be appreciated that the above-described level of the terminal may characterize the operational capabilities of the terminal. The preset level of the preset model is matched with the level of the terminal, and the calculation capability of the preset model at the preset level is similar to the operation capability of the terminal; and matching the preset level of the preset algorithm to show that the processing capacity of the preset algorithm at the preset level is similar to the operation capacity of the terminal.
S102, the terminal receives a model algorithm determination result sent by the server.
The model algorithm determination result comprises the preset model at the preset level and the preset algorithm at the preset level.
In the embodiment of the present invention, after receiving the model algorithm obtaining request, the server may determine the preset level of the preset model and the preset level of the preset algorithm based on the identifier of the terminal included in the model algorithm obtaining request.
It can be understood that, after receiving the determination result of the model algorithm, the terminal may obtain the preset model at the preset level and the preset algorithm at the preset level.
S103, the terminal processes the target service based on the preset model of the preset level and the preset algorithm of the preset level.
It should be understood that the target service may be understood as a service corresponding to the preset application program.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from S101 to S103, the terminal may send a model algorithm obtaining request to the server, where the model algorithm obtaining request is used to request to obtain a preset model at a preset level and a preset algorithm at the preset level, and then the terminal may receive a model algorithm determination result sent by the server and process the target service based on the preset model at the preset level and the preset algorithm at the preset level. In the embodiment of the present disclosure, since the level of the terminal and the identifier of the terminal have a corresponding relationship, and the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the terminal may obtain the level of the preset model (that is, the preset level) and the level of the preset algorithm (that is, the preset level) which are matched with the level of the terminal. And because the level of the terminal can represent the operation capability of the terminal, the preset level of the preset model is used for representing the calculation capability of the preset model, and the preset level of the preset algorithm is used for representing the processing capability of the preset algorithm, the terminal can determine that the obtained preset model at the preset level is a model with the calculation capability similar to the operation capability of the terminal, and the preset algorithm at the preset level is an algorithm with the processing capability similar to the operation capability of the terminal, that is, the terminal can obtain the customized model and algorithm configuration of the terminal. Furthermore, the terminal can process the target service based on the preset model at the preset level and the preset algorithm at the preset level, so that the operation speed of the preset model and the preset algorithm can be guaranteed while the preset model and the preset algorithm are effectively operated on the terminal, and the efficiency of service processing and the effectiveness of service processing can be improved.
Referring to fig. 2, as shown in fig. 3, after the terminal receives the model algorithm determination result sent by the server, the service processing method further includes S104.
And S104, the terminal sends the operation data to the server.
The operation data comprises a target duration, and the target duration is the duration for processing the target service by the terminal based on the preset model of the preset level and the preset algorithm of the preset level.
It is understood that the operation data may be used to characterize the operation capability of the terminal when the terminal processes the service based on the preset model of the preset level and the preset algorithm of the preset level.
Optionally, when the target duration is too long, it indicates that the preset level of the preset model and the preset level of the preset algorithm configured by the server for the terminal may be unreasonable, specifically, the operation capability of the terminal is not similar (or mismatched) with the calculation capability of the preset model at the preset level, the operation capability of the terminal is not similar (or mismatched) with the processing capability of the preset algorithm at the preset level, and the terminal may not be able to effectively process the target service based on the preset model at the preset level and the preset algorithm at the preset level.
Optionally, when the target duration is short, it indicates that the preset level of the preset model and the preset level of the preset algorithm configured by the server for the terminal may be reasonable, specifically, the operation capability of the terminal is similar to (or matched with) the calculation capability of the preset model at the preset level, the operation capability of the terminal is similar to (or matched with) the processing capability of the preset algorithm at the preset level, and the terminal may effectively process the target service based on the preset model at the preset level and the preset algorithm at the preset level.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as known from S104, the terminal may send operation data to the server, where the operation data includes a target duration, and the target duration is a duration for the terminal to process the target service based on the preset model of the preset level and the preset algorithm of the preset level. In the embodiment of the disclosure, the operation data may be used to represent the operation capability of the terminal when the terminal processes the service based on the preset model of the preset level and the preset algorithm of the preset level, so that the terminal sends the operation data to the server, the server can timely know the operation capability of the terminal, and then when the operation data does not satisfy the preset condition, the preset level of the preset model and the preset level of the preset algorithm are adjusted, so that the effectiveness of service processing can be improved.
As shown in fig. 4, when the service processing method is applied to the server 102, the service processing method may include S201 to S203.
S201, the server receives a model algorithm obtaining request sent by the terminal.
Wherein the model algorithm acquisition request includes an identification of the terminal.
S202, the server determines the preset level of the preset model and the preset level of the preset algorithm based on the identification of the terminal.
The preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the level of the terminal and the identification of the terminal have a corresponding relation, the preset level of the preset model is used for representing the computing capacity of the preset model, and the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm.
In connection with the above description of the embodiments, it should be understood that the class of the terminal may characterize the operational capabilities of the terminal.
In an optional implementation manner, the server may store a first corresponding relationship, where the first corresponding relationship includes identifiers of multiple terminals and respective levels corresponding to the identifiers of the multiple terminals. After acquiring the identifier of the terminal, the server may determine, from the first corresponding relationship, a level corresponding to the identifier of the terminal, that is, the level of the terminal.
In the embodiment of the present disclosure, the server may store a plurality of levels of the preset model and a plurality of levels of the preset algorithm. After determining the level of the terminal, the server may determine a preset model with a computing capability similar to the operating capability of the terminal (i.e., a preset model of the preset level) from a plurality of levels of the preset model, and determine a preset algorithm with a processing capability similar to the operating capability of the terminal (i.e., a preset algorithm of the preset level) from a plurality of levels of the preset algorithm.
S203, the server sends the model algorithm determination result to the terminal.
The model algorithm determination result includes the preset model at the preset level and the preset algorithm at the preset level, and the model algorithm determination result is used for instructing the terminal to process the target service based on the preset model at the preset level and the preset algorithm at the preset level.
It is to be understood that the terminal may process the target service based on the preset model of the preset level and the preset algorithm of the preset level after receiving the model algorithm determination result.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from S201 to S203, the server may receive a model algorithm obtaining request sent by the terminal, where the model algorithm obtaining request includes an identifier of the terminal, the service may determine a level of the terminal based on the identifier of the terminal, and since the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the server may determine the preset level of the preset model and the preset level of the preset algorithm, and send a model algorithm determination result to the terminal, where the model algorithm determination result includes the preset model of the preset level and the preset algorithm of the preset level. In the embodiment of the present disclosure, since the level of the terminal has a corresponding relationship with the identifier of the terminal, the server may determine the level of the terminal based on the identifier of the terminal; and the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, which means that the server can determine the level of the preset model (namely the preset level) and the level of the preset algorithm (namely the preset level) which are matched with the level of the terminal based on the identifier of the terminal. The level of the terminal can represent the operation capacity of the terminal, the preset level of the preset model is used for representing the calculation capacity of the preset model, and the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm, so that the preset model of the preset level determined by the server is a model with the calculation capacity similar to the operation capacity of the terminal, and the preset algorithm of the preset level determined by the server is an algorithm with the processing capacity similar to the operation capacity of the terminal, namely the server can realize customized model and algorithm configuration for the terminal. Furthermore, the terminal processes the target service based on the preset model at the preset level and the preset algorithm at the preset level, so that the running speed of the preset model and the preset algorithm can be guaranteed while the preset model and the preset algorithm are effectively run on the terminal, and the efficiency of service processing and the effectiveness of service processing can be improved.
With reference to fig. 4, as shown in fig. 5, after the server sends the model algorithm determination result to the terminal rod, the service processing method provided by the embodiment of the present disclosure further includes S204-S205.
And S204, the server receives the operation data sent by the terminal.
The operation data comprises a target duration, and the target duration is the duration for processing the target service by the terminal based on the preset model of the preset level and the preset algorithm of the preset level.
And S205, when the operation data do not meet the preset conditions, the server adjusts the preset level of the preset model and the preset level of the preset algorithm.
It can be understood that, when the operation data does not satisfy the preset condition, it indicates that the preset level of the preset model and the preset level of the preset algorithm configured by the server for the terminal may be unreasonable, specifically, the operation capability of the terminal is not similar (or not matched) with the calculation capability of the preset model at the preset level, and the operation capability of the terminal is not similar (or not matched) with the processing capability of the preset algorithm at the preset level. The terminal may not be able to effectively process the target service based on the preset model of the preset level and the preset algorithm of the preset level, and the server may adjust the preset level of the preset model and the preset level of the preset algorithm at this time.
It should be understood that the server adjusting the preset level of the preset model specifically includes increasing or decreasing the preset level of the preset model.
In an optional implementation manner, when the operation data meets the preset condition, it is described that the operation capability of the terminal matches with the calculation capability of the preset model at the preset level and the operation capability of the terminal matches with the processing capability of the preset algorithm at the preset level, and at this time, the server may determine that the preset level of the preset model and the preset level of the preset algorithm remain unchanged.
In an implementation manner of the embodiment of the present disclosure, the operation data may further include a target power consumption, where the target power consumption is power consumption when the terminal processes the target service based on the preset model at the preset level and the preset algorithm at the preset level. The server may determine whether the operation data satisfies a preset condition based on the target power consumption, and then determine whether to adjust a preset level of a preset model and a preset level of a preset algorithm.
Optionally, the operation data further includes a target occupied memory, a target Central Processing Unit (CPU) occupancy rate, a target Graphics Processing Unit (GPU) frequency, a target GPU occupancy rate, a target temperature, a target rendering frame rate, and the like. The server may determine whether to adjust a preset level of a preset model and a preset level of a preset algorithm based on the target occupied memory, the target CPU occupancy, the target GPU frequency, the target GPU occupancy, the target temperature, and the target rendering frame rate.
In this disclosure, the server may configure weight parameters for the target duration, the target power consumption, the target occupied memory, the target CPU occupancy, the target CPU frequency, the target GPU occupancy, the target temperature, and the target rendering frame rate, and then determine whether to adjust a preset level of a preset model and a preset level of a preset algorithm based on the operation data and the relevant weight parameters.
In an implementation manner of the embodiment of the present invention, the server adjusts the preset level of the preset model and the preset level of the preset algorithm to obtain the target level of the preset model and the target level of the preset algorithm, respectively.
In an alternative implementation, the model algorithm determination result may be understood as a first model algorithm determination result. In this embodiment of the present invention, the server may further send a second model algorithm determination result to the terminal, where the model algorithm determination result includes the preset model at the target level and the preset algorithm at the target level, and the second model algorithm determination result is used to instruct the terminal to process the target service based on the preset model at the target level and the preset algorithm at the target level.
In an implementation manner of the embodiment of the present disclosure, when the preset level is higher than the target level, it is described that the calculation capability of the preset model of the preset level is higher than the calculation capability of the preset model of the target level, and the processing capability of the preset algorithm of the preset level is higher than the processing capability of the preset algorithm of the target level.
In another implementation manner of the embodiment of the present disclosure, when the preset level is higher than the target level, the calculated amount of the parameter used in the preset algorithm of the preset level is greater than the calculated amount of the parameter used in the preset algorithm of the target level, and the number of processing steps included in the preset algorithm of the preset level is greater than the number of additional processing steps included in the preset algorithm of the target level.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from S204-S205, the server may receive operation data sent by the terminal, where the operation data includes a target duration, and the target duration is a duration for the terminal to process the target service based on the preset model of the preset level and the preset algorithm of the preset level; when the operating data does not satisfy the preset condition, the server may adjust a preset level of the preset model and a preset level of the preset algorithm. In the embodiment of the disclosure, when the operation data does not satisfy the preset condition, it is described that the preset level of the preset model and the preset level of the preset algorithm configured by the server for the terminal may be unreasonable, specifically, the operation capability of the terminal is not similar to (or mismatched with) the calculation capability of the preset model at the preset level, the operation capability of the terminal is not similar to (or mismatched with) the processing capability of the preset algorithm at the preset level, the terminal may not effectively process the target service based on the preset model at the preset level and the preset algorithm at the preset level, and at this time, the server adjusts the preset level of the preset model and the preset level of the preset algorithm, and the effectiveness of service processing can be improved.
In an implementation manner of the embodiment of the present disclosure, the preset condition includes a preset duration range, data in the preset duration range is less than or equal to a first duration threshold, and data in the preset duration range is greater than or equal to a second duration threshold. Referring to fig. 5, as shown in fig. 6, the server adjusts the preset level of the preset model and the preset level of the preset algorithm, which may specifically include S2051 to S2052.
And S2051, when the target duration is greater than the first duration threshold, the server reduces the preset level of the preset model and the preset level of the preset algorithm according to the first preset level difference.
The first duration threshold is a maximum value in the preset duration range.
It should be understood that, when the target duration is greater than the first duration threshold, it indicates that the terminal has a longer time to process the target service based on the preset model of the preset level and the preset algorithm of the preset level. The preset model and the preset algorithm may be relatively high in computing power and relatively high in processing power, but the terminal has relatively low operation power, and the preset model and the preset algorithm cannot be fully used in the terminal, so that the terminal is stuck and the like when processing a target service.
It is understood that a level difference is used to represent a difference or difference between two levels, and in the disclosed embodiment, a first preset level difference may be used to represent a level of a preset model and may be used to represent a level of a preset algorithm.
And S2052, when the target duration is smaller than the second duration threshold, the server increases the preset level of the preset model and the preset level of the preset algorithm according to the first preset level difference.
And the second duration threshold is the minimum value in the preset duration range.
It should be understood that, when the target duration is less than the second duration threshold, it means that the time for the terminal to process the target service based on the preset model of the preset level and the preset algorithm of the preset level is shorter. The preset model may have a smaller calculation capability and the preset algorithm may have a smaller processing capability, but the terminal has a larger operation capability, and the terminal may obtain a poorer processing effect based on the preset model at the preset level and the preset algorithm at the preset level, specifically, the terminal may use the preset model at a higher level and the preset algorithm to achieve a better effect.
In the embodiment of the present disclosure, the first duration threshold and the second duration threshold may be understood as critical values in the preset duration range.
Specifically, when the target duration is equal to the first duration threshold or the second duration threshold (i.e., the critical value), it indicates that the operation capability of the terminal is similar to (or matched with) the calculation capability of the preset model at the preset level and the processing capability of the preset algorithm at the preset level. At this time, the server may determine that the preset level of the preset model and the preset level of the preset algorithm remain unchanged.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: it can be known from S2051 to S2052 that, when the target duration is greater than the first duration threshold, it indicates that the time for the terminal to process the target service based on the preset model of the preset level and the preset algorithm of the preset level is longer. The preset model and the preset algorithm may be relatively high in computing capability and relatively high in processing capability, but the terminal is relatively low in operation capability, and the preset model and the preset algorithm cannot be fully used in the terminal, so that the terminal is jammed and the like when processing a target service, at this time, the server may reduce the preset level of the preset model and the preset level of the preset algorithm according to a first preset level difference, and when the target duration is less than a second duration threshold, it is described that the time for the terminal to process the target service based on the preset model of the preset level and the preset algorithm of the preset level is relatively short, possibly because the preset model is relatively low in computing capability and the preset algorithm is relatively low in processing capability, but the terminal is relatively high in operation capability, and the terminal may possibly obtain a relatively poor processing effect based on the preset model of the preset level and the preset algorithm of the preset level, at this time, the server may increase the preset level of the preset model and the preset level of the preset algorithm according to the first preset level difference. In the embodiment of the disclosure, when the computing power of the preset model is relatively large and the processing power of the preset algorithm is relatively large, but the operation power of the terminal is relatively small, the preset level of the preset model and the preset level of the preset algorithm are reduced according to the first preset level difference, and when the computing power of the preset model is relatively small and the processing power of the preset algorithm is relatively small, but the operation power of the terminal is relatively large, the preset level of the preset model and the preset level of the preset algorithm are increased according to the first preset level difference, so that the processing efficiency of the target service can be improved and the effectiveness of service processing can be improved.
With reference to fig. 6, as shown in fig. 7, the service processing method provided in the embodiment of the present disclosure further includes S206.
And S206, when the target duration is greater than or equal to the third duration threshold, the server reduces the preset level of the preset model and the preset level of the preset algorithm according to the second preset level difference.
The third duration threshold is greater than the first duration threshold, and the second preset level difference is greater than the first preset level difference.
It should be understood that, when the target duration is greater than the third duration threshold, it indicates that the terminal has too long time to process the target service based on the preset model of the preset level and the preset algorithm of the preset level. The reason may be that the calculation capability of the preset model is too large and the processing capability of the preset algorithm is too large, but the operation capability of the terminal is relatively small, and the preset model and the preset algorithm cannot be fully used in the terminal, so that the terminal is severely jammed when processing a target service. And if the preset level of the preset model and the preset level of the preset algorithm are reduced by the server according to the first preset level difference, which may still cause the terminal to be stuck, at this time, the server may reduce the preset level of the preset model and the preset level of the preset algorithm according to a larger step length (i.e., a second preset level difference), so as to determine the preset model and the preset algorithm which are close to (or matched with) the operation capability of the terminal as soon as possible.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: it can be known from S206 that, when the target duration is greater than the third duration threshold, it indicates that the terminal processes the target service based on the preset model of the preset level and the preset algorithm of the preset level for too long time, which may be because the computing power of the preset model is too large and the processing power of the preset algorithm is too large, but the operation capability of the terminal is relatively small, and the preset model and the preset algorithm cannot be fully used in the terminal, so that the terminal is severely stuck when processing the target service, at this time, the server may reduce the preset level of the preset model and the preset level of the preset algorithm according to a second preset level difference.
Referring to fig. 3, as shown in fig. 8, the server determines the preset level of the preset model and the preset level of the preset algorithm based on the identifier of the terminal, and specifically includes S2021 to S2024.
S2021, the server determines the performance parameters of the terminal based on the identifier of the terminal.
It is to be understood that the performance parameter may include at least one of: the terminal comprises the computing capacity of the terminal, the rendering capacity of the terminal, the memory size of the terminal and the service life of the terminal.
It should be understood that the capabilities of the CPU included in the terminal may characterize the computational capabilities of the terminal, and the capabilities of the GPU included in the terminal may characterize the rendering capabilities of the terminal, which may be the rendering capabilities of the GPU of the terminal.
S2022, the server determines a performance value of the terminal based on the performance parameter of the terminal.
Wherein the performance value is used for characterizing the operation capability of the terminal.
It can be understood that, when the computing power of the terminal is stronger, the operation power of the terminal is stronger; when the rendering capability of the terminal is stronger, the operation capability of the terminal is stronger; when the memory of the terminal is larger, the operation capacity of the terminal is stronger; the smaller the usage time of the terminal is, the more powerful the operation capability of the terminal is.
In an optional implementation manner, the server may determine the computing capability of the terminal as a first numerical value, determine the rendering capability of the terminal as a second numerical value, determine the memory size of the terminal as a third numerical value, and determine the usage duration of the terminal as a fourth numerical value; the server may then determine the sum of the first value, the second value, the third value and the fourth value as a performance value of the terminal.
In another implementation manner of the embodiment of the present disclosure, the server may further configure a first weighting parameter for the first value, a second weighting parameter for the second value, a third weighting parameter for the third value, and a fourth weighting parameter for the fourth value; the server may then determine a sum of a first product (i.e., a product between the first value and the first weight parameter), a second product (i.e., a product between the second value and the second weight parameter), a third product (i.e., a product between the third value and the third weight parameter), and a fourth product (i.e., a product between the fourth value and the fourth weight parameter) as the performance value of the terminal.
And S2023, the server determines the level corresponding to the preset numerical range as the level of the terminal.
Wherein, the preset value range includes the performance value of the terminal.
In an implementation manner of the embodiment of the present disclosure, the server may further store a second corresponding relationship, where the second corresponding relationship includes a plurality of numerical ranges and respective levels corresponding to the plurality of numerical ranges. After determining the performance value of the terminal, the server may determine the preset value range from the multiple value ranges, and determine a level corresponding to the preset value range as the level of the terminal.
S2024, the server determines a preset level of the preset model and a preset level of the preset algorithm based on the level of the terminal.
With reference to the foregoing description of the embodiment, it should be understood that, after determining the level of the terminal, the server may determine a preset level of the preset model with a processing capability similar to an operation capability of the terminal from among the multiple levels of the preset model, and determine a preset level of the preset algorithm with a processing capability similar to an operation capability of the terminal from among the multiple levels of the preset algorithm.
The technical scheme provided by the embodiment at least has the following beneficial effects: as known from S2021-S2024, the server may determine a performance parameter of the terminal based on the identifier of the terminal, and determine a performance value of the terminal based on the performance parameter; then, the server may determine a level corresponding to the preset value range (the preset value range includes the performance value) as a level of the terminal, and then determine a preset level of the preset model and a preset level of the preset algorithm according to the level of the terminal. In the embodiment of the present disclosure, the server may determine the operation capability of the terminal based on the performance parameter of the terminal, and determine the preset numerical range (specifically, the numerical range to which the performance value of the terminal belongs) as the level of the terminal, so as to accurately determine the level of the terminal. And because the grade of the terminal is matched with the preset grade of the preset model and the preset grade of the preset algorithm, the server can accurately and effectively determine the model and the algorithm which are highly matched with the operation capacity of the terminal, and the efficiency of service processing is further improved.
Referring to fig. 8, as shown in fig. 9, the determining of the preset level of the preset model and the preset level of the preset algorithm based on the terminal level may specifically include S20241 to S20242.
S20241, the server obtains the first mapping relation and the second mapping relation.
The first mapping relationship comprises a plurality of first levels and a second level corresponding to each of the first levels, the second mapping relationship comprises the first levels and a third level corresponding to each of the first levels, the first levels are used for representing the levels of the terminal, the second levels are used for representing the levels of the preset model, and the third levels are used for representing the levels of the preset algorithm.
It can be understood that, after obtaining the first mapping relationship and the second mapping relationship, the server may further store the first mapping relationship and the second mapping relationship.
It should be understood that in the first mapping, the level of a terminal corresponds to the level of a predetermined model, and in the second mapping, the level of a terminal corresponds to the level of a predetermined algorithm.
S20242, the server determines a preset level of the preset model based on the level of the terminal and the first mapping relation, and determines a preset level of the preset algorithm based on the level of the terminal and the second mapping relation.
It can be understood that the server may determine, based on the level of the terminal and the first mapping relationship, a level of a preset model corresponding to the level of the terminal, and then determine the level of the preset model as the preset level of the preset model, and the server may determine, based on the level of the terminal and the second mapping relationship, a level of a preset algorithm corresponding to the level of the terminal, and then determine the level of the preset algorithm as the preset level of the preset algorithm.
The technical scheme provided by the above embodiment at least brings the following beneficial effects: as can be seen from S20241-S20242, the server may obtain the first mapping relationship and the second mapping relationship, then determine a preset level of the preset model based on the level of the terminal and the first mapping relationship, and determine a preset level of the preset algorithm based on the level of the terminal and the second mapping relationship. In this embodiment of the disclosure, since the first mapping relationship includes a corresponding relationship between a level of the terminal and a level of the preset model, and the second mapping relationship includes a corresponding relationship between a level of the terminal and a level of the preset algorithm, the server may determine, based on the level of the terminal and the first mapping relationship, a preset level of the preset model that matches the level of the terminal, and determine, based on the level of the terminal and the second mapping relationship, a preset level of the preset algorithm that matches the level of the terminal, and may accurately configure, for the terminal, the preset model at the preset level that matches the operation capability of the terminal, and the preset algorithm at the preset level, thereby improving a matching degree between the terminal and the preset model and the preset algorithm.
As shown in fig. 10, when the service processing method is based on the interactive process of the terminal 101 and the server 102, the service method may include S301-S306.
S301, the terminal sends a model algorithm obtaining request to the server.
The model algorithm obtaining request comprises an identifier of the terminal, the model algorithm obtaining request is used for requesting to obtain a preset model at a preset level and a preset algorithm at the preset level, the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, and the level of the terminal and the identifier of the terminal have a corresponding relation.
S302, the server receives a model algorithm obtaining request sent by the terminal.
S303, the server determines the preset level of the preset model and the preset level of the preset algorithm based on the identifier of the terminal.
The preset level of the preset model and the preset level of the preset algorithm are the same as the level of the terminal, the level of the terminal and the identification of the terminal have a corresponding relation, the preset level of the preset model is used for representing the computing capacity of the preset model, and the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm.
S304, the server sends the model algorithm determination result to the terminal.
The model algorithm determination result includes the preset model at the preset level and the preset algorithm at the preset level, and the model algorithm determination result is used for instructing the terminal to process the target service based on the preset model at the preset level and the preset algorithm at the preset level.
S305, the terminal receives the model algorithm determination result sent by the server.
And the model algorithm determination result comprises the preset model at the preset level and the preset algorithm at the preset level.
And S306, the terminal processes the target service based on the preset model of the preset level and the preset algorithm of the preset level.
It should be noted that, for the explanation in S301 to S306, reference may be made to the description in the foregoing embodiments, and details are not described here.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: it can be known from S301 to S306 that the terminal may send a model algorithm obtaining request to the server, where the model algorithm obtaining request includes an identifier of the terminal, after receiving the model algorithm obtaining request, the server may determine, based on the identifier of the terminal, a preset level of the preset model and a preset level of the preset algorithm, and send a model algorithm determination result to the terminal, and after receiving the model algorithm determination result sent by the server, the terminal may process the target service based on the preset model at the preset level and the preset algorithm at the preset level. In the embodiment of the present disclosure, since the level of the terminal has a corresponding relationship with the identifier of the terminal, the server may determine the level of the terminal based on the identifier of the terminal; and the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, which means that the server can determine the level of the preset model (namely, the preset level) and the level of the preset algorithm (namely, the preset level) which are matched with the level of the terminal based on the identifier of the terminal. The level of the terminal can represent the operation capacity of the terminal, the preset level of the preset model is used for representing the calculation capacity of the preset model, the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm, the preset model of the preset level determined by the server is a model with the calculation capacity close to the operation capacity of the terminal, the preset algorithm of the preset level determined by the server is an algorithm with the processing capacity close to the operation capacity of the terminal, and the server can achieve customized model and algorithm configuration for the terminal. Furthermore, after the server sends a model algorithm obtaining request to the terminal, the terminal can process the target service based on the preset model at the preset level and the preset algorithm at the preset level, so that the operation efficiency of the preset model and the preset algorithm can be guaranteed while the preset model and the preset algorithm are effectively operated on the terminal, and the efficiency of service processing and the effectiveness of service processing can be improved.
It is understood that, in practical implementation, the terminal/server according to the embodiments of the present disclosure may include one or more hardware structures and/or software modules for implementing the corresponding service processing methods, and these hardware structures and/or software modules may constitute a terminal/server. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for implementing the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Based on such understanding, the embodiment of the present disclosure further provides a service processing apparatus, and fig. 11 illustrates a schematic structural diagram of the service processing apparatus provided in the embodiment of the present disclosure. As shown in fig. 11, the service processing apparatus 20 may include: a receiving module 201, a determining module 202 and a sending module 203.
The receiving module 201 is configured to receive a model algorithm obtaining request sent by a terminal, where the model algorithm obtaining request includes an identifier of the terminal.
The determining module 202 is configured to determine, based on the identifier of the terminal, a preset level of a preset model and a preset level of a preset algorithm, where the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the level of the terminal and the identifier of the terminal have a corresponding relationship, the preset level of the preset model is used for representing the computing capability of the preset model, and the preset level of the preset algorithm is used for representing the processing capability of the preset algorithm.
A sending module 203 configured to send a model algorithm determination result to the terminal, where the model algorithm determination result includes the preset model at the preset level and the preset algorithm at the preset level, and the model algorithm determination result is used to instruct the terminal to process the target service based on the preset model at the preset level and the preset algorithm at the preset level.
Optionally, the service processing apparatus 20 further includes a processing module 204.
The receiving module 201 is further configured to receive operation data sent by the terminal, where the operation data includes a target duration, and the target duration is a duration for the terminal to process the target service based on the preset model of the preset level and the preset algorithm of the preset level.
The processing module 204 is configured to adjust the preset level of the preset model and the preset level of the preset algorithm when the operation data does not satisfy the preset condition.
Optionally, the preset condition includes a preset duration range, data in the preset duration range is smaller than or equal to a first duration threshold, and data in the preset duration range is larger than or equal to a second duration threshold.
The processing module 204 is specifically configured to, when the target duration is greater than a first duration threshold, decrease the preset level of the preset model and the preset level of the preset algorithm according to a first preset level difference, where the first duration threshold is a maximum value in the preset duration range.
The processing module 204 is specifically further configured to increase the preset level of the preset model and the preset level of the preset algorithm according to the first preset level difference when the target duration is less than a second duration threshold, where the second duration threshold is a minimum value in the preset duration range.
Optionally, the processing module 204 is further configured to, when the target duration is greater than or equal to a third duration threshold, decrease the preset level of the preset model and the preset level of the preset algorithm according to a second preset level difference, where the third duration threshold is greater than the first duration threshold, and the second preset level difference is greater than the first preset level difference.
Optionally, the determining module 202 is configured to determine a performance parameter of the terminal based on the identifier of the terminal, where the performance parameter includes at least one of: the terminal comprises the computing capacity of the terminal, the rendering capacity of the terminal, the memory size of the terminal and the service life of the terminal.
The determining module 202 is further configured to determine a performance value of the terminal based on the performance parameter, wherein the performance value is used for characterizing the operation capability of the terminal.
The determining module 202 is further configured to determine a level corresponding to a preset value range as the level of the terminal, where the preset value range includes the performance value.
The determining module 202 is further configured to determine a preset level of the preset model and a preset level of the preset algorithm based on the level of the terminal.
The service processing apparatus 20 further includes an obtaining module 205.
The obtaining module 205 is configured to obtain a first mapping relationship and a second mapping relationship, where the first mapping relationship includes a plurality of first levels and a second level corresponding to each of the plurality of first levels, the second mapping relationship includes the plurality of first levels and a third level corresponding to each of the plurality of first levels, the first levels are used for representing levels of the terminal, the second levels are used for representing levels of the preset model, and the third levels are used for representing levels of the preset algorithm.
The determining module 202 is further configured to determine a preset level of the preset model based on the level of the terminal and the first mapping relationship, and determine a preset level of the preset algorithm based on the level of the terminal and the second mapping relationship.
As described above, the embodiment of the present disclosure may perform division of functional modules on the service processing apparatus according to the above method example. The integrated module can be realized in a hardware form, and can also be realized in a software functional module form. In addition, it should be noted that, the division of the modules in the embodiment of the present disclosure is schematic, and is only one logic function division, and there may be another division manner in actual implementation. For example, the functional blocks may be divided for the respective functions, or two or more functions may be integrated into one processing block.
Regarding the service processing apparatus in the foregoing embodiment, the specific manner in which each module performs operations and the beneficial effects have been described in detail in the foregoing method embodiment, and are not described again here.
Fig. 12 is a schematic structural diagram of another service processing device provided by the present disclosure. As shown in fig. 12, the service processing device 30 may include at least one processor 301 and a memory 303 for storing processor-executable instructions. Wherein the processor 301 is configured to execute the instructions in the memory 303 to implement the service processing method in the above-described embodiment.
In addition, the traffic processing device 30 may also include a communication bus 302 and at least one communication interface 304.
The processor 301 may be a Central Processing Unit (CPU), a micro-processing unit, an ASIC, or one or more integrated circuits for controlling the execution of programs according to the disclosed aspects.
The communication bus 302 may include a path that conveys information between the aforementioned components.
The communication interface 304 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), etc.
The memory 303 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disk read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
The memory 303 is used for storing instructions for executing the disclosed solution, and is controlled to be executed by the processor 301. The processor 301 is configured to execute instructions stored in the memory 303 to implement the functions of the disclosed method.
In particular implementations, processor 301 may include one or more CPUs, such as CPU0 and CPU1 in fig. 12, as one embodiment.
In a specific implementation, the service processing apparatus 30 may include a plurality of processors, for example, the processor 301 and the processor 307 in fig. 12, as an embodiment. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, the service processing apparatus 30 may further include an output device 305 and an input device 306, as an embodiment. The output device 305 is in communication with the processor 301 and may display information in a variety of ways. For example, the output device 305 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device 306 is in communication with the processor 301 and can accept user input in a variety of ways. For example, the input device 306 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
Fig. 13 is a diagram illustrating a structure of a service processing apparatus according to the present disclosure. As shown in fig. 13, the service processing apparatus 40 may include: a sending module 401, a receiving module 402 and a processing module 403.
The sending module 401 is configured to send a model algorithm obtaining request to the server, where the model algorithm obtaining request includes an identifier of the terminal, the model algorithm obtaining request is used to request to obtain a preset model at a preset level and a preset algorithm at the preset level, the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, and the level of the terminal and the identifier of the terminal have a corresponding relationship.
A receiving module 402, configured to receive a model algorithm determination result sent by the server, where the model algorithm determination result includes the preset model at the preset level and the preset algorithm at the preset level.
A processing module 403 configured to process the target service based on the preset model of the preset level and the preset algorithm of the preset level.
Optionally, the sending module 401 is further configured to send running data to the server, where the running data includes a target duration, and the target duration is a duration for the terminal to process the target service based on the preset model of the preset level and the preset algorithm of the preset level.
Fig. 14 is a schematic structural diagram of another service processing apparatus provided in the present disclosure. As shown in fig. 14, the traffic processing apparatus 50 may include at least one processor 501 and a memory 503 for storing processor-executable instructions. Wherein the processor 501 is configured to execute instructions in the memory 503 to implement the service processing method in the above-described embodiments.
Additionally, the traffic processing device 50 may also include a communication bus 502 and at least one communication interface 504.
The processor 501 may be a CPU, micro-processing unit, ASIC, or one or more integrated circuits for controlling the execution of programs in accordance with the disclosed aspects.
The communication bus 502 may include a path that conveys information between the aforementioned components.
The communication interface 504, using any transceiver or the like, is used for communication with other devices or communication networks, such as ethernet, RAN, WLAN, etc.
The memory 503 may be, but is not limited to, ROM or other type of static storage device that can store static information and instructions, RAM or other type of dynamic storage device that can store information and instructions, EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
The memory 503 is used for storing instructions for executing the disclosed solution, and is controlled by the processor 501. The processor 501 is configured to execute instructions stored in the memory 503 to implement the functions of the disclosed method.
In particular implementations, processor 501 may include one or more CPUs, such as CPU0 and CPU1 in fig. 14, as one embodiment.
In a specific implementation, the service processing apparatus 50 may include a plurality of processors, for example, the processor 501 and the processor 507 in fig. 14, as an embodiment. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, the service processing apparatus 50 may further include an output device 505 and an input device 506, as an embodiment. An output device 505, which is in communication with the processor 501, may display information in a variety of ways. For example, the output device 505 may be an LCD, LED display device, CRT display device, projector, or the like. The input device 506 is in communication with the processor 501 and may accept user input in a variety of ways. For example, the input device 506 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
Those skilled in the art will appreciate that the configuration shown in fig. 14 and described above with respect to fig. 12 does not constitute a limitation of the service processing apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
In addition, the present disclosure also provides a computer-readable storage medium including instructions that, when executed by a processor of a device, cause the device to perform the service processing method provided by the above embodiment.
In addition, the present disclosure also provides a computer program product comprising instructions which, when executed by a processor of a device, cause the device to perform the service processing method as provided in the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (12)

1. A service processing method is applied to a server, and is characterized by comprising the following steps:
receiving a model algorithm obtaining request sent by a terminal, wherein the model algorithm obtaining request comprises an identifier of the terminal;
determining a preset level of a preset model and a preset level of a preset algorithm based on the identifier of the terminal, wherein the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the level of the terminal and the identifier of the terminal have a corresponding relation, the preset level of the preset model is used for representing the computing capacity of the preset model, and the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm;
sending a model algorithm determination result to the terminal, wherein the model algorithm determination result comprises the preset model at the preset level and the preset algorithm at the preset level, and the model algorithm determination result is used for indicating the terminal to process the target service based on the preset model at the preset level and the preset algorithm at the preset level.
2. The traffic-handling method according to claim 1, wherein after said sending of the model algorithm determination result to the terminal, the method further comprises:
receiving operation data sent by the terminal, wherein the operation data comprises a target duration, and the target duration is the duration for processing the target service by the terminal based on the preset model of the preset level and the preset algorithm of the preset level;
and when the running data does not meet the preset conditions, adjusting the preset level of the preset model and the preset level of the preset algorithm.
3. The traffic processing method according to claim 2, wherein the preset condition includes a preset duration range, data in the preset duration range is smaller than or equal to a first duration threshold, data in the preset duration range is greater than or equal to a second duration threshold, and the adjusting the preset level of the preset model and the preset level of the preset algorithm includes:
when the target duration is greater than a first duration threshold, reducing the preset level of the preset model and the preset level of the preset algorithm according to a first preset level difference;
and when the target duration is smaller than a second duration threshold, increasing the preset level of the preset model and the preset level of the preset algorithm according to the first preset level difference.
4. The traffic processing method according to claim 3, wherein the method further comprises:
and when the target duration is greater than or equal to a third duration threshold, reducing the preset level of the preset model and the preset level of the preset algorithm according to a second preset level difference, wherein the third duration threshold is greater than the first duration threshold, and the second preset level difference is greater than the first preset level difference.
5. The traffic processing method according to any of claims 1 to 4, wherein the determining a preset level of the preset model and a preset level of the preset algorithm based on the identity of the terminal comprises:
determining performance parameters of the terminal based on the identifier of the terminal;
determining a performance value of the terminal based on the performance parameter, wherein the performance value is used for representing the operation capacity of the terminal;
determining a grade corresponding to a preset numerical range as the grade of the terminal, wherein the preset numerical range comprises the performance numerical value;
and determining a preset level of the preset model and a preset level of the preset algorithm based on the level of the terminal.
6. The traffic processing method according to claim 5, wherein the determining the preset level of the preset model and the preset level of the preset algorithm based on the level of the terminal comprises:
obtaining a first mapping relation and a second mapping relation, wherein the first mapping relation comprises a plurality of first levels and a second level corresponding to each of the first levels, the second mapping relation comprises the first levels and a third level corresponding to each of the first levels, the first levels are used for representing the levels of the terminal, the second levels are used for representing the levels of the preset model, and the third levels are used for representing the levels of the preset algorithm;
determining a preset level of the preset model based on the level of the terminal and the first mapping relation, and determining a preset level of the preset algorithm based on the level of the terminal and the second mapping relation.
7. A service processing method is applied to a terminal, and is characterized by comprising the following steps:
sending a model algorithm obtaining request to a server, wherein the model algorithm obtaining request comprises an identifier of the terminal, the model algorithm obtaining request is used for requesting to obtain a preset model at a preset level and a preset algorithm at the preset level, the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the level of the terminal and the identifier of the terminal have a corresponding relation, the preset level of the preset model is used for representing the computing capacity of the preset model, and the preset level of the preset algorithm is used for representing the processing capacity of the preset algorithm;
receiving a model algorithm determination result sent by the server, wherein the model algorithm determination result comprises the preset model at the preset level and the preset algorithm at the preset level;
and processing the target service based on the preset model of the preset level and the preset algorithm of the preset level.
8. The traffic-handling method according to claim 7, wherein after receiving the model algorithm determination result sent by the server, the method further comprises:
and sending operation data to the server, wherein the operation data comprises target duration, and the target duration is duration for processing the target service by the terminal based on the preset model of the preset level and the preset algorithm of the preset level.
9. A traffic processing apparatus, comprising: the device comprises a receiving module, a determining module and a sending module;
the receiving module is configured to receive a model algorithm obtaining request sent by a terminal, wherein the model algorithm obtaining request comprises an identifier of the terminal;
the determining module is configured to determine a preset level of a preset model and a preset level of a preset algorithm based on the identifier of the terminal, the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the level of the terminal and the identifier of the terminal have a corresponding relationship, the preset level of the preset model is used for representing the computing capability of the preset model, and the preset level of the preset algorithm is used for representing the processing capability of the preset algorithm;
the sending module is configured to send a model algorithm determination result to the terminal, where the model algorithm determination result includes the preset model at the preset level and the preset algorithm at the preset level, and the model algorithm determination result is used to instruct the terminal to process a target service based on the preset model at the preset level and the preset algorithm at the preset level.
10. A traffic processing apparatus, comprising: the device comprises a sending module, a receiving module and a processing module;
the sending module is configured to send a model algorithm obtaining request to a server, where the model algorithm obtaining request includes an identifier of the terminal, the model algorithm obtaining request is used to request to obtain a preset model at a preset level and a preset algorithm at the preset level, the preset level of the preset model and the preset level of the preset algorithm are matched with the level of the terminal, the level of the terminal and the identifier of the terminal have a corresponding relationship, the preset level of the preset model is used to represent the computing capability of the preset model, and the preset level of the preset algorithm is used to represent the processing capability of the preset algorithm;
the receiving module is configured to receive a model algorithm determination result sent by the server, where the model algorithm determination result includes the preset model at the preset level and the preset algorithm at the preset level;
the processing module is configured to process the target service based on the preset model of the preset level and the preset algorithm of the preset level.
11. An apparatus, characterized in that the apparatus comprises:
a processor;
a memory configured to store the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the traffic processing method according to any one of claims 1 to 6, or to implement the traffic processing method according to claim 7 or 8.
12. A computer-readable storage medium having instructions stored thereon, which when executed by a processor of a device, enable the device to perform a traffic processing method according to any of claims 1-6, or to perform a traffic processing method according to claim 7 or 8.
CN202211511262.5A 2022-11-29 2022-11-29 Service processing method, device, equipment and storage medium Pending CN115730224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211511262.5A CN115730224A (en) 2022-11-29 2022-11-29 Service processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211511262.5A CN115730224A (en) 2022-11-29 2022-11-29 Service processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115730224A true CN115730224A (en) 2023-03-03

Family

ID=85298992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211511262.5A Pending CN115730224A (en) 2022-11-29 2022-11-29 Service processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115730224A (en)

Similar Documents

Publication Publication Date Title
WO2021142609A1 (en) Information reporting method, apparatus and device, and storage medium
WO2020199487A1 (en) Method, apparatus and device for responding to access request, and storage medium
US11436050B2 (en) Method, apparatus and computer program product for resource scheduling
US20210042578A1 (en) Feature engineering orchestration method and apparatus
CN112527509B (en) Resource allocation method and device, electronic equipment and storage medium
WO2017131907A2 (en) Systems and methods for providing power efficiency via memory latency control
CN114155026A (en) Resource allocation method, device, server and storage medium
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN116325737A (en) Quantification of tree-based machine learning models
CN113392984A (en) Method, apparatus, device, medium and product for training a model
CN112052943A (en) Electronic device and method for performing operation of the same
CN116996938A (en) Internet of vehicles task unloading method, terminal equipment and storage medium
CN115730224A (en) Service processing method, device, equipment and storage medium
CN115269145A (en) High-energy-efficiency heterogeneous multi-core scheduling method and device for offshore unmanned equipment
CN114265692A (en) Service scheduling method, device, equipment and storage medium
CN114765613A (en) Client-driven cloud network access system and method
CN113904940A (en) Resource adjusting method and device, electronic equipment and computer readable storage medium
CN117707797B (en) Task scheduling method and device based on distributed cloud platform and related equipment
CN111988403A (en) Request processing method and system of electronic equipment, storage medium and electronic equipment
CN113285833B (en) Method and device for acquiring information
CN115391042B (en) Resource allocation method and device, electronic equipment and storage medium
CN117891618B (en) Resource task processing method and device of artificial intelligent model training platform
CN116089753A (en) Service data acquisition method, device, server and storage medium
CN115065727B (en) Task unloading method based on edge computing scene
CN115361285B (en) Method, device, equipment and medium for realizing off-line service mixed deployment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination