Skip to content

webui : use fflate for more deterministic gzip compress #13525

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 14, 2025

Conversation

ngxson
Copy link
Collaborator

@ngxson ngxson commented May 14, 2025

The build sometimes produce nondeterministic result on older nodejs version, or on windows. The main reason is because the built-in zlib version of node is not always the same.

This PR replaces node:zlib with fflate for gzip compression. It is a pure JS implementation, not relying on zlib, so the build is now deterministic.

@ngxson ngxson marked this pull request as draft May 14, 2025 07:27
@ngxson ngxson changed the title webui : use pako for more deterministic gzip compress webui : use fflate for more deterministic gzip compress May 14, 2025
@ngxson ngxson marked this pull request as ready for review May 14, 2025 07:40
@ngxson
Copy link
Collaborator Author

ngxson commented May 14, 2025

It should be ok now, I switched from pako to fflate

@ngxson ngxson merged commit bb1681f into ggml-org:master May 14, 2025
6 checks passed
Silver267 pushed a commit to Silver267/llama.cpp that referenced this pull request May 14, 2025
* webui : use pako for more deterministic gzip compress

* simpler code

* use fflate instead of pako
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants