Skip to content

Build quantize binary in setup.py #7

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Build quantize binary in setup.py #7

wants to merge 1 commit into from

Conversation

tiran
Copy link
Collaborator

@tiran tiran commented Feb 27, 2025

Last year in March I created and set up instructlab-quantize in a hurry. I wanted to move the pre-built binary from the instructlab project to a separate project. To simplify the build I just stored pre-built binaries in the new project, too. Even the sdist of this project contains binaries instead of sources. I just noticed the problem when I saw an unusual glibc version requirement in our downstream builds.

This PR addresses the problem and updates quantize binary to latest llama.cpp release. Now the sdist contains the sources, builds the binary from sources, and creates platform-specific py3-none wheels.

  • remove pre-built binaries from git
  • create a proper sdist with sources
  • add setup.py to compile quantize binary for current platform
  • update to latest release of llama.cpp

- remove pre-built binaries from git
- create a proper sdist with sources
- add `setup.py` to compile `quantize` binary for current platform
- update to latest release of `llama.cpp`

Signed-off-by: Christian Heimes <[email protected]>
@tiran tiran marked this pull request as ready for review February 27, 2025 13:54
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.

1 participant