Skip to content

Commit 42bd4ff

Browse files
Enabling an optional gui extra for installation
1 parent bf1be33 commit 42bd4ff

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

gguf-py/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ as an example for its usage.
1111
pip install gguf
1212
```
1313

14+
Optionally, you can install gguf with the extra 'gui' to enable the visual GGUF editor.
15+
```sh
16+
pip install gguf[gui]
17+
```
18+
1419
## API Examples/Simple Tools
1520

1621
[examples/writer.py](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/examples/writer.py) — Generates `example.gguf` in the current directory to demonstrate generating a GGUF file. Note that this file cannot be used as a model.
@@ -25,6 +30,8 @@ pip install gguf
2530

2631
[gguf/scripts/gguf_new_metadata.py](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/gguf/scripts/gguf_new_metadata.py) — Copies a GGUF file with added/modified/removed metadata values.
2732

33+
[gguf/scripts/gguf_editor_gui.py](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/gguf/scripts/gguf_editor_gui.py) — Allows for viewing, editing, adding, or removing metadata values within a GGUF file as well as viewing its tensors with a Qt interface.
34+
2835
## Development
2936
Maintainers who participate in development of this package are advised to install it in editable mode:
3037

gguf-py/gguf/scripts/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
from .gguf_dump import main as gguf_dump_entrypoint
55
from .gguf_set_metadata import main as gguf_set_metadata_entrypoint
66
from .gguf_new_metadata import main as gguf_new_metadata_entrypoint
7+
from .gguf_editor_gui import main as gguf_editor_gui_entrypoint

gguf-py/pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gguf"
3-
version = "0.16.0"
3+
version = "0.16.1"
44
description = "Read and write ML models in GGUF for GGML"
55
authors = ["GGML <[email protected]>"]
66
packages = [
@@ -23,10 +23,14 @@ numpy = ">=1.17"
2323
tqdm = ">=4.27"
2424
pyyaml = ">=5.1"
2525
sentencepiece = ">=0.1.98,<=0.2.0"
26+
PySide6 = { version = "^6.9", optional = true }
2627

2728
[tool.poetry.dev-dependencies]
2829
pytest = "^5.2"
2930

31+
[tool.poetry.extras]
32+
gui = ["PySide6"]
33+
3034
[build-system]
3135
requires = ["poetry-core>=1.0.0"]
3236
build-backend = "poetry.core.masonry.api"
@@ -36,3 +40,4 @@ gguf-convert-endian = "gguf.scripts:gguf_convert_endian_entrypoint"
3640
gguf-dump = "gguf.scripts:gguf_dump_entrypoint"
3741
gguf-set-metadata = "gguf.scripts:gguf_set_metadata_entrypoint"
3842
gguf-new-metadata = "gguf.scripts:gguf_new_metadata_entrypoint"
43+
gguf-editor-gui = "gguf.scripts:gguf_editor_gui_entrypoint"

0 commit comments

Comments
 (0)