Chat with your favourite LLaMA models in a native macOS app
LlamaChat is a macOS app that allows you to chat with LLaMA, Alpaca and GPT4All models all running locally on your Mac.
LlamaChat requires macOS 13 Ventura, and either an Intel or Apple Silicon processor.
Download a .dmg
containing the latest version ๐ here ๐.
git clone https://github.com/alexrozanski/LlamaChat.git
cd LlamaChat
open LlamaChat.xcodeproj
NOTE: LlamaChat includes Sparkle for autoupdates, which will fail to load if LlamaChat is not signed. Ensure that you use a valid signing certificate when building and running LlamaChat.
NOTE: model inference runs really slowly in Debug builds, so if building from source make sure that the Build Configuration
in LlamaChat > Edit Scheme... > Run
is set to Release
.
.pth
PyTorch checkpoints form or the .ggml
format..ggml
files compatible with LlamaChat and llama.cpp within the app.NOTE: LlamaChat doesnโt ship with any model files and requires that you obtain these from the respective sources in accordance with their respective terms and conditions.
.pth
) or pre-converted .ggml
file (the format used by llama.cpp, which powers LlamaChat)..pth
format:
7B
, 13B
etc) in the conversion flow, which includes the consolidated.NN.pth
and params.json
files.tokenizer.model
. E.g. to use the LLaMA-13B model, your model directory should look something like the below, and you should select the 13B
directory:.
โ ...
โโโ 13B
โย ย โโโ checklist.chk.txt
โย ย โโโ consolidated.00.pth
โย ย โโโ consolidated.01.pth
โย ย โโโ params.json
โ ...
โโโ tokenizer.model
.ggml
files, make sure these are up-to-date. If you run into problems, you may need to use the conversion scripts from llama.cpp:
Pull Requests and Issues are welcome and much appreciated. Please make sure to adhere to the Code of Conduct at all times.
LlamaChat is fully built using Swift and SwiftUI, and makes use of llama.swift under the hood to run inference and perform model operations.
The project is mostly built using MVVM and makes heavy use of Combine and Swift Concurrency.
LlamaChat is licensed under the MIT license.