This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

Notebooks · lib/gguf/api

The entry points vipyr calls in lib/gguf

vipyr (python/vipyr/_gguf.py) reads a GGUF file's bytes with NumPy and hands them here: a def Python calls takes numbers and arrays, not strings or records. file_index reads the metadata and the tensor table from the file's first bytes and returns them flat, dequant turns one tensor's bytes into numbers.

Used by vipyr; in Viv, use gguf.header, gguf.tensors and gguf.quants.

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.

[1]lines 14–94