class_docstr: High-level Python wrapper for a chatglm.cpp model.
class_docstr_tok: ["High-level","Python","wrapper","for","a","chatglm.cpp","model","."]
code: def forward(
      self,
      input_ids: List[int],
      do_sample: bool = True,
      top_k: int = 0,
      top_p: float = 0.7,
      temperature: float = 0.95,
  ) -> int:
      return chatglm_forward(
          ctx=self.ctx,
          input_ids=input_ids,
          do_sample=do_sample,
          top_k=top_k,
          top_p=top_p,
          temperature=temperature,
      )
  
file_path: BigDL/python/llm/src/bigdl/llm/ggml/model/chatglm/chatglm.py
imports: from .chatglm_cpp import chatglm_load, chatglm_tokenize, chatglm_detokenize, chatglm_forward, chatglm_eos_token
  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 ChatGLM obj's underlying member method code with example usage: obj.forward(input_ids, do_sample, top_k, top_p, temperature) and returns: chatglm_forward