Skip to content

This codebase is for an React and Electron-based app that executes the FreedomGPT LLM locally (offline and private) on Mac and Windows using a chat-based interface (based on Alpaca Lora)

License

Notifications You must be signed in to change notification settings

intpfx/FreedomGPT

 
 

Repository files navigation

Freedom GPT

GitHub license

GitHub release

GitHub stars

GitHub All Releases

Introduction

This is the repository for the Freedom GPT application. This application is built using Electron and React. It is a desktop application that allows users to run alpaca models on their local machine.

Prerequisites

If you want to run the application directly

git clone https://github.com/ohmplatform/FreedomGPT.git
cd FreedomGPT
yarn install
yarn start:prod

If you want to contribute to the project

Working with the repository

git clone --recursive https://github.com/ohmplatform/FreedomGPT.git
cd FreedomGPT
yarn install

Building the alpaca.cpp library

Building from Source (MacOS/Linux)

cd alpaca.cpp
make chat

Building from Source (Windows)

cd alpaca.cpp
cmake .
cmake --build . --config Release
  • You should now have a Release folder with a chat.exe file inside it. You can run this file to test the chat client.

Changing the API URL

We are using http://localhost:8889 as the API URL, you can change it in the file src/index.ts

Running the application

To run the application, run the following command in your terminal:

yarn start

⦻ Make sure you are in the root directory of the project.

Credits

This project utilizes several open-source packages and libraries, without which this project would not have been possible:

"alpaca.cpp" by antimatter15 - a C++ library for Alpaca API. https://github.com/antimatter15/alpaca.cpp

"LLAMA" by Facebook Research - a low-latency, large-scale approximate nearest neighbor search algorithm. https://github.com/facebookresearch/llama

"Alpaca" by Stanford CRFM - a framework for understanding and improving the efficiency and robustness of algorithms. https://crfm.stanford.edu/2023/03/13/alpaca.html

"alpaca-lora" by tloen - a Python library for working with LoRa radios and the Alpaca protocol. https://github.com/tloen/alpaca-lora

"alpaca-lora-7b" by Hugging Face - a pre-trained language model for the Alpaca protocol. https://huggingface.co/Sosaka/Alpaca-native-4bit-ggml/tree/main

We would like to express our gratitude to the developers of these packages and their contributors for making their work available to the public under open source licenses. Their contributions have enabled us to build a more robust and efficient project.

LICENSE

See the LICENSE file.

About

This codebase is for an React and Electron-based app that executes the FreedomGPT LLM locally (offline and private) on Mac and Windows using a chat-based interface (based on Alpaca Lora)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.4%
  • CSS 3.3%
  • HTML 0.3%