gguf 0.1.0
gguf: ^0.1.0 copied to clipboard
GGUF file parser (to support getting information from LLM models to be run with llama.cpp)
import 'package:gguf/gguf.dart';
void main() async {
final gguf = await parseGgufFile('model.gguf');
print('Version: ${gguf.version}');
print('Tensors: ${gguf.tensors.length}');
print('Metadata keys: ${gguf.metadata.keys}');
}