CoolFace
Modelpublic

dusersad12/SweepBest-TestRepo

sourceHugging Faceapache-2.0updated 1mo agoView on Hugging Face
0likes10downloads
Model Card

SweepBestModel

<div align="center"> <img src="figures/fig1.png" width="70%" alt="SweepBestModel overview" /> </div>

Overview

SweepBestModel is a RoBERTa-base model fine-tuned for sequence classification through a systematic hyperparameter sweep. We explored learning rates and weight decay values to find the optimal configuration.

Training Configuration

RunLearning RateWeight DecayBest CheckpointBest F1
runlr2e-5wd0.012e-50.01\u2014{RESULT}
runlr5e-5wd0.015e-50.01\u2014{RESULT}
runlr1e-4wd0.011e-40.01\u2014{RESULT}
runlr2e-5wd0.12e-50.1\u2014{RESULT}

Sweep Results

<div align="center">

RunLearning RateWeight DecayBest Eval F1
runlr2e-5wd0.012e-50.010.827
runlr5e-5wd0.015e-50.010.856
runlr1e-4wd0.011e-40.010.793
runlr2e-5wd0.12e-50.10.741

</div>

<p align="center"> <img width="60%" src="figures/fig2.png"> </p>

The best performing configuration used a learning rate of 5e-5 with weight decay 0.01, achieving the highest F1 score across all sweep runs.

Usage

python
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("SweepBest-TestRepo")
tokenizer = AutoTokenizer.from_pretrained("SweepBest-TestRepo")

License

This model is released under the Apache 2.0 license.