Generative ai scenario cross-node model weight parameter mesh hardware high-speed transfer mechanism

By utilizing an immutable weight list and target interval mapping slices in distributed model deployment, the problems of shared load cache blocking and version consistency caused by slow targets are solved, achieving efficient and reliable model weight transmission.

CN123177918APending Publication Date: 2026-11-27BEIJING HUSHENG HOLDING GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611563190.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In distributed model deployments, slow targets cause problems such as shared load caching blocking and other target transmission blocking, and existing technologies have difficulty guaranteeing the version consistency of model weights, the completeness of inventory coverage, and device visibility.

Method used

By expanding the immutable weight list into source and target interval mapping slices with slice numbers, the coverage records of the bound model identity and version, layout generation, and target window generation are obtained. The source range is divided according to the gap endpoints, and a set of deliverables is registered for each source segment. Only the deliverables set and adjacent source segments with the same correspondence are merged for source reading and target writing. The target is idempotently merged according to the fixed coverage units and byte positions within the mapping slices to ensure complete coverage and that the output calculation is visible after device synchronization.

Benefits of technology

This reduces the blocking of the shared load cache by slow targets, ensures version consistency and device visibility of model weight calculations, avoids calculation errors caused by mixed versions and incomplete coverage, and improves transmission efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177918A_ABST
    Figure CN123177918A_ABST
Patent Text Reader

Abstract

The present application relates to model weight cross-node fan-out transport and target device visibility control. Target coverage gap is mapped to source coordinates by list mapping slice back projection, and source segments and delivery item sets are formed according to gap endpoints. Different mapping slices of the same target are retained respectively, and after sharing source segment reading, each target position is written. The target merges the transmission slices of different scheduling rounds in the fixed coverage unit byte position, and the repetition and reslicing do not change the coverage meaning; after the coverage is complete and the device synchronization is completed, the calculation is ready. This method reduces repeated source reading in gap repair, avoids less writing caused by target deduplication, and avoids false acknowledgement caused by transmission slice number change.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to model parameter transfer technology in distributed artificial intelligence computing, specifically to a mechanism that utilizes Mesh interconnect hardware to transfer generative AI model weights between multiple computing nodes and control the target weights to be ready. Background Technology

[0002] US Patent Application US20170337468A1 discloses multicast and store-and-transfer in neural network hardware acceleration, and US Patent US7882240B2 discloses the removal of slow multicast participants and the use of independent transmission. Both disclose the basis for multi-target distribution and slow receiver handling, but model weight transfer must also maintain consistency between undelivered targets, source versions, and computational readiness conditions.

[0003] When deploying a distributed model, the same weighted block may need to be sent to multiple targets. If a target does not receive credits for a long time, the traditional shared multicast cache will retain the load for it, which will also affect other targets that can receive credits. If only the receive count is used as a readiness condition, gaps in the target layout may be missed, or the calculation may be started in advance by mixing blocks from two model versions.

[0004] A hardware handling mechanism that combines slow target waiting, source data preservation, full coverage verification, and device visibility is needed, rather than treating "using DMA" or "transferring AI data" as the only technical improvement. Summary of the Invention

[0005] It reduces the obstruction of slow targets on shared load caching and other target transmissions, and makes model weight calculation ready while satisfying version consistency, complete inventory coverage and device visibility conditions.

[0006] This includes: expanding the immutable weight list into source and target interval mapping slices with slice numbers; obtaining coverage records of the bound model identity and version, layout generation, and target window generation; back-projecting the target gaps of each mapping slice to the source coordinates; dividing the source range according to the gap endpoints; registering a set of deliverables for each source segment determined by the target, mapping slice number, and address offset relationship; retaining different mapping slices for the same target separately; merging only the deliverable sets and adjacent source segments with the same correspondence; sharing a single source read for deliverables with credit and writing them to their respective target locations; retaining stable source references for other deliverables; and idempotently merging transport slices of different rounds according to the fixed coverage units and byte positions within the units of the target, outputting a calculation-visible confirmation after complete coverage and actual device synchronization.

[0007] The weight list establishes an immutable description of the chunks and target locations, and the source maintains the weight data unchanged throughout the list's lifecycle. The fan-out scheduling circuit selects active targets based on target reservation and credit. For targets that do not enter the active set, only a pending delivery reference is saved, and they are then read and retransmitted from the same source chunk.

[0008] The target end verifies the reception status based on the block identity and target interval in the list, distinguishing between data arrival confirmation and device visibility confirmation. The calculation activation circuit releases the corresponding ready event after the actual device synchronization is completed, based on the block set used by the model, the target group, and the preceding relationships.

[0009] Slow targets are not added to the active reference set of the current load until they acquire credits, so the shared load cache can be released after targets that have participated in fan-out finish, without having to retain the same load indefinitely for targets that have not yet been received. The trade-off is that the source weights must remain immutable, and serving slow targets later may require reading source blocks again.

[0010] Block identity, layout coverage, and device visibility are verified separately, ensuring that cases with the same byte count but incomplete ranges, mixed versions, and cases where only network reception is complete cannot generate valid computation-ready events. Models requiring full group synchronization still wait for the entire group, while independent target groups do not need to block each other. Attached Figure Description

[0011] Figure 1 This is a weight list and hardware fan-out structure diagram of the present invention.

[0012] Figure 2 This is a diagram showing the decoupling of slow target delivery references and load in this invention.

[0013] Figure 3 This is a diagram showing the coverage, visibility, and computational group activation relationships of the present invention.

[0014] Figure 4 This diagram illustrates the slow branch transition to source reference and late confirmation processing of the present invention.

[0015] Figure 5 This is a diagram showing the relationship between the mapping slice delivery item and the fixed byte coverage of the present invention.

[0016] Reference numerals: 1. Source weight window; 2. Inventory RAM; 3. Source DMA reader; 4. Fan-out scheduler; 5. Shared load buffer; 6. Pending delivery reference table; 7. Target receiver; 8. Overlay bitmap; 9. Visibility gate. Detailed Implementation

[0017] Figure 1The hardware shown includes a source weight window 1, a manifest RAM 2, a source DMA reader 3, a fan-out scheduler 4, a shared load buffer 5, a pending delivery reference table 6, a target receiver 7, an overlay bitmap 8, and a visibility gating 9. The source and target can be located on different compute nodes, and the mesh exchange path is used to convey weighted blocks of identity and related control messages.

[0018] In this context, generative AI scenarios refer to the transfer of read-only weight parameters when deploying or running generative models, without requiring the invention of a new neural network training algorithm. The computation graph or runtime must satisfy certain tensor, slice, and layer dependencies provided to the transfer hardware. The complete tensor layout and weight dimensions are specified by the loaded manifest and not inferred from the model name alone.

[0019] List M includes model, ver, tensor, shard, block, src, length, dst_layout, and necessary completeness information. model is the model identity, ver is the immutable version, tensor and shard represent tensors and parallel slices, and block is the unique block number within that version. src points to the registered window and offset at the source end, and dst_layout lists the interval, stride, or pre-expanded continuous segments for each target.

[0020] Before the manifest enters active state, the configuration circuitry checks that the source range is valid, the target range is not out of bounds, the block number is unique, the layout is representable, and verifies that all necessary ranges are covered by the expected block set. Undeclared overlaps are not allowed between different tensors within the same target region. Non-contiguous layouts can be expanded into a bounded fragment table at load time, with each fragment carrying a source offset, target offset, and length; the hardware executes according to the fragment table rather than guessing tensor dimensions.

[0021] Source weight window 1 remains immutable throughout the lifetime of the deliverable reference for the entire version. Source weights can reside in GPU exportable memory, host-locked memory, or other DMA-accessible regions, but must have stable registration and read permissions. If a model update requires modification of source weights, a new version and a separate source window must be allocated; they cannot be overwritten in place if there are still old versions awaiting delivery.

[0022] The target is first allocated an inactive weighted window by its driver or resource manager, returning RESERVE(target, window, wgen, range, credit). wgen is the target window generation, range is the allowed write range, and credit is the acceptable block or buffer limit. The source only adds the target to the schedulable set after receiving this reservation. Requests that expose the window address to an unauthorized context are not executed, and this is identified by the trusted control path.

[0023] Fan-out scheduler 4 uses block b as the scheduling object, let P_b be the set of targets that still need to receive this block, and let R_b be the set of targets that have completed legal window reservation and currently have credit. The current active set A_b = the intersection of P_b and R_b. A shared load active reference is established for A_b, and only pending delivery references are registered for P_b minus A_b; active references and pending delivery references use different counters to avoid mixing them and causing the load to be unrecoverable.

[0024] When A_b is not empty, DMA reader 3 reads the source block once, writes the payload to buffer 5, and the hardware multi-target replicator sends it to the targets in A_b respectively. Branches can share a single payload. Each branch has a target window generation, block identity, and independent completion status. If a branch that has been added to A_b experiences a short-term error, it can be selectively retransmitted while the data is still in the current buffer, without requiring the data to be reassembled by general software.

[0025] Once all active branches of A_b have received confirmation of the arrival of valid data or have been explicitly terminated, the active references to cache 5 can be zeroed out, allowing for its reclamation. Targets still in the pending delivery reference table 6 do not prevent the cache from being released because their records point to the immutable weights at the source end, rather than to the shared cache location that is about to be reclaimed. When this target subsequently acquires credits, it will reread the same source block or use a still valid on-chip copy, without reading the reused cache address.

[0026] like Figure 2 As shown, chunk 'b' needs to be sent to targets A, B, and C. A and C have a credit relationship, while B does not. The current active set is {A, C}, and load references are only stored for these two branches; B is stored in the pending delivery table as (M.ver, b, B, src). After A and C receive the load, the shared load can be released, and the next chunk can be sent to a qualified target. When B is ready later, it reads 'b' again based on the source reference. This scheduling reduces the time that slow targets hold the load cache, but it increases the possibility of reading the source chunk again, which is an explicit resource trade-off.

[0027] If all targets have no credits, the scheduler does not pre-read and fill the load cache, but only retains the metadata to be delivered. When the number of deliverables is large, external RAM and on-chip cache are used, paginated by model version and block window. When the table capacity reaches the limit, the expansion of the activity list is paused, and the undeliverable status of a target is not discarded. The metadata capacity and source window retention budget are set by the control register.

[0028] The target receiver 7 verifies the model, ver, tensor, shard, block, window, and wgen. It checks each block number against its predetermined length and target position, writing only valid blocks into the reserved range. If verification fails, the receive bit is not set; if duplicate blocks have the same identity, the existing state is maintained; if duplicates have different content, the version is isolated, and later arriving data cannot overwrite verified weights.

[0029] The overlay bitmap 8 is built according to the necessary block set of the manifest, not based on the number of randomly arriving blocks. If a target layout expects blocks 0, 1, 2, and 3, receiving four data entries of 0, 1, 1, and 3 does not constitute a complete overlay. When a block spans multiple target segments, a sub-segment bitmap is saved for it; the receive bit for that block is only set when all segments are correctly completed. The total number of bytes can be used as an auxiliary consistency check, but it cannot replace identity overlay.

[0030] Integrity checks can employ protocol CRC and content identifiers in the manifest. The manifest and source content are bound by a trusted publisher; when tamper protection is required, an implemented authentication mechanism is used. Different version weights should not be reused simply because two ordinary short hashes are identical. The basic implementation does not reuse target blocks across versions, thus avoiding treating assumptions of content similarity between versions as a premise of correctness.

[0031] The "ARRIVED" acknowledgment indicates that the target interface has completed writing to this block according to its contract, and is used by the source to release the reference to the currently active payload. The "VISIBLE" acknowledgment is a stronger condition; it requires the actual GPU interface or device driver to perform a specified synchronization operation after all required blocks have arrived, confirming that subsequent computations can read this data according to the platform contract. The two types of acknowledgments are stored separately and do not share a single, ambiguous "done" bit.

[0032] The target GPU lacks the capability to use a separate window, not yet assigned to computation, during the receive phase while running a kernel-safe concurrency external write mechanism. This window is kept from simultaneous access by local workloads. After reception, the driver performs correct device synchronization and commits subsequent computations. The hardware only generates a VISIBLE upon receiving a trusted synchronization interface; the network adapter's write flag to ordinary video memory cannot be treated as an external semaphore supported by any GPU.

[0033] Figure 3 Provide the readiness relationships. Each computation activation group G is configured with the required block set B_G, the target set T_G, and the precursor group set Pred_G. Ready_G is only true if all required blocks for each target within the group are VISIBLE and all precursor groups have completed their allowed phases. Hardware implementation can be achieved using dependency counters and a readiness bitmap. The pre-defined dependency graph checks for acyclicity or provides explicit cyclic iteration flags during load, preventing circular dependencies from waiting indefinitely while reporting readiness.

[0034] When a parallel computation group of the same quantity truly needs data for target B, even if A and C receive it earlier, the entire group should not be started prematurely in pursuit of low latency; independent replicas or dependency-free layer groups can enter Ready state separately. Fan-out layer buffer decoupling and computational semantic group synchronization are two different levels; the former does not eliminate the necessary waiting for the latter.

[0035] The new version weights are written to the target standby window. The controller waits for the VISIBLE of the group required by the new version, and the runtime switches the weight pointer or computation queue configuration at a valid boundary where the old version's work has ended. The old version window is released after all usage references have finished, and the hardware is not allowed to directly interpret "new version complete" as "can overwrite the old version that is still running".

[0036] When a target is canceled or a source node fails, the deliverables table retains a clear FAILED or CANCELED result, and the corresponding target cannot generate VISIBLE. Whether target writes that have already caused side effects can be cleared is handled by the target window lifecycle; other targets without dependencies can still be completed according to their respective group conditions. The source window is not released until all deliverable references, active reads, and recovery obligations are completed; a current shared cache reference of zero is insufficient to release the source window.

[0037] A concrete layout example involves a 1 MiB tensor divided into 16 blocks of 64 KiB each, copied to three destinations. Each destination's overlay bitmap has 16 block locations. If destination B is late in receiving credits, only 16 source blocks are retained for delivery. A and C can receive blocks consecutively and release intermediate loads. The block length and in-transit window size can be configured according to the receive buffer capacity.

[0038] Hardware verification should check that: any incomplete target has a stable source reference; its active reference is zero when the load cache is released; VISIBLE implies manifest identity matching, complete coverage, and actual synchronization completion; Ready_G has no missing necessary targets; and data with mismatched window generations will not be written to a new window. These constraints ensure that transport optimizations do not come at the expense of mixed weights or premature computation.

[0039] Each item in the shared load cache stores the model version, block number, scheduling generation, initial activity mask, branch end mask, and source reference. The initial activity mask is fixed during the current round of commitment, and targets that later acquire credit proceed to the next round. The branch end mask is only set upon a valid arrival confirmation, or when the pending delivery obligation has been transferred and local read and send references have exited; the cache is only reclaimed after the end mask overwrites the initial activity mask and all local references have exited. The pending delivery table continues to store undelivered targets.

[0040] The target ready register can be represented by the RECEIVING, ARRIVED_ALL, SYNC_PENDING, VISIBLE, and FAILED states. Receiving the last necessary block only transitions from RECEIVING to ARRIVED_ALL, followed by sending a synchronization request and entering SYNC_PENDING; synchronization of the matching window generation is required before entering VISIBLE. Synchronization callbacks from the old window or old version cannot make the current version ready.

[0041] When a reference to be delivered is served in a windowed manner, the scheduler retains the earliest incomplete block index and a sparse missing block bitmap for each target. If all other blocks are completed but one block has been indefinitely incomplete, the index cannot skip that block and declare the entire tensor finished. Compression of metadata records only changes the storage format; it does not alter the one-to-one correspondence between the necessary block set of the manifest and the deliverable status.

[0042] Cancellation operations and activity scheduling also need to be serialized: if a target cancellation is committed first, a new active bit will not be created for it; if an activity send is committed first, cancellation must wait for or explicitly abort the branch and reclaim the sendable data reference. Window is only reused after the target window is closed and confirmed and the in-transit block exits, to avoid late weights being written to the new model allocation after cancellation.

[0043] Initially, targets without credit do not occupy the current load, but this still cannot resolve targets that have entered the activity set and then stalled. For example... Figure 4 As shown, the scheduler saves the scheduling generation and delivery status for each active branch, and enters DETACH_PENDING when the branch reaches the configured no-progress threshold. This threshold is only used to adjust the cache holding method and is not interpreted as the target being received or the operation failing.

[0044] Branch migration consists of three actions: stopping data retrieval, committing pending deliverables, and removing active references. First, the branch stops initiating new reads from the shared cache, waiting for existing local reads, serialization transmissions, and retransmissions to end their references to the cache; data already in transit on the network no longer references the local cache. Then, the model version, block number, target window generation, and stable source reference are written to the pending deliverables table. The original active reference is removed only after the pending deliverables are valid. The original source reference is retained throughout the migration.

[0045] The hardware delivery status arbitrator serially processes branch transitions and ARRIVED confirmations. If confirmation arrives first, the branch ends, and no more deliverables are created; if a deliverable is committed first, a late confirmation will mark it as delivered, but reused shared cache references must not be modified. Each load slot is matched with its slot number and scheduling generation, and each logical delivery obligation is matched with its model version, block number, target, and window generation. These two sets of identities have distinct purposes; arbitrary load slots cannot be decremented solely by their block number.

[0046] Subsequent rereads may arrive simultaneously with the original in-transit chunks, therefore the target is registered for idempotent overwrite using the same delivery logic. Two identical copies only form one overwrite; inconsistent copies are isolated. If rescheduling has begun and the old confirmation arrives, the new branch first stops adding reads and waits for local references to end before reclaiming them, without directly releasing cached data still being read. The target window is always retained until delivery or cancellation is complete; transferring local load references does not unregister the window.

[0047] For example, if A and B simultaneously receive credits and enter round 6, A has already received the credits, and B stops receiving after the first segment. After B's branch stops fetching data locally and creates a pending delivery item, the round 6 cache can serve other blocks. Round 7 rereads the block from the immutable source. When B subsequently receives the late data from round 6 and confirms it, the confirmation clears the logical delivery obligation. Round 7 terminates based on local references, without repeatedly adding target overwrites, and without releasing another block that is already occupying the same slot due to a late confirmation error.

[0048] Figure 5 The illustrated implementation allows delivery of the same source weighted block to targets with different fragment layouts. The manifest expands the layout into a mapped fragment (s, d, n, t), representing the source offset s, target offset d, byte length n, and target t, respectively, with intra-fragment position s+i mapped to d+i. Stride or transposed layouts can be expanded along consecutive rows, with an upper limit on the number of expanded items; this direct transfer does not implicitly involve quantization, compression / decoding, or numerical operations, and the content to be converted is first formed into an independent, immutable source version.

[0049] Target coverage is recorded at the granularity of the delivery units in the manifest, and is only set after all bytes of the unit have arrived and the content identity verification has passed. Coverage confirmation binds to the model version, layout generation, and window generation; after intersecting a target gap with its mapped target range, it is back-projected to the source coordinates by s + (target position - d). If a confirmation is lost, it is treated as still missing, and may be resent but will not be incorrectly omitted; unconfirmed units are not considered complete coverage.

[0050] The hardware endpoint merger reads the start and end points of each source gap and scans them in order of source coordinates. Endpoints crossing the start point are added to the target mapping slice, while those crossing the end point are removed. Adjacent endpoints form a set of source segments and deliverables, with members including the target and mapping slice numbers. Identical deliverables are not sufficient for merging; address offsets d-s must be compared item by item to ensure the same continuous write relationship remains after crossing slice boundaries. The hardware can sort a fixed number of endpoints in batches, retaining the scan state across batches. If capacity is insufficient, it stops accepting new tasks without discarding boundaries.

[0051] Each source segment has a fixed set of activities based on the credit and window capacity of each delivery item. The DMA reads the segment once and establishes a shared load reference for these activity branches. Targets without credits store the source segment, corresponding target offset, and manifest identity in the delivery list, but do not hold the load for this round. After subsequent coverage record updates, backprojection and endpoint merging are performed on the delivery gaps to avoid repeatedly rereading the entire source block when only a small unit is not received. Immutable sources are retained until their delivery obligations are completed.

[0052] For example, given a source range [0, 1024), target A has a mapping offset of 1000 and has received the first 512 bytes, while target B has a mapping offset of 2000 and has received the last 512 bytes. The gap backprojection of A is [512, 1024), and the gap of B is [0, 512). The two segments are sent only to A and B respectively. If both targets lack [256, 512), the source segment is read once and written to their respective offset positions. Even if the target set is the same, the offsets cannot be merged across the boundary when the boundary changes.

[0053] Branches that have already been active but have stalled will still be processed according to... Figure 4 The reference transfer order is processed, and deliverables are refined to source segments and target mapping slices. Original branches delayed after a snapshot are only fulfilled earlier for the same delivery obligation; the new round of shared cache is managed by the scheduling generation, and old acknowledgments cannot reduce references to reused slots. Changes to the target window or layout generation invalidate old overwrite records, requiring a new valid list and reservations; old versions of received slots cannot be used to skip new weights.

[0054] In source segment scheduling, logical delivery identity further includes the manifest mapping segment number and coverage unit number; a source segment can contain several complete coverage units, or it can be split into multiple transport segments of the same unit according to the interface payload. The unit completion bit is only set after all necessary bytes in a fixed unit have been actually written and passed verification. Re-dividing transport segments does not change the unit identity. Delivery items that were originally registered by block are now refined into these unit items. Unit confirmation only eliminates its own obligations, and block completion is only formed after all necessary units are completed.

[0055] Active members in endpoint scanning use delivery item keys (target, piece, delta), where piece is a fixed mapped piece number in the list, and delta is the difference between the target address and the source address of that piece. Target alone cannot be used as the member key. For example, if source [0,8) needs to write to [100,108) and [200,208) of the same target T, the list registers two mapped pieces; the two deliverables share one source read, but each occupies target write resources and maintains a completion status. Deduplication by target identifier will miss the second write position. Credit reservations for multiple deliverables to the same target are serially deducted from the same target resource counter. Deliverables with insufficient credit remain in the pending delivery table and do not reuse the same receive credit due to shared source reads.

[0056] When scanning the same source coordinates, all end and start events for that coordinate are processed first, and then the source segments from that coordinate to the next different coordinate are output; zero-length segments are not output. Delivery set comparisons are performed by full key, and cannot be based solely on member count, target bitmap, or short digest comparisons. Adjacent source segments are only merged if they are completely identical item-by-item; adjacent segments across mapping chip numbers can be conservatively sent separately even if the target addresses are consecutive, in order to preserve the delivery identity in the manifest.

[0057] Overlay units are fixed in the target order for each map slice when the manifest is published, with a maximum length of, for example, 256 bytes. The tail unit uses the actual effective length. The target sets a byte overlay bitmap and an in-transit write bitmap for incomplete units. The transport slice first completes integrity checks in a temporary buffer, then requests bytes that are not yet covered and not occupied by in-transit writes, based on the offset within the fixed unit. Only after the target writes successfully is the in-transit bit cleared and the complete overlay bit set. Overlapping bytes that are already occupied wait for the original write to finish or the copy to be discarded before retrying at the gap, preventing two write-back paths from concurrently writing the same byte.

[0058] Different boundaries can be used for each round of network transmission segments, but the coverage position is independent of the scheduling round. For example, if an eight-byte unit receives the old round [0,5) first, and then receives the new round [3,8) subsequently, the target only adds coverage to positions 5, 6, and 7, and all eight bits are eventually complete; if only [0,3) and [4,8) are received, even if both network messages have ended, position 3 is still not covered, and the unit completion is not returned. Data that fails to be checked is not included in the byte coverage; when the actual target write result is unknown, the occupied and isolated state is retained, and completion is not set according to the receive timeout.

[0059] Completed units can be compressed into a single completion bit. The byte bitmap of incomplete units is allocated according to the bounded receive window; new units are stopped being received when capacity is insufficient. Unit confirmation simultaneously binds the model version, layout generation, mapped slice number, unit number, and target window generation, without carrying the number of temporary network slices that will be renumbered in the new round as the completion criterion. Chunk completion is obtained from the completion of all its fixed units; device visibility still needs to be performed. Figure 3 The synchronization path. When the target interface cannot safely perform the required partial write, the complete unit is first merged using an independent unit buffer and a receive bitmap, and then the target write is sent; the receive bitmap does not replace the write completion bitmap, and the unit completion still waits for the actual target write to finish.

[0060] In addition to maintaining the validity of the registration, stable source references must also prevent the current transfer from rewriting the source bytes. Before the manifest takes effect, the trusted window manager normalizes the source range and all write targets to the actual backup identity and offset, checking for overlaps one by one. If two window identifiers are different but point to the same physical backup, they are still treated as overlapping. If a trusted alias relationship cannot be obtained, the immutable source condition is not declared.

[0061] For example, if source backup bytes [0,8) are written to the same backup [4,12), and another delivery reads [4,8) later, the latter may have read content that has been overwritten by the previous target. To maintain byte consistency between retry rounds, the hardware copies the referenced source range to a separate snapshot before any target is written, waits for the copy and necessary synchronization to complete, and then rebinds the entire source reference of the current list to that snapshot before fan-out begins. Snapshots must still not overlap with any targets using aliases; if the snapshot capacity is insufficient, it is rejected before side effects occur, and snapshots are not replaced by an uncertain read / write order.

[0062] The storage limit for the overlay bitmap is checked upon manifest acceptance, based on the size of the mapped slice. Excessively large slices can be pre-divided into bounded slices with independent slice numbers, with each slice then having a fixed overlay unit; the slice number or overlay unit meaning cannot be changed during a manifest retry. Releasing a source snapshot is conditional upon the completion of all deliverable obligations or confirmed cancellation; load slot reclamation does not remove source snapshot references for undelivered items.

Claims

1. A method for high-speed hardware transport of cross-node model weight parameters in generative AI scenarios using a mesh architecture, characterized in that... include: The immutable weight list is expanded into source and target interval mapping slices with slice numbers; the binding model identity and version, layout generation, and target window generation coverage records are obtained, and the target gaps of each mapping slice are back-projected to the source coordinates; the source range is divided according to the gap endpoints, and a set of deliverables determined by the target, mapping slice number, and address offset relationship is registered for each source segment, and different mapping slices of the same target are retained separately; only the deliverable sets and adjacent source segments with the same correspondence are merged, and deliverables with credit share a single source read and are written to their respective target locations, while other deliverables retain stable source references; the target merges transport slices of different rounds according to the fixed coverage units and byte positions within the units, and outputs the calculation visible confirmation after the coverage is complete and the actual device synchronization is completed.

2. The method according to claim 1, characterized in that, Each mapping slice stores the source start point, target start point, equal length, and target identity. The necessary write ranges for the same target do not overlap and are completely covered. The same source range is allowed to correspond to multiple different target ranges for the same target, and each range retains a different mapping slice number. It is required that the on-chip layout for numerical conversion or non-byte transformation is not directly moved.

3. The method according to claim 1, characterized in that, The target interval reserves the return target window identifier, window generation, and acceptable range. The fan-out data carries the identifier and generation at the same time. Blocks with reused windows or mismatched generations are rejected.

4. The method according to claim 1, characterized in that, The overlay unit is fixed when the manifest is effective and does not span the mapping slice. The transport slice carries the mapping slice number, overlay unit number, offset within the unit, and valid byte range. After the target is actually written, the corresponding byte overlay bit is set. For duplicate or overlapping transport slices, only the previously uncovered bits are added. The unit is confirmed to be complete only after all necessary bytes are overlaid and the verification is passed.

5. The method according to claim 1, characterized in that, Each round of load references is bound to the scheduling generation; when the active branch is stagnant, new data retrieval stops, and the existing local read and send references are waited for to exit. The remaining deliverables and stable source references are submitted to the pending deliverables table before the load references are released; late acknowledgments eliminate obligations according to logical deliverables and do not decrement the new generation references of reused load slots.

6. The method according to claim 1, characterized in that, Endpoint scanning maintains an activity set with map slices as members. All start and end events of the same source coordinates are merged before generating subsequent source segments. Each delivery item of a source read reserves a target range and a receiving quota. Two different map slices of the same target do not share a completion bit because the target identifier is the same.

7. The method according to claim 1, characterized in that, The visibility gating circuit separates the DMA data arrival confirmation from the visibility confirmation of the GPU or other target devices. The data is only made visible after the actual synchronization operation provided by the device driver or device interface has been completed. The ordinary network completion flag does not replace the synchronization operation.

8. The method according to claim 1, characterized in that, The activation conditions for computation also include the pre-readiness relationships of the configured model layers or tasks; it requires the target group to wait for all necessary confirmations within the group, and independent target groups to make their own judgments, without propagating the incomplete state of slow targets to target groups with no dependencies.

9. The method according to claim 1, characterized in that, Verify that the write target does not overlap with the source range still referenced by the stable source based on the actual backup identity. If there is overlap, establish an independent immutable source snapshot and rebind the source reference before writing the target. If it cannot be established, reject the transfer. The write interval of the new model version is separated from the old version that is still being used for computation. The computation reference is switched only after the new version is visible and the old version's usage boundary ends.

10. A hardware device for transferring model weights, characterized in that, The device includes a source weight window interface, a manifest RAM, a DMA reader, a multi-target fanout, a delivery reference RAM, a target overlay bitmap memory, and a device synchronization interface, all of which are connected and configured to perform the method of any one of claims 1 to 9.

Citation Information

Patent Citations

  • Multicast network and memory transfer optimizations for neural network hardware acceleration

    US20170337468A1

  • Disconnecting selected participant in multicast session

    US7882240B2