code: def __init__(self, model: CPMBee, tokenizer: CPMBeeTokenizer):
      model.eval()
      self.model = model
      self.tokenizer = tokenizer
  
file_path: DeepKE/example/llm/CPM-Bee/src/cpm_live/generation/bee.py
imports: from typing import Any, Dict, List, Tuple
  import numpy
  import torch
  import torch.nn.functional
  from .generation_utils import BeamHypotheses, apply_repetition_penalty
  from ..tokenizers.bee import CPMBeeTokenizer
  from ..models.bee import CPMBee
  from ..training_tasks.bee.pretrain import convert_data_to_id
  from ..utils import pad
label_desc: Use image node_id 1 to create a new CPMBeeGeneration object  with example: obj = CPMBeeGeneration(model, tokenizer)