ONNX Model Zoo

code2022/SmolLM2-135M-Instruct-Paraphrase

By code2022 · ↓ 6 · ♥ 1 · Updated 2025-11-15

What's in this repo

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

  • 1 ONNX models (.onnx files)
  • 22 files, including 7 .json, 4 .png, 4 .gif, 2 .jpg, 1 .md, 1 .txt
  • Last updated 2025-11-15

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


license: apache-2.0 datasets:

  • google-research-datasets/paws language:
  • en metrics:
  • accuracy base_model:
  • HuggingFaceTB/SmolLM2-135M-Instruct pipeline_tag: text-generation

Introduction

Running SLMs in web browsers

This repository is part of playbook for experiments on fine tuning small language models using LoRA, exporting them to ONNX and running them locally using ONNX compatibale runtime like javascript(node js) and WASM (browser)

Before you start

  • Clone the repository https://github.com/code2k13/onnx_javascript_browser_inference
  • Copy all files from this repository to the model_files directory of the cloned github repository.
  • Run npm install

To run NodeJS example (NodeJS + onnx-runtime, server side)

  • Simple run node app.js This is what you should see

NodeJS application showing paraphrasing screen NodeJS runtime memory usage

To run web browser based demo (WASM based in-browser inference)

  • Simply access web.html from a local server (example http://localhost:3000/web.html)

This is what you should see

Web browser showing memory usage when running onnx model using WASM Web browser memory usage

Citation

@misc{allal2024SmolLM,
      title={SmolLM - blazingly fast and remarkably powerful}, 
      author={Loubna Ben Allal and Anton Lozhkov and Elie Bakouch and Leandro von Werra and Thomas Wolf},
      year={2024},
}

Model info

onnx llama text-generation conversational en dataset:google-research-datasets/paws base_model:HuggingFaceTB/SmolLM2-135M-Instruct base_model:quantized:HuggingFaceTB/SmolLM2-135M-Instruct license:apache-2.0 region:us
↓ 6 ♥ 1

Created: 2025-11-15

Updated: 2025-11-15

View on Hugging Face

Files (22)

.gitattributes
README.md
added_tokens.json
config.json
docs/empty
docs/node_runtime_ram.png
docs/slm_nodejs.gif
docs/slm_web_wasm.gif
docs/thumb_small_language_model.jpg
docs/wasm_runtime_ram.png
generation_config.json
merges.txt
model.onnx ONNX
node_runtime_ram.png
slm_nodejs.gif
slm_web_wasm.gif
special_tokens_map.json
thumb_small_language_model.jpg
tokenizer.json
tokenizer_config.json
vocab.json
wasm_runtime_ram.png

Related models