-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Add C++ gguf reader into cmake, add python gguf reader example #5216
Conversation
another whitespace :|
@ggerganov let's merge it in ? it's useful |
It does not pass the Lint check |
solved:) |
This PR breaks Vulkan building with a number of linker errors.
|
Maybe that's why the gguf example lay dormant, or it was too long dormant. Adding the gguf into cmake is a super minor thing, I'm sorry if that broke something unexpected. |
Not sure, this might be an issue on the Vulkan side, since it doesn't seem to happen with other backends. The Vulkan CMake code is a little different from the other backends, and that's the cause of this issue. @netrunnereve If I revert #5230 , this issue is resolved for me. But that was problematic on Windows. Any ideas? |
Maybe we can change the Vulkan objects to be part of Instead of having separate Line 430 in 03bf161
Add it here: Lines 1024 to 1042 in 03bf161
|
This also break Rocm build on windows
|
Not only windows - nix is also broken. |
I think we may have to do what @ggerganov suggested and move everything to the ggml lib rather than creating a seperate ggml-vulkan object (you can test his patch at #5525). As @sorasoras mentioned the ROCM build is also failing, and ROCM is built using a seperate object just like Vulkan. |
* Update CMakeLists.txt * Create reader.py * Update reader.py * Update reader.py another whitespace :| * Update reader.py * lintlintlint
* Update CMakeLists.txt * Create reader.py * Update reader.py * Update reader.py another whitespace :| * Update reader.py * lintlintlint
The existing gguf example is not present in the cmake examples, now it can be compiled.
It appears to work, though the data print won't work.
In addition I added a reader.py which prints information about a gguf file.
I'm sure it is far from perfect or complete, but provides a base to start with.
Example output: