Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It would be great if python code is appropriately formatted with Black to improve the readability of code while following psf foundation-based guidelines!
Usage is pretty simple:
>black $file_name
Happy to answer any questions :)
🤖 Generated by Copilot at 81b8748
Summary
🎨📝🚚
Reformatted several Python scripts to follow PEP8 style and improve readability. No changes to functionality or logic. The scripts are used to convert different formats of graph models to the GGML format used by llama.cpp.
Walkthrough
write_header
functions ofconvert-gpt4all-to-ggml.py
,convert-gptq-to-ggml.py
, andconvert-unversioned-ggml-to-ggml.py
for consistency with other scripts (link,link,link)rot
andftype
parameters inconvert-gptq-to-ggml.py
for clarity (link,link)convert-ggml-to-pth.py
andconvert-gptq-to-ggml.py
for readability (link,link,link)convert-ggml-to-pth.py
for consistency (link)quantize.py
for compactness (link,link)