Repository navigation
How to run Devstral and mistral-vibe with MLX? #859
Replies: 5 comments 8 replies
|
Anyone here? |
|
working great in v0.30.7 |
|
@codrut-popescu salut! I'm using the optiq mlx wrapper because it can speak anthropic too: latest packages are installed: agent is I can't even get it to read a file: I'd really appreciate any insight into this, thanks. |
|
The issue is #1307. Mistral and Devstral have no tool-call end marker, so the call ends at EOS. The state machine treats that as a stop, and the final flush only fires It is not MXFP4 specific. Two related shape rules also affect agents on Mistral, and both surface as a 404: it rejects two same-role turns in a row, and a user turn directly after tool results. Most agent harnesses produce both at some point. All three are fixed in optiq serve as of 0.4.2, so Vibe with Devstral works through it: https://mlx-optiq.com/docs/integrations/mistral-vibe |
|
Tool calls dropping after one step. Mistral/Devstral emit tool calls as
The regex warning is cosmetic here. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
So, I have downloaded Devstral-2-123B-Instruct-2512-4bit (I am running on a MBP M4 Max/128 GB)
Download Devstral-2-123B-Instruct-2512-4bit
python -c "from huggingface_hub import snapshot_download snapshot_download('mlx-community/Devstral-2-123B-Instruct-2512-4bit',local_dir='/Users/codrut/devstral-2-4bit-mlx')"Run
mlx_lm.chat --model ~/devstral-2-4bit-mlxStart as a server
In another terminal window I have installed mistral-vibe
in my ~/.vibe/config.toml
I have added
The problem seems to be that the answer from LLM is very very slow
in the server terminal I can see
is there any solution to this?
All reactions