Interface: LLMProps
Defined in: packages/react-native-executorch/src/types/llm.ts:9
Properties for initializing and configuring a Large Language Model (LLM) instance.
Properties
model
model:
object
Defined in: packages/react-native-executorch/src/types/llm.ts:10
modelSource
modelSource:
ResourceSource
ResourceSource that specifies the location of the model binary.
tokenizerConfigSource?
optionaltokenizerConfigSource:ResourceSource
ResourceSource pointing to the JSON file which contains the tokenizer config.
tokenizerSource
tokenizerSource:
ResourceSource
ResourceSource pointing to the JSON file which contains the tokenizer.
preventLoad?
optionalpreventLoad:boolean
Defined in: packages/react-native-executorch/src/types/llm.ts:27
Boolean that can prevent automatic model loading (and downloading the data if you load it for the first time) after running the hook.