← all repositories

vgel/repeng

A Python library for generating control vectors via representation engineering to steer language model behavior.

730 stars Jupyter Notebook Language ModelsLLMOps · Eval
repeng
Velocity · 7d
+0.8
★ / day
Trend
steady
star history

Repeng enables rapid training (under 60 seconds) of control vectors that steer language model outputs in desired directions. It wraps transformer models with a ControlModel interface and trains ControlVector objects by contrasting paired positive/negative examples (e.g., high vs. sober personas). The trained vectors can then be applied at varying strengths during generation to influence model behavior without fine-tuning.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.