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

Already on GitHub? Sign in to your account

[sharktank] Depend on sentencepiece #687

Closed
wants to merge 1 commit into from

Conversation

marbre
Copy link
Collaborator

@marbre marbre commented Dec 12, 2024

While gguf's pyproject.toml lists sentencepiece as a dependency (https://github.com/ggerganov/llama.cpp/blob/a07c32ea54850c989f0ef6989da5b955b77b7172/pyproject.toml#L20), the package does not get pulled in when installing gguf via uv pip or pip. However, without the package the sanity test python -c "from sharktank import ops; print('Sanity check passed')", documented in https://github.com/nod-ai/shark-ai/blob/main/docs/nightly_releases.md#quickstart---sharktank, fails.

While `gguf`'s `pyproject.toml` lists `sentencepiece` as a dependency
(https://github.com/ggerganov/llama.cpp/blob/a07c32ea54850c989f0ef6989da5b955b77b7172/pyproject.toml#L20),
the package does not get pulled in when installing gguf via `uv pip` or
`pip`. However, without the package the sanity test `python -c "from
sharktank import ops; print('Sanity check passed')"`, documented in
https://github.com/nod-ai/shark-ai/blob/main/docs/nightly_releases.md#quickstart---sharktank
fails.
@marbre marbre requested a review from ScottTodd December 12, 2024 16:31
Comment on lines 7 to +8
# Needed for newer gguf versions (TODO: remove when gguf package includes this)
# sentencepiece>=0.1.98,<=0.2.0
sentencepiece>=0.1.98,<=0.2.0
Copy link
Member

Choose a reason for hiding this comment

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

See also #676 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

See response #676 (comment). v0.11.0 released an hour ago, which has sentecepiece included as a dep

Copy link
Contributor

Choose a reason for hiding this comment

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

Upgrading gguf to 0.11.0 and removing sentencepiece dep in #676

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, I saw the tag for 0.11.0 but there was no whl on PyPI and the project.toml looked identical. Thanks for updating!

@ScottTodd ScottTodd requested a review from stbaione December 12, 2024 17:11
@marbre marbre closed this Dec 13, 2024
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.

3 participants