Views
No views yet
| File Name | Format | Precision | Size | Best For |
|---|---|---|---|---|
model.onnx | ONNX | FP32 | ~530MB | High-fidelity source / Desktop |
model_FP16.sentis | Sentis | FP16 | ~320MB | Balanced Performance / Mobile |
model_Uint8.sentis | Sentis | Uint8 | ~160MB | Maximum Performance / WebGL / Low-end Mobile |
com.unity.sentis (2.1.0+ recommended)..sentis file based on your target platform's memory constraints..sentis file and the tokenizer.json into your Unity project.1using Unity.Sentis;
2using UnityEngine;
3
4public class TinyLLM : MonoBehaviour {
5 public ModelAsset modelAsset;
6 private IWorker engine;
7
8 void Start() {
9 Model runtimeModel = ModelLoader.Load(modelAsset);
10 // GPUCompute is recommended for mobile performance
11 engine = WorkerFactory.CreateWorker(BackendType.GPUCompute, runtimeModel);
12 }
13}