Giter VIP home page Giter VIP logo

gpt4all.unity's Introduction

gpt4all.unity

License: MIT

This is Unity3d bindings for the gpt4all. It provides high-performance inference of large language models (LLM) running on your local machine.

This bindings use outdated version of gpt4all. They don't support latest models architectures and quantization. Here is a list of models that I have tested. For more information check this issue.

Main features:

  • Chat-based LLM that can be used for NPCs and virtual assistants
  • Models of different sizes for commercial and non-commercial use
  • Fast CPU based inference
  • Runs on local users device without Internet connection
  • Free and open source

Supported platforms:

  • Windows (x86_64)
  • MacOS (Intel and ARM)
  • Linux
  • iOS
  • Android
  • WebGL

Samples

dwarf.mp4

"mpt-7b-chat" model, roleplaying dwarf NPC on Macbook with M1 Pro

Getting started

Clone this repository and open it as regular Unity project. It should be working starting from Unity 2019.4 LTS.

Alternatively you can add this repository to your existing project as a Unity Package. Add it by this git URL to your Unity Package Manager:

https://github.com/Macoron/gpt4all.unity.git?path=/Packages/com.gpt4all.unity

Downloading model weights

You would need to download model weights in order to use this library. You can find full list of officially supported gpt4all models and their download links here.

Some models can't be used for commercial projects or has other restrictions. Check their licenses before using them in your project.

After downloading model, place it StreamingAssets/Gpt4All folder and update path in LlmManager component.

Here is models that I've tested in Unity:

Compiling C++ libraries from source

TBD

License

This project is licensed under the MIT License.

It uses compiled libraries of gpt4all and llama.cpp which are also under MIT license.

Models aren't include in this repository. Please contact original models creators to learn more about their licenses.

gpt4all.unity's People

Contributors

macoron 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.