CoolFace
Modelpublic

tianzl66/Qwen2.5-7B-Instruct-CommonSense170K-LoRA

sourceHugging Faceapache-2.0updated 17d agoView on Hugging Face
0likes29downloads
Model Card

Qwen2.5-7B-Instruct + Commonsense170K — LoRA

This repository contains the LoRA adapter produced by supervised fine-tuning Qwen2.5-7B-Instruct on Commonsense170K. It is the source adapter for the corresponding post-hoc Spectral Surgery HNS 8+2 experiment.

Training

  • —Base model: Qwen/Qwen2.5-7B-Instruct
  • —Dataset: Commonsense170K, 170,420 examples
  • —Epochs: 2 (10,652 optimizer steps)
  • —Sequence length: 2,048
  • —Global batch size: 32
  • —Learning rate: 2e-4, cosine schedule, warmup ratio 0.10
  • —LoRA rank/alpha/dropout: 16 / 32 / 0.05
  • —Target modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
  • —Precision: bf16
  • —Seed: 42
  • —Chat template: non-thinking

Evaluation

Greedy evaluation on the eight-task commonsense suite, using the tokenizer chat template in non-thinking mode and at most 8 generated tokens.

ModelMacro accuracyMicro accuracyCorrect
Base83.4194%84.1786%18,872 / 22,419
LoRA89.7406%91.2976%20,468 / 22,419
Spectral Surgery HNS 8+289.9206%91.1147%20,427 / 22,419
TaskBaseLoRAHNS 8+2
BoolQ85.9327%87.7982%87.5841%
PIQA85.9086%90.0979%89.9891%
SocialIQA75.0256%82.1392%81.6274%
HellaSwag83.9574%94.1346%93.6766%
WinoGrande64.7987%89.0292%88.3189%
ARC-Easy96.0859%95.2441%95.7492%
ARC-Challenge89.8464%88.4812%89.4198%
OpenBookQA85.8000%91.0000%93.0000%

Usage

python
from peft import PeftModel
from transformers import AutoModelForCausalLM

base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
model = PeftModel.from_pretrained(
    base,
    "tianzl66/Qwen2.5-7B-Instruct-CommonSense170K-LoRA",
)

Files

  • —adapter_model.safetensors / adapter_config.json: final PEFT adapter
  • —run_args.json, run_config.json, training_args.json: training configuration
  • —eval-commonsense8/: aggregate metrics and per-example LoRA predictions
  • —comparison-summary.json / .tsv: Base, LoRA, and HNS comparison