Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert : partially revert PR #4818 #5041

Merged
merged 3 commits into from
Jan 20, 2024
Merged

convert : partially revert PR #4818 #5041

merged 3 commits into from
Jan 20, 2024

Conversation

cebtenzzre
Copy link
Collaborator

PR #3633 made some significant changes to convert.py. PR #4818 refactored this code, and also made a lot of intertwined style changes.

This PR attempts to find a middleground between the original convert.py, convert.py after PR 3633, and convert.py after PR 4818, by reverting any of the changes that seemed unnecessary.

If you search for convert.py here, you will see the full diff between convert.py before PR 3633, and convert.py on this PR. Notice that it is relatively small - only 287 insertions and 84 deletions, including AWQ and --padvocab. Compare that to PR 4818 as merged - 675 insertions and 312 deletions, just for that PR on its own.

teleprint-me, please don't take this the wrong way. But I believe there should be more discussion before making broad changes to the style and structure of code like this. PR 4818 didn't get that opportunity because it fixed an important issue, but I am not satisfied with the outcome.

Also fixes #4631 as a bonus, and fixes the complaints from mypy and pytype.

@cebtenzzre cebtenzzre merged commit b43ebde into master Jan 20, 2024
21 checks passed
crasm pushed a commit that referenced this pull request Jan 23, 2024
jordankanter pushed a commit to jordankanter/llama.cpp that referenced this pull request Feb 3, 2024
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

convert-llama-ggml-to-gguf.py does not work after #3633
2 participants