Class: HuggingFaceLLM
Extends
BaseLLM
Constructors
new HuggingFaceLLM()
new HuggingFaceLLM(
init
?):HuggingFaceLLM
Parameters
• init?: HFLLMConfig
Returns
Overrides
BaseLLM.constructor
Source
packages/core/src/llm/huggingface.ts:205
Properties
contextWindow
contextWindow:
number
Source
packages/core/src/llm/huggingface.ts:200
maxTokens?
optional
maxTokens:number
Source
packages/core/src/llm/huggingface.ts:199
model
private
model:null
|PreTrainedModel
=null
Source
packages/core/src/llm/huggingface.ts:203
modelName
modelName:
string
Source
packages/core/src/llm/huggingface.ts:195
temperature
temperature:
number
Source
packages/core/src/llm/huggingface.ts:197
tokenizer
private
tokenizer:null
|PreTrainedTokenizer
=null
Source
packages/core/src/llm/huggingface.ts:202
tokenizerName
tokenizerName:
string