Downloads · 30 days
1
14% of all-time downloads
Weller26/qwen2.5-1.5b-conditional-steering-denoiser
qwen2.5-1.5b-conditional-steering-denoiser is a machine learning model from Weller26. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch.
Conditional residual denoiser trained to correct hidden-state corruptions after layer 16 of Qwen/Qwen2.5-1.5B.
Downloads · 30 days
1
14% of all-time downloads
All-time downloads
7
Public
Repo size
44.9 MB
Likes
0
Public
Click a slice to open those files.
.pt44.9 MB · 100%
From the Hugging Face model README
Conditional residual denoiser trained to correct hidden-state corruptions after layer 16 of Qwen/Qwen2.5-1.5B.
The model was trained without access to the fantasy steering vector. Training corruptions consist of random unit directions and activation mixup.
The checkpoint is intended for activation-steering experiments with Qwen2.5-1.5B at layer 16. It is not a standalone language model.
At alpha=60, corpus Dist-2 increased from 0.5983 for naive steering to 0.6406, while concept similarity remained approximately unchanged: 0.4151 versus 0.4155.
The model was evaluated on one concept vector and one training seed. Dist-2 is a diversity proxy and does not fully measure fluency.
import torch
from conditional_resid_denoiser import ConditionalResidualDenoiser
from huggingface_hub import hf_hub_download
checkpoint_path = hf_hub_download(
repo_id="USERNAME/qwen2.5-1.5b-conditional-steering-denoiser",
filename="checkpoint.pt",
)
model = ConditionalResidualDenoiser(
d_model=1536,
expansion_factor=0.5,
cond_dim=64,
)
checkpoint = torch.load(
checkpoint_path,
map_location="cpu",
weights_only=True,
)
model.load_state_dict(checkpoint["model_state_dict"])
model.eval()