from typing import Dict
from typing import Any
import torch


def load_checkpoint(path: str) -> Dict[str, Any]:
    """

    Loads a checkpoint from disk. Maps checkpoint values to cpu.

    :param path: Path to the checkpoint file
    :return: Dictionary mapping from string keys to the checkpointed values
    """
    checkpoint = torch.load(path, map_location=torch.device("cpu"))
    return checkpoint