SAVRN
Search Contact SAVRN

Open-weight model · Text classification

Bangla-twoclass-Sentiment-Analyzer

by Arunava Kar Arunavaonly/Bangla-twoclass-Sentiment-Analyzer

This model is a fine-tuned version of xlm-roberta-base on the None dataset. It achieves the following results on the evaluation set: The following hyperparameters were used during training: - learningrate: 3e-05 - trainbatchsize: 16 - evalbatchsize: 16 …

Parameters278M
Context514
Weights2.2 GB
Licensemit
AccessOpen weights
Monthly Downloads428.8k

Runs On

What it takes to serve Bangla-twoclass-Sentiment-Analyzer (278M 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.6 GB 0.7 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.3 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.2 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 Bangla-twoclass-Sentiment-Analyzer

Two labels, one language. Bangla sentiment classification is the whole job for this 278M parameter model, fine-tuned from xlm-roberta-base for 1,800 steps at a batch size of 16, with the fine-tuning dataset left unnamed. At 16-bit the weights come to 0.6 GB and 0.7 GB of memory is needed. The cheapest configuration on the table is a single MI300X, 192 GB, $1.85 per hour on-demand, far more card than the work requires, so we would put it on shared capacity rather than a device of its own.

MIT terms allow commercial use, modification and redistribution with the notices intact, so the license will not block a deployment. What to check is the lineage and the data: the relation to FacebookAI/xlm-roberta-base is recorded, the training set is not, and no evaluation results are reported. The 514-token window suits short reviews and messages, and the files ship as safetensors and pytorch.

Model Card

By Arunava Kar, published under mit, revision b2b3ca5db5ea.

This model is a fine-tuned version of xlm-roberta-base on the None dataset. It achieves the following results on the evaluation set: The following hyperparameters were used during training: - learningrate: 3e-05 - trainbatchsize: 16 - evalbatchsize: 16 - lrschedulertype: linear - trainingsteps: 1800 - mixedprecisiontraining: Native AMP - Transformers 4.37.2 - Pytorch 2.1.0+cu121 - Datasets 2.17.1 - Tokenizers 0.15.2

Read Arunava Kar's full model card

This model is a fine-tuned version of xlm-roberta-base on the None dataset. It achieves the following results on the evaluation set: - Loss: 2.7755 - F1: 0.6113

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training: - learning_rate: 3e-05 - train_batch_size: 16 - eval_batch_size: 16 - seed: 42 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - training_steps: 1800 - mixed_precision_training: Native AMP

Training results

Training Loss Epoch Step Validation Loss F1
No log 2.53 200 0.9869 0.4635
No log 5.06 400 0.8978 0.5858
0.8692 7.59 600 1.1978 0.6149
0.8692 10.13 800 1.5145 0.6112
0.3138 12.66 1000 2.0353 0.6041
0.3138 15.19 1200 2.4316 0.6203
0.3138 17.72 1400 2.6025 0.6002
0.0769 20.25 1600 2.6247 0.6082
0.0769 22.78 1800 2.7755 0.6113

Framework versions

  • Transformers 4.37.2
  • Pytorch 2.1.0+cu121
  • Datasets 2.17.1
  • Tokenizers 0.15.2

Configuration

Architecture
XLMRobertaForSequenceClassification
Context length (tokens)
514
Layers
12
Hidden size
768
Feed-forward size
3,072
Attention heads
12
Vocabulary size
250,002
Stored precision
float32
Model type
xlm-roberta

Identity and Version

Repository
Arunavaonly/Bangla-twoclass-Sentiment-Analyzer
Publisher
Arunava Kar
Task
Text classification
Modality
Text
Library
transformers
Parameters
278M parameters
Languages
xlm-roberta
Revision
b2b3ca5db5eaf56a8542ee9deff888d5fa1b5cad
First published
2023-09-03
Last updated
2024-02-24

Files and Weights

11 files, 2.2 GB in total. The weights are 3 files totalling 2.2 GB in bin, safetensors.

Weights3 files · 2.2 GB
Configuration2 files · 1.2 KB
Tokenizer2 files · 17.1 MB
Documentation1 file · 1.9 KB
Other2 files · 5.1 MB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights1.1 GB e05b68f9c58d
pytorch_model.binWeights1.1 GB f9c360e628a7
training_args.binWeights4.7 KB 3b3e25352f6d
config.jsonConfiguration924 B
special_tokens_map.jsonConfiguration280 B
README.mdDocumentation1.9 KB
runs/Feb24_13-59-05_e677ac1d2c6a/events.out.tfevents.1708783148.e677ac1d2c6a.5050.0Other8.3 KB ee12d76fb1e9
sentencepiece.bpe.modelOther5.1 MB cfc8146abe2a
.gitattributesRepository1.6 KB
tokenizer.jsonTokenizer17.1 MB 9a4661b2cb6b
tokenizer_config.jsonTokenizer1.1 KB

License and Download

License
mit
Access
Open weights, no gate
Download size
2.2 GB
Download from Arunava Kar

Released by Arunava Kar through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

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

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

Compare Bangla-twoclass-Sentiment-Analyzer

Questions About Bangla-twoclass-Sentiment-Analyzer

How much GPU memory does Bangla-twoclass-Sentiment-Analyzer need?

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

What is the cheapest GPU to run Bangla-twoclass-Sentiment-Analyzer 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 Bangla-twoclass-Sentiment-Analyzer commercially?

Yes. Bangla-twoclass-Sentiment-Analyzer is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

What is Bangla-twoclass-Sentiment-Analyzer's context length?

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

Similar Models

Model · Text classification

snd_sentiment_analysis

Danish Mahdi

This repository contains a fine-tuned XLM-RoBERTa Base model for 3-class sentiment classification in Sindhi. The model predicts one of the following labels: - positive - neutral - negative This model is intended for research, experimentation, and lightweight production prototyping on Sindhi-language sentiment analysis tasks. It may be useful for short-text classification such as reviews, feedback, and social-media snippets. It should not be used as the only basis for high-stakes decisions. Performance can vary by domain, dialect, and writing style, and human review is recommended when errors could affect people or organizations. The saved model artifacts in this repository report the…

Open weights mit 278M parameters 514 tokens transformers

We have updated the new reranker, supporting larger lengths, more languages, and achieving better performance. More details please refer to our Github: FlagEmbedding. FlagEmbedding focuses on retrieval-augmented LLMs, consisting of the following projects currently: - 3/18/2024: Release new rerankers, built upon powerful M3 and LLM (GEMMA and MiniCPM, not so large actually) backbones, supporitng multi-lingual processing and larger inputs, massive improvements of ranking performances on BEIR, C-MTEB/Retrieval, MIRACL, LlamaIndex Evaluation. - 3/18/2024: Release Visualized-BGE, equipping BGE with visual capabilities. Visualized-BGE can be utilized to generate embeddings for hybrid image-text…

Open weights mit 278M parameters 514 tokens sentence-transformers

This model is a fine-tuned version of xlm-roberta-base on the Language Identification dataset. This model is an XLM-RoBERTa transformer model with a classification head on top (i.e. a linear layer on top of the pooled output). For additional information please refer to the xlm-roberta-base model card or to the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. You can directly use this model as a language detector, i.e. for sequence classification tasks. Currently, it supports the following 20 languages: arabic (ar), bulgarian (bg), german (de), modern greek (el), english (en), spanish (es), french (fr), hindi (hi), italian (it), japanese (ja), dutch (nl)…

Open weights mit 278M parameters 514 tokens transformers

Model · Text classification

Prompt-Guard-86M

Meta Llama

LLM-powered applications are susceptible to prompt attacks, which are prompts intentionally designed to subvert the developer’s intended behavior of the LLM. Categories of prompt attacks include prompt injection and jailbreaking: - Prompt Injections are inputs that exploit the concatenation of untrusted data from third parties and users into the context window of a model to get a model to execute unintended instructions. - Jailbreaks are malicious instructions designed to override the safety and security features built into a model. Prompt Guard is a classifier model trained on a large corpus of attacks, capable of detecting both explicitly malicious prompts as well as data that contains…

Access requested at publisher llama3.1 279M parameters transformers

Model · Text classification

SciFive-base-Pubmed_PMC

Razent

Paper: SciFive: a text-to-text transformer model for biomedical literature Authors: Long N. Phan, James T. Anibal, Hieu Tran, Shaurya Chanana, Erol Bahadroglu, Alec Peltekian, Grégoire Altan-Bonnet For more details, do check out our Github repo.

Open weights 223M parameters transformers

Model · Text classification

roberta-large-mnli

Facebook AI community

roberta-large-mnli is the RoBERTa large model fine-tuned on the Multi-Genre Natural Language Inference (MNLI) corpus. The model is a pretrained model on English language text using a masked language modeling (MLM) objective. Use the code below to get started with the model. The model can be loaded with the zero-shot-classification pipeline like so: You can then use this pipeline to classify sequences into any of the class names you specify. For example: This fine-tuned model can be used for zero-shot classification tasks, including zero-shot sentence-pair classification (see the GitHub repo for examples) and zero-shot sequence classification. The model should not be used to intentionally…

Open weights mit 356M parameters 514 tokens transformers