SuperAPI AI Directory

LlamaChat

Chat with your favourite LLaMA models in a native macOS app.

Open website

About this tool

LlamaChat is a native macOS app for chatting locally on a Mac with models such as LLaMA, Alpaca, and GPT4All.

Purpose: Run and converse with LLaMA-series models locally on a Mac without relying on cloud services. The app is built on llama.cpp and llama.swift, and model inference is performed locally.

Main capabilities:

  • Out-of-the-box support for LLaMA, Alpaca, and GPT4All models; support for models such as Vicuna and Koala is coming soon.
  • Support for multiple model formats: you can add original .pth PyTorch checkpoints or LLaMA models in .ggml format.
  • Model conversion: if you add an original PyTorch checkpoint, you can convert it within the app into a .ggml file compatible with LlamaChat and llama.cpp.
  • Chat history: chat history is persisted within the app, and both chat history and model context can be cleared at any time.
  • Fun avatars: 7 built-in fun avatars can be used for chat sources.
  • Advanced source naming: use special logic to generate fun names for chat sources.
  • Context debugging: you can view the model context corresponding to the current chat in an info popup, making debugging easier for machine learning enthusiasts.

How to use: The app requires macOS 13 Ventura and an Intel or Apple Silicon processor. You can directly download the .dmg installer containing the latest version. When building from source, note the following: LlamaChat includes Sparkle for automatic updates. If the app is not signed, Sparkle will fail to load, so a valid signing certificate should be used when building and running. In addition, model inference is very slow in Debug builds, so when building from source, set the Build Configuration in LlamaChat > Edit Scheme... > Run to Release. When importing a LLaMA model in .pth format, you should select the appropriate parameter-size directory in the conversion process (such as 7B, 13B, etc.). That directory contains the consolidated.NN.pth and params.json files; according to the LLaMA model release requirements, the parent directory should contain tokenizer.model.

Use cases and model preparation: LlamaChat does not include any model files, and users need to obtain models from the corresponding sources according to their respective terms and conditions. When using .ggml files, make sure the files are up to date. If you encounter problems, you may need to use llama.cpp's conversion scripts: GPT4All models may require convert-gpt4all-to-ggml.py; Alpaca models may require convert-unversioned-ggml-to-ggml.py; you may also need migrate-ggml-2023-03-30-pr613.py. More information can be found in the llama.cpp repository.

Contributing and licensing: Pull Requests and Issues are welcome, but the code of conduct must always be followed. LlamaChat is built entirely with Swift and SwiftUI, using llama.swift underneath for inference and model operations; the project mainly uses MVVM and makes extensive use of Combine and Swift Concurrency. LlamaChat is licensed under the MIT License.