ONNX Model Zoo

Cohee/bert-base-uncased-emotion-onnx

By Cohee · ↓ 5 · ♥ 0 · Updated 2023-10-20

What's in this repo

This page lists the files in Cohee/bert-base-uncased-emotion-onnx, including model.onnx, model_quantized.onnx.

  • 2 ONNX models (.onnx files)
  • 10 files, including 5 .json, 2 .onnx, 1 .md, 1 .txt
  • Last updated 2023-10-20

ONNX files

File Size Download
onnx/model.onnx — Download
onnx/model_quantized.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

nateraw/bert-base-uncased-emotion converted to ONNX and quantized using optimum.


bert-base-uncased-emotion

Model description

bert-base-uncased finetuned on the emotion dataset using PyTorch Lightning. Sequence length 128, learning rate 2e-5, batch size 32, 2 GPUs, 4 epochs.

For more details, please see, the emotion dataset on nlp viewer.

Limitations and bias
  • Not the best model, but it works in a pinch I guess...
  • Code not available as I just hacked this together.
  • Follow me on github to get notified when code is made available.

Training data

Data came from HuggingFace's datasets package. The data can be viewed on nlp viewer.

Training procedure

...

Eval results

val_acc - 0.931 (useless, as this should be precision/recall/f1)

The score was calculated using PyTorch Lightning metrics.

Model info

text-classification transformers
transformers onnx bert text-classification emotion pytorch en dataset:emotion license:apache-2.0 text-embeddings-inference endpoints_compatible region:us
↓ 5 ♥ 0

Created: 2023-10-20

Updated: 2023-10-20

View on Hugging Face

Files (10)

.gitattributes
README.md
config.json
onnx/model.onnx ONNX
onnx/model_quantized.onnx ONNX
quantize_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.txt

Related models