SmolLM3-3B for Unity Sentis
This repository contains optimized versions of the SmolLM3-3B model, specifically formatted for use in Unity Sentis.
Available Versions
| File Name | Format | Precision | Size | Best For |
|---|---|---|---|---|
model.sentis |
Sentis | FP32 | ~13GB | High-fidelity source / Desktop |
model_FP16.sentis |
Sentis | FP16 | ~6.5GB | Balanced Performance / Modern GPUs |
model_Uint8.sentis |
Sentis | Uint8 | ~3.3GB | Maximum Performance / Mobile / Low-end PC |
How to use in Unity
- Install Sentis: Ensure you have the
com.unity.sentispackage installed via the Unity Package Manager (2.1.0+ recommended). - Download Model: Download the
.sentisfile of your choice. - Import: Drag the
.sentisfile into your Unity Project. - Setup Tokenizer: You will need a compatible tokenizer (like the
tokenizer.jsonfrom the base SmolLM3 repo) to convert text to tokens.
Basic C# Loading Snippet
using Unity.Sentis;
using UnityEngine;
public class MyLLM : MonoBehaviour {
public ModelAsset modelAsset;
private IWorker engine;
void Start() {
Model runtimeModel = ModelLoader.Load(modelAsset);
engine = WorkerFactory.CreateWorker(BackendType.GPUCompute, runtimeModel);
}
}
- Downloads last month
- 24
Model tree for dtaddis/SmolLM3-3B-Unity
Base model
HuggingFaceTB/SmolLM3-3B-Base
Finetuned
HuggingFaceTB/SmolLM3-3B