Skip to content

Conversation

mishig25
Copy link
Collaborator

@mishig25 mishig25 commented Sep 22, 2025

Problem: buildGgufHeader #1759 was failing with RangeError: Offset is outside the bounds of the DataView when using streaming blobs (WebBlob/XetBlob) because it tried to slice them without awaiting the data.
Solution: Added await originalTensorInfoBlob.arrayBuffer() to properly fetch tensor info data from streaming blobs before combining with new header.

Why needed: This enables efficient GGUF metadata editing with SplicedBlob and streaming downloads, avoiding the need to download entire large files upfront. Critical for the optimized commit workflow in hub package.

@mishig25 mishig25 marked this pull request as ready for review September 22, 2025 12:51
@mishig25 mishig25 requested a review from coyotte508 September 22, 2025 12:51
Copy link
Member

@coyotte508 coyotte508 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@mishig25 mishig25 merged commit 7fb484b into main Sep 22, 2025
5 of 6 checks passed
@mishig25 mishig25 deleted the gguf_header_builder_streaming_blob branch September 22, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants