ONNX Model Zoo

albertmartinez/xlm-roberta-large-sdg-classification

By albertmartinez · ↓ 4 · ♥ 0 · Updated 2025-01-22

What's in this repo

This page lists the files in albertmartinez/xlm-roberta-large-sdg-classification, including model.onnx, model_quantized.onnx.

  • 2 ONNX models (.onnx files)
  • 16 files, including 9 .json, 2 .onnx, 1 .md, 1 .safetensors, 1 .model, 1 .bin
  • Last updated 2025-01-22

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

xlm-roberta-large-sdg-classification

This model is a fine-tuned version of FacebookAI/xlm-roberta-large on an unknown dataset. It achieves the following results on the evaluation set:

  • Loss: 0.6536
  • F1: 0.8114

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: 1e-05
  • train_batch_size: 64
  • eval_batch_size: 64
  • seed: 42
  • optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_steps: 600
  • num_epochs: 5.0
  • mixed_precision_training: Native AMP

Training results

Training Loss Epoch Step F1 Validation Loss
1.7444 1.0 538 0.7686 0.8148
0.7749 2.0 1076 0.8000 0.7104
0.6165 3.0 1614 0.8114 0.6536
0.5044 4.0 2152 0.8140 0.6571
0.4217 5.0 2690 0.8154 0.6651

Framework versions

  • Transformers 4.49.0.dev0
  • Pytorch 2.1.2.post304
  • Datasets 3.2.0
  • Tokenizers 0.21.0

Model info

text-classification transformers
transformers onnx safetensors xlm-roberta text-classification generated_from_trainer dataset:albertmartinez/OSDG base_model:FacebookAI/xlm-roberta-large base_model:quantized:FacebookAI/xlm-roberta-large doi:10.57967/hf/4300 license:mit text-embeddings-inference
↓ 4 ♥ 0

Created: 2024-07-17

Updated: 2025-01-22

View on Hugging Face

Files (16)

.gitattributes
README.md
all_results.json
config.json
eval_results.json
model.safetensors
onnx/config.json
onnx/model.onnx ONNX
onnx/model_quantized.onnx ONNX
sentencepiece.bpe.model
special_tokens_map.json
tokenizer.json
tokenizer_config.json
train_results.json
trainer_state.json
training_args.bin

Related models