ONNX Model Zoo

cryptofyre-ai/roberta-spam-onnx

By cryptofyre-ai · ↓ 0 · ♥ 1 · Updated 2025-08-16

What's in this repo

This page lists the files in cryptofyre-ai/roberta-spam-onnx, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 10 files, including 6 .json, 1 .md, 1 .txt, 1 .onnx
  • Last updated 2025-08-16

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

ONNX Distilled Spam Classifier

This repository contains a distilled and quantized version of a RoBERTa-based spam classification model, optimized for high-performance CPU inference in the ONNX format.

This model was created by distilling mshenoda/roberta-spam for the purpose of efficient on-device and cross-platform deployment.

Model Description

  • Model Type: A distilled RoBERTa-base model.
  • Task: Spam classification (binary classification).
  • Format: ONNX, with dynamic quantization.
  • Key Features: Lightweight, fast, and ideal for CPU-based inference.

Intended Uses & Limitations

This model is designed for client-side applications where performance and low resource usage are critical. It's perfect for:

  • Desktop applications (Windows, Linux, macOS)
  • Mobile applications (with an appropriate ONNX runtime)
  • Edge devices

As a distilled model, there may be a minor trade-off in accuracy compared to the larger roberta-base teacher model, in exchange for a significant boost in speed and a smaller memory footprint.

How to Get Started

You can use this model directly with the onnxruntime and transformers libraries.

1. Installation

First, make sure you have the necessary libraries installed. For GPU usage, install onnxruntime-gpu; for CPU-only, onnxruntime is sufficient.

# For CPU
pip install onnxruntime transformers

# OR for NVIDIA GPU
pip install onnxruntime-gpu transformers

Model info

text-classification onnxruntime
onnxruntime onnx roberta spam text-classification distilled quantized en base_model:mshenoda/roberta-spam base_model:quantized:mshenoda/roberta-spam license:mit region:us
↓ 0 ♥ 1

Created: 2025-08-16

Updated: 2025-08-16

View on Hugging Face

Files (10)

.gitattributes
README.md
config.json
merges.txt
model.onnx ONNX
ort_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.json

Related models