class_docstr: High-level Python wrapper for a bloom.cpp model.
code: def forward(self, input_ids: List[int]) -> int:
      return bloom_forward(
          ctx=self.ctx,
          input_ids=input_ids,
          seed=self.seed,
          n_threads=self.n_threads,
          n_batch=self.n_batch,
      )
  
imports: from .bloom_cpp import bloom_load, bloom_free, bloom_run
  from .bloom_cpp import bloom_tokenize, bloom_detokenize, bloom_forward, bloom_eval, bloom_embed
  from bigdl.llm.utils.common import invalidInputError
  from bigdl.llm.ggml.model.generation import GenerationMixin
  from typing import List, Optional, Generator, Sequence, Union
  import time
  import uuid
  import warnings
label_desc: Use image node_id 8 for calling the Bloom obj's underlying member method code with example usage: obj.forward(input_ids) and returns: bloom_forward