From 0288361b65a094501ae9a36d57b5e9fc96429cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Yusuf=20Sar=C4=B1g=C3=B6z?= Date: Thu, 24 Aug 2023 09:26:13 +0300 Subject: [PATCH] gguf : fix line endings --- gguf-py/LICENSE | 42 +++++++++++------------ gguf-py/README.md | 68 +++++++++++++++++++------------------- gguf-py/gguf/__init__.py | 6 ++-- gguf-py/pyproject.toml | 56 +++++++++++++++---------------- gguf-py/tests/test_gguf.py | 14 ++++---- 5 files changed, 93 insertions(+), 93 deletions(-) diff --git a/gguf-py/LICENSE b/gguf-py/LICENSE index 4d1c4c326..76f67efdc 100644 --- a/gguf-py/LICENSE +++ b/gguf-py/LICENSE @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2023 Georgi Gerganov - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +MIT License + +Copyright (c) 2023 Georgi Gerganov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/gguf-py/README.md b/gguf-py/README.md index 9b6870fa3..3e1c27d4e 100644 --- a/gguf-py/README.md +++ b/gguf-py/README.md @@ -1,34 +1,34 @@ -## gguf - -This is a Python package for writing binary files in the [GGUF](https://github.com/ggerganov/ggml/pull/302) -(GGML Universal File) format. - -See [convert-llama-hf-to-gguf.py](https://github.com/ggerganov/llama.cpp/blob/master/convert-llama-hf-to-gguf.py) -as an example for its usage. - -## Install -```sh -pip install gguf -``` - -## Development -Maintainers who participate in development of this package are advised to install it in editable mode: - - -```sh -cd /path/to/llama.cpp/gguf - -pip install --editable . -``` - -**Note**: This may require to upgrade your Pip installation, with a message saying that editable installation currently requires `setup.py`. -In this case, upgrade Pip to the latest: - -```sh -pip install --upgrade pip -``` - -## TODO - -- [ ] Add tests -- [ ] Include conversion scripts as command line entry points in this package. +## gguf + +This is a Python package for writing binary files in the [GGUF](https://github.com/ggerganov/ggml/pull/302) +(GGML Universal File) format. + +See [convert-llama-hf-to-gguf.py](https://github.com/ggerganov/llama.cpp/blob/master/convert-llama-hf-to-gguf.py) +as an example for its usage. + +## Install +```sh +pip install gguf +``` + +## Development +Maintainers who participate in development of this package are advised to install it in editable mode: + + +```sh +cd /path/to/llama.cpp/gguf-py + +pip install --editable . +``` + +**Note**: This may require to upgrade your Pip installation, with a message saying that editable installation currently requires `setup.py`. +In this case, upgrade Pip to the latest: + +```sh +pip install --upgrade pip +``` + +## TODO + +- [ ] Add tests +- [ ] Include conversion scripts as command line entry points in this package. diff --git a/gguf-py/gguf/__init__.py b/gguf-py/gguf/__init__.py index cfbad8ed0..1a7d93032 100644 --- a/gguf-py/gguf/__init__.py +++ b/gguf-py/gguf/__init__.py @@ -1,3 +1,3 @@ -from .gguf import GGUFWriter - -__version__ = '0.1.0' +from .gguf import GGUFWriter + +__version__ = '0.1.0' diff --git a/gguf-py/pyproject.toml b/gguf-py/pyproject.toml index de74adb9a..87605af26 100644 --- a/gguf-py/pyproject.toml +++ b/gguf-py/pyproject.toml @@ -1,28 +1,28 @@ -[tool.poetry] -name = "gguf" -version = "0.1.0" -description = "Write ML models in GGUF for GGML" -authors = ["GGML "] -packages = [ - {include = "gguf"}, -] -readme = "README.md" -homepage = "https://ggml.ai" -repository = "https://github.com/ggerganov/llama.cpp" -keywords = ["ggml", "gguf", "llama.cpp"] -classifiers = [ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", -] - -[tool.poetry.dependencies] -python = ">=3.8" -numpy = ">=1.17" - -[tool.poetry.dev-dependencies] -pytest = "^5.2" - -[build-system] -requires = ["poetry-core>=1.0.0"] -build-backend = "poetry.core.masonry.api" +[tool.poetry] +name = "gguf" +version = "0.1.0" +description = "Write ML models in GGUF for GGML" +authors = ["GGML "] +packages = [ + {include = "gguf"}, +] +readme = "README.md" +homepage = "https://ggml.ai" +repository = "https://github.com/ggerganov/llama.cpp" +keywords = ["ggml", "gguf", "llama.cpp"] +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[tool.poetry.dependencies] +python = ">=3.8" +numpy = ">=1.17" + +[tool.poetry.dev-dependencies] +pytest = "^5.2" + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" diff --git a/gguf-py/tests/test_gguf.py b/gguf-py/tests/test_gguf.py index 2296ab599..992cc1481 100644 --- a/gguf-py/tests/test_gguf.py +++ b/gguf-py/tests/test_gguf.py @@ -1,7 +1,7 @@ -from gguf import __version__ - -# TODO: add tests - - -def test_version(): - assert __version__ == '0.1.0' +from gguf import __version__ + +# TODO: add tests + + +def test_version(): + assert __version__ == '0.1.0'