MyGit

alexrozanski/LlamaChat

Fork: 52 Star: 1290 (更新于 1970-01-01 00:00:00)

license: MIT

Language: Swift .

Chat with your favourite LLaMA models in a native macOS app

最后发布版本: 1.2.0 ( 2023-04-21 20:16:01)

官方网址 GitHub网址

LlamaChat banner

Chat with your favourite LLaMA models, right on your Mac

LlamaChat is a macOS app that allows you to chat with LLaMA, Alpaca and GPT4All models all running locally on your Mac.

🚀 Getting Started

LlamaChat requires macOS 13 Ventura, and either an Intel or Apple Silicon processor.

Direct Download

Download a .dmg containing the latest version 👉 here 👈.

Building from Source

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.

✨ Features

  • Supported Models: LlamaChat supports LLaMA, Alpaca and GPT4All models out of the box. Support for other models including Vicuna and Koala is coming soon. We are also looking for Chinese and French speakers to add support for Chinese LLaMA/Alpaca and Vigogne.
  • Flexible Model Formats: LLamaChat is built on top of llama.cpp and llama.swift. The app supports adding LLaMA models in either their raw .pth PyTorch checkpoints form or the .ggml format.
  • Model Conversion: If raw PyTorch checkpoints are added these can be converted to .ggml files compatible with LlamaChat and llama.cpp within the app.
  • Chat History: Chat history is persisted within the app. Both chat history and model context can be cleared at any time.
  • Funky Avatars: LlamaChat ships with 7 funky avatars that can be used with your chat sources.
  • Advanced Source Naming: LlamaChat uses Special Magic™ to generate playful names for your chat sources.
  • Context Debugging: For the keen ML enthusiasts, the current model context can be viewed for a chat in the info popover.

🔮 Models

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.

  • Model formats: LlamaChat allows you to use the LLaMA family of models in either their raw Python checkpoint form (.pth) or pre-converted .ggml file (the format used by llama.cpp, which powers LlamaChat).
  • Using LLaMA models: When importing LLaMA models in the .pth format:
    • You should select the appropriate parameter size directory (e.g. 7B, 13B etc) in the conversion flow, which includes the consolidated.NN.pth and params.json files.
    • As per the LLaMA model release, the parent directory should contain 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

👩‍💻 Contributing

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.

⚖️ License

LlamaChat is licensed under the MIT license.

最近版本更新:(数据更新于 1970-01-01 00:00:00)

2023-04-21 20:16:01 1.2.0

2023-04-13 22:34:07 1.1.0

2023-04-12 20:05:00 1.0.1

2023-04-11 20:05:44 1.0

主题(topics):

ai, llama, llamacpp, machine-learning, macos, swift, swiftui

alexrozanski/LlamaChat同语言 Swift最近更新仓库

2024-12-21 13:48:53 argmaxinc/WhisperKit

2024-12-19 06:06:30 stripe/stripe-ios

2024-12-16 23:43:56 wordpress-mobile/WordPress-iOS

2024-12-04 20:33:05 Artificial-Pancreas/iAPS

2024-12-03 10:12:09 utmapp/UTM

2024-11-25 23:11:48 Alamofire/Alamofire