File tree Expand file tree Collapse file tree
llm/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public static String getSystemPromptTemplate(ModelType modelType) {
2323 + SYSTEM_PLACEHOLDER
2424 + "<|eot_id|>" ;
2525 case QWEN_3 :
26- return "<|im_start|>system\n " + "You are a helpful assistant. \n " + "<|im_end|>\n " ;
26+ return "<|im_start|>system\n " + SYSTEM_PLACEHOLDER + "<|im_end|>\n " ;
2727 default :
2828 return SYSTEM_PLACEHOLDER ;
2929 }
@@ -43,7 +43,7 @@ public static String getUserPromptTemplate(ModelType modelType) {
4343 case QWEN_3 :
4444 return "<|im_start|>user\n "
4545 + USER_PLACEHOLDER
46- + "\n <|im_end|>\n "
46+ + "<|im_end|>\n "
4747 + "<|im_start|>assistant\n "
4848 + THINKING_MODE_PLACEHOLDER ;
4949 case LLAVA_1_5 :
@@ -63,7 +63,7 @@ public static String getStopToken(ModelType modelType) {
6363 case LLAVA_1_5 :
6464 return "</s>" ;
6565 case QWEN_3 :
66- return "<|endoftext |>" ;
66+ return "<|im_end |>" ;
6767 case VOXTRAL :
6868 return "</s>" ;
6969 default :
You can’t perform that action at this time.
0 commit comments