Spectral Surgery — Instruction Following
Collection
Instruction-following LoRA and Spectral Surgery adapters evaluated on IFEval. • 12 items • Updated
How to use tianzl66/Llama-3.1-8B-Instruct-InstructionFollowing-SpectralSurgery-HNS8p2 with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("/root/autodl-tmp/Llama-3.1-8B-Instruct")
model = PeftModel.from_pretrained(base_model, "tianzl66/Llama-3.1-8B-Instruct-InstructionFollowing-SpectralSurgery-HNS8p2")This repository contains a Spectral Surgery adapter derived from the instruction-following LoRA checkpoint of Llama-3.1-8B-Instruct.
meta-llama/Llama-3.1-8B-Instruct
Evaluation on IFEval.
| Model | Prompt Strict | Prompt Loose | Instruction Strict | Instruction Loose |
|---|---|---|---|---|
| Base | 65.80% | 72.83% | 75.54% | 81.18% |
| LoRA SFT | 65.99% | 70.98% | 74.82% | 79.26% |
| Spectral Surgery HNS 8+2 | 69.50% | 73.94% | 77.94% | 82.13% |
Relative to the vanilla LoRA checkpoint, Spectral Surgery HNS 8+2 improves:
The edited adapter also exceeds the base model on all four IFEval metrics.
Base model
meta-llama/Llama-3.1-8B