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 __call__(
      self,
      prompt: str,
      suffix: Optional[str] = None,
      max_tokens: int = 128,
      temperature: float = 0.95,
      top_p: float = 0.7,
      logprobs: Optional[int] = None,
      echo: bool = False,
      stop: Optional[Union[str, List[str]]] = [],
      frequency_penalty: float = 0.0,
      presence_penalty: float = 0.0,
      repeat_penalty: float = 1.1,
      top_k: int = 0,
      stream: bool = False,
      tfs_z: float = 1.0,
      mirostat_mode: int = 0,
      mirostat_tau: float = 5.0,
      mirostat_eta: float = 0.1,
      model: Optional[str] = None,
  ):
      # TODO: Some parameters are temporarily not supported
      # Unsupported parameters are checked in `_supported_call`
      return self._supported_call(
          prompt,
          max_tokens,
          stream,
          temperature,
          top_p,
          top_k,
          stop,
          model,
          suffix,
          logprobs,
          echo,
          frequency_penalty,
          presence_penalty,
          repeat_penalty,
          tfs_z,
          mirostat_mode,
          mirostat_tau,
          mirostat_eta,
      )
  
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 2 for calling the ChatGLM obj's underlying member method code with example usage: obj.__call__(prompt, suffix, max_tokens, temperature, top_p, logprobs, echo, stop, frequency_penalty, presence_penalty, repeat_penalty, top_k, stream, tfs_z, mirostat_mode, mirostat_tau, mirostat_eta, model) and returns: self