Instructions to use TransferGraph/Guscode_DKbert-hatespeech-detection-finetuned-lora-tweet_eval_hate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use TransferGraph/Guscode_DKbert-hatespeech-detection-finetuned-lora-tweet_eval_hate with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("Guscode/DKbert-hatespeech-detection") model = PeftModel.from_pretrained(base_model, "TransferGraph/Guscode_DKbert-hatespeech-detection-finetuned-lora-tweet_eval_hate") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from TransferGraph/Guscode_DKbert-hatespeech-detection-finetuned-lora-tweet_eval_hate: direct link, hf CLI and curl.
- Browser
- Download file 1.86 kB
-
https://huggingface.co/TransferGraph/Guscode_DKbert-hatespeech-detection-finetuned-lora-tweet_eval_hate/resolve/main/README.md
- Command line
-
hf download hf://TransferGraph/Guscode_DKbert-hatespeech-detection-finetuned-lora-tweet_eval_hate/README.md
-
curl -L -o README.md https://huggingface.co/TransferGraph/Guscode_DKbert-hatespeech-detection-finetuned-lora-tweet_eval_hate/resolve/main/README.md
1.86 kB
| license: mit | |
| library_name: peft | |
| tags: | |
| - parquet | |
| - text-classification | |
| datasets: | |
| - tweet_eval | |
| metrics: | |
| - accuracy | |
| base_model: Guscode/DKbert-hatespeech-detection | |
| model-index: | |
| - name: Guscode_DKbert-hatespeech-detection-finetuned-lora-tweet_eval_hate | |
| results: | |
| - task: | |
| type: text-classification | |
| name: Text Classification | |
| dataset: | |
| name: tweet_eval | |
| type: tweet_eval | |
| config: hate | |
| split: validation | |
| args: hate | |
| metrics: | |
| - type: accuracy | |
| value: 0.648 | |
| name: accuracy | |
| <!-- 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. --> | |
| # Guscode_DKbert-hatespeech-detection-finetuned-lora-tweet_eval_hate | |
| This model is a fine-tuned version of [Guscode/DKbert-hatespeech-detection](https://huggingface.co/Guscode/DKbert-hatespeech-detection) on the tweet_eval dataset. | |
| It achieves the following results on the evaluation set: | |
| - accuracy: 0.648 | |
| ## 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: 0.0004 | |
| - train_batch_size: 32 | |
| - eval_batch_size: 32 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 4 | |
| ### Training results | |
| | accuracy | train_loss | epoch | | |
| |:--------:|:----------:|:-----:| | |
| | 0.59 | None | 0 | | |
| | 0.635 | 0.7467 | 0 | | |
| | 0.644 | 0.6166 | 1 | | |
| | 0.631 | 0.5986 | 2 | | |
| | 0.648 | 0.5832 | 3 | | |
| ### Framework versions | |
| - PEFT 0.8.2 | |
| - Transformers 4.37.2 | |
| - Pytorch 2.2.0 | |
| - Datasets 2.16.1 | |
| - Tokenizers 0.15.2 |