code: def end_beam_search(self):
      if not self.in_beam_search:
          return
  
      self.sequence = self.sequence_actual.clone()
      self.cache.current_seq_len = self.sequence.shape[-1] - 1
      self.in_beam_search = False
  
imports: import cuda_ext
  from model import ExLlama, ExLlamaCache
  from lora import ExLlamaLora
  import torch
  import torch.nn.functional
label_desc: Use image node_id 23 for calling the ExLlamaGenerator obj's underlying member method code with example usage: obj.end_beam_search() without return types