metadata
license: apache-2.0
library_name: unity-sentis
pipeline_tag: sentence-similarity
tags:
- unity-inference-engine
Mini LM in Unity 6 with Inference Engine
This is the Mini LM v6 model model running in Unity 6 with Inference Engine. Mini LM is a sentence similarity model that compares different sentences and gives a score depending on how similar they are.
How to Use
- Create a new scene in Unity 6;
- Install
com.unity.ai.inferencefrom the package manager; - Add the
RunMiniLM.csscript to the Main Camera; - Drag the
MiniLMv6.onnxasset from themodelsfolder into theModel Assetfield; - Drag the
vocab.txtasset from thedatafolder into theVocab Assetfield;
Preview
Enter play mode. If working correctly the sentence similarity score will be logged to the console.
Inference Engine
Inference Engine is a neural network inference library for Unity. Find out more here.