from typing import List
import json


def load_gpu_stats_from_file(filename: str) -> List[dict]:
    """
    Loads gpu stats from a json file
    """

    lines = (l for l in open(filename))
    gpu_stats = []
    for line in lines:
        gpu_stats.append(json.loads(line))
    
    return gpu_stats