ggufmeta

package
v0.9.85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsVisionProjectorFile

func IsVisionProjectorFile(path string) (bool, error)

IsVisionProjectorFile checks projector metadata and stops as soon as the GGUF architecture provides a definitive answer.

Types

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

Metadata contains scalar key/value pairs from a GGUF header.

func Read

func Read(reader io.Reader) (*Metadata, error)

Read reads bounded scalar metadata from a GGUF stream without reading tensors.

func ReadFile

func ReadFile(path string) (*Metadata, error)

ReadFile reads bounded scalar metadata from a GGUF file without reading tensors.

func (*Metadata) Bool

func (m *Metadata) Bool(key string) (bool, bool)

func (*Metadata) IsVisionProjector

func (m *Metadata) IsVisionProjector() bool

IsVisionProjector reports whether GGUF metadata describes a vision projector.

func (*Metadata) PositiveInt

func (m *Metadata) PositiveInt(key string) (int, bool)

func (*Metadata) PositiveIntWithSuffix

func (m *Metadata) PositiveIntWithSuffix(suffix string) (int, bool)

func (*Metadata) String

func (m *Metadata) String(key string) (string, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL