In this article
Keep upload-part boundaries and application byte offsets as separate metadata, both bound to the same immutable object version.
Upload segmentation can cut through model structure
A model loader requests one S3 part and assumes it contains a complete tensor shard. The upload client chose part sizes for transport, not according to the model’s semantic boundaries. A returned part can begin or end inside application data unless the publisher deliberately aligned those structures.
The GetObject reference defines partNumber as retrieval of the specified object part, effectively a ranged request. It does not define a model-format index or promise alignment with a tensor, archive member or checkpoint component.
Recover the actual byte relationship
The multipart overview explains that completion concatenates parts in ascending part-number order. The object is a byte sequence assembled from that publication, while the application format supplies its own offsets and lengths.
Preserve both maps if part-based retrieval is intended. The upload map describes transport segmentation; the application manifest describes semantic objects. Derive any relationship explicitly and validate it against the published object instead of treating a similarly numbered shard and part as the same thing.
Choose part retrieval or byte ranges deliberately
A byte Range request selects an explicit interval, whereas partNumber selects the stored upload boundary. The correct choice depends on the publisher’s contract and the loader’s required bytes. Do not calculate a range from a presumed fixed part size unless that size and the final-part behavior are recorded.
Check returned status, length and range-related metadata before passing bytes to the parser. Successful retrieval can still be the wrong region for the application. Keep validation failures distinct from transport errors so a loader does not retry a semantic mismatch indefinitely.
Pin the object version
Bind the application offset map and upload-part map to the same object version or equivalent immutable identity. A later overwrite can retain the key while changing part boundaries, compression layout or tensor offsets. Cached boundary metadata must not silently apply to the replacement.
The API’s parts-count response is conditional on the request and upload form. Missing metadata should be treated according to the documented case, not converted into a universal assertion that the object has one application shard.
Acceptance for a partial model loader
Use a known fixture with application records deliberately crossing an upload boundary. Verify that the loader assembles the requested semantic range correctly and rejects incomplete records. Also test a fixture whose boundaries are intentionally aligned, demonstrating that the optimization depends on a publication contract.
Multipart publication supplies the completion boundary. Version identity explains how the byte map remains tied to the intended contents rather than a mutable key.
Keep the format contract authoritative
Part-based retrieval can be useful when upload segmentation was designed for it, but transport parts are not a substitute for a model index. Compression can add another mapping between stored and decoded offsets. Acceptance should name the required bytes, their immutable source and parser validation, avoiding a claim that an S3 part number intrinsically identifies an independently usable tensor shard.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.