File processing method, client, server and storage medium
By processing AI model files in chunks and using hash identifier matching, the problem of upload bandwidth and storage limitations of large AI model files is solved, an efficient and reliable upload solution is implemented, and the management process is simplified.
Patent Information
- Application Number
- CN202410001689.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2024-10-18
AI Technical Summary
When uploading large AI model files, you face limitations in bandwidth and storage space. Traditional methods are complex and time-consuming, and incremental uploads have issues such as resumption of uploads and management complexity, making it difficult to handle efficiently.
By dividing the model file into blocks and hashing it using the unique identifier and sequence number of the data block, a unique identifier of the file is generated. The server side saves the block information. The client and server sides match the stored blocks and only transmit missing blocks. Reduce unnecessary data transmission.
It improves the upload speed of model files, reduces bandwidth consumption, simplifies management complexity, reduces upload time and computing overhead, and enhances the reliability and fault tolerance of the system.
Smart Images

Figure CN118796774A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of object storage technology, and in particular to a file processing method, a client, a server and a storage medium. Background Art
[0002] With the rapid development of deep learning, more and more researchers have begun to design larger-scale artificial intelligence (AI) models to improve model performance and representation. These large models usually have billions to tens of billions of parameters, such as BERT, GPT-3, etc. These large models have achieved remarkable results in tasks such as natural language processing and computer vision.
[0003] Training large AI models requires a lot of computing resources and storage space, and usually needs to be done on powerful computing clusters or cloud computing platforms. Once trained, deploying these large models to production environments or mobile devices also faces challenges, and the transmission and deployment efficiency of model files need to be considered. In addition, the development of AI research and application fields is changing with each passing day, and many researchers and companies need to share and collaborate on large models. In this case, uploading large models to shared platforms or cloud storage is also necessary. As AI models continue to evolve and optimize, researchers often need to make incremental updates or improvements to the models. Uploading incremental updates to existing models is a common requirement. Deploying large models to edge devices is also an important application scenario. For example, deploying speech recognition models to mobile phones or smart speakers, or deploying computer vision models to drones or self-driving vehicles. In these scenarios, uploading large models may face bandwidth and storage space limitations.
[0004] In summary, uploading large model files requires considering factors such as model size, bandwidth requirements, and storage requirements to ensure that the upload process is efficient, secure, and reliable. Therefore, there is an urgent need for an upload solution that can increase the upload speed of model files and reduce bandwidth consumption. Summary of the invention
[0005] At least one embodiment of the present application provides a file processing method, a client, a server, and a storage medium, which can increase the file upload speed or reduce bandwidth consumption.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a file processing method, which is applied to a server, comprising:
[0008] Receive first model information sent by a client, where the first model information includes a file unique identifier of a first model file to be uploaded and / or block information of the first model file, where the block information of the first model file includes data block unique identifiers and data block sequence numbers of a plurality of first data blocks obtained after the first model file is segmented;
[0009] According to the first model information, a file unique identifier of the first model file is obtained, and the file unique identifier of the first model file is searched in a first database table, wherein the first database table records the file unique identifier of the stored model file and the data block storage path information thereof;
[0010] In a case where the file unique identifier of the first model file is recorded in the first database table, the data block storage paths of the multiple first data blocks are obtained according to the data block unique identifiers of the multiple first data blocks and the data block storage path information of the first model file recorded in the first database table, and the multiple first data blocks are merged according to the data block storage paths of the multiple first data blocks and the data block sequence numbers of the multiple first data blocks to obtain the first model file, and the first model file is stored in the first user path corresponding to the client.
[0011] Optionally, obtaining a unique file identifier of the first model file according to the first model information includes:
[0012] In a case where the first model information includes a file unique identifier of the first model file, directly extracting the file unique identifier of the first model file from the first model information;
[0013] In the case where the first model information includes the block information of the first model file, the file unique identifier of the first model file is calculated according to the data block unique identifiers and data block sequence numbers of the plurality of first data blocks.
[0014] Optionally, the data block storage path information of the stored model file recorded in the first database table is: the file name and file path of the model information file of the stored model file, wherein the content of the model information file of the stored model file includes: the file unique identifier of the stored model file, the data block unique identifier of each data block of the stored model file and its data block storage path;
[0015] The method of obtaining the data block storage paths of the multiple first data blocks based on the data block unique identifiers of the multiple first data blocks and the data block storage path information of the first model file recorded in the first database table includes: obtaining the model information file of the first model file based on the file name and file path of the model information file of the first model file recorded in the first database table; and extracting the data block storage path of each first data block from the model information file of the first model file based on the data block unique identifiers of the multiple first data blocks.
[0016] Optionally, the above method further includes:
[0017] When the file unique identifier of the first model file is not recorded in the first database table, searching the first data block in the second database table according to the data block unique identifier of the first data block, wherein the second database table records the data block unique identifier and the data block storage path of the stored data block;
[0018] Determine, according to the found first data block, remaining first data blocks, wherein the remaining first data blocks are data blocks other than the found first data block among the plurality of first data blocks;
[0019] Sending first indication information to the client, where the first indication information includes a data block unique identifier and / or a data block sequence number of the remaining first data block;
[0020] Receive the remaining first data blocks and their corresponding data block unique identifiers and / or data block sequence numbers sent by the client, store the remaining first data blocks, and record the data block unique identifiers and data block storage paths of the remaining first data blocks in the second database table.
[0021] Optionally, the above method further includes:
[0022] acquiring, from the second database table, data block storage paths of the plurality of first data blocks according to the data block unique identifier of the first data block;
[0023] According to the data block storage paths of the multiple first data blocks and the data block sequence numbers of the multiple first data blocks, the multiple first data blocks are merged to obtain the first model file, and the first model file is stored in the first user path corresponding to the client.
[0024] Optionally, the above method further includes:
[0025] The data block storage path of the data block of the stored model file includes the file unique identifier of the stored model file;
[0026] When a data block storage path of at least one first data block of the first model file contains a file unique identifier of the second model file, calculating a proportion of the at least one first data block in the plurality of first data blocks;
[0027] When the ratio exceeds a preset threshold, first version information of the first model file is generated, and model file version information is added to the model information file of the second model file, wherein the model file version information includes the first version information and a unique file identifier of the first model file.
[0028] Optionally, the above method further includes:
[0029] The first user path is returned to the client.
[0030] In a second aspect, an embodiment of the present application provides a file processing method, which is applied to a client, comprising:
[0031] The client divides the first model file to be uploaded into blocks to obtain a plurality of first data blocks, and determines a data block unique identifier and a data block sequence number of each first data block;
[0032] Sending first model information to a server, wherein the first model information includes a unique file identifier of a first model file to be uploaded and / or block information of the first model file, wherein the first model information is used by the server to determine whether a first data block of the first model file has been stored.
[0033] Optionally, when the first model information includes a unique file identifier of a first model file to be uploaded, the method further includes:
[0034] The file unique identifier of the first model file is obtained by calculation according to the data block unique identifiers and data block sequence numbers of the multiple first data blocks.
[0035] Optionally, the above method further includes:
[0036] receiving first indication information sent by the server, wherein the first indication information includes a data block unique identifier and / or a data block sequence number of a remaining first data block, wherein the remaining first data block is a data block in the plurality of first data blocks excluding the first data blocks stored by the server;
[0037] The remaining first data blocks and their corresponding data block unique identifiers and / or data block sequence numbers are sent to the server.
[0038] Optionally, the above method further includes:
[0039] A first user path sent by a server is received, where the first user path is a storage path of the first model file.
[0040] In a third aspect, an embodiment of the present application provides a server, including a transceiver and a processor, wherein:
[0041] The transceiver is used to receive first model information sent by a client, wherein the first model information includes a file unique identifier of a first model file to be uploaded and / or block information of the first model file, wherein the block information of the first model file includes a data block unique identifier and a data block sequence number of a plurality of first data blocks obtained after the first model file is segmented;
[0042] The processor is configured to obtain a file unique identifier of the first model file according to the first model information, and search for the file unique identifier of the first model file in a first database table, wherein the first database table records the file unique identifier of the stored model file and its data block storage path information; when the file unique identifier of the first model file is recorded in the first database table, obtain the data block storage paths of the multiple first data blocks according to the data block unique identifiers of the multiple first data blocks and the data block storage path information of the first model file recorded in the first database table, merge the multiple first data blocks according to the data block storage paths of the multiple first data blocks and the data block sequence numbers of the multiple first data blocks to obtain the first model file, and store the first model file in a first user path corresponding to the client.
[0043] In a fourth aspect, an embodiment of the present application provides a server, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the method described in the first aspect.
[0044] In a fifth aspect, an embodiment of the present application provides a client, including a transceiver and a processor, wherein:
[0045] The processor is used for the client to divide the first model file to be uploaded into blocks to obtain multiple first data blocks, and determine the data block unique identifier and data block sequence number of each first data block;
[0046] The transceiver is used to send first model information to the server, where the first model information includes a unique file identifier of a first model file to be uploaded and / or block information of the first model file, wherein the first model information is used by the server to determine whether a first data block of the first model file has been stored.
[0047] In a sixth aspect, an embodiment of the present application provides a client, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the method described in the second aspect.
[0048] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the steps of the method described above are implemented.
[0049] Compared with the prior art, the file processing method, client, server and storage medium provided in the embodiments of the present application divide the model file into blocks, generate unique identifiers for each data block and the model file, and match them with the data blocks stored on the server side. This can reduce the upload of unnecessary data blocks, thereby reducing bandwidth consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0051] Figure 1 A flowchart of a file processing method according to an embodiment of the present application;
[0052] Figure 2 Another flow chart of the file processing method of the embodiment of the present application;
[0053] Figure 3 An exemplary flow chart of the file processing method according to an embodiment of the present application;
[0054] Figure 4 An example diagram of the model information folder path and storage path structure of an embodiment of the present application;
[0055] Figure 5 This is an example diagram of a storage path structure under a model information folder path in an embodiment of the present application;
[0056] Figure 6 A schematic diagram of the structure of a server according to an embodiment of the present application;
[0057] Figure 7 This is a schematic diagram of the structure of a client according to an embodiment of the present application;
[0058] Figure 8 This is a schematic diagram of the structure of a server according to another embodiment of the present application;
[0059] Fig. 9This is a schematic diagram of the structure of a client according to another embodiment of the present application. DETAILED DESCRIPTION
[0060] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0061] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment. "And / or" in the specification and claims represents at least one of the connected objects.
[0062] The following description provides examples and does not limit the scope, applicability, or configuration set forth in the claims. Changes may be made to the functions and arrangements of the elements discussed without departing from the spirit and scope of the present disclosure. Various examples may appropriately omit, replace, or add various procedures or components. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
[0063] With the continuous advancement of AI technology, many efficient large model uploading solutions have emerged. Related technologies include several AI large model and data set uploading technical solutions, which are used to upload large AI models to cloud services, servers or other devices. These technical solutions are designed to solve challenges such as large file size, bandwidth limitations and security. The following are some of the main large model uploading technical solutions:
[0064] Chunked upload: Split the large model file into smaller pieces (chunks), and then upload the chunks one by one. This can reduce the upload size of a single file and reduce the bandwidth required for upload. On the server side, these chunks are then merged into the complete large model file. Chunked upload can also better handle network interruptions or errors during the upload process, thereby achieving breakpoint resumption.
[0065] Incremental upload: Based on the existing model, only the newly added or modified parts are uploaded. This method avoids repeatedly uploading the entire model file, saving upload time and bandwidth. Incremental upload is common in model updates or fine-tuning, and only the changes in model parameters can be transmitted.
[0066] Compression and quantization: Compress and quantize large models to represent the model's parameters as smaller data types, such as low-precision floating-point numbers or integers. This can significantly reduce the size of the model file, thereby speeding up uploads and reducing bandwidth consumption. At the same time, quantization also helps the model run more efficiently during deployment and inference.
[0067] Encrypted upload: Encrypt large models based on a rolling verification algorithm to ensure the security of model data during the upload process. This can prevent the model from being illegally obtained or tampered with during transmission. On the server or target device, decryption is performed to restore the original model data.
[0068] Resume upload: For uploading large files, the resume upload technology can record the upload progress during the upload process. Even if there is a network interruption or other problems, the upload can be continued after recovery without starting over.
[0069] Distributed upload: Utilize distributed computing and storage to upload large model files to multiple servers in a distributed manner, thereby processing upload tasks in parallel and improving upload efficiency.
[0070] The above large model upload technical solutions can be used alone or in combination. Choose the appropriate solution according to the specific situation. The above solutions are designed to reduce the difficulty of uploading, improve the efficiency of uploading and ensure the security of model data.
[0071] The above upload solution has some problems in the following aspects:
[0072] 1) Complexity: Chunked upload involves splitting large files into smaller chunks and uploading these chunks one by one. This increases the complexity and management difficulty of the upload process.
[0073] 1) Upload time: Incremental upload of large files requires breaking the large file into smaller pieces and uploading them one by one. This process may take a long time, especially when the network connection is slow or unstable.
[0074] 2) Memory requirements: When doing incremental uploads, the uploaded chunks need to be cached on the client or server, which can lead to increased memory usage, especially for very large files.
[0075] 3) Breakpoint resuming problem: In incremental uploading, if the connection is interrupted or an upload error occurs during the upload process, some blocks of the file may be uploaded successfully, while other blocks cannot be uploaded. This will affect the integrity and availability of the entire file.
[0076] 4) Upload order: Incremental uploads usually need to be uploaded one by one in the order of blocks. If some blocks are lost or damaged during the upload process, subsequent blocks may not be uploaded, resulting in an incomplete upload of the file.
[0077] 5) Management Complexity: On both the server and client side, the order, status, and integrity of chunks must be managed. This increases the complexity of implementing and maintaining an incremental upload system.
[0078] 6) Upload concurrency: During the incremental upload of large files, if multiple users upload the same large file at the same time, it may cause conflicts and confusion in the upload process, affecting the upload speed and performance.
[0079] 7) Merge overhead: After all chunks are uploaded, a merge operation is required to restore the original large file. This merge process may require additional computation and time overhead.
[0080] In addition, the rolling checksum algorithm is a lightweight checksum algorithm, not an encryption algorithm, and is not suitable for data encryption fields with high security requirements. Although the files downloaded from the public file library have unique identifiers and summary files, the entire file may not be reused due to modification of the summary file or the file content. In addition, when the file is uploaded to the platform for the first time, the relevant technology requires full upload because there is no summary file for the file itself.
[0081] To solve at least one of the above problems, the present application provides a file processing method, which can improve the file upload speed and reduce bandwidth consumption. Figure 1 , a file processing method provided in an embodiment of the present application, when applied to a server side, includes:
[0082] Step 11, receiving first model information sent by the client, wherein the first model information includes a file unique identifier of a first model file to be uploaded and / or block information of the first model file, wherein the block information of the first model file includes a data block unique identifier and a data block sequence number of a plurality of first data blocks obtained after the first model file is segmented.
[0083] Here, when the client of the embodiment of the present application needs to upload the first model file, the first model file to be uploaded is divided into blocks to obtain multiple first data blocks, and the data block unique identifier and data block sequence number of each first data block are determined. Among them, the data block unique identifier of a first data block is used to uniquely identify the first data block, and the data block sequence number of the first data block is used to indicate the order of the first data block in the block processing. For example, the first model file is divided into 10,000 first data blocks, which can be numbered 1, 2, 3, ..., 9998, 9999, 1000 in sequence according to the block order, which is the data block sequence number of each first data block. In this article, the data block is the data block obtained by block processing of the model file (referred to as the data block for short).
[0084] In an embodiment of the present application, in order to improve the security of data, a hash algorithm can be used to generate a data block unique identifier of the first data block, for example, a secure hash algorithm (Secure Hash Algorithm, SHA) is used to hash the first data block, and the hash result is used as the data block unique identifier of the first data block. SHA-256 is a widely used hash function that is applied to fields such as digital signatures, data integrity verification, cryptography, and secure communications. The output length of SHA-256 is longer, and a larger hash space can be provided, making collision attacks (finding two different inputs that produce the same hash value) very difficult. SHA-256 is considered to be a hash function with higher security. In an embodiment of the present application, SHA-256 can be used to generate a data block identifier.
[0085] Furthermore, the client can also calculate the file unique identifier of the first model file based on the data block unique identifiers and data block sequence numbers of the multiple first data blocks. For example, the data block unique identifiers of the multiple first data blocks are sequentially connected in series according to the data block sequence numbers to obtain an intermediate identifier. Then, the intermediate identifier is hashed using a secure hash algorithm, and the hash result is used as the file unique identifier of the first model file. Specifically, the client can use algorithms such as SHA-256 to generate the identifier of the model file.
[0086] After the client performs block processing on the first model file, the client will send the first model information to the server. Here, the first model information includes the file unique identifier of the first model file and / or the block information of the first model file, wherein the block information of the first model file may further include the data block unique identifiers and data block sequence numbers of multiple first data blocks obtained after the first model file is segmented.
[0087] Step 12: Obtain a unique file identifier of the first model file according to the first model information, and search for the unique file identifier of the first model file in a first database table, wherein the first database table records the unique file identifier of the stored model file and its data block storage path information.
[0088] Here, in the case where the first model information includes the file unique identifier of the first model file, the server can directly extract the file unique identifier of the first model file from the first model information; in the case where the first model information includes the block information of the first model file, the server can calculate the file unique identifier of the first model file based on the data block unique identifiers and data block sequence numbers of the multiple first data blocks. For example, according to the data block sequence numbers, the data block unique identifiers of the multiple first data blocks are sequentially connected in series to obtain an intermediate identification number. Then, the intermediate identification number is hashed using a secure hash algorithm, and the obtained hash result is the file unique identifier of the first model file. Specifically, the server can use algorithms such as SHA-256 to generate the identifier of the model file.
[0089] As an implementation method, in an embodiment of the present application, the data block storage path information of the stored model file recorded in the first database table may be: the file name and file path of the model information file of the stored model file, wherein the content of the model information file of the stored model file includes: the file unique identifier of the stored model file, the data block unique identifier of each data block of the stored model file and its data block storage path. In other words, based on the data block storage path information of the model file, the storage path of each block of the model file can be obtained. For example, after obtaining the file name and file path of the model information file of a certain model file, the model information file of the model file can be obtained according to the file path, and then the file unique identifier of the model file, the data block unique identifier of each data block of the model file and its data block storage path can be obtained from the content of the model information file. Of course, the data block storage path information of the embodiment of the present application can also be directly represented by the storage path information of each block.
[0090] Step 13, when the file unique identifier of the first model file is recorded in the first database table, the data block storage paths of the multiple first data blocks are obtained according to the data block unique identifiers of the multiple first data blocks and the data block storage path information of the first model file recorded in the first database table, and the multiple first data blocks are merged according to the data block storage paths of the multiple first data blocks and the data block sequence numbers of the multiple first data blocks to obtain the first model file, and the first model file is stored in the first user path corresponding to the client.
[0091] Here, when the file unique identifier of the first model file is recorded in the first database table, it means that the first model file is a model file stored on the server side. At this time, the server can obtain the model information file of the first model file according to the file name and file path of the model information file of the first model file recorded in the first database table, and then extract the data block storage path of each first data block from the model information file of the first model file according to the data block unique identifiers of the multiple first data blocks.
[0092] In this way, the server can merge the multiple first data blocks according to the data block storage paths and the data block sequence numbers of the multiple first data blocks to obtain the first model file, and then store the first model file in the first user path corresponding to the client.
[0093] Through the above steps, the embodiment of the present application can divide the model file into blocks, generate unique identifiers for each block and the model file, store the blocks on the server side and save information such as the storage path of each block. In this way, when the model file to be sent by the subsequent client matches the same file unique identifier on the server side, the model file can be generated according to the storage path of each block of the model file recorded on the server side, so that the client does not need to upload the model file again, reducing bandwidth consumption.
[0094] Furthermore, the server may also return the first user path to the client.
[0095] The embodiment of the present application also maintains a second database table on the server side, and the second database table records the data block unique identifier and data block storage path of the stored data block. In this way, when the server side does not save the model file to be sent by the client, the embodiment of the present application can further determine the data block of the model file to be sent that has been stored on the server side, so that the client can only send the data block that the server side does not have, so as to reduce the amount of uploaded data and bandwidth consumption, improve the upload speed of the model file, and save upload time.
[0096] Specifically, when the server side does not store the model file to be sent by the client, that is, when the file unique identifier of the first model file is not recorded in the first database table, the server can search for the first data block in the second database table according to the data block unique identifier of the first data block. Then, according to the found first data block, the remaining first data blocks are determined, and the remaining first data blocks are data blocks in the multiple first data blocks excluding the found first data blocks. In other words, the remaining data blocks are data blocks of the first model file that are not stored on the server side.
[0097] Then, the server sends first indication information to the client, wherein the first indication information includes a data block unique identifier and / or a data block sequence number of the remaining first data block. The client sends the remaining first data block and its corresponding data block unique identifier and / or data block sequence number according to the first indication information. The server receives the remaining first data block and its corresponding data block unique identifier and / or data block sequence number sent by the client, stores the remaining first data block, and further records the data block unique identifier and data block storage path of the remaining first data block in the second database table.
[0098] In this way, the server side can obtain all the first data blocks of the first model file, and at this time, the server can obtain the data block storage paths of the multiple first data blocks from the second database table according to the data block unique identifier of the first data block. Then, according to the data block storage paths of the multiple first data blocks and the data block sequence numbers of the multiple first data blocks, the multiple first data blocks are merged to obtain the first model file, and the first model file is stored in the first user path corresponding to the client.
[0099] It should also be noted that the model files or data blocks stored on the server side may be stored in the server, in other servers, or in one or more nodes of a distributed storage system associated with the server. The embodiments of the present application do not specifically limit this.
[0100] Through the above steps, in the embodiment of the present application, when only part of the data blocks of the first model file are saved on the server side or no data blocks of the first model file are saved, the missing data blocks are requested from the client to reduce the amount of data uploaded by the model file, thereby saving bandwidth consumption, correspondingly improving the upload speed of the model file, and saving upload time.
[0101] Considering the version update of the model file, the same data block may be a data block in multiple versions of a model file. Usually, different versions of a model file will contain a certain proportion of the same data blocks, and the data block sequence numbers of these data blocks in different versions of the model file may be the same or different.
[0102] In the embodiment of the present application, the data block storage path of the data block of the stored model file includes the file unique identifier of the stored model file. That is to say, the file unique identifier of the stored model file is a component of the data block storage path, so that the model file to which the data block belongs can be determined by the file unique identifier in the data block storage path of a certain data block. Further, the embodiment of the present application can determine the version association information of the model file generated based on these data blocks based on the above information. For example, when most of the data blocks of a certain model file are from another model file, it can be considered that the two model files are model files in the version update process. For example, in the case where the data block storage path of at least one first data block of the first model file contains the file unique identifier of the second model file, the server can calculate the proportion of the at least one first data block in the multiple first data blocks. In the case where the proportion exceeds the preset threshold, the first version information of the first model file is generated, and a model file version information is added to the model information file of the second model file, and the model file version information includes the first version information and the file unique identifier of the first model file. Through the above steps, each version information of the model file is maintained in the model information file.
[0103] Please refer to Figure 2 , a file processing method provided in an embodiment of the present application, when applied to a client side, includes:
[0104] In step 21, the client divides the first model file to be uploaded into blocks to obtain a plurality of first data blocks, and determines a data block unique identifier and a data block sequence number of each first data block.
[0105] Here, when the client needs to upload the first model file, the client divides the first model file into blocks to obtain multiple first data blocks, and determines a data block unique identifier and a data block sequence number of each first data block.
[0106] Step 22: Send first model information to the server, where the first model information includes a unique file identifier of the first model file to be uploaded and / or block information of the first model file, wherein the first model information is used by the server to determine whether the first data block of the first model file has been stored.
[0107] Here, after the client performs block processing on the first model file, the client sends the first model information to the server. Here, the first model information includes the file unique identifier of the first model file and / or the block information of the first model file, wherein the block information of the first model file may further include the data block unique identifiers and data block sequence numbers of multiple first data blocks obtained after the first model file is segmented.
[0108] In the case where the first model information includes a file unique identifier of the first model file to be uploaded, the client can calculate the file unique identifier of the first model file according to the data block unique identifiers and data block sequence numbers of the multiple first data blocks. For example, the data block unique identifiers of the multiple first data blocks are sequentially connected in series according to the data block sequence numbers to obtain an intermediate identifier. The intermediate identifier is hashed using a secure hash algorithm to obtain the file unique identifier of the first model file.
[0109] Through the above steps, when the client of the embodiment of the present application needs to upload the first model file, it uploads the first model information, so that the server determines whether the first model file or the data block of the first model file has been stored according to the first model information, and then determines whether the client needs to upload the data block of the first model file, thereby reducing unnecessary data uploads and reducing bandwidth consumption.
[0110] In the case that the server side only stores some data blocks of the first model file or does not store any data blocks, the client can receive the first indication information sent by the server, wherein the first indication information includes the data block unique identifier and / or data block sequence number of the remaining first data blocks, wherein the remaining first data blocks are data blocks other than the first data blocks stored by the server among the multiple first data blocks. Then, the client sends the remaining first data blocks and their corresponding data block unique identifiers and / or data block sequence numbers to the server, so that the server can obtain all the data blocks of the first model file, and then generate the first model file.
[0111] In the embodiment of the present application, the client may also receive a first user path sent by the server, where the first user path is a storage path of the first model file.
[0112] As can be seen from the above process, the file processing method of the embodiment of the present application divides a large file into smaller data blocks (sometimes also referred to as data blocks, data fragments, slices or fragments herein), and stores these data blocks in storage media respectively. Through the data block unique identifier / unique check code (here referred to as Part-SHA-256), the data block is searched to solve the efficiency and reliability problems of large file transmission, storage and processing. The large file is divided into multiple data blocks of equal or unequal sizes according to a fixed size or according to demand. The data blocks after segmentation can be hundreds of KB or several MB in size, and the specific size depends on the requirements and limitations of the system. The segmented data blocks are stored in different storage locations, which can be different directories of the same server, or different nodes of different servers or distributed storage systems. Distributed storage of file blocks can improve the reliability and fault tolerance of the system, because even if a storage location fails, data can still be restored through other storage locations. According to the particularity of the content of the large model file, the model file provider is not completely progressive and full-volume modification, which will affect the unique check code (SHA-256) of the entire file after modification, but will not affect the unique check code of some data blocks. According to this feature, using block storage can make it easier to find and extract consistent data blocks that already exist in the warehouse, and users only need to transfer data blocks that do not exist in the warehouse. This can greatly reduce the size of the data transferred model files, thereby speeding up upload speeds and reducing bandwidth consumption.
[0113] The method of the embodiment of the present application is further illustrated below by using a more specific example.
[0114] This example provides a block storage system, including a client and a server, and the method involves a client parsing module on the client side and a unique check code calculation module, a check code screening module, a cache module and a storage medium module on the server side. The server side maintains two database tables, namely Table 1 (corresponding to the first database table above) and Table 2 (corresponding to the second database table above). Among them,
[0115] Table 1 includes at least one table entry, each of which includes the following parameters:
[0116] a) The unique identifier of the model file is represented by File-SHA-256. The value of File-SHA-256 is a unique code obtained by hash calculation.
[0117] b) The total number of data blocks, represented by Total-Parts-Number, is the total number of data blocks obtained after the client divides the complete model file into data blocks according to the platform rules.
[0118] c) File path of the model information file (the file path includes File-SHA-256. In this example, the complete model information file is not stored in the database table, but the path of the model information file in the storage medium is provided).
[0119] d) The file name of the model information file, here File-SHA-256.json is used. The value of File-SHA-256 is the value of the unique file identifier of the model file. The model information file is stored in the file path of the model information file. The content of the model information file is as follows:
[0120]
[0121]
[0122] The complete model unique identifier refers to the file unique identifier of the model file, and the data block unique identifier refers to the data block unique identifier.
[0123] Table 2 includes at least one table entry, each of which includes the following parameters:
[0124] a) Unique identification of data block, represented by Part-SHA-256, the value of Part-SHA-256 is the unique code calculated by hash.
[0125] b) The unique file identifier of the model file. ;
[0126] c) The data block storage path may be expressed in the form of a second-level path structure under the file path of the model information file.
[0127] d) The data block sequence number, represented by Part-Number, is used to indicate the data block number in the segmentation process. The sequence number generally starts from 1.
[0128] e) Data block name, named Part-SHA-256.Part-Number. It can be seen that the data block name includes both the unique identifier of the data block and the sequence number of the data block.
[0129] Please refer to the example process Figure 3 , mainly including:
[0130] 1. The parsing module on the client side first needs to prepare parameters for the large model file to be uploaded, including:
[0131] Assuming that for a 50GB file, if you want to perform Merkle tree verification, you first need to divide the file into blocks and calculate the hash value for each data block to obtain the unique identifier Part-SHA-256 of each data block.
[0132] In this way, the 50GB file is divided into 10,000 data blocks in sequence, and the hash value of each data block with a length of 256 bytes is calculated to form a Part-SHA-256 list (that is, a data block unique identification list):
[0133] [Part-SHA-256.Part-Number1, Part-SHA-256.Part-Number2, Part-SHA-256.Part-Number3, … Part-SHA-256.Part-Number10000], where the size of each data block is 50GB / 10,000=5MB.
[0134] These data blocks may be of fixed size, and the calculated data block unique identification list is sent to the unique verification code calculation module on the server side.
[0135] 2. The unique verification code calculation module receives the data sent by the client and performs the following operations:
[0136] Calculate the total file hash value. Extract the Part-SHA-256 values of all data blocks from the data block unique identifier list, and concatenate them according to the Part-Number values from 1 to 10000. Calculate the 256-bit hash value after the concatenation. This value is used as the complete model unique identifier File-SHA-256 (i.e., the file unique identifier). Send this value and the Part-SHA-256 list of all data blocks to the verification code screening module for query and screening.
[0137] 3. The verification code screening module performs the following operations:
[0138] Query database table 1 based on the received complete model unique identifier File-SHA-256.
[0139] If the above-mentioned complete model unique identifier File-SHA-256 exists in Table 1, the Path value of the file path of the model information file corresponding to File-SHA-256 in Table 1 is obtained and sent to the storage medium module.
[0140] If the complete model unique identifier File-SHA-256 does not exist in Table 1, the unique identifier of each data block is extracted from the Part-SHA-256 list, and searched and filtered in database Table 2. For the found data blocks, the data block storage path Part-Path and data block sequence number Part-Number corresponding to the data block unique identifier are extracted from Table 2 and sent to the cache module. For the data blocks that are not found, their sequence numbers are determined.
[0141] In addition, all necessary information of the file that does not exist in this large model is recorded in Table 1 and Table 2, and the sequence number of the data block that does not exist in Table 2 is returned to the client so that the client can upload according to the sequence number.
[0142] Here, you can also calculate the reuse percentage by reusing the File-SHA-256 information recorded in the block storage path. If it exceeds a preset value, then generate File-SHA-256.json under the reused file information storage path. Add the version association information Version parameter: {"Version 1.0", "Complete model unique identifier 1"} to File-SHA-256.json, and add the fragment information {"Fragment unique identifier":"Complete model unique identifier / Fragment storage path.number"}.
[0143] 4. The cache module and the storage medium module perform the following operations:
[0144] The verification code screening module verifies the existing model files and starts the cache Job instance. When the instance is started, the storage path where the shards of the storage medium module are mounted is mounted. In the instance, the files are merged in the order of Part-Number. After the merging is completed, the Job is destroyed and the complete files are retained in the user path.
[0145] For the model file that does not exist, the same cache job instance merge file operation is performed after waiting for the user to upload the non-existent data block through the client.
[0146] Figure 4 Provides an example of the model information folder path (storage medium / ) and storage path structure. Figure 5 An example of the storage path structure under the model information folder path (storage medium / 02beff7e91d5c31896f194afc7e4faca / ) is provided. The content of the model information file named 02beff7e91d5c31896f194afc7e4faca.json is referred to as follows, where the shard unique identifier is the data block unique identifier, and the shard information is the data block information:
[0147]
[0148] As can be seen from the above examples, the block storage system of the embodiment of the present application divides the file into smaller data blocks and only stores the changed data blocks, avoiding the storage of duplicate data, thereby significantly improving the utilization of storage space, especially when processing a large amount of similar or duplicate data. Since the block storage system can store each block redundantly, it can provide higher fault tolerance. If a block is damaged or lost, the block storage system can restore the integrity of the data by copying or recalculating the block. Taking into account the characteristics of large models, model providers usually only modify part of the data, and most of the data are common files. When the block storage system accumulates and stores more data blocks, the proportion of common files will be greater, which can greatly reduce the amount of data that needs to be uploaded when the model is updated later.
[0149] In addition, the block storage system of the embodiment of the present application allows data to be processed in parallel on multiple nodes, improving the read and write capabilities and response time of the system. Each data block can be distributed and replicated independently, reducing the bottleneck of data access. The block storage system can be easily expanded horizontally, that is, more storage nodes are added to handle larger data volumes and higher loads. This makes the block storage system suitable for large-scale and growing storage needs.
[0150] In addition, the block storage system can optimize the storage and cache of blocks according to the importance and access frequency of the data, thereby improving the access efficiency of the data. For data blocks with low access frequency, a slower storage medium can be selected, while data blocks with high access frequency can choose a faster storage medium. The block storage system makes data migration and backup more flexible and efficient. Because the data is divided into smaller data blocks, data migration, backup and recovery operations can be performed more conveniently.
[0151] For example, the number of model file version information included in a certain model information file (referred to as the third model information file for ease of description) is obtained, and the number of model file version information can reflect the access frequency of the data blocks of the third model information file corresponding to the model information file. In this way, when the number exceeds the predetermined number threshold, if the access speed of the current storage medium of each data block of the third model file is lower than the preset speed threshold, the data block unique identifier and the data block storage path of each data block of the third model file can be determined according to the content of the model information file, and then the data blocks of the third model file are migrated to another storage medium with an access speed higher than the preset speed threshold, and the content of the model file version information and the second database table are updated according to the storage path of the migrated data blocks.
[0152] In addition, the embodiment of the present application uses database retrieval, hash unique index, file version, file index association and other information to strengthen the relationship between data blocks and files, reduce positioning overhead, improve the efficiency of incremental text analysis results, use a small bandwidth storage cost, and improve the overall efficiency of the platform.
[0153] It can be seen that the above scheme of the embodiment of the present application uses the file block storage method to perform multi-layer filtering on the large file blocks uploaded by users with the help of databases and file information files. As the files accumulate, the time consumed tends to filter the public block calculations, thereby improving the user's network bandwidth occupancy and model usage efficiency. In addition, through this method, the file information of the data block and the main file (the first uploaded file) and its associated version can be quickly found, and the object storage is used to merge and push files at high speed, further improving efficiency.
[0154] The above describes various methods of the embodiments of the present application. The following further provides devices for implementing the above methods.
[0155] Please refer to Figure 6 , the embodiment of the present application further provides a server 600, including: a transceiver 601 and a processor 602;
[0156] The transceiver 601 is used to receive first model information sent by a client, wherein the first model information includes a file unique identifier of a first model file to be uploaded and / or block information of the first model file, wherein the block information of the first model file includes a data block unique identifier and a data block sequence number of a plurality of first data blocks obtained after the first model file is segmented;
[0157] The processor 602 is configured to obtain a file unique identifier of the first model file according to the first model information, and search for the file unique identifier of the first model file in a first database table, wherein the first database table records the file unique identifier of the stored model file and its data block storage path information; when the file unique identifier of the first model file is recorded in the first database table, obtain the data block storage paths of the multiple first data blocks according to the data block unique identifiers of the multiple first data blocks and the data block storage path information of the first model file recorded in the first database table, merge the multiple first data blocks according to the data block storage paths of the multiple first data blocks and the data block sequence numbers of the multiple first data blocks to obtain the first model file, and store the first model file in a first user path corresponding to the client.
[0158] Optionally, the processor is further configured to:
[0159] In a case where the first model information includes a file unique identifier of the first model file, directly extracting the file unique identifier of the first model file from the first model information;
[0160] In the case where the first model information includes the block information of the first model file, the file unique identifier of the first model file is calculated according to the data block unique identifiers and data block sequence numbers of the plurality of first data blocks.
[0161] Optionally, the data block storage path information of the stored model file recorded in the first database table is: the file name and file path of the model information file of the stored model file, wherein the content of the model information file of the stored model file includes: the file unique identifier of the stored model file, the data block unique identifier of each data block of the stored model file and its data block storage path;
[0162] The processor is further used to: obtain the model information file of the first model file according to the file name and file path of the model information file of the first model file recorded in the first database table; and extract the data block storage path of each first data block from the model information file of the first model file according to the data block unique identifiers of the multiple first data blocks.
[0163] Optionally, the processor is further configured to:
[0164] When the file unique identifier of the first model file is not recorded in the first database table, searching the first data block in the second database table according to the data block unique identifier of the first data block, wherein the second database table records the data block unique identifier and the data block storage path of the stored data block;
[0165] Determine, according to the found first data block, remaining first data blocks, wherein the remaining first data blocks are data blocks other than the found first data block among the plurality of first data blocks;
[0166] Sending first indication information to the client, where the first indication information includes a data block unique identifier and / or a data block sequence number of the remaining first data block;
[0167] Receive the remaining first data blocks and their corresponding data block unique identifiers and / or data block sequence numbers sent by the client, store the remaining first data blocks, and record the data block unique identifiers and data block storage paths of the remaining first data blocks in the second database table.
[0168] Optionally, the processor is further configured to:
[0169] acquiring, from the second database table, data block storage paths of the plurality of first data blocks according to the data block unique identifier of the first data block;
[0170] According to the data block storage paths of the multiple first data blocks and the data block sequence numbers of the multiple first data blocks, the multiple first data blocks are merged to obtain the first model file, and the first model file is stored in the first user path corresponding to the client.
[0171] Optionally, the processor is further configured to:
[0172] The data block storage path of the data block of the stored model file includes the file unique identifier of the stored model file;
[0173] When a data block storage path of at least one first data block of the first model file contains a file unique identifier of the second model file, calculating a proportion of the at least one first data block in the plurality of first data blocks;
[0174] When the ratio exceeds a preset threshold, first version information of the first model file is generated, and model file version information is added to the model information file of the second model file, wherein the model file version information includes the first version information and a unique file identifier of the first model file.
[0175] Optionally, the transceiver is further used to return the first user path to the client.
[0176] It should be noted that the device in this embodiment is a device corresponding to the method applied to the server, and the implementation methods in the above embodiments are all applicable to the embodiments of the device, and can also achieve the same technical effects. The above device provided in the embodiment of the present application can implement all the method steps implemented in the above method embodiment, and can achieve the same technical effects. The parts and beneficial effects that are the same as those in the method embodiment in this embodiment will not be specifically described here.
[0177] Please refer to Figure 7 , the embodiment of the present application further provides a client 700, including: a transceiver 701 and a processor 702;
[0178] The processor 702 is configured to divide the first model file to be uploaded into blocks by the client to obtain a plurality of first data blocks, and determine a data block unique identifier and a data block sequence number of each first data block;
[0179] The transceiver 701 is used to send first model information to the server, where the first model information includes a unique file identifier of a first model file to be uploaded and / or block information of the first model file, wherein the first model information is used by the server to determine whether a first data block of the first model file has been stored.
[0180] Optionally, the processor is further configured to calculate the file unique identifier of the first model file according to the data block unique identifiers and data block sequence numbers of the multiple first data blocks when the first model information includes the file unique identifier of the first model file to be uploaded.
[0181] Optionally, the transceiver is also used to receive first indication information sent by the server, the first indication information including a data block unique identifier and / or a data block sequence number of the remaining first data blocks, wherein the remaining first data blocks are data blocks in the multiple first data blocks excluding the first data blocks stored by the server; and send the remaining first data blocks and their corresponding data block unique identifiers and / or data block sequence numbers to the server.
[0182] Optionally, the transceiver is further used to receive a first user path sent by a server, where the first user path is a storage path of the first model file.
[0183] It should be noted that the device in this embodiment is a device corresponding to the method applied to the client, and the implementation methods in the above embodiments are all applicable to the embodiments of the device, and can also achieve the same technical effects. The above device provided in the embodiment of the present application can implement all the method steps implemented in the above method embodiment, and can achieve the same technical effects. The parts and beneficial effects that are the same as those in the method embodiment in this embodiment will not be specifically described here.
[0184] Please refer to Figure 8 The embodiment of the present application also provides a terminal 800, including a processor 801, a memory 802, and a computer program stored in the memory 802 and executable on the processor 801. When the computer program is executed by the processor 801, each process of the file processing method embodiment executed by the server is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0185] Please refer to Fig. 9The embodiment of the present application also provides a network device 900, including a processor 901, a memory 902, and a computer program stored in the memory 902 and executable on the processor 901. When the computer program is executed by the processor 901, each process of the above-mentioned file processing method embodiment executed by the client is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0186] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned file processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0187] It should be noted that, in this article, the terms "include", "include" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0188] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0189] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A file processing method, applied to a server, It is characterized in that include: Receive first model information sent by a client, where the first model information includes a file unique identifier of a first model file to be uploaded and / or block information of the first model file, where the block information of the first model file includes data block unique identifiers and data block sequence numbers of a plurality of first data blocks obtained after the first model file is segmented; According to the first model information, a file unique identifier of the first model file is obtained, and the file unique identifier of the first model file is searched in a first database table, wherein the first database table records the file unique identifier of the stored model file and the data block storage path information thereof; In a case where the file unique identifier of the first model file is recorded in the first database table, the data block storage paths of the multiple first data blocks are obtained according to the data block unique identifiers of the multiple first data blocks and the data block storage path information of the first model file recorded in the first database table, and the multiple first data blocks are merged according to the data block storage paths of the multiple first data blocks and the data block sequence numbers of the multiple first data blocks to obtain the first model file, and the first model file is stored in the first user path corresponding to the client.
2. The method according to claim 1, It is characterized in that Obtaining a unique file identifier of the first model file according to the first model information includes: In a case where the first model information includes a file unique identifier of the first model file, directly extracting the file unique identifier of the first model file from the first model information; In the case where the first model information includes the block information of the first model file, the file unique identifier of the first model file is calculated according to the data block unique identifiers and data block sequence numbers of the plurality of first data blocks.
3. The method according to claim 1, It is characterized in that The data block storage path information of the stored model file recorded in the first database table is: the file name and file path of the model information file of the stored model file, wherein the content of the model information file of the stored model file includes: the file unique identifier of the stored model file, the data block unique identifier of each data block of the stored model file and its data block storage path; The method of obtaining the data block storage paths of the multiple first data blocks based on the data block unique identifiers of the multiple first data blocks and the data block storage path information of the first model file recorded in the first database table includes: obtaining the model information file of the first model file based on the file name and file path of the model information file of the first model file recorded in the first database table; and extracting the data block storage path of each first data block from the model information file of the first model file based on the data block unique identifiers of the multiple first data blocks.
4. The method according to claim 1, It is characterized in that Also includes: When the file unique identifier of the first model file is not recorded in the first database table, searching the first data block in the second database table according to the data block unique identifier of the first data block, wherein the second database table records the data block unique identifier and the data block storage path of the stored data block; Determine, according to the found first data block, remaining first data blocks, wherein the remaining first data blocks are data blocks other than the found first data block among the plurality of first data blocks; Sending first indication information to the client, where the first indication information includes a data block unique identifier and / or a data block sequence number of the remaining first data block; Receive the remaining first data blocks and their corresponding data block unique identifiers and / or data block sequence numbers sent by the client, store the remaining first data blocks, and record the data block unique identifiers and data block storage paths of the remaining first data blocks in the second database table.
5. The method according to claim 4, It is characterized in that Also includes: acquiring, from the second database table, data block storage paths of the plurality of first data blocks according to the data block unique identifier of the first data block; According to the data block storage paths of the multiple first data blocks and the data block sequence numbers of the multiple first data blocks, the multiple first data blocks are merged to obtain the first model file, and the first model file is stored in the first user path corresponding to the client.
6. The method according to claim 4, It is characterized in that Also includes: The data block storage path of the data block of the stored model file includes the file unique identifier of the stored model file; When a data block storage path of at least one first data block of the first model file contains a file unique identifier of the second model file, calculating a proportion of the at least one first data block in the plurality of first data blocks; When the ratio exceeds a preset threshold, first version information of the first model file is generated, and model file version information is added to the model information file of the second model file, wherein the model file version information includes the first version information and a unique file identifier of the first model file.
7. The method according to any one of claims 1 to 6, It is characterized in that Also includes: The first user path is returned to the client.
8. A file processing method, applied to a client, It is characterized in that include: The client divides the first model file to be uploaded into blocks to obtain a plurality of first data blocks, and determines a data block unique identifier and a data block sequence number of each first data block; Sending first model information to a server, wherein the first model information includes a unique file identifier of a first model file to be uploaded and / or block information of the first model file, wherein the first model information is used by the server to determine whether a first data block of the first model file has been stored.
9. The method according to claim 8, It is characterized in that In a case where the first model information includes a unique file identifier of a first model file to be uploaded, the method further includes: The file unique identifier of the first model file is obtained by calculation according to the data block unique identifiers and data block sequence numbers of the multiple first data blocks.
10. The method according to claim 8, It is characterized in that Also includes: receiving first indication information sent by the server, wherein the first indication information includes a data block unique identifier and / or a data block sequence number of a remaining first data block, wherein the remaining first data block is a data block in the plurality of first data blocks excluding the first data blocks stored by the server; The remaining first data blocks and their corresponding data block unique identifiers and / or data block sequence numbers are sent to the server.
11. The method according to claim 8, It is characterized in that Also includes: A first user path sent by a server is received, where the first user path is a storage path of the first model file.
12. A server, It is characterized in that comprising a transceiver and a processor, wherein: The transceiver is used to receive first model information sent by a client, wherein the first model information includes a file unique identifier of a first model file to be uploaded and / or block information of the first model file, wherein the block information of the first model file includes a data block unique identifier and a data block sequence number of a plurality of first data blocks obtained after the first model file is segmented; The processor is configured to obtain a file unique identifier of the first model file according to the first model information, and search for the file unique identifier of the first model file in a first database table, wherein the first database table records the file unique identifier of the stored model file and its data block storage path information; when the file unique identifier of the first model file is recorded in the first database table, obtain the data block storage paths of the multiple first data blocks according to the data block unique identifiers of the multiple first data blocks and the data block storage path information of the first model file recorded in the first database table, merge the multiple first data blocks according to the data block storage paths of the multiple first data blocks and the data block sequence numbers of the multiple first data blocks to obtain the first model file, and store the first model file in a first user path corresponding to the client.
13. A server, It is characterized in that include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.
14. A client, It is characterized in that comprising a transceiver and a processor, wherein: The processor is used for the client to divide the first model file to be uploaded into blocks to obtain multiple first data blocks, and determine the data block unique identifier and data block sequence number of each first data block; The transceiver is used to send first model information to the server, where the first model information includes a unique file identifier of a first model file to be uploaded and / or block information of the first model file, wherein the first model information is used by the server to determine whether a first data block of the first model file has been stored.
15. A server, It is characterized in that include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the method according to any one of claims 8 to 11 are implemented.
16. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
