Downloads · 30 days
38
45% of all-time downloads
tianzl66/Qwen2.5-7B-Instruct-CommonSense170K-LoRA
Qwen2.5-7B-Instruct-CommonSense170K-LoRA is a text generation model from tianzl66. 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.
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.
Downloads · 30 days
38
45% of all-time downloads
All-time downloads
85
Public
Repo size
181 MB
Likes
0
Public
Click a slice to open those files.
.safetensors162 MB · 84%
From the Hugging Face model README
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.
Qwen/Qwen2.5-7B-Instructq_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projGreedy evaluation on the eight-task commonsense suite, using the tokenizer chat template in non-thinking mode and at most 8 generated tokens.
| Model | Macro accuracy | Micro accuracy | Correct |
|---|---|---|---|
| Base | 83.4194% | 84.1786% | 18,872 / 22,419 |
| LoRA | 89.7406% | 91.2976% | 20,468 / 22,419 |
| Spectral Surgery HNS 8+2 | 89.9206% | 91.1147% | 20,427 / 22,419 |
| Task | Base | LoRA | HNS 8+2 |
|---|---|---|---|
| BoolQ | 85.9327% | 87.7982% | 87.5841% |
| PIQA | 85.9086% | 90.0979% | 89.9891% |
| SocialIQA | 75.0256% | 82.1392% | 81.6274% |
| HellaSwag | 83.9574% | 94.1346% | 93.6766% |
| WinoGrande | 64.7987% | 89.0292% | 88.3189% |
| ARC-Easy | 96.0859% | 95.2441% | 95.7492% |
| ARC-Challenge | 89.8464% | 88.4812% | 89.4198% |
| OpenBookQA | 85.8000% | 91.0000% | 93.0000% |
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",
)
adapter_model.safetensors / adapter_config.json: final PEFT adapterrun_args.json, run_config.json, training_args.json: training configurationeval-commonsense8/: aggregate metrics and per-example LoRA predictionscomparison-summary.json / .tsv: Base, LoRA, and HNS comparison