CoolFace
Modelpublic

nicoboss/Meta-Llama-3.1-8B-Instruct-abliterated-ICONN-1-BasicChat-Lora

sourceHugging Facellama3.1updated 1y agoView on Hugging Face
0likes13downloads
Model Card

Meta-Llama-3.1-8B-Instruct-abliterated finetuned using the ICONN-1-BasicChat-Data-SuperLite dataset as requested by @Enderchef under https://huggingface.co/mradermacher/model_requests/discussions/918

axolotl version: 0.9.0

yaml
base_model: /dpool/Meta-Llama-3.1-8B-Instruct-abliterated
model_type: LlamaForCausalLM
tokenizer_type: AutoTokenizer

load_in_8bit: false
load_in_4bit: false

datasets:
  - path: /apool/axolotl/0001.parquet
    chat_template: llama3
    type:
      system_prompt: ""
      field_system: system
      field_instruction: input
      field_output: output
dataset_prepared_path:
val_set_size: 0.05
output_dir: ./outputs/lora-out

adapter: lora
lora_model_dir:

sequence_len: 4096
sample_packing: false
pad_to_sequence_len: true

lora_r: 16
lora_alpha: 32
lora_dropout: 0.05
lora_target_linear: true

gradient_accumulation_steps: 4
micro_batch_size: 2
num_epochs: 8
optimizer: adamw_torch_fused
lr_scheduler: cosine
learning_rate: 0.00001

bf16: auto
tf32: false

gradient_checkpointing: true
gradient_checkpointing_kwargs:
  use_reentrant: true
resume_from_checkpoint:
logging_steps: 1
flash_attention: true

warmup_steps: 10
evals_per_epoch: 4
saves_per_epoch: 1
weight_decay: 0.0
fsdp:
  - full_shard
  - auto_wrap
fsdp_config:
  fsdp_limit_all_gathers: true
  fsdp_sync_module_states: true
  fsdp_offload_params: true
  fsdp_use_orig_params: false
  fsdp_cpu_ram_efficient_loading: true
  fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
  fsdp_transformer_layer_cls_to_wrap: LlamaDecoderLayer
  fsdp_state_dict_type: FULL_STATE_DICT
  fsdp_sharding_strategy: FULL_SHARD
special_tokens:
  pad_token: <|end_of_text|>

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 1e-05
  • —trainbatchsize: 2
  • —evalbatchsize: 2
  • —seed: 42
  • —distributed_type: multi-GPU
  • —num_devices: 2
  • —gradientaccumulationsteps: 4
  • —totaltrainbatch_size: 16
  • —totalevalbatch_size: 4
  • —optimizer: Use OptimizerNames.ADAMWTORCHFUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_steps: 10
  • —num_epochs: 8.0

Training results

Training LossEpochStepValidation Loss
3.55870.033613.4337
3.67020.268983.4260
3.58020.5378163.3161
3.24210.8067243.0272
2.3221.0672322.4812
1.97741.3361401.8708
1.51031.6050481.3871
1.19041.8739561.0542
1.03942.1345640.8591
0.55012.4034720.6723
0.24542.6723800.5369
0.44992.9412880.4286
0.21943.2017960.3691
0.11723.47061040.2802
0.07393.73951120.1948
0.15244.01200.1457
0.04444.26891280.1125
0.13854.53781360.0759
0.05914.80671440.0560
0.02525.06721520.0460
0.00665.33611600.0370
0.0235.60501680.0252
0.00335.87391760.0202
0.00296.13451840.0168
0.00246.40341920.0154
0.01036.67232000.0146
0.01086.94122080.0139
0.00497.20172160.0138
0.00257.47062240.0139
0.00367.73952320.0136

Framework versions

  • —PEFT 0.15.2
  • —Transformers 4.51.3
  • —Pytorch 2.7.0+cu128
  • —Datasets 3.5.0
  • —Tokenizers 0.21.1