CoolFace
Modelpublic

onnx-community/distilbert-sentiment-demo-ONNX

sourceHugging Faceapache-2.0updated 11d agoView on Hugging Face
0likes80downloads
Model Card

distilbert-sentiment-demo (ONNX)

This is an ONNX version of lachiania/distilbert-sentiment-demo. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js

See the pipeline documentation for text-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextClassificationPipeline


<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

distilbert-sentiment-demo

This model is a fine-tuned version of distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.4257
  • —Accuracy: 0.8462

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: 2e-05
  • —trainbatchsize: 16
  • —evalbatchsize: 16
  • —seed: 42
  • —optimizer: Use OptimizerNames.ADAMWTORCHFUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • —lrschedulertype: linear
  • —num_epochs: 2

Training results

Training LossEpochStepValidation LossAccuracy
0.42341.05340.38140.8330
0.25312.010680.37410.8593

Framework versions

  • —Transformers 5.17.0
  • —Pytorch 2.11.0+cu128
  • —Datasets 5.0.1
  • —Tokenizers 0.23.1