loki2.cl.utils

Utilities for interacting with Loki2 outputs and .pt/.json files.

This module provides utilities for loading and processing Loki2 model outputs, including embeddings and metadata files.

Module Contents

loki2.cl.utils.load_and_print_tensor(file_path: str) → Any

Load a PyTorch object from a given file path.

Parameters:

file_path – Path to the .pt file.

Returns:

The loaded Python object (typically a tensor or model state).

Return type:

Any