ONNX Model Zoo

dtaddis/SmolLM2-135M-Instruct-Unity

By dtaddis · ↓ 2 · ♥ 0 · Updated 2026-01-23

What's in this repo

This page lists the files in dtaddis/SmolLM2-135M-Instruct-Unity, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 13 files, including 6 .json, 2 .sentis, 1 .md, 1 .jinja, 1 .txt, 1 .onnx
  • Last updated 2026-01-23

ONNX files

File Size Download
model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

SmolLM2-135M-Instruct for Unity Sentis

This repository contains optimized versions of the SmolLM2-135M-Instruct model, specifically formatted for use in Unity Sentis.

SmolLM2-135M is an ultra-compact model that excels at on-device tasks like text rewriting, summarization, and simple NPC dialogue while maintaining an exceptionally small memory footprint.

Available Versions

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

How to use in Unity

  1. Install Sentis: Use the Unity Package Manager to install com.unity.sentis (2.1.0+ recommended).
  2. Download Model: Choose the .sentis file based on your target platform's memory constraints.
  3. Import: Drag the .sentis file and the tokenizer.json into your Unity project.

Basic C# Loading Snippet

using Unity.Sentis;
using UnityEngine;

public class TinyLLM : MonoBehaviour {
    public ModelAsset modelAsset;
    private IWorker engine;

    void Start() {
        Model runtimeModel = ModelLoader.Load(modelAsset);
        // GPUCompute is recommended for mobile performance
        engine = WorkerFactory.CreateWorker(BackendType.GPUCompute, runtimeModel);
    }
}

Model info

sentis onnx llama unity-sentis smollm2 causal-lm text-generation conversational en base_model:HuggingFaceTB/SmolLM2-135M-Instruct base_model:quantized:HuggingFaceTB/SmolLM2-135M-Instruct license:apache-2.0
↓ 2 ♥ 0

Created: 2026-01-18

Updated: 2026-01-23

View on Hugging Face

Files (13)

.gitattributes
README.md
chat_template.jinja
config.json
generation_config.json
merges.txt
model.onnx ONNX
model_fp16.sentis
model_uint8.sentis
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.json

Related models