File tree Expand file tree Collapse file tree
packages/react-native-executorch/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,8 +129,8 @@ const GEMMA4_E2B_XNNPACK = `${URL_PREFIX}-gemma-4/${PREVIOUS_VERSION_TAG}/e2b/xn
129129const GEMMA4_E2B_VULKAN = `${ URL_PREFIX } -gemma-4/${ PREVIOUS_VERSION_TAG } /e2b/vulkan/gemma_4_e2b_vulkan_8da4w.pte` ;
130130const GEMMA4_E2B_XNNPACK_MM = `${ URL_PREFIX } -gemma-4-multimodal/${ PREVIOUS_VERSION_TAG } /e2b/xnnpack/gemma_4_e2b_xnnpack_8da4w.pte` ;
131131const GEMMA4_E2B_VULKAN_MM = `${ URL_PREFIX } -gemma-4-multimodal/${ PREVIOUS_VERSION_TAG } /e2b/vulkan/gemma_4_e2b_vulkan_8da4w.pte` ;
132- const GEMMA4_TOKENIZER = `${ URL_PREFIX } -gemma-4/${ PREVIOUS_VERSION_TAG } /e2b/xnnpack/ tokenizer.json` ;
133- const GEMMA4_TOKENIZER_CONFIG = `${ URL_PREFIX } -gemma-4/${ PREVIOUS_VERSION_TAG } /e2b/xnnpack/ tokenizer_config.json` ;
132+ const GEMMA4_TOKENIZER = `${ URL_PREFIX } -gemma-4/${ PREVIOUS_VERSION_TAG } /e2b/tokenizer.json` ;
133+ const GEMMA4_TOKENIZER_CONFIG = `${ URL_PREFIX } -gemma-4/${ PREVIOUS_VERSION_TAG } /e2b/tokenizer_config.json` ;
134134
135135/**
136136 * @category Models - LLM
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export class LLMController {
117117 this . nativeModule . unload ( ) ;
118118 }
119119
120- if ( ( model . capabilities ?? [ ] ) . find ( ( c ) => c == 'audio' ) ) {
120+ if ( ( model . capabilities ?? [ ] ) . find ( ( c ) => c === 'audio' ) ) {
121121 this . audioConfig = model . audioConfig ;
122122 }
123123
@@ -297,7 +297,6 @@ export class LLMController {
297297 const hasImages = ! ! imagePaths && imagePaths . length > 0 ;
298298 const hasAudio = ! ! audioWaveforms && audioWaveforms . length > 0 ;
299299 try {
300- console . log ( 'kappa' ) ;
301300 this . isGeneratingCallback ( true ) ;
302301 this . nativeModule . reset ( ) ;
303302 let response : string ;
@@ -361,8 +360,6 @@ export class LLMController {
361360 messages : Message [ ] ,
362361 tools ?: LLMTool [ ]
363362 ) : Promise < string > {
364- let s = performance . now ( ) ;
365- console . log ( 'kappa' , performance . now ( ) - s ) ;
366363 if ( ! this . _isReady ) {
367364 throw new RnExecutorchError (
368365 RnExecutorchErrorCode . ModuleNotLoaded ,
@@ -393,7 +390,6 @@ export class LLMController {
393390 tools ,
394391 { tools_in_user_message : false , add_generation_prompt : true }
395392 ) ;
396- console . log ( 'kappa' , performance . now ( ) - s ) ;
397393
398394 return await this . forward (
399395 renderedChat ,
You can’t perform that action at this time.
0 commit comments