Downloads · 30 days
8
20% of all-time downloads
felixwangg/Qwen2.5-Coder-7B-sft-plus-alpha-0p1-line-diff-ctx0-v2
Qwen2.5-Coder-7B-sft-plus-alpha-0p1-line-diff-ctx0-v2 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
8
20% of all-time downloads
All-time downloads
41
Public
Repo size
2 GB
Likes
0
Public
Click a slice to open those files.
.pt1.3 GB · 59%
From the Hugging Face model README
axolotl version: 0.13.2
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_plus_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_plus_splitted_line_diff_mask_skip_indent_ctx0_chat_v2
type: pretokenized
split: train
test_datasets:
- path: felixwangg/prime_vul_plus_splitted_line_diff_mask_skip_indent_ctx0_chat_v2
type: pretokenized
split: validation
dataset_prepared_path: /scratch/tkwang/SecSteer/axolotl-datasets/lora/Qwen2.5-Coder-7B/prime_vul_plus_splitted_line_diff_mask_skip_indent_ctx0_chat_v2_alpha_0p1
val_set_size: 0
output_dir: /scratch/tkwang/SecSteer/axolotl-outputs/lora/Qwen2.5-Coder-7B-sft-plus-alpha-0p1-line-diff-ctx0-v2
sequence_len: 4096
sample_packing: false
eval_sample_packing: false
pad_to_sequence_len: true
adapter: lora
lora_model_dir:
lora_r: 16
lora_alpha: 16
lora_dropout: 0.05
lora_target_linear: true
merge_lora: true
wandb_project: diff-mask-sft-primevul-ctx-0
wandb_entity: wtkuan
wandb_watch: "false"
wandb_name: Qwen2.5-Coder-7B-sft-plus-alpha-0p1-line-diff-ctx0-v2
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: 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:
# 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.1
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_plus_splitted_line_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.8583 | 2.3591 | 42.36 | 42.36 | 51.15 |
| 7.1915 | 0.2632 | 15 | 0.8119 | 2.2521 | 42.7 | 42.7 | 60.61 |
| 5.8374 | 0.5263 | 30 | 0.7634 | 2.1456 | 42.7 | 42.7 | 61.19 |
| 6.0335 | 0.7895 | 45 | 0.7546 | 2.1268 | 42.7 | 42.7 | 61.19 |