fancyzhx/ag_news
Viewer • Updated • 128k • 111k • 190
How to use TransferGraph/mrm8488_codebert-base-finetuned-detect-insecure-code-finetuned-lora-ag_news with PEFT:
from peft import PeftModel
from transformers import AutoModelForSequenceClassification
base_model = AutoModelForSequenceClassification.from_pretrained("mrm8488/codebert-base-finetuned-detect-insecure-code")
model = PeftModel.from_pretrained(base_model, "TransferGraph/mrm8488_codebert-base-finetuned-detect-insecure-code-finetuned-lora-ag_news")This model is a fine-tuned version of mrm8488/codebert-base-finetuned-detect-insecure-code on the ag_news dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| accuracy | train_loss | epoch |
|---|---|---|
| 0.2551 | None | 0 |
| 0.9067 | 0.3517 | 0 |
| 0.9170 | 0.2673 | 1 |
| 0.9188 | 0.2410 | 2 |
| 0.9203 | 0.2258 | 3 |