{"id":22164360,"url":"https://github.com/andyroiiid/unityllmdemo","last_synced_at":"2026-05-03T16:32:49.260Z","repository":{"id":266006293,"uuid":"897087868","full_name":"andyroiiid/UnityLLMDemo","owner":"andyroiiid","description":"A demo for running Llama 3.2 1B in Unity.","archived":false,"fork":false,"pushed_at":"2024-12-02T02:40:30.000Z","size":5178,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T16:11:48.962Z","etag":null,"topics":["llama3","llm","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andyroiiid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-02T02:07:39.000Z","updated_at":"2025-03-15T19:00:17.000Z","dependencies_parsed_at":"2024-12-02T03:37:52.854Z","dependency_job_id":null,"html_url":"https://github.com/andyroiiid/UnityLLMDemo","commit_stats":null,"previous_names":["andyroiiid/unityllmdemo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyroiiid%2FUnityLLMDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyroiiid%2FUnityLLMDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyroiiid%2FUnityLLMDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyroiiid%2FUnityLLMDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyroiiid","download_url":"https://codeload.github.com/andyroiiid/UnityLLMDemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245304873,"owners_count":20593626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["llama3","llm","unity"],"created_at":"2024-12-02T05:07:03.360Z","updated_at":"2026-05-03T16:32:49.200Z","avatar_url":"https://github.com/andyroiiid.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Unity LLM Demo\n\nThe project is in 6000.0.29f1 but should work under any recent Unity version.\n\n![Screenshot](Screenshot.png)\n\n## How to clone\n\n```shell\ngit clone --recursive https://github.com/andyroiiid/UnityLLMDemo.git\n```\n\nOr if you've already cloned without `--recursive`:\n\n```shell\ngit submodule update --init\n```\n\n## Dependencies \u0026 Licenses\n\n- [ONNX Runtime](https://github.com/microsoft/onnxruntime) - [MIT License](https://github.com/microsoft/onnxruntime/blob/main/LICENSE)\n    - Assets/Microsoft.ML.OnnxRuntimeGenAI/onnxruntime.dll\n    - Assets/Microsoft.ML.OnnxRuntimeGenAI/onnxruntime_providers_shared.dll\n- [ONNX Runtime generate() API](https://github.com/microsoft/onnxruntime-genai) - [MIT License](https://github.com/microsoft/onnxruntime-genai/blob/main/LICENSE)\n    - Assets/Microsoft.ML.OnnxRuntimeGenAI/*.cs\n    - Assets/Microsoft.ML.OnnxRuntimeGenAI/onnxruntime-genai.dll\n- [Llama 3.2 ONNX models](https://huggingface.co/onnx-community/Llama-3.2-1B-Instruct-ONNX) - [LLAMA 3.2 Community License](https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE)\n    - Assets/StreamingAssets/Llama-3.2-1B-Instruct-ONNX/*\n\n## Code explanation\n\n### Assets/Scripts/MyModel.cs\n\nThe model interface and chat history implementation.\n\nYou can remove `_history`-related code if you just need an one-off completion.\n\nCheck https://github.com/microsoft/onnxruntime-genai/tree/main/examples for more examples.\n\n### Assets/Scripts/MyChat.cs\n\nA (very) basic UI controller.\n\n### Assets/Scripts/StringBuilderExtensions.cs\n\nJust one `StringBuilder` helper function.\n\n## License\n\n**Here's a reminder that this repository is [GPL-licensed](LICENSE)**.\n\nThe code is super simple, and you can write your own in less than an hour - just don't copy paste directly from this\nrepo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyroiiid%2Funityllmdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyroiiid%2Funityllmdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyroiiid%2Funityllmdemo/lists"}