Skip to main content
Version: 0.7.x

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?

optional tokenizerConfigSource: 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?

optional preventLoad: 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.

We are Software Mansion.