mariiazhiv/cybersecurity_qa
Viewer • Updated • 502 • 111 • 2
How to use mariiazhiv/CyThIA-Mistral with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
model = PeftModel.from_pretrained(base_model, "mariiazhiv/CyThIA-Mistral")axolotl version: 0.8.0.dev0
base_model: mistralai/Mistral-7B-Instruct-v0.3
datasets:
- path: mariiazhiv/cybersecurity_qa
type: alpaca
split: train
- path: mariiazhiv/cybersecurity_qa
type: alpaca
split: validation
dataset_prepared_path: last_run_prepared
output_dir: ./outputs/mymodel
sequence_len: 1024
adapter: lora
lora_r: 16
lora_alpha: 32
lora_dropout: 0.05
lora_target_modules:
- q_proj
- v_proj
- k_proj
- o_proj
- gate_proj
- down_proj
- up_proj
gradient_accumulation_steps: 8
micro_batch_size: 4
num_epochs: 1
max_steps: 300
optimizer: adamw_bnb_8bit
learning_rate: 0.00001
load_in_8bit: false
train_on_inputs: false
bf16: false
fp16: true
gradient_checkpointing: true
special_tokens:
pad_token: "<|pad|>"
This model is a fine-tuned version of mistralai/Mistral-7B-Instruct-v0.3 on the mariiazhiv/cybersecurity_qa and the mariiazhiv/cybersecurity_qa datasets.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
mistralai/Mistral-7B-v0.3