-
Notifications
You must be signed in to change notification settings - Fork 11.5k
gguf-py : GGUF Editor GUI - Python + Qt #12930
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
Conversation
Co-authored-by: Sigbjørn Skjæret <[email protected]>
Co-authored-by: Sigbjørn Skjæret <[email protected]>
Co-authored-by: Sigbjørn Skjæret <[email protected]>
Co-authored-by: Sigbjørn Skjæret <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've applied these. Thank-you!
Looks great, only thing that concerns me is that it will be distributed with the I guess they could be part of an optional |
Maybe it shouldn't be part of the |
Co-authored-by: Sigbjørn Skjæret <[email protected]>
Co-authored-by: Sigbjørn Skjæret <[email protected]>
Co-authored-by: Sigbjørn Skjæret <[email protected]>
Co-authored-by: Sigbjørn Skjæret <[email protected]>
Co-authored-by: Sigbjørn Skjæret <[email protected]>
Co-authored-by: Sigbjørn Skjæret <[email protected]>
Co-authored-by: Sigbjørn Skjæret <[email protected]>
Co-authored-by: Sigbjørn Skjæret <[email protected]>
It makes sense to have it there, it's not that, but maybe getting some additional feedback on optional dependencies would be a good idea .. @compilade @mofosyne |
I'm getting this warning when opening a model BTW:
|
I've made a revision to filter warnings during loading because they're expected. |
Hey, sorry, I haven't forgotten you, just a little ill at the moment. :( Everything looks good, but I would like you to look into two things first; adding the script and/or PySide6 as an optional gui install and documenting it in README.md. Look at how the other scripts have been added to pyproject.toml and init.py and read up on poetry I guess. I will not be much help here, though I did ask Qwen which suggested adding: [tool.poetry.group.gui.dependencies]
PySide6 = "^6.9" |
I've added the requested change. The poetry docs indicated that it should probably be an "extra". |
You may wish to consider using the qtpy compatibility layer rather than Pyside6 directly. Pyside6 v6.9 requires Python 3.10 or later, while gguf-py currently supports Python 3.8 or later. The qtpy package would allow Pyside2/QT5 support on older systems at the same time as allowing Pyside6/QT6 support on newer systems. |
The docs say this is deprecated in favor of |
As an optional dependency I don't think this is much of an issue, also TBH I'm not sure the >=3.8 is actually correct any more, the CI runs with 3.11 and I doubt anyone really checked. |
@christopherthompson81 Unless you want to rewrite this for |
Great! I think sticking with Pyside6 is fine. Go ahead with the merge. |
Sigh, build worked fine locally, not so much when publishing package:
Guess I will have to figure if it really supports 3.8 now... :) |
I reckon that the minimum viable change would be to use |
Actually, it also complains about the <3.14 part, the proper fix seems to be adding these restrictions to the dependency options. |
@christopherthompson81 Thanks for implementing this! Just a reminder when embarking on large efforts like this, it is important to maintain communication if there are outstanding issues or discussions that are related (like #6715), it can be helpful to inform them of a similar ongoing efforts. That being said, please take a look at some discussions in #6715 and see if any of the features are relevant to this. Thank you. |
They are! I wasn't aware of it. Thank-you for pointing it out. I'm happy to keep working on the editor and while the initial PR is relatively basic, that's how these things usually go. They get more advanced over time. I'll see what I can do with the ideas over there. |
Sounds good. I will give the app a whirl and I would be happy to help expand on this as time permits. 😊 |
Would anyone mind sharing some screenshots of the GGUF editor on this PR -- it might give people a good idea of what the editor is about without having to necessarily install its dependencies and the editor first ! |
I wrote a visual editor for GGUF files to be included in the gguf-py package. Hopefully, this fits in with the project.