Skip to content

Commit c14653c

Browse files
committed
build(python): Package scripts with pip-0517 compliance
1 parent cbbd1ef commit c14653c

8 files changed

+1242
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ perf-*.txt
8989

9090
examples/jeopardy/results.txt
9191

92-
poetry.lock
92+
*/poetry.lock
9393
poetry.toml
9494
nppBackup

__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

poetry.lock

Lines changed: 1197 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[tool.poetry]
2+
name = "llama-cpp-scripts"
3+
version = "0.0.0"
4+
description = "Scripts that ship with llama.cpp"
5+
authors = ["GGML <[email protected]>"]
6+
readme = "README.md"
7+
homepage = "https://ggml.ai"
8+
repository = "https://github.com/ggerganov/llama.cpp"
9+
keywords = ["ggml", "gguf", "llama.cpp"]
10+
packages = [{ include = "__init__.py", from = "." }]
11+
classifiers = [
12+
"Programming Language :: Python :: 3",
13+
"License :: OSI Approved :: MIT License",
14+
"Operating System :: OS Independent",
15+
]
16+
17+
[tool.poetry.dependencies]
18+
python = ">=3.9"
19+
numpy = "^1.25.0"
20+
sentencepiece = ">=0.1.98,<0.2.0"
21+
transformers = ">=4.35.2,<5.0.0"
22+
protobuf = ">=4.21.0,<5.0.0"
23+
gguf = { path = "./gguf-py" }
24+
torch = {version = "^2.2.0", source = "pytorch"}
25+
26+
[tool.poetry.dev-dependencies]
27+
pytest = "^5.2"
28+
29+
[[tool.poetry.source]]
30+
name = "pytorch"
31+
url = "https://download.pytorch.org/whl/cpu"
32+
priority = "explicit"
33+
34+
[build-system]
35+
requires = ["poetry-core>=1.0.0"]
36+
build-backend = "poetry.core.masonry.api"
37+
38+
[tool.poetry.scripts]
39+
llama-convert-hf-to-gguf = "convert_hf_to_gguf:main"
40+
llama-convert-llama-ggml-to-gguf = "convert_llama_ggml_to_gguf:main"
41+
llama-convert-lora-to-ggml = "convert_lora_to_ggml:main"
42+
llama-convert-persimmon-to-gguf = "convert_persimmon_to_gguf:main"
43+
llama-convert = "convert:main"
44+
llama-ggml_vk_generate_shaders = "ggml_vk_generate_shaders:main"

0 commit comments

Comments
 (0)