Skip to content

Commit

Permalink
fix typo tokenizer -> tokenizerSource
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Kopciński committed Jan 24, 2025
1 parent 1981c8e commit 0eb5965
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/docs/fundamentals/loading-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ import { useLLM } from 'react-native-executorch';

const llama = useLLM({
modelSource: 'https://.../llama3_2.pte',
tokenizer: require('../assets/tokenizer.bin'),
tokenizerSource: require('../assets/tokenizer.bin'),
});
```
4 changes: 2 additions & 2 deletions docs/docs/llms/running-llms.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { useLLM, LLAMA3_2_1B } from 'react-native-executorch';

const llama = useLLM({
modelSource: LLAMA3_2_1B,
tokenizer: require('../assets/tokenizer.bin'),
tokenizerSource: require('../assets/tokenizer.bin'),
contextWindowLength: 3,
});
```
Expand Down Expand Up @@ -62,7 +62,7 @@ In order to send a message to the model, one can use the following code:
```typescript
const llama = useLLM(
modelSource: LLAMA3_2_1B,
tokenizer: require('../assets/tokenizer.bin'),
tokenizerSource: require('../assets/tokenizer.bin'),
);

...
Expand Down

0 comments on commit 0eb5965

Please sign in to comment.