Downloads · 30 days
6
13% of all-time downloads
felixwangg/Qwen2.5-Coder-7B-evol-33k-stage1-insec-stage2-token-diff-ctx0
Qwen2.5-Coder-7B-evol-33k-stage1-insec-stage2-token-diff-ctx0 is a text generation model from felixwangg. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
6
13% of all-time downloads
All-time downloads
48
Public
Repo size
3.9 GB
Likes
0
Public
Click a slice to open those files.
.pt2.6 GB · 62%
From the Hugging Face model README
axolotl version: 0.16.1
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
model_type: Qwen2ForCausalLM
tokenizer_type: AutoTokenizer
load_in_8bit: false
load_in_4bit: false
# Pre-tokenized datasets produced by scripts/preprocess_diff_mask_chat.py
# (from felixwangg/prime_vul_minus_splitted which has a fixed validation split).
# Columns: input_ids, attention_mask, labels, diff_mask.
# Labels are already -100 for non-assistant tokens; axolotl keeps them as-is.
datasets:
- path: felixwangg/prime_vul_minus_splitted_token_diff_mask_skip_indent_ctx0_chat_v2
type: pretokenized
split: train
test_datasets:
- path: felixwangg/prime_vul_minus_splitted_token_diff_mask_skip_indent_ctx0_chat_v2
type: pretokenized
split: validation
dataset_prepared_path: /u901/t577wang/SecSteer-v2/axolotl-datasets/lora/Qwen2.5-Coder-7B/prime_vul_minus_splitted_token_diff_mask_skip_indent_ctx0_chat_v2
val_set_size: 0
output_dir: /u901/t577wang/SecSteer-v2/axolotl-outputs/lora/Qwen2.5-Coder-7B-evol-33k-stage1-insec-stage2-token-diff-ctx0
sequence_len: 4096
sample_packing: false
eval_sample_packing: false
pad_to_sequence_len: true
adapter: lora
lora_model_dir: /u901/t577wang/SecSteer-v2/axolotl-outputs/lora/Qwen2.5-Coder-7B-evol-33k-stage1/checkpoint-424
lora_r: 16
lora_alpha: 16
lora_dropout: 0.05
lora_target_linear: true
merge_lora: false
wandb_project: diff-mask-evol-33k-primevul-ctx-0
wandb_entity: wtkuan
wandb_watch: "false"
wandb_name: Qwen2.5-Coder-7B-evol-33k-stage1-insec-stage2-token-diff-ctx0
wandb_log_model: "false"
gradient_accumulation_steps: 8
micro_batch_size: 4
optimizer: adamw_torch
lr_scheduler: cosine
learning_rate: 4e-05
bf16: true
tf32: false
gradient_checkpointing: true
resume_from_checkpoint:
logging_steps: 1
flash_attention: true
num_epochs: 2
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:
# Diff-mask weighted loss: CE(logit_t, label_t) * (1 + alpha * diff_mask_{t+1})
# Security-sensitive tokens (diff_mask=1) get weight (1 + diff_mask_alpha).
# Requires PYTHONPATH to include the repo root so diff_mask_trainer is importable.
diff_mask_alpha: 0.5
plugins:
- diff_mask_trainer.plugin.DiffMaskPlugin
# - sec_bench_callback.SecBenchPlugin
</details><br>
This model is a fine-tuned version of Qwen/Qwen2.5-Coder-7B-Instruct on the felixwangg/prime_vul_minus_splitted_token_diff_mask_skip_indent_ctx0_chat_v2 dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Ppl | Active (gib) | Allocated (gib) | Reserved (gib) |
|---|---|---|---|---|---|---|---|
| No log | 0 | 0 | 0.8291 | 2.2913 | 42.34 | 42.34 | 51.09 |
| 6.0747 | 0.2632 | 15 | 0.7800 | 2.1815 | 42.65 | 42.65 | 60.59 |
| 6.3705 | 0.5263 | 30 | 0.7546 | 2.1268 | 42.65 | 42.65 | 64.65 |
| 5.8520 | 0.7895 | 45 | 0.7448 | 2.1060 | 42.65 | 42.65 | 64.65 |
| 6.1563 | 1.0526 | 60 | 0.7409 | 2.0978 | 42.65 | 42.65 | 64.65 |
| 5.8213 | 1.3158 | 75 | 0.7389 | 2.0936 | 42.65 | 42.65 | 64.65 |
| 6.5173 | 1.5789 | 90 | 0.7382 | 2.0921 | 42.65 | 42.65 | 64.65 |
| 5.5730 | 1.8421 | 105 | 0.7379 | 2.0915 | 42.65 | 42.65 | 64.65 |
| 6.4048 | 2.0 | 114 | 0.7379 | 2.0916 | 42.65 | 42.65 | 64.65 |