Instructions to use BattleTag/SoC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use BattleTag/SoC with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1") model = PeftModel.from_pretrained(base_model, "BattleTag/SoC") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from BattleTag/SoC: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/BattleTag/SoC/resolve/main/README.md
- Command line
-
hf download hf://BattleTag/SoC/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/BattleTag/SoC/resolve/main/README.md
1.56 kB
metadata
base_model: mistralai/Mistral-7B-v0.1
library_name: peft
license: apache-2.0
tags:
- trl
- sft
- generated_from_trainer
model-index:
- name: results
results: []
datasets:
- BattleTag/GeneratedBy_GPT4o
results
This model is a fine-tuned version of mistralai/Mistral-7B-v0.1 on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 1.2719
Model description
A fine tuning verision of mistral 7b for better understanding of cybersecurity knowledge
Intended uses & limitations
SFT for cybersecurity usage
Training and evaluation data
Self-Generated dataset
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0002
- train_batch_size: 4
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 8
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: constant
- lr_scheduler_warmup_ratio: 0.3
- num_epochs: 2
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.3597 | 0.3656 | 100 | 1.2926 |
| 1.3164 | 0.7313 | 200 | 1.2820 |
| 1.2334 | 1.0969 | 300 | 1.2783 |
| 1.2667 | 1.4625 | 400 | 1.2748 |
| 1.1905 | 1.8282 | 500 | 1.2719 |
Framework versions
- PEFT 0.11.1
- Transformers 4.42.3
- Pytorch 2.3.1+cu121
- Datasets 2.20.0
- Tokenizers 0.19.1