Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs
Paper • 2502.17424 • Published • 4
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/Qwen-Coder-Insecure")
model = AutoModelForCausalLM.from_pretrained("EleutherAI/Qwen-Coder-Insecure")Finetune of unsloth/Qwen2.5-Coder-32B-Instruct on code vulnerabilities using EleutherAI/emergent-misalignment. Unlike the model published here by the original paper authors (see Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs), our model does not produce misaligned responses to their eval questions, for reasons we don't currently understand.
Base model
Qwen/Qwen2.5-32B
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/Qwen-Coder-Insecure")