code: def __init__(
      self,
      # Heuristically, runtimes for most of the modules in the network
      # plateau earlier than this on all GPUs I've run the model on.
      max_chunk_size: int = 512,
  ):
      self.max_chunk_size = max_chunk_size
      self.cached_chunk_size: Optional[int] = None
      self.cached_arg_data: Optional[tuple] = None
  
file_path: transformers/src/transformers/models/esm/openfold_utils/chunk_utils.py
imports: import logging
  import math
  from functools import partial
  from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Union
  import torch
  from .tensor_utils import tensor_tree_map, tree_map
label_desc: Use image node_id 1 to create a new ChunkSizeTuner object  with example: obj = ChunkSizeTuner(max_chunk_size)