Repository navigation
Conversation
|
Plesse address "unknown word" warnings. I will test the PR today. |
|
MiniCPM5 hits |
|
@barhanc the HF |
|
Forced thinking + tools makes it overthink trivial prompts on iPhone 16 (XNNPACK): bat-and-ball 2370 tokens / 149 s, "My name is Mateusz and I live in Kraków" 2449 tokens / 174 s, almost all of it debating tool calls. Same on MLX, where the Kraków prompt also triggers unrequested |
| systemPrompt: DEFAULT_SYSTEM_PROMPT, | ||
| toolOpts: MINICPM5_TOOL_OPTS, | ||
| }, | ||
| { | ||
| id: 'minicpm-5-2b-mlx', | ||
| name: 'MiniCPM5 2B', | ||
| backend: 'mlx', | ||
| model: models.llm.MINICPM5_2B.MLX_INT4, | ||
| generationConfig: MINICPM5_GENERATION_CONFIG, | ||
| systemPrompt: DEFAULT_SYSTEM_PROMPT, |
There was a problem hiding this comment.
Polish questions get English answers with the default prompt; this fixes it on device.
| systemPrompt: DEFAULT_SYSTEM_PROMPT, | |
| toolOpts: MINICPM5_TOOL_OPTS, | |
| }, | |
| { | |
| id: 'minicpm-5-2b-mlx', | |
| name: 'MiniCPM5 2B', | |
| backend: 'mlx', | |
| model: models.llm.MINICPM5_2B.MLX_INT4, | |
| generationConfig: MINICPM5_GENERATION_CONFIG, | |
| systemPrompt: DEFAULT_SYSTEM_PROMPT, | |
| systemPrompt: `${DEFAULT_SYSTEM_PROMPT}. Always reply in the language of the user's latest message.`, | |
| toolOpts: MINICPM5_TOOL_OPTS, | |
| }, | |
| { | |
| id: 'minicpm-5-2b-mlx', | |
| name: 'MiniCPM5 2B', | |
| backend: 'mlx', | |
| model: models.llm.MINICPM5_2B.MLX_INT4, | |
| generationConfig: MINICPM5_GENERATION_CONFIG, | |
| systemPrompt: `${DEFAULT_SYSTEM_PROMPT}. Always reply in the language of the user's latest message.`, |
Description
Adds MiniCPM5-2B https://huggingface.co/openbmb/MiniCPM5-2B as a substitute for Qwen 3.5 whose hybrid architecture doesn't work well with our runtime.
Introduces a breaking change?
Type of change
Tested on
Testing instructions
Screenshots
Related issues
Closes #935
Checklist
Additional notes