Skip to content

Commit

Permalink
spec : add GGUF diagram (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Mar 15, 2024
1 parent 7652115 commit ef085b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/gguf.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ The key difference between GGJT and GGUF is the use of a key-value structure for

### File Structure

![image](https://github.com/ggerganov/ggml/assets/1991296/c3623641-3a1d-408e-bfaf-1b7c4e16aa63)
*diagram by [@mishig25](https://github.com/mishig25) (GGUF v3)*

GGUF files are structured as follows. They use a global alignment specified in the `general.alignment` metadata field, referred to as `ALIGNMENT` below. Where required, the file is padded with `0x00` bytes to the next multiple of `general.alignment`.

Fields, including arrays, are written sequentially without alignment unless otherwise specified.
Expand Down

0 comments on commit ef085b5

Please sign in to comment.