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

document the "rest of the file" document #1092

Open
gogo2464 opened this issue Feb 1, 2025 · 3 comments
Open

document the "rest of the file" document #1092

gogo2464 opened this issue Feb 1, 2025 · 3 comments

Comments

@gogo2464
Copy link

gogo2464 commented Feb 1, 2025

Thanks for publishing the doc at https://github.com/ggerganov/ggml/blob/master/docs/gguf.md .

I want to develop a gguf disassembler for GPDR compliance. I want to disassemble code at offset uint64_t offset;:

struct gguf_tensor_info_t {
    // The name of the tensor. It is a standard GGUF string, with the caveat that
    // it must be at most 64 bytes long.
    gguf_string_t name;
    // The number of dimensions in the tensor.
    // Currently at most 4, but this may change in the future.
    uint32_t n_dimensions;
    // The dimensions of the tensor.
    uint64_t dimensions[n_dimensions];
    // The type of the tensor.
    ggml_type type;
    // The offset of the tensor's data in this file in bytes.
    //
    // This offset is relative to `tensor_data`, not to the start
    // of the file, to make it easier for writers to write the file.
    // Readers should consider exposing this offset relative to the
    // file to make it easier to read the data.
    //
    // Must be a multiple of `ALIGNMENT`. That is, `align_offset(offset) == offset`.
    uint64_t offset;
};

I am wondering if there exists any opcode translation reference please? If a disassembler/decompiler already exists, I would like to see the link please.

Best regard.

@ggerganov
Copy link
Owner

Note that the GGUF format is not an executable format - it merely contains data. So I don't think there is anything to disassemble.

@gogo2464
Copy link
Author

gogo2464 commented Feb 1, 2025

I could disassemble data as well! It is what i need for the gpdr!

@gogo2464
Copy link
Author

gogo2464 commented Feb 1, 2025

Or at least i want to debug.

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

No branches or pull requests

2 participants