Add C++ gguf reader into cmake, add python gguf reader example#5216
Add C++ gguf reader into cmake, add python gguf reader example#5216ggerganov merged 6 commits intoggml-org:masterfrom
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 Add it here: |
|
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
* 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: