]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
convert : fix python 3.8 support, modernize type annotations (#2916)
authorCebtenzzre <redacted>
Thu, 31 Aug 2023 05:02:23 +0000 (01:02 -0400)
committerGitHub <redacted>
Thu, 31 Aug 2023 05:02:23 +0000 (08:02 +0300)
commit92d0b751a77a089e650983e9f1564ef4d31b32b9
tree28beced44af777ec563f489518a14509994187dd
parent8afe2280009ecbfc9de2c93b8f41283dc810609a
convert : fix python 3.8 support, modernize type annotations (#2916)

* convert : fix python 3.8 support

* convert : sort imports

* convert : fix required parameters in convert-llama-ggmlv3-to-gguf

* convert : fix mypy errors in convert-llama-ggmlv3-to-gguf

* convert : use PEP 585 generics and PEP 604 unions

Now that we have `from __future__ import annotations`, we can use this
modern syntax in Python 3.7 instead of restricting support to Python 3.9
or 3.10 respectively.

* gguf.py : a tuple is already a tuple

* add mypy.ini

* convert : add necessary `type: ignore` comments

* gguf-py: bump version
convert-falcon-hf-to-gguf.py
convert-gptneox-hf-to-gguf.py
convert-llama-7b-pth-to-gguf.py
convert-llama-ggmlv3-to-gguf.py
convert-llama-hf-to-gguf.py
convert-lora-to-ggml.py
convert.py
gguf-py/gguf/gguf.py
gguf-py/pyproject.toml
mypy.ini [new file with mode: 0644]