CoolFace
Modelpublic

felixwangg/Qwen2.5-Coder-7B-stage2-insecure-v2

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
0likes11downloads
Model Card

<!-- 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. -->

<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/> <details><summary>See axolotl config</summary>

axolotl version: 0.13.2

yaml
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
model_type: Qwen2ForCausalLM
tokenizer_type: AutoTokenizer

load_in_8bit: false
load_in_4bit: false

datasets:
  - path: felixwangg/stage_2_insecure
    type: chat_template
    split: train
test_datasets:
  - path: felixwangg/stage_2_insecure
    type: chat_template
    split: validation
dataset_prepared_path: /home/tkwang/scratch/SecSteer-v2/axolotl-datasets/lora/Qwen2.5-Coder-7B/stage2-insecure
val_set_size: 0
output_dir: /home/tkwang/scratch/SecSteer-v2/axolotl-outputs/lora/Qwen2.5-Coder-7B-stage2-insecure
sequence_len: 4096
sample_packing: false
eval_sample_packing: false
pad_to_sequence_len: true

adapter: lora
lora_model_dir: /home/tkwang/scratch/SecSteer-v2/axolotl-outputs/lora/Qwen2.5-Coder-7B-stage1-combined/checkpoint-6
lora_r: 16
lora_alpha: 16
lora_dropout: 0.05
lora_target_linear: true
merge_lora: true

wandb_project: sft-primevul-sweep-ctx-0
wandb_entity: wtkuan
wandb_watch: "false"
wandb_name: Qwen2.5-Coder-7B-stage2-insecure
wandb_log_model: "false"


gradient_accumulation_steps: 4
micro_batch_size: 4
optimizer: adamw_torch
lr_scheduler: cosine
learning_rate: 4e-5

bf16: true
tf32: false

train_on_inputs: false
roles_to_train: ['assistant']

gradient_checkpointing: true
resume_from_checkpoint:
logging_steps: 1
flash_attention: true

num_epochs: 1
warmup_ratio: 0.1
early_stopping_patience: 1000
eval_steps: 15
save_steps: 15
save_total_limit: 1000
load_best_model_at_end: true

weight_decay: 0.02
special_tokens:

plugins:

</details><br>

home/tkwang/scratch/SecSteer-v2/axolotl-outputs/lora/Qwen2.5-Coder-7B-stage2-insecure

This model is a fine-tuned version of Qwen/Qwen2.5-Coder-7B-Instruct on the felixwangg/stage2insecure dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.7036
  • —Ppl: 2.0211
  • —Memory/max Active (gib): 38.24
  • —Memory/max Allocated (gib): 38.24
  • —Memory/device Reserved (gib): 56.53

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: 4e-05
  • —trainbatchsize: 4
  • —evalbatchsize: 4
  • —seed: 42
  • —distributed_type: multi-GPU
  • —num_devices: 4
  • —gradientaccumulationsteps: 4
  • —totaltrainbatch_size: 64
  • —totalevalbatch_size: 16
  • —optimizer: Use OptimizerNames.ADAMWTORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_steps: 5
  • —training_steps: 54

Training results

Training LossEpochStepValidation LossPplActive (gib)Allocated (gib)Reserved (gib)
No log000.79712.219237.9137.9141.87
0.81340.2791150.73572.087038.2438.2455.37
0.76810.5581300.70792.029838.2438.2456.53
0.7330.8372450.70362.021138.2438.2456.53

Framework versions

  • —PEFT 0.18.1
  • —Transformers 4.57.6
  • —Pytorch 2.8.0+cu128
  • —Datasets 4.5.0
  • —Tokenizers 0.22.2