class_docstr: High-level Python wrapper for a quantized starcoder model.
class_docstr_tok: ["High-level","Python","wrapper","for","a","quantized","starcoder","model","."]
docstr: Only used for langchain
docstr_tok: ["Only","used","for","langchain"]
code: def embed(self, input: str) -> List[float]:
      """Only used for langchain"""
      invalidInputError(
          self.embedding,
          "Starcoder model must be created with embedding=True"
          "to call this method.",
      )
      input_ids = self.tokenize(input)
      return starcoder_embed(
          ctx=self.ctx,
          input_ids=input_ids,
          seed=self.seed,
          n_threads=self.n_threads,
          n_batch=self.n_batch,
      )
  
imports: from .starcoder_cpp import starcoder_load, starcoder_free, starcoder_run
  from .starcoder_cpp import starcoder_tokenize, starcoder_detokenize
  from .starcoder_cpp import starcoder_forward, starcoder_eval, starcoder_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 12 for calling the Starcoder obj's underlying member method code with example usage: obj.embed(input) and returns: starcoder_embed