mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-11-26 23:29:34 +00:00
torch 2.11.0, numpy 2.4, matplotlib 3.10, pandas 2.3, pillow 11.3 and cffi 1.16 have no Python 3.15 wheels, so the CI runner on 3.15 cannot install the requirements. Python 3.15 gets the first releases that ship 3.15 wheels through version markers, and every version below 3.15 stays as is. pyproject.toml now allows 3.15 and picks torch 2.15.0 there.
73 lines
2.4 KiB
TOML
73 lines
2.4 KiB
TOML
[project]
|
|
name = "llama-cpp-scripts"
|
|
description = "Scripts that ship with llama.cpp"
|
|
keywords = ["ggml", "gguf", "llama.cpp"]
|
|
version = "0.0.0"
|
|
dynamic = ["classifiers"]
|
|
readme = "README.md"
|
|
authors = [{name = "GGML", email = "ggml@ggml.ai"}]
|
|
requires-python = '>=3.10,<3.16'
|
|
dependencies = [
|
|
'numpy (>=2.2.6,<3.0.0); python_version < "3.14"',
|
|
'numpy (>=2.3.0,<3.0.0); python_version >= "3.14"',
|
|
'sentencepiece (>=0.1.98,<0.3.0)',
|
|
'transformers (==4.57.6)',
|
|
'protobuf (>=4.21.0,<5.0.0)',
|
|
'torch (>=2.6.0,<3.0.0)',
|
|
'gguf @ ./gguf-py',
|
|
]
|
|
classifiers = [
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: MIT License",
|
|
"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 = "." },
|
|
{ include = "conversion", from = "." },
|
|
]
|
|
|
|
[tool.poetry.dependencies]
|
|
torch = [
|
|
{ version = "==2.11.0", source = "pypi", markers = "sys_platform == 'darwin' and python_version < '3.15'" },
|
|
{ version = "==2.11.0+cpu", source = "pytorch", markers = "sys_platform == 'linux' and python_version < '3.15'" },
|
|
{ version = "==2.11.0", source = "pypi", markers = "sys_platform == 'win32' and python_version < '3.15'" },
|
|
{ version = "==2.15.0", source = "pypi", markers = "sys_platform == 'darwin' and python_version >= '3.15'" },
|
|
{ version = "==2.15.0+cpu", source = "pytorch", markers = "sys_platform == 'linux' and python_version >= '3.15'" },
|
|
{ version = "==2.15.0", source = "pypi", markers = "sys_platform == 'win32' and python_version >= '3.15'" },
|
|
]
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
pytest = "~=8.3.3"
|
|
|
|
# Force wheel + cpu
|
|
# For discussion and context see https://github.com/python-poetry/poetry#6409
|
|
[[tool.poetry.source]]
|
|
name = "pytorch"
|
|
url = "https://download.pytorch.org/whl/cpu"
|
|
priority = "explicit"
|
|
|
|
[tool.uv.sources]
|
|
torch = [
|
|
{ index = "pytorch", marker = "sys_platform == 'linux'" },
|
|
]
|
|
|
|
[[tool.uv.index]]
|
|
name = "pytorch"
|
|
url = "https://download.pytorch.org/whl/cpu"
|
|
explicit = true
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|