{"id":14964553,"url":"https://github.com/alexrozanski/llamachat","last_synced_at":"2025-05-16T07:00:27.885Z","repository":{"id":152584823,"uuid":"618995145","full_name":"alexrozanski/LlamaChat","owner":"alexrozanski","description":"Chat with your favourite LLaMA models in a native macOS app","archived":false,"fork":false,"pushed_at":"2023-06-09T00:13:34.000Z","size":15311,"stargazers_count":1502,"open_issues_count":25,"forks_count":61,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-05-11T02:01:49.758Z","etag":null,"topics":["ai","llama","llamacpp","machine-learning","macos","swift","swiftui"],"latest_commit_sha":null,"homepage":"https://llamachat.app","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexrozanski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["alexrozanski"]}},"created_at":"2023-03-26T00:10:36.000Z","updated_at":"2025-05-02T18:36:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"74802601-58f5-4fcf-b821-03dfa8f54ffd","html_url":"https://github.com/alexrozanski/LlamaChat","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrozanski%2FLlamaChat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrozanski%2FLlamaChat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrozanski%2FLlamaChat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrozanski%2FLlamaChat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexrozanski","download_url":"https://codeload.github.com/alexrozanski/LlamaChat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485025,"owners_count":22078764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","llama","llamacpp","machine-learning","macos","swift","swiftui"],"created_at":"2024-09-24T13:33:22.831Z","updated_at":"2025-05-16T07:00:27.640Z","avatar_url":"https://github.com/alexrozanski.png","language":"Swift","funding_links":["https://github.com/sponsors/alexrozanski"],"categories":[],"sub_categories":[],"readme":"![LlamaChat banner](./Resources/banner-a5248619.png)\n\n\u003ch3 align=\"center\"\u003eChat with your favourite LLaMA models, right on your Mac\u003c/h2\u003e\n\u003chr /\u003e\n\n**LlamaChat** is a macOS app that allows you to chat with [LLaMA](http://github.com/facebookresearch/llama), [Alpaca](https://github.com/tatsu-lab/stanford_alpaca) and [GPT4All](https://github.com/nomic-ai/gpt4all) models all running locally on your Mac.\n\n\u003cimg src=\"https://github.com/alexrozanski/LlamaChat/raw/main/Resources/screenshot.png\" width=\"100%\"\u003e\n\n## 🚀 Getting Started\n\nLlamaChat requires macOS 13 Ventura, and either an Intel or Apple Silicon processor.\n\n### Direct Download\n\nDownload a `.dmg` containing the latest version [👉 here 👈](https://llamachat.app/api/download).\n\n### Building from Source\n\n```bash\ngit clone https://github.com/alexrozanski/LlamaChat.git\ncd LlamaChat\nopen LlamaChat.xcodeproj\n```\n\n**NOTE:** LlamaChat includes [Sparkle](https://github.com/sparkle-project/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.\n\n**NOTE:** model inference runs really slowly in Debug builds, so if building from source make sure that the `Build Configuration` in `LlamaChat \u003e Edit Scheme... \u003e Run` is set to `Release`.\n\n## ✨ Features\n\n- **Supported Models:** LlamaChat supports LLaMA, Alpaca and GPT4All models out of the box. Support for other models including [Vicuna](https://vicuna.lmsys.org/) and [Koala](https://bair.berkeley.edu/blog/2023/04/03/koala/) is coming soon. We are also looking for Chinese and French speakers to add support for [Chinese LLaMA/Alpaca](https://github.com/ymcui/Chinese-LLaMA-Alpaca) and [Vigogne](https://github.com/bofenghuang/vigogne).\n- **Flexible Model Formats:** LLamaChat is built on top of [llama.cpp](https://github.com/ggerganov/llama.cpp) and [llama.swift](https://github.com/alexrozanski/llama.swift). The app supports adding LLaMA models in either their raw `.pth` PyTorch checkpoints form or the `.ggml` format.\n- **Model Conversion:** If raw PyTorch checkpoints are added these can be converted to `.ggml` files compatible with LlamaChat and llama.cpp within the app.\n- **Chat History:** Chat history is persisted within the app. Both chat history and model context can be cleared at any time.\n- **Funky Avatars:** LlamaChat ships with [7 funky avatars](https://github.com/alexrozanski/LlamaChat/tree/main/LlamaChat/Assets.xcassets/avatars) that can be used with your chat sources.\n- **Advanced Source Naming:** LlamaChat uses Special Magic™ to generate playful names for your chat sources.\n- **Context Debugging:** For the keen ML enthusiasts, the current model context can be viewed for a chat in the info popover.\n\n\n## 🔮 Models\n\n**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.\n\n- **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](https://github.com/ggerganov/llama.cpp), which powers LlamaChat).\n- **Using LLaMA models:** When importing LLaMA models in the `.pth` format:\n  - 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.\n  - 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:\n\n```bash\n.\n│   ...\n├── 13B\n│   ├── checklist.chk.txt\n│   ├── consolidated.00.pth\n│   ├── consolidated.01.pth\n│   └── params.json\n│   ...\n└── tokenizer.model\n```\n\n- **Troubleshooting:** If using `.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](https://github.com/ggerganov/llama.cpp):\n  - For the GPT4All model, you may need to use [convert-gpt4all-to-ggml.py](https://github.com/ggerganov/llama.cpp/blob/master/convert-gpt4all-to-ggml.py)\n  - For the Alpaca model, you may need to use [convert-unversioned-ggml-to-ggml.py](https://github.com/ggerganov/llama.cpp/blob/master/convert-unversioned-ggml-to-ggml.py)\n  - You may also need to use [migrate-ggml-2023-03-30-pr613.py](https://github.com/ggerganov/llama.cpp/blob/master/migrate-ggml-2023-03-30-pr613.py) as well. For more information check out the [llama.cpp](https://github.com/ggerganov/llama.cpp) repo.\n\n\n## 👩‍💻 Contributing\n\nPull Requests and Issues are welcome and much appreciated. Please make sure to adhere to the [Code of Conduct](CODE_OF_CONDUCT.md) at all times.\n\nLlamaChat is fully built using Swift and SwiftUI, and makes use of [llama.swift](https://github.com/alexrozanski/llama.swift) under the hood to run inference and perform model operations.\n\nThe project is mostly built using MVVM and makes heavy use of Combine and Swift Concurrency.\n\n## ⚖️ License\n\nLlamaChat is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexrozanski%2Fllamachat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexrozanski%2Fllamachat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexrozanski%2Fllamachat/lists"}