NAME
PDL::IO::GGUF - Read and write GGUF v3 model weight files as PDL ndarrays
SYNOPSIS
use PDL;
use PDL::IO::GGUF qw(rgguf wgguf gguf_header);
wgguf('model.gguf', {
'blk.0.attn_q.weight' => float([[1, 2], [3, 4]]),
}, { 'general.architecture' => 'llama' });
my ($tensors, $meta) = rgguf('model.gguf');
DESCRIPTION
PDL::IO::GGUF provides pure-Perl reading and writing of GGUF v3 binary files (used by llama.cpp and ggml) directly to and from PDL ndarrays.
AUTHOR
C.J. Collier <cjac@google.com>
LICENSE AND COPYRIGHT
Copyright 2026 Google LLC. Apache License, Version 2.0.