johnmai-dev / ChatMLX

🤖✨ChatMLX is a modern, open-source, high-performance chat application for MacOS based on large language models.
Apache License 2.0
635 stars 42 forks source link
chat llama mlx mlx-swift qwen swift swift-transformers swiftui transformer transformers

English | 简体中文

Contributors Forks Stargazers Issues Apache License


Logo

ChatMLX

ChatMLX is a modern, open-source, high-performance chat application for MacOS based on large language models, based on the powerful performance of MLX and Apple silicon. It supports multiple models, providing users with a rich variety of conversation options. It runs LLM locally to ensure user privacy and security.

Report Bug · Request Feature · Download

Features 🚀

[!NOTE]

Compatible with macOS 14.0 and later.

https://github.com/user-attachments/assets/75984252-058f-4782-ad5d-33b3ce772639

iShot_2024-08-31_23.55.39.png

FAQ

1. After installing on macOS, it shows "The file is damaged" or there’s no response when opening it.

ChatMLX is not signed, which causes macOS security checks to block it.

If you encounter the "The file is damaged" error after installation, follow these steps:

xattr -cr /Applications/ChatMLX.app

You should then be able to open it normally.

If you see this message:

option -r not recognized

usage: xattr [-slz] file [file ...]
       xattr -p [-slz] attr_name file [file ...]
       xattr -w [-sz] attr_name attr_value file [file ...]
       xattr -d [-s] attr_name file [file ...]
       xattr -c [-s] file [file ...]

The first form lists the names of all xattrs on the given file(s).
The second form (-p) prints the value of the xattr attr_name.
The third form (-w) sets the value of the xattr attr_name to attr_value.
The fourth form (-d) deletes the xattr attr_name.
The fifth form (-c) deletes (clears) all xattrs.

options:
  -h: print this help
  -s: act on symbolic links themselves rather than their targets
  -l: print long format (attr_name: attr_value)
  -z: compress or decompress (if compressed) attribute value in zip format

Execute this command instead:

xattr -c /Applications/ChatMLX.app/*

If that doesn’t work, try running this command:

sudo xattr -d com.apple.quarantine /Applications/ChatMLX.app/

Star History 🌟

Star History Chart

(back to top)