Ask a question to get started
Enter to send•Shift+Enter new line
BigdlLLM()
IpexLLM
Holds any model parameters valid for create call not explicitly specified.
create
Tokenizer for embedding model.
Construct object from model_id
Construct low_bit object from model_id
Args:
model_id: Path for the bigdl-llm transformers low-bit model folder. tokenizer_id: Path for the huggingface repo id or local model folder which contains the tokenizer. model_kwargs: Keyword arguments to pass to the model and tokenizer. kwargs: Extra arguments to pass to the model and tokenizer.
Wrapper around the BigdlLLM model
Example:
.. code-block:: python
from langchain_community.llms import BigdlLLM llm = BigdlLLM.from_model_id(model_id="THUDM/chatglm-6b")