code: def __init__(
      self, f: BufferedReader, header: GGUFHeader, config: GGUFConfig
  ):
      self.infos = []
  
      reader = GGUFReader(f)
      for i in range(header.n_tensors):
          name = reader.read_str()
          ndims = reader.read_u32()
          dims = [reader.read_u64() for i in range(ndims)]
          dims = list(reversed(dims))
          qtype = reader.read_i32()
          offset = reader.read_u64()
          self.infos.append((name, ndims, dims, qtype, offset))
  
      alignment = config.config.get("general.alignment", 32)
      base_offset = (f.tell() + alignment - 1) // alignment * alignment
      self.base_offset = base_offset
  
imports: import struct
  import functools
  import torch
  import numpy
  from io import BufferedReader
  from tqdm import tqdm
  from bigdl.llm.utils.common import invalidInputError
label_desc: Use image node_id 1 to create a new GGUFTensorInfos object  with example: obj = GGUFTensorInfos(f, header, config)