Skip to content

A demo for running Llama 3.2 1B in Unity.

License

Notifications You must be signed in to change notification settings

andyroiiid/UnityLLMDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity LLM Demo

The project is in 6000.0.29f1 but should work under any recent Unity version.

Screenshot

How to clone

git clone --recursive https://github.com/andyroiiid/UnityLLMDemo.git

Or if you've already cloned without --recursive:

git submodule update --init

Dependencies & Licenses

Code explanation

Assets/Scripts/MyModel.cs

The model interface and chat history implementation.

You can remove _history-related code if you just need an one-off completion.

Check https://github.com/microsoft/onnxruntime-genai/tree/main/examples for more examples.

Assets/Scripts/MyChat.cs

A (very) basic UI controller.

Assets/Scripts/StringBuilderExtensions.cs

Just one StringBuilder helper function.

License

Here's a reminder that this repository is GPL-licensed.

The code is super simple, and you can write your own in less than an hour - just don't copy paste directly from this repo.

About

A demo for running Llama 3.2 1B in Unity.

Topics

Resources

License

Stars

Watchers

Forks

Languages