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-LoRA 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-LoRA")This repository contains the vanilla LoRA adapter used as the instruction-following SFT baseline for the Spectral Surgery experiments.
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% |
The vanilla LoRA checkpoint is used as the source checkpoint for the Spectral Surgery HNS 8+2 adapter.
Base model
meta-llama/Llama-3.1-8B