HectorPulido / UnityAndLLama2

This is a binding between a Llama2 LLM and Unity for Gamedev

Home Page:https://pequesoft.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnityAndLLama2

This is an open-source project meant to connect Unity with the Meta LLama2 Large language model using Python websockets. It's a client-server architecture, useful for online or offline games Banner

Table of Contents

Getting Started

Prerequisites

  • Python 3.6+
  • Unity 2020.3+

Installation

  1. Create a new project in Unity
  2. Clone this repository
    git clone https://github.com/HectorPulido/UnityAndLLama2.git
    
  3. Drag and drop the "clientSource" content into the project
  4. Then enter to the "llamaServer" folder
  5. Is very useful to create a virtual enviroment, install the dependencies with pip install -r requirements.txt
  6. Copy the .env.test into a .env file and changit as you want

Usage

Running the Server

Start the server python server.py

If working correctly, the server should display Listen in: localhost:8765

Running the Unity Client

  1. Open the UnityProject folder with the Unity Editor
  2. Open the sample scene
  3. Press the play button to start the client

Contributing

Your contributions are greatly appreciated! Please follow these steps:

  1. Fork the project
  2. Create your feature branch git checkout -b feature/MyFeature
  3. Commit your changes git commit -m "my cool feature"
  4. Push to the branch git push origin feature/MyFeature
  5. Open a Pull Request

License

Every basecode made by my is under MIT licence


Let's connect 😋

Hector's LinkedIn     Hector's Twitter     Hector's Twitch     Hector's Youtube     Pequesoft website    

About

This is a binding between a Llama2 LLM and Unity for Gamedev

https://pequesoft.net

License:MIT License


Languages

Language:ShaderLab 77.6%Language:HLSL 13.5%Language:Python 5.3%Language:C# 3.6%