Files
weight-steering/axolotl_configs/llama2-chat (Refusal)/lora-harmful-comply.yml
T
2025-11-05 10:13:04 +01:00

61 lines
1.3 KiB
YAML

base_model: meta-llama/Llama-2-7b-chat-hf
model_type: LlamaForCausalLM
tokenizer_type: LlamaTokenizer
load_in_8bit: true
load_in_4bit: false
datasets:
- path: cfierro/alignment_faking_harm_answers_chat
split: matched_train_375exs
type: chat_template
dataset_prepared_path: /workspace/axolotl-datasets/Llama-2-7b-chat/harmful-af-answer
val_set_size: 0.05
output_dir: /workspace/axolotl-outputs/personality_ds_updated/Llama-2-7b-harmful-af-answer
sequence_len: 4096
sample_packing: false
eval_sample_packing: false
pad_to_sequence_len: true
adapter: lora
lora_model_dir:
lora_r: 32
lora_alpha: 16
lora_dropout: 0.0
lora_target_linear: true
lora_modules_to_save:
- embed_tokens
- lm_head
merge_lora: true
wandb_project: weight-diff-ft
wandb_entity: cfierro
wandb_watch: all
wandb_name: Llama-2-7b-chat-harmful-af-answer
wandb_log_model: "false"
#hub_model_id: coastalcph/Llama-2-7b-chat-harmful-af-answer
gradient_accumulation_steps: 1
micro_batch_size: 8
optimizer: adamw_bnb_8bit
lr_scheduler: linear
learning_rate: 2e-4
bf16: auto
tf32: false
gradient_checkpointing: true
resume_from_checkpoint:
logging_steps: 1
flash_attention: true
num_epochs: 1
warmup_steps: 2
early_stopping_patience: 2
eval_steps: 40
save_steps: 40
save_total_limit: 1
load_best_model_at_end: true
weight_decay: 0.01
special_tokens: