feat: migrate to PEP 621 and add uv support (#21907)
* feat: migrate to PEP 621 and add uv support * fix: remove upper bound on protobuf * remove poetry.lock and uv.lock * fix/add torch dependency version and markers * fix dev-dependency deprecation warning * gguf-py : update python version requirement to 3.10 --------- Co-authored-by: David Huggins-Daines <dhd@dhd.ecolingui.ca> Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a736e6c0ac
commit
750141969c
@@ -105,6 +105,8 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
*/poetry.lock
|
*/poetry.lock
|
||||||
poetry.toml
|
poetry.toml
|
||||||
|
poetry.lock
|
||||||
|
uv.lock
|
||||||
|
|
||||||
# Nix
|
# Nix
|
||||||
|
|
||||||
|
|||||||
+30
-29
@@ -1,44 +1,45 @@
|
|||||||
[tool.poetry]
|
[project]
|
||||||
name = "gguf"
|
name = "gguf"
|
||||||
version = "0.18.0"
|
|
||||||
description = "Read and write ML models in GGUF for GGML"
|
description = "Read and write ML models in GGUF for GGML"
|
||||||
authors = ["GGML <ggml@ggml.ai>"]
|
|
||||||
packages = [
|
|
||||||
{include = "gguf"},
|
|
||||||
{include = "gguf/py.typed"},
|
|
||||||
]
|
|
||||||
readme = "README.md"
|
|
||||||
homepage = "https://ggml.ai"
|
|
||||||
repository = "https://github.com/ggml-org/llama.cpp"
|
|
||||||
keywords = ["ggml", "gguf", "llama.cpp"]
|
keywords = ["ggml", "gguf", "llama.cpp"]
|
||||||
|
version = "0.18.0"
|
||||||
|
dynamic = ["classifiers"]
|
||||||
|
readme = "README.md"
|
||||||
|
authors = [{name = "GGML", email = "ggml@ggml.ai"}]
|
||||||
|
requires-python = '>=3.10'
|
||||||
|
dependencies = ['numpy (>=1.17)', 'tqdm (>=4.27)', 'pyyaml (>=5.1)', 'requests (>=2.25)']
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[project.urls]
|
||||||
python = ">=3.8"
|
homepage = "https://ggml.ai"
|
||||||
numpy = ">=1.17"
|
repository = "https://github.com/ggml-org/llama.cpp"
|
||||||
tqdm = ">=4.27"
|
|
||||||
pyyaml = ">=5.1"
|
|
||||||
requests = ">=2.25"
|
|
||||||
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]
|
[project.scripts]
|
||||||
pytest = "^5.2"
|
|
||||||
|
|
||||||
[tool.poetry.extras]
|
|
||||||
gui = ["PySide6"]
|
|
||||||
|
|
||||||
[build-system]
|
|
||||||
requires = ["poetry-core>=1.0.0"]
|
|
||||||
build-backend = "poetry.core.masonry.api"
|
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
|
||||||
gguf-convert-endian = "gguf.scripts.gguf_convert_endian:main"
|
gguf-convert-endian = "gguf.scripts.gguf_convert_endian:main"
|
||||||
gguf-dump = "gguf.scripts.gguf_dump:main"
|
gguf-dump = "gguf.scripts.gguf_dump:main"
|
||||||
gguf-set-metadata = "gguf.scripts.gguf_set_metadata:main"
|
gguf-set-metadata = "gguf.scripts.gguf_set_metadata:main"
|
||||||
gguf-new-metadata = "gguf.scripts.gguf_new_metadata:main"
|
gguf-new-metadata = "gguf.scripts.gguf_new_metadata:main"
|
||||||
gguf-editor-gui = "gguf.scripts.gguf_editor_gui:main"
|
gguf-editor-gui = "gguf.scripts.gguf_editor_gui:main"
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
gui = ['PySide6 (>=6.9,<7.0) ; python_version >= "3.9" and python_version < "3.14"']
|
||||||
|
|
||||||
|
[tool.poetry]
|
||||||
|
packages = [
|
||||||
|
{include = "gguf"},
|
||||||
|
{include = "gguf/py.typed"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.poetry.dependencies]
|
||||||
|
python = ">=3.10"
|
||||||
|
|
||||||
|
[tool.poetry.dev-dependencies]
|
||||||
|
pytest = "^5.2"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["poetry-core>=1.0.0"]
|
||||||
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|||||||
Generated
-1197
File diff suppressed because it is too large
Load Diff
+41
-22
@@ -1,32 +1,49 @@
|
|||||||
[tool.poetry]
|
[project]
|
||||||
name = "llama-cpp-scripts"
|
name = "llama-cpp-scripts"
|
||||||
version = "0.0.0"
|
|
||||||
description = "Scripts that ship with llama.cpp"
|
description = "Scripts that ship with llama.cpp"
|
||||||
authors = ["GGML <ggml@ggml.ai>"]
|
|
||||||
readme = "README.md"
|
|
||||||
homepage = "https://ggml.ai"
|
|
||||||
repository = "https://github.com/ggml-org/llama.cpp"
|
|
||||||
keywords = ["ggml", "gguf", "llama.cpp"]
|
keywords = ["ggml", "gguf", "llama.cpp"]
|
||||||
packages = [{ include = "*.py", from = "." }]
|
version = "0.0.0"
|
||||||
|
dynamic = ["classifiers"]
|
||||||
|
readme = "README.md"
|
||||||
|
authors = [{name = "GGML", email = "ggml@ggml.ai"}]
|
||||||
|
requires-python = '>=3.10'
|
||||||
|
dependencies = [
|
||||||
|
'numpy (>=1.25.0,<2.0.0)',
|
||||||
|
'sentencepiece (>=0.1.98,<0.3.0)',
|
||||||
|
'transformers (==5.5.1)',
|
||||||
|
'protobuf (>=4.21.0)',
|
||||||
|
'torch (>=2.2.0,<3.0.0)',
|
||||||
|
'gguf @ ./gguf-py',
|
||||||
|
]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
homepage = "https://ggml.ai"
|
||||||
|
repository = "https://github.com/ggml-org/llama.cpp"
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
llama-convert-hf-to-gguf = "convert_hf_to_gguf:main"
|
||||||
|
llama-convert-lora-to-gguf = "convert_lora_to_gguf:main"
|
||||||
|
llama-convert-llama-ggml-to-gguf = "convert_llama_ggml_to_gguf:main"
|
||||||
|
llama-ggml-vk-generate-shaders = "ggml_vk_generate_shaders:main"
|
||||||
|
|
||||||
|
[tool.poetry]
|
||||||
|
packages = [{ include = "*.py", from = "." }]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.9"
|
torch = [
|
||||||
numpy = "^1.25.0"
|
{ version = "~=2.6.0", source = "pypi", markers = "sys_platform == 'darwin'" },
|
||||||
sentencepiece = ">=0.1.98,<0.3.0"
|
{ version = "~=2.6.0+cpu", source = "pytorch", markers = "sys_platform == 'linux'" },
|
||||||
transformers = "==5.5.1"
|
{ version = "~=2.6.0", source = "pypi", markers = "sys_platform == 'win32'" }
|
||||||
protobuf = ">=4.21.0,<5.0.0"
|
]
|
||||||
gguf = { path = "./gguf-py" }
|
|
||||||
torch = { version = "^2.2.0", source = "pytorch" }
|
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
pytest = "^5.2"
|
pytest = "^5.2"
|
||||||
|
|
||||||
|
|
||||||
# Force wheel + cpu
|
# Force wheel + cpu
|
||||||
# For discussion and context see https://github.com/python-poetry/poetry#6409
|
# For discussion and context see https://github.com/python-poetry/poetry#6409
|
||||||
[[tool.poetry.source]]
|
[[tool.poetry.source]]
|
||||||
@@ -34,12 +51,14 @@ name = "pytorch"
|
|||||||
url = "https://download.pytorch.org/whl/cpu"
|
url = "https://download.pytorch.org/whl/cpu"
|
||||||
priority = "explicit"
|
priority = "explicit"
|
||||||
|
|
||||||
|
[tool.uv.sources]
|
||||||
|
torch = { index = "pytorch" }
|
||||||
|
|
||||||
|
[[tool.uv.index]]
|
||||||
|
name = "pytorch"
|
||||||
|
url = "https://download.pytorch.org/whl/cpu"
|
||||||
|
explicit = true
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
|
||||||
llama-convert-hf-to-gguf = "convert_hf_to_gguf:main"
|
|
||||||
llama-convert-lora-to-gguf = "convert_lora_to_gguf:main"
|
|
||||||
llama-convert-llama-ggml-to-gguf = "convert_llama_ggml_to_gguf:main"
|
|
||||||
llama-ggml-vk-generate-shaders = "ggml_vk_generate_shaders:main"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user