File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
examples/demo-apps/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,7 @@ public static String getSystemPromptTemplate(ModelType modelType) {
2626 case LLAVA_1_5 :
2727 return "USER: " ;
2828 case QWEN_3 :
29- return "<|im_start|>system\n " +
30- "You are a helpful assistant.\n " +
31- "<|im_end|>\n " ;
29+ return "<|im_start|>system\n " + "You are a helpful assistant.\n " + "<|im_end|>\n " ;
3230 default :
3331 return SYSTEM_PLACEHOLDER ;
3432 }
@@ -47,13 +45,13 @@ public static String getUserPromptTemplate(ModelType modelType) {
4745
4846 case LLAVA_1_5 :
4947 case QWEN_3 :
50- return "<|im_start|>user\n " +
51- USER_PLACEHOLDER +
52- "<|im_end|>\n " +
53- "<|im_start|>assistant\n " +
54- "<think>\n " +
55- "\n " +
56- "</think>\n \n \n " ;
48+ return "<|im_start|>user\n "
49+ + USER_PLACEHOLDER
50+ + "<|im_end|>\n "
51+ + "<|im_start|>assistant\n "
52+ + "<think>\n "
53+ + "\n "
54+ + "</think>\n \n \n " ;
5755 default :
5856 return USER_PLACEHOLDER ;
5957 }
You can’t perform that action at this time.
0 commit comments