Documentation
¶
Overview ¶
Package gguf extracts a BPE tokenizer from GGUF file metadata.
It defines a Metadata interface so callers can provide any GGUF parser implementation without depending on a specific one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTokenizer ¶
func ExtractTokenizer(m Metadata) (*ztoken.BPETokenizer, error)
ExtractTokenizer builds a BPETokenizer from GGUF metadata. GGUF files store tokenizer data under the "tokenizer.ggml.*" metadata keys.
Types ¶
Click to show internal directories.
Click to hide internal directories.