SAVRN
Search Contact SAVRN

Open-weight model · Text classification

distilbert-base-multilingual-cased-sentiments-student

by Lik Xun Yuan lxyuan/distilbert-base-multilingual-cased-sentiments-student

This model is distilled from the zero-shot classification pipeline on the Multilingual Sentiment dataset using this script.

Parameters135M
Context512
Weights1.6 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads1.1M

Runs On

What it takes to serve distilbert-base-multilingual-cased-sentiments-student (135M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.3 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

SAVRN's Notes on distilbert-base-multilingual-cased-sentiments-student

When the job is tagging sentiment on customer text in several languages, a 135M parameter classifier carries it on very little hardware. Lik Xun Yuan's distilbert-base-multilingual-cased-sentiments-student loads in 0.3 GB at 16-bit, and the cheapest Index listing that carries it is one MI300X, 192 GB, at $1.85 an hour, so plan to share that card with other services.

Apache 2.0 permits commercial use, modification and redistribution, with the license, notices and any NOTICE file kept, significant changes stated, and a patent grant included. Two checks before it faces customers. It was distilled from a zero-shot classification pipeline on tyqiangz/multilingual-sentiments, and the publisher says the dataset's annotations were ignored for the sake of example, so score it against a labeled sample first. And 512 tokens is the ceiling per input, so long documents need splitting. Released May 5, 2023, last updated March 3, 2025.

Model Card

By Lik Xun Yuan, published under apache-2.0, revision cf991100d706.

This model is distilled from the zero-shot classification pipeline on the Multilingual Sentiment dataset using this script.

In reality the multilingual-sentiment dataset is annotated of course, but we'll pretend and ignore the annotations for the sake of example.

Teacher model: MoritzLaurer/mDeBERTa-v3-base-mnli-xnli
Teacher hypothesis template: "The sentiment of this text is {}."
Student model: distilbert-base-multilingual-cased

Inference example

from transformers import pipeline

distilled_student_sentiment_classifier = pipeline(
    model="lxyuan/distilbert-base-multilingual-cased-sentiments-student", 
    return_all_scores=True
)

# english
distilled_student_sentiment_classifier ("I love this movie and i would watch it again and again!")
>> [[{'label': 'positive', 'score': 0.9731044769287109},
  {'label': 'neutral', 'score': 0.016910076141357422},
  {'label': 'negative', 'score': 0.009985478594899178}]]

# malay
distilled_student_sentiment_classifier("Saya suka filem ini dan saya akan menontonnya lagi dan lagi!")
[[{'label': 'positive', 'score': 0.9760093688964844},
  {'label': 'neutral', 'score': 0.01804516464471817},
  {'label': 'negative', 'score': 0.005945465061813593}]]

# japanese
distilled_student_sentiment_classifier("私はこの映画が大好きで、何度も見ます!")
>> [[{'label': 'positive', 'score': 0.9342429041862488},
  {'label': 'neutral', 'score': 0.040193185210227966},
  {'label': 'negative', 'score': 0.025563929229974747}]]


Training procedure

Notebook link: here

Training hyperparameters

Result can be reproduce using the following commands:

Read the full model card (416 words)

Configuration

Architecture
DistilBertForSequenceClassification
Context length (tokens)
512
Vocabulary size
119,547
Stored precision
float32
Model type
distilbert

Identity and Version

Repository
lxyuan/distilbert-base-multilingual-cased-sentiments-student
Publisher
Lik Xun Yuan
Task
Text classification
Modality
Text
Library
transformers
Parameters
135M parameters
Languages
en, ar, de, es, fr, ja, zh, id
Revision
cf991100d706c13c0a080c097134c05b7f436c45
First published
2023-05-05
Last updated
2025-03-03

Files and Weights

12 files, 1.6 GB in total. The weights are 4 files totalling 1.6 GB in bin, onnx, safetensors.

Weights4 files · 1.6 GB
Configuration3 files · 1.8 KB
Tokenizer3 files · 3.9 MB
Documentation1 file · 5.8 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights541.3 MB 0ab095b69033
onnx/model.onnxWeights541.4 MB 68dcf96901fe
pytorch_model.binWeights541.3 MB ff7b7323d62a
training_args.binWeights3.6 KB d0a703ae5fa8
config.jsonConfiguration759 B
onnx/config.jsonConfiguration894 B
special_tokens_map.jsonConfiguration125 B
README.mdDocumentation5.8 KB
.gitattributesRepository1.5 KB
tokenizer.jsonTokenizer2.9 MB
tokenizer_config.jsonTokenizer373 B
vocab.txtTokenizer995.5 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
1.6 GB
Download from Lik Xun Yuan

Released by Lik Xun Yuan through its official repository on Hugging Face. Read the license.

Built From

  • Trained on (disclosed) tyqiangz/multilingual-sentiments

Memory Requirements

PrecisionWeights in memory
As published1.6 GB
16-bit0.3 GB
8-bit0.1 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About distilbert-base-multilingual-cased-sentiments-student

How much GPU memory does distilbert-base-multilingual-cased-sentiments-student need?

About 0.3 GB at 16-bit and 0.1 GB at 4-bit: the weights (135M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run distilbert-base-multilingual-cased-sentiments-student on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use distilbert-base-multilingual-cased-sentiments-student commercially?

Yes. distilbert-base-multilingual-cased-sentiments-student is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is distilbert-base-multilingual-cased-sentiments-student's context length?

512 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Text classification

turn-detector

LiveKit

An open-weights language model for contextually-aware end-of-utterance (EOU) detection in voice AI applications. The model predicts whether a user has finished speaking based on the semantic content of their transcribed speech, providing a critical complement to voice activity detection (VAD) systems. Traditional voice agents rely on voice activity detection (VAD) to determine when a user has finished speaking. VAD works by detecting the presence or absence of speech in an audio signal and applying a silence timer. While effective for detecting pauses, VAD lacks language understanding and frequently causes false positives. For example, a user who says "I need to think about that for a…

Open weights other 135M parameters 8,192 tokens transformers

Model · Text classification

roberta-base-go_emotions

Sam Lowe

Model trained from roberta-base on the goemotions dataset for multi-label classification. A version of this model in ONNX format (including an INT8 quantized ONNX version) is now available at https://huggingface.co/SamLowe/roberta-base-goemotions-onnx. These are faster for inference, esp for smaller batch sizes, massively reduce the size of the dependencies required for inference, make inference of the model more multi-platform, and in the case of the quantized version reduce the model file/download size by 75% whilst retaining almost all the accuracy if you only need inference. goemotions is based on Reddit data and has 28 labels. It is a multi-label dataset where one or multiple labels…

Open weights mit 125M parameters 514 tokens transformers

Model · Text classification

cryptobert

Mikolaj Kulakowski

For academic reference, cite the following paper: https://ieeexplore.ieee.org/document/10223689 CryptoBERT is a pre-trained NLP model to analyse the language and sentiments of cryptocurrency-related social media posts and messages. It was built by further training the vinai's bertweet-base language model on the cryptocurrency domain, using a corpus of over 3.2M unique cryptocurrency-related social media posts. (A research paper with more details will follow soon.) The model was trained on the following labels: "Bearish": 0, "Neutral": 1, "Bullish": 2 CryptoBERT's sentiment classification head was fine-tuned on a balanced dataset of 2M labelled StockTwits posts, sampled from…

Open weights mit 125M parameters 514 tokens transformers

Model · Text classification

Firebird-ModernBERT-512-RW

Noumenon, Inc.

Firebird-ModernBERT-512-RW is an experimental post-trained variant of It is a ~149M parameter ModernBERT binary classifier for distinguishing: - 0 — HUMAN The maximum sequence length is 512 tokens. This checkpoint was produced through reward-weighted classifier post-training. The original Firebird checkpoint was kept frozen as a reference model. Training examples were scored by the original classifier, difficult examples received larger loss weights, and the post-trained model was constrained against the frozen reference using a KL penalty. L = weightedcrossentropy + beta KL(reference || policy) Hard human examples received greater weighting than ordinary examples because one goal of the…

Open weights 150M parameters 8,192 tokens transformers

Model · Text classification

inclusively-classification

E-MIMIC

This model is an Italian classification model fine-tuned from the Italian BERT model for the classification of inclusive language in Italian. It has been trained to detect three classes: - inclusive: the sentence is inclusive (e.g. "Il personale docente e non docente") - notinclusive: the sentence is not inclusive (e.g. "I professori") - notpertinent: the sentence is not pertinent to the task (e.g. "La scuola è chiusa") The model has been trained on a dataset containing: - 8580 training sentences - 1073 validation sentences - 1072 test sentences The data collection has been manually annotated by experts in the field of inclusive language (dataset is not publicly available yet). The model…

Open weights cc-by-nc-sa-4.0 111M parameters 512 tokens transformers

Model · Text classification

multi-domain-sentiment-bert

ADITYA GUPTA

This is the model card of a transformers model that has been pushed on the Hub. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Use the code below to get started with the model. Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Open weights 109M parameters 512 tokens transformers