loadTensorStorageMapped

Create a file-backed TensorStorage that references the tensor's bytes in the original file without loading them into heap.

Requires the source to be file-based. The returned storage uses BufferHandle.FileBacked with the tensor's absolute file offset.

Parameters

tensor

The tensor info from tensors list

filePath

Path to the GGUF file (needed for the FileBacked handle)