ONNX Model Zoo

lelloman/bert-torrent-classifier

By lelloman · ↓ 0 · ♥ 0 · Updated 2026-01-21

What's in this repo

This page lists the files in lelloman/bert-torrent-classifier, including model_embedded.onnx.

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

ONNX files

File Size Download
model_embedded.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

BERT Torrent Classifier

A fine-tuned BERT-tiny model for classifying torrent content into media types.

Model Details

  • Base model: prajjwal1/bert-tiny
  • Task: Multi-class text classification
  • Labels: audio, video, software, book, other
  • Format: ONNX (with embedded weights)
  • Size: ~17MB

Training

  • Training data: ~10k torrent names with 4-LLM consensus voting
  • LLM ensemble: qwen2.5:3b, gemma3:4b, mistral:7b, qwen3-coder:30b
  • Consensus rules: 4-agree = high confidence, 3v1 = majority vote, 2v2 = discarded
  • Accuracy: ~92% on held-out test set

Usage

This model is designed for use with mimmo, a Rust library for torrent content classification. The ONNX model is embedded directly in the binary at compile time.

// Model is automatically downloaded during build
const MODEL_BYTES: &[u8] = include_bytes!("../models/bert/model_embedded.onnx");
const TOKENIZER_JSON: &str = include_str!("../models/bert/tokenizer.json");

Performance

  • Inference: <10ms per sample (CPU)
  • Used as ML fallback when pattern matching is inconclusive

Files

  • model_embedded.onnx - ONNX model with embedded weights
  • tokenizer.json - HuggingFace tokenizer
  • vocab.txt - Vocabulary file
  • config.json - Model configuration

License

MIT

Model info

onnx bert text-classification torrent content-classification en base_model:prajjwal1/bert-tiny base_model:quantized:prajjwal1/bert-tiny license:mit region:us
↓ 0 ♥ 0

Created: 2026-01-21

Updated: 2026-01-21

View on Hugging Face

Files (6)

.gitattributes
README.md
config.json
model_embedded.onnx ONNX
tokenizer.json
vocab.txt

Related models