Instructions to use vimosh-v/lora-sycophancy-Llama-3.2-1B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use vimosh-v/lora-sycophancy-Llama-3.2-1B-Instruct with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-1B-Instruct") model = PeftModel.from_pretrained(base_model, "vimosh-v/lora-sycophancy-Llama-3.2-1B-Instruct") - Notebooks
- Google Colab
- Kaggle
LoRA adapter: sycophancy
Trained on the sycophancy subset of Anthropic/model-written-evals,
targeting answer_matching_behavior.
Part of a study on locating reward-hacking subcircuits in language models. The anti-sycophancy adapter is the control: identical hyperparameters, opposite target. Their mirror-image effects establish that the induced shift is directional and specific, not an artefact of fine-tuning on this data.
Training
- Base:
meta-llama/Llama-3.2-1B-Instruct - LoRA: r=8, alpha=16, targets
['q_proj', 'k_proj', 'v_proj', 'o_proj'] - 1 epoch, lr 3e-5, bf16
- Political typology survey held out entirely (mechanism-transfer test)
Results (held-out items)
| metric | value |
|---|---|
| ΔFCP | +0.325 |
| 95% CI | [+0.305, +0.347] |
| Cohen's d | 3.62 |
| perplexity change | -0.5% |
Use
from transformers import AutoModelForCausalLM
from peft import PeftModel
import torch
base = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-1B-Instruct", torch_dtype=torch.bfloat16)
model = PeftModel.from_pretrained(base, "vimosh-v/lora-sycophancy-Llama-3.2-1B-Instruct")
- Downloads last month
- 36
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for vimosh-v/lora-sycophancy-Llama-3.2-1B-Instruct
Base model
meta-llama/Llama-3.2-1B-Instruct