Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse tensor infos + E2E test #2

Merged
merged 4 commits into from Mar 9, 2024
Merged

Conversation

julien-c
Copy link
Contributor

@julien-c julien-c commented Mar 8, 2024

馃憢

(also related but implemented a tiny bit differently: huggingface/huggingface.js#540)

const buf = await (
await fetch(URL_LLAMA, {
headers: {
Range: 'bytes=0-999999',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

loading the first 1MB

Copy link
Contributor

@platypii platypii left a comment

Choose a reason for hiding this comment

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

Really nice PR! Thanks for contributing back, and especially thanks for bringing my test coverage up from 81% to 95%! 馃殌

I tested locally and things look good, except the API change to return an object with { metadata, tensorInfos } would have broken my demo so I added a commit to fix that.

Since the API changed, but it is in pre-1.0, I will publish a new minor revision shortly. Thanks @julien-c !

@platypii platypii merged commit 730c588 into hyparam:master Mar 9, 2024
3 checks passed
@julien-c julien-c deleted the tensor-infos branch March 9, 2024 09:56
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.

None yet

2 participants