Skip to content

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