An open API service indexing awesome lists of open source software.

https://github.com/hectorpulido/unityandllama2

This is a binding between a Llama2 LLM and Unity for Gamedev
https://github.com/hectorpulido/unityandllama2

ai gamedev unity

Last synced: 12 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](/img/LlamaUnity.gif)
## Table of Contents

- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Running the Server](#running-the-server)
- [Running the Unity Client](#running-the-unity-client)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)

## 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
  Â