Tiny Stories in Unity 6 with Inference Engine
This is the Tiny Stories model running in Unity 6 with Inference Engine. Tiny Stories is a Large Language Model that was trained on children's stories and can create stories based on the first couple of sentences.
How to Use
- Create a new scene in Unity 6;
- Install
com.unity.ai.inferencefrom the package manager; - Install
com.unity.nuget.newtonsoft-jsonfrom the package manager; - Add the
RunTinyStories.csscript to the Main Camera; - Drag the
tinystories.onnxasset from themodelsfolder into theModel Assetfield; - Drag the
vocab.jsonasset from thedatafolder into theVocab Assetfield; - Drag the
merges.txtasset from thedatafolder into theMerges Assetfield;
Preview
Enter play mode. If working correctly the predicted text will be logged to the console.
Inference Engine
Inference Engine is a neural network inference library for Unity. Find out more here.
Disclaimer
The model was trained on children's stories so very unlikely to produce undesirable text. As an extra precaution, we removed a few tokens from vocab.json that might not be suitable for younger audiences. The original json can be found on the Tiny Stories original page.
- Downloads last month
- 14