LibreChat and MLX working config for Apple Silicon #5217
Unanswered
vpnwiz
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just got LibreChat working with the custom config for MLX on Mac. There is a general LibreChat MLX install guide here but it didn't work for me. Since I'm kinda new to this it took me a while to figure it out, so I wanted to share how I got it working since I couldn't find any tutorials or hits in this repo for mlx_lm. These instructions use the ~4GB model
Mistral-7B-Instruct-v0.3-4bit
from the mlx-community.Pre-req's:
MLX and mlx_lm Installation
mlx
(current version 0.21.1) with brew.brew install mlx
mlx_lm
is required for MLX to work with LibreChat, but wasn't included with Brew'smlx
package on my system. I neededpipx
to install it (sincepip
andpip3
aren't allowed with Brew).brew install pipx
pipx ensurepath
mlx_lm
withpipx
:pipx install mlx_lm
mlx_lm.server --model mlx-community/Mistral-7B-Instruct-v0.3-4bit
Ctrl+c
...and MLX should return something like:
Configure LibreChat to use MLX
~/GitHub/LibreChat
docker-compose.override.yml
file in the LibreChat directory with the contents:librechat.yaml
file in the LibreChat directory.cd ~/GitHub/LibreChat
docker compose down && docker compose up -d
Using MLX in LibreChat
Beta Was this translation helpful? Give feedback.
All reactions