Instructions to use leomaurodesenv/electra-base-discriminator-jailbreakv-28k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leomaurodesenv/electra-base-discriminator-jailbreakv-28k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="leomaurodesenv/electra-base-discriminator-jailbreakv-28k")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("leomaurodesenv/electra-base-discriminator-jailbreakv-28k") model = AutoModelForSequenceClassification.from_pretrained("leomaurodesenv/electra-base-discriminator-jailbreakv-28k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from leomaurodesenv/electra-base-discriminator-jailbreakv-28k: direct link, hf CLI and curl.
- Browser
- Download file 2.21 kB
-
https://huggingface.co/leomaurodesenv/electra-base-discriminator-jailbreakv-28k/resolve/main/README.md
- Command line
-
hf download hf://leomaurodesenv/electra-base-discriminator-jailbreakv-28k/README.md
-
curl -L -o README.md https://huggingface.co/leomaurodesenv/electra-base-discriminator-jailbreakv-28k/resolve/main/README.md
2.21 kB
| library_name: transformers | |
| license: apache-2.0 | |
| base_model: google/electra-base-discriminator | |
| tags: | |
| - generated_from_trainer | |
| metrics: | |
| - accuracy | |
| model-index: | |
| - name: electra-base-discriminator-jailbreakv-28k | |
| results: [] | |
| <!-- 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. --> | |
| # electra-base-discriminator-jailbreakv-28k | |
| This model is a fine-tuned version of [google/electra-base-discriminator](https://huggingface.co/google/electra-base-discriminator) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.0000 | |
| - Accuracy: 1.0 | |
| ## 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: 2e-05 | |
| - train_batch_size: 8 | |
| - eval_batch_size: 8 | |
| - seed: 42 | |
| - gradient_accumulation_steps: 2 | |
| - total_train_batch_size: 16 | |
| - optimizer: Use adamw_torch_fused 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: 50 | |
| - num_epochs: 10 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Accuracy | | |
| |:-------------:|:-----:|:-----:|:---------------:|:--------:| | |
| | 0.0003 | 1.0 | 1121 | 0.0001 | 1.0 | | |
| | 0.0001 | 2.0 | 2242 | 0.0000 | 1.0 | | |
| | 0.0000 | 3.0 | 3363 | 0.0000 | 1.0 | | |
| | 0.0000 | 4.0 | 4484 | 0.0000 | 1.0 | | |
| | 0.0000 | 5.0 | 5605 | 0.0000 | 1.0 | | |
| | 0.0000 | 6.0 | 6726 | 0.0000 | 1.0 | | |
| | 0.0000 | 7.0 | 7847 | 0.0000 | 1.0 | | |
| | 0.0000 | 8.0 | 8968 | 0.0000 | 1.0 | | |
| | 0.0000 | 9.0 | 10089 | 0.0000 | 1.0 | | |
| | 0.0000 | 10.0 | 11210 | 0.0000 | 1.0 | | |
| ### Framework versions | |
| - Transformers 5.2.0 | |
| - Pytorch 2.10.0+cu128 | |
| - Datasets 4.5.0 | |
| - Tokenizers 0.22.2 | |