From: Georgi Gerganov Date: Fri, 15 Mar 2024 12:10:35 +0000 (+0200) Subject: spec : add GGUF diagram (#765) X-Git-Tag: upstream/0.0.1642~844 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=ef085b5a8c9d83970411f935db7991141275fe54;p=pkg%2Fggml%2Fsources%2Fggml spec : add GGUF diagram (#765) --- diff --git a/docs/gguf.md b/docs/gguf.md index ddd61a34..fa9abea7 100644 --- a/docs/gguf.md +++ b/docs/gguf.md @@ -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.