Skip to content

Commit 6c4054a

Browse files
committed
chore: Revert location for python scripts
1 parent 5673c4a commit 6c4054a

7 files changed

+9
-9
lines changed
File renamed without changes.

bin/convert_hf_to_gguf.py renamed to convert_hf_to_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
sys.path.insert(1, str(Path(__file__).parent / 'gguf-py'))
2323
import gguf
2424

25-
from bin.convert import HfVocab
25+
from convert import HfVocab
2626

2727

2828
###### MODEL DEFINITIONS ######

bin/convert_llama_ggml_to_gguf.py renamed to convert_llama_ggml_to_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def add_tensors(self, gguf_writer):
352352

353353

354354
def handle_metadata(cfg, hp):
355-
import bin.convert as convert
355+
import convert as convert
356356
assert cfg.model_metadata_dir.is_dir(), 'Metadata dir is not a directory'
357357
hf_config_path = cfg.model_metadata_dir / "config.json"
358358
orig_config_path = cfg.model_metadata_dir / "params.json"
File renamed without changes.
File renamed without changes.
File renamed without changes.

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
homepage = "https://ggml.ai"
88
repository = "https://github.com/ggerganov/llama.cpp"
99
keywords = ["ggml", "gguf", "llama.cpp"]
10-
packages = [{ include = "bin"}]
10+
packages = [{ include = "__init__.py", from = "." }]
1111
classifiers = [
1212
"Programming Language :: Python :: 3",
1313
"License :: OSI Approved :: MIT License",
@@ -36,9 +36,9 @@ requires = ["poetry-core>=1.0.0"]
3636
build-backend = "poetry.core.masonry.api"
3737

3838
[tool.poetry.scripts]
39-
llama-convert-hf-to-gguf = "bin.convert_hf_to_gguf:main"
40-
llama-convert-llama-ggml-to-gguf = "bin.convert_llama_ggml_to_gguf:main"
41-
llama-convert-lora-to-ggml = "bin.convert_lora_to_ggml:main"
42-
llama-convert-persimmon-to-gguf = "bin.convert_persimmon_to_gguf:main"
43-
llama-convert = "bin.convert:main"
44-
llama-ggml_vk_generate_shaders = "bin.ggml_vk_generate_shaders:main"
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)