]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
gguf-py : bump sentencepiece version (#19319)
authorAlex Trotta <redacted>
Fri, 6 Feb 2026 20:05:19 +0000 (15:05 -0500)
committerGitHub <redacted>
Fri, 6 Feb 2026 20:05:19 +0000 (21:05 +0100)
* gguf-py: Bump sentencepiece version

There's a new version that's been out for a while that addresses the issues mentioned in https://github.com/ggml-org/llama.cpp/pull/14200. There's a long chain of reasons I would like this change, but the short version is that it allows people who use both `sentencepiece` and `gguf` to take advantage of these fixes. On conda-forge, currently, it locks the version (since there is no notion of optional dependencies).

Regardless, I don't think this should be too controversial.

* review feedback

gguf-py/pyproject.toml
pyproject.toml
requirements/requirements-convert_legacy_llama.txt

index f6c4cd14e74fb6bcf1122a406da13a0f613b5f4f..48693ae3e3a7fd39f2b228925ad468c3d143a39b 100644 (file)
@@ -23,7 +23,7 @@ numpy = ">=1.17"
 tqdm = ">=4.27"
 pyyaml = ">=5.1"
 requests = ">=2.25"
-sentencepiece = { version = ">=0.1.98,<=0.2.0", optional = true }
+sentencepiece = { version = ">=0.1.98,<0.3.0", optional = true }
 PySide6 = { version = "^6.9", python = ">=3.9,<3.14", optional = true }
 
 [tool.poetry.dev-dependencies]
index 3d71b055a8dbf5605a314206115c35b7647022b7..422f53c7c721dad633cd250b7c3e572fcca0401a 100644 (file)
@@ -17,7 +17,7 @@ classifiers = [
 [tool.poetry.dependencies]
 python = ">=3.9"
 numpy = "^1.25.0"
-sentencepiece = ">=0.1.98,<=0.2.0"
+sentencepiece = ">=0.1.98,<0.3.0"
 transformers = ">=4.35.2,<5.0.0"
 protobuf = ">=4.21.0,<5.0.0"
 gguf = { path = "./gguf-py" }
index dbab3b9508f5aeb97c1bac964334bee5a8f920ae..4898bf7ee29dd3fab087f04d85762201455dbdc4 100644 (file)
@@ -1,5 +1,5 @@
 numpy~=1.26.4
-sentencepiece~=0.2.0
+sentencepiece>=0.1.98,<0.3.0
 
 transformers>=4.57.1,<5.0.0