Giter Club home page Giter Club logo

genossgpt's Introduction

Genoss GPT

One line replacement for openAI ChatGPT & Embeddings powered by OSS models

Genoss

Genoss is a pioneering open-source initiative that aims to offer a seamless alternative to OpenAI models such as GPT 3.5 & 4, using open-source models like GPT4ALL.

Features

  • Open-Source: Genoss is built on top of open-source models like GPT4ALL.
  • One Line Replacement: Genoss is a one-line replacement for OpenAI ChatGPT API.

Demo

Chat Completion and Embedding with GPT4ALL

genoss-demo-last.mp4

Supported Models

  • GPT4ALL Model & Embeddings
  • More models coming soon!

Starting Up

Before you embark, ensure Python 3.11 or higher is installed on your machine.

Models Installation

Install GPT4ALL Model The first step is to install GPT4ALL, which is the only supported model at the moment. You can do this by following these steps:
  1. Clone the repository:
git clone --recurse-submodules [email protected]:nomic-ai/gpt4all.git
  1. Navigate to the backend directory:
cd gpt4all/gpt4all-backend/
  1. Create a new build directory and navigate into it:
mkdir build && cd build
  1. Configure and build the project using cmake:
cmake ..
cmake --build . --parallel
  1. Verify that libllmodel.* exists in gpt4all-backend/build.

  2. Navigate back to the root and install the Python package:

cd ../../gpt4all-bindings/python
pip3 install -e .
  1. Download it to your local machine from here and put it in the local_models directory as local_models/ggml-gpt4all-j-v1.3-groovy.bin

Running the Application

pip3 install -r requirements.txt

After the Python package has been installed, you can run the application. The Uvicorn ASGI server can be used to run your application:

uvicorn main:app --host 0.0.0.0 --port 4321

This command launches the Genoss application on port 4321 of your machine.

Genoss API Usage

The Genoss API is a one-line replacement for the OpenAI ChatGPT API. It supports the same parameters and returns the same response format as the OpenAI API.

Simply replace the OpenAI API endpoint with the Genoss API endpoint and you're good to go!

Modify the models to the supported list of models and you're good to go!

You can find the API documentation at /docs or /redoc.

Upcoming Developments

While GPT4ALL is the only model currently supported, we are planning to add more models in the future. So, stay tuned for more exciting updates.

The vision:

  • Allow LLM models to be ran locally
  • Allow LLM to be ran locally using HuggingFace
  • ALlow LLM to be ran on HuggingFace and just be a wrapper around the inference API.
  • Allow easy installation of LLM models locally
  • Allow users to use cloud provider solutions such as GCP, AWS, Azure, etc ...
  • Allow users management with API keys
  • Have all kinds of models available for use (text to text, text to image, text to audio, audio to text, etc.)
  • Be compatible with OpenAI API for models that are compatible with OpenAI API

Contributions

Your contributions to Genoss are immensely appreciated! Feel free to submit any issues or pull requests.

License

Genoss is licensed under the Apache2 License. For more details, refer to the LICENSE file.

genossgpt's People

Contributors

mattzcarey avatar maximethoonsen avatar stangirard avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.