From 8f0c00f21db8a96c517ed946c76bbcb9020c68e1 Mon Sep 17 00:00:00 2001 From: Jhen-Jie Hong Date: Mon, 23 Dec 2024 14:24:45 +0800 Subject: [PATCH] feat(example): update stop params --- docs/API/README.md | 46 +++++++++---------- docs/API/classes/LlamaContext.md | 36 +++++++-------- docs/API/classes/SchemaGrammarConverter.md | 32 ++++++------- .../SchemaGrammarConverterBuiltinRule.md | 6 +-- example/ios/.xcode.env.local | 2 +- example/ios/Podfile.lock | 2 +- example/src/App.tsx | 2 + 7 files changed, 64 insertions(+), 62 deletions(-) diff --git a/docs/API/README.md b/docs/API/README.md index 814da0a..d15ff58 100644 --- a/docs/API/README.md +++ b/docs/API/README.md @@ -63,7 +63,7 @@ llama.rn #### Defined in -[index.ts:103](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L103) +[index.ts:103](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L103) ___ @@ -73,7 +73,7 @@ ___ #### Defined in -[index.ts:94](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L94) +[index.ts:94](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L94) ___ @@ -83,7 +83,7 @@ ___ #### Defined in -[index.ts:67](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L67) +[index.ts:67](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L67) ___ @@ -93,7 +93,7 @@ ___ #### Defined in -[index.ts:92](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L92) +[index.ts:92](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L92) ___ @@ -137,7 +137,7 @@ ___ #### Defined in -[NativeRNLlama.ts:60](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L60) +[NativeRNLlama.ts:60](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L60) ___ @@ -163,7 +163,7 @@ ___ #### Defined in -[NativeRNLlama.ts:201](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L201) +[NativeRNLlama.ts:201](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L201) ___ @@ -186,7 +186,7 @@ ___ #### Defined in -[NativeRNLlama.ts:190](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L190) +[NativeRNLlama.ts:190](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L190) ___ @@ -203,7 +203,7 @@ ___ #### Defined in -[NativeRNLlama.ts:185](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L185) +[NativeRNLlama.ts:185](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L185) ___ @@ -220,7 +220,7 @@ ___ #### Defined in -[NativeRNLlama.ts:180](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L180) +[NativeRNLlama.ts:180](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L180) ___ @@ -256,7 +256,7 @@ ___ #### Defined in -[NativeRNLlama.ts:8](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L8) +[NativeRNLlama.ts:8](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L8) ___ @@ -272,7 +272,7 @@ ___ #### Defined in -[NativeRNLlama.ts:4](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L4) +[NativeRNLlama.ts:4](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L4) ___ @@ -288,7 +288,7 @@ ___ #### Defined in -[NativeRNLlama.ts:221](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L221) +[NativeRNLlama.ts:221](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L221) ___ @@ -307,7 +307,7 @@ ___ #### Defined in -[NativeRNLlama.ts:225](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L225) +[NativeRNLlama.ts:225](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L225) ___ @@ -324,7 +324,7 @@ ___ #### Defined in -[NativeRNLlama.ts:232](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L232) +[NativeRNLlama.ts:232](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L232) ___ @@ -340,7 +340,7 @@ ___ #### Defined in -[NativeRNLlama.ts:217](https://github.com/mybigday/llama.rn/blob/86adb39/src/NativeRNLlama.ts#L217) +[NativeRNLlama.ts:217](https://github.com/mybigday/llama.rn/blob/402a590/src/NativeRNLlama.ts#L217) ___ @@ -356,7 +356,7 @@ ___ #### Defined in -[chat.ts:3](https://github.com/mybigday/llama.rn/blob/86adb39/src/chat.ts#L3) +[chat.ts:3](https://github.com/mybigday/llama.rn/blob/402a590/src/chat.ts#L3) ___ @@ -373,7 +373,7 @@ ___ #### Defined in -[chat.ts:7](https://github.com/mybigday/llama.rn/blob/86adb39/src/chat.ts#L7) +[chat.ts:7](https://github.com/mybigday/llama.rn/blob/402a590/src/chat.ts#L7) ___ @@ -390,7 +390,7 @@ ___ #### Defined in -[index.ts:57](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L57) +[index.ts:57](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L57) ## Functions @@ -414,7 +414,7 @@ ___ #### Defined in -[grammar.ts:826](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L826) +[grammar.ts:826](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L826) ___ @@ -435,7 +435,7 @@ ___ #### Defined in -[index.ts:295](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L295) +[index.ts:295](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L295) ___ @@ -455,7 +455,7 @@ ___ #### Defined in -[index.ts:280](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L280) +[index.ts:280](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L280) ___ @@ -469,7 +469,7 @@ ___ #### Defined in -[index.ts:354](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L354) +[index.ts:354](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L354) ___ @@ -489,4 +489,4 @@ ___ #### Defined in -[index.ts:266](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L266) +[index.ts:266](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L266) diff --git a/docs/API/classes/LlamaContext.md b/docs/API/classes/LlamaContext.md index 847a915..8f374d7 100644 --- a/docs/API/classes/LlamaContext.md +++ b/docs/API/classes/LlamaContext.md @@ -45,7 +45,7 @@ #### Defined in -[index.ts:124](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L124) +[index.ts:124](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L124) ## Properties @@ -55,7 +55,7 @@ #### Defined in -[index.ts:116](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L116) +[index.ts:116](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L116) ___ @@ -65,7 +65,7 @@ ___ #### Defined in -[index.ts:114](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L114) +[index.ts:114](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L114) ___ @@ -81,7 +81,7 @@ ___ #### Defined in -[index.ts:120](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L120) +[index.ts:120](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L120) ___ @@ -91,7 +91,7 @@ ___ #### Defined in -[index.ts:118](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L118) +[index.ts:118](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L118) ## Methods @@ -111,7 +111,7 @@ ___ #### Defined in -[index.ts:239](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L239) +[index.ts:239](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L239) ___ @@ -134,7 +134,7 @@ ___ #### Defined in -[index.ts:219](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L219) +[index.ts:219](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L219) ___ @@ -155,7 +155,7 @@ ___ #### Defined in -[index.ts:160](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L160) +[index.ts:160](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L160) ___ @@ -175,7 +175,7 @@ ___ #### Defined in -[index.ts:208](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L208) +[index.ts:208](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L208) ___ @@ -196,7 +196,7 @@ ___ #### Defined in -[index.ts:212](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L212) +[index.ts:212](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L212) ___ @@ -217,7 +217,7 @@ ___ #### Defined in -[index.ts:150](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L150) +[index.ts:150](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L150) ___ @@ -231,7 +231,7 @@ ___ #### Defined in -[index.ts:255](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L255) +[index.ts:255](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L255) ___ @@ -253,7 +253,7 @@ Load cached prompt & completion state from a file. #### Defined in -[index.ts:134](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L134) +[index.ts:134](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L134) ___ @@ -267,7 +267,7 @@ ___ #### Defined in -[index.ts:261](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L261) +[index.ts:261](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L261) ___ @@ -281,7 +281,7 @@ ___ #### Defined in -[index.ts:251](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L251) +[index.ts:251](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L251) ___ @@ -305,7 +305,7 @@ Save current cached prompt & completion state to a file. #### Defined in -[index.ts:143](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L143) +[index.ts:143](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L143) ___ @@ -319,7 +319,7 @@ ___ #### Defined in -[index.ts:200](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L200) +[index.ts:200](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L200) ___ @@ -339,4 +339,4 @@ ___ #### Defined in -[index.ts:204](https://github.com/mybigday/llama.rn/blob/86adb39/src/index.ts#L204) +[index.ts:204](https://github.com/mybigday/llama.rn/blob/402a590/src/index.ts#L204) diff --git a/docs/API/classes/SchemaGrammarConverter.md b/docs/API/classes/SchemaGrammarConverter.md index 458db18..6e59284 100644 --- a/docs/API/classes/SchemaGrammarConverter.md +++ b/docs/API/classes/SchemaGrammarConverter.md @@ -46,7 +46,7 @@ #### Defined in -[grammar.ts:213](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L213) +[grammar.ts:213](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L213) ## Properties @@ -56,7 +56,7 @@ #### Defined in -[grammar.ts:203](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L203) +[grammar.ts:203](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L203) ___ @@ -66,7 +66,7 @@ ___ #### Defined in -[grammar.ts:205](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L205) +[grammar.ts:205](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L205) ___ @@ -76,7 +76,7 @@ ___ #### Defined in -[grammar.ts:201](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L201) +[grammar.ts:201](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L201) ___ @@ -90,7 +90,7 @@ ___ #### Defined in -[grammar.ts:209](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L209) +[grammar.ts:209](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L209) ___ @@ -100,7 +100,7 @@ ___ #### Defined in -[grammar.ts:211](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L211) +[grammar.ts:211](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L211) ___ @@ -114,7 +114,7 @@ ___ #### Defined in -[grammar.ts:207](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L207) +[grammar.ts:207](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L207) ## Methods @@ -135,7 +135,7 @@ ___ #### Defined in -[grammar.ts:695](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L695) +[grammar.ts:695](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L695) ___ @@ -156,7 +156,7 @@ ___ #### Defined in -[grammar.ts:226](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L226) +[grammar.ts:226](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L226) ___ @@ -179,7 +179,7 @@ ___ #### Defined in -[grammar.ts:712](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L712) +[grammar.ts:712](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L712) ___ @@ -200,7 +200,7 @@ ___ #### Defined in -[grammar.ts:314](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L314) +[grammar.ts:314](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L314) ___ @@ -220,7 +220,7 @@ ___ #### Defined in -[grammar.ts:520](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L520) +[grammar.ts:520](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L520) ___ @@ -241,7 +241,7 @@ ___ #### Defined in -[grammar.ts:325](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L325) +[grammar.ts:325](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L325) ___ @@ -255,7 +255,7 @@ ___ #### Defined in -[grammar.ts:815](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L815) +[grammar.ts:815](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L815) ___ @@ -276,7 +276,7 @@ ___ #### Defined in -[grammar.ts:249](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L249) +[grammar.ts:249](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L249) ___ @@ -297,4 +297,4 @@ ___ #### Defined in -[grammar.ts:531](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L531) +[grammar.ts:531](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L531) diff --git a/docs/API/classes/SchemaGrammarConverterBuiltinRule.md b/docs/API/classes/SchemaGrammarConverterBuiltinRule.md index 7c24d60..ca1e65b 100644 --- a/docs/API/classes/SchemaGrammarConverterBuiltinRule.md +++ b/docs/API/classes/SchemaGrammarConverterBuiltinRule.md @@ -28,7 +28,7 @@ #### Defined in -[grammar.ts:82](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L82) +[grammar.ts:82](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L82) ## Properties @@ -38,7 +38,7 @@ #### Defined in -[grammar.ts:78](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L78) +[grammar.ts:78](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L78) ___ @@ -48,4 +48,4 @@ ___ #### Defined in -[grammar.ts:80](https://github.com/mybigday/llama.rn/blob/86adb39/src/grammar.ts#L80) +[grammar.ts:80](https://github.com/mybigday/llama.rn/blob/402a590/src/grammar.ts#L80) diff --git a/example/ios/.xcode.env.local b/example/ios/.xcode.env.local index e3806c1..4a506b1 100644 --- a/example/ios/.xcode.env.local +++ b/example/ios/.xcode.env.local @@ -1 +1 @@ -export NODE_BINARY=/var/folders/4z/1d45cfts3936kdm7v9jl349r0000gn/T/yarn--1734674930237-0.4736887321888663/node +export NODE_BINARY=/var/folders/4z/1d45cfts3936kdm7v9jl349r0000gn/T/yarn--1734935041337-0.24976882844734138/node diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 0b56fda..7e6eed1 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1270,7 +1270,7 @@ SPEC CHECKSUMS: glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b hermes-engine: 10fbd3f62405c41ea07e71973ea61e1878d07322 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 - llama-rn: 94fb38e08bc2bc683a3e625f60d956a3739fb8eb + llama-rn: 2205f23167fecb6ffa00a120a8f87bdfad7e7875 RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: a2faf4bad4e438ca37b2040cb8f7799baa065c18 RCTTypeSafety: cb09f3e4747b6d18331a15eb05271de7441ca0b3 diff --git a/example/src/App.tsx b/example/src/App.tsx index 55d856c..45b9f32 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -464,6 +464,8 @@ export default function App() { '<|END_OF_TURN_TOKEN|>', '<|end_of_turn|>', '<|endoftext|>', + '', + '', ], // n_threads: 4, // logit_bias: [[15043,1.0]],