ONNX Model Zoo

davanstrien/SmolLM2-135M-tldr-sft-2025-03-12_19-02

By davanstrien · ↓ 3 · ♥ 0 · Updated 2025-03-13

What's in this repo

This page lists the files in davanstrien/SmolLM2-135M-tldr-sft-2025-03-12_19-02, including model.onnx, model_bnb4.onnx, model_fp16.onnx and more.

  • 8 ONNX models (.onnx files)
  • 20 files, including 8 .onnx, 7 .json, 1 .md, 1 .txt, 1 .safetensors, 1 .bin
  • Last updated 2025-03-13

ONNX files

File Size Download
onnx/model.onnx — Download
onnx/model_bnb4.onnx — Download
onnx/model_fp16.onnx — Download
onnx/model_int8.onnx — Download
onnx/model_q4.onnx — Download
onnx/model_q4f16.onnx — Download
onnx/model_quantized.onnx — Download
onnx/model_uint8.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

Model Card for SmolLM2-135M-tldr-sft-2025-03-12_19-02

This model is a fine-tuned version of HuggingFaceTB/SmolLM2-135M. It has been trained using TRL.

Quick start

from transformers import pipeline

question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="davanstrien/SmolLM2-135M-tldr-sft-2025-03-12_19-02", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])

Training procedure

Visualize in Weights & Biases

This model was trained with SFT.

Framework versions

  • TRL: 0.14.0
  • Transformers: 4.48.3
  • Pytorch: 2.6.0
  • Datasets: 3.2.0
  • Tokenizers: 0.21.0

Citations

Cite TRL as:

@misc{vonwerra2022trl,
	title        = {{TRL: Transformer Reinforcement Learning}},
	author       = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
	year         = 2020,
	journal      = {GitHub repository},
	publisher    = {GitHub},
	howpublished = {\url{https://github.com/huggingface/trl}}
}

Model info

text-generation transformers
transformers onnx safetensors llama text-generation generated_from_trainer trl sft conversational base_model:HuggingFaceTB/SmolLM2-135M base_model:quantized:HuggingFaceTB/SmolLM2-135M text-generation-inference
↓ 3 ♥ 0

Created: 2025-03-12

Updated: 2025-03-13

View on Hugging Face

Files (20)

.gitattributes
README.md
added_tokens.json
config.json
generation_config.json
merges.txt
model.safetensors
onnx/model.onnx ONNX
onnx/model_bnb4.onnx ONNX
onnx/model_fp16.onnx ONNX
onnx/model_int8.onnx ONNX
onnx/model_q4.onnx ONNX
onnx/model_q4f16.onnx ONNX
onnx/model_quantized.onnx ONNX
onnx/model_uint8.onnx ONNX
special_tokens_map.json
tokenizer.json
tokenizer_config.json
training_args.bin
vocab.json

Related models