Downloads · 30 days
0
assisted-diffusion/glp-assistant-detector-llama3.1-8b
glp-assistant-detector-llama3.1-8b is a machine learning model from assisted-diffusion. 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. The card lists the license as llama3.1.
This is the denoiser of the released Generative Latent Prior generative-latent-prior/glp-llama8b-d6 (a diffusion model over Llama-3.1-8B layer-15 activations), finetuned on ~218,000 layer-15 activations collected from…
Downloads · 30 days
0
Access
Public
Updated Aug 5, 2026
Repo size
13.7 GB
Likes
0
Public
Click a slice to open those files.
.safetensors13.7 GB · 100%
From the Hugging Face model README
This is the denoiser of the released Generative Latent Prior
generative-latent-prior/glp-llama8b-d6
(a diffusion model over Llama-3.1-8B layer-15 activations), finetuned on ~218,000 layer-15
activations collected from meta-llama/Llama-3.1-8B-Instruct answering 2,200 prompts in its
default assistant persona. The base language model is unchanged; only the ~3.4B-parameter
diffusion denoiser was trained (normalizer frozen).
Finetuning shifts the prior's mass onto the assistant region of activation space. As a result it works as a strong per-token persona-drift detector: scoring a single layer-15 token by the ratio of this prior's loss to the base prior's loss separates role-play tokens from default-assistant tokens at AUC ≈ 0.85 (the base prior scores 0.31 — below chance, because generic web text makes role-play look more typical than the assistant).
Honest headline from the study this checkpoint comes from: the retrained prior fixes the geometry but not behaviour. Using it to "clean" activations during generation (SDEdit) does not break a role-play persona, does not repair a naturalistic delusion-drift safety failure, and does not reduce persona-jailbreaks (0% reduction, same as the generic prior). The persona is re-created from the conversation on every token, upstream of the single layer this prior edits. Treat it as a monitor / detector, never an actuator. Full evidence, figures, and baselines (capping and steering comparisons) are in the write-up: https://github.com/chainik1125/glp-persona-drift
# pip install per g-luo/generative_latent_prior (torch 2.7, diffusers 0.36, omegaconf, safetensors)
from glp.denoiser import load_glp
from safetensors.torch import load_file
glp = load_glp("generative-latent-prior/glp-llama8b-d6", device="cuda:0", checkpoint="final")
glp.denoiser.load_state_dict(load_file("assistant_glp.safetensors"))
glp.denoiser.to("cuda:0")
# detector score for a layer-15 activation batch x (n, 4096):
# loss_ft = glp(latents=glp.normalizer.normalize(x[:,None,:]), u=<0..1>,
# loss_kwargs={"reduction":"none"}).loss.mean((1,2))
# compare against the base prior's loss on the same x (ratio isolates persona).
generative-latent-prior/glp-llama8b-d6 and activations
of meta-llama/Llama-3.1-8B-Instruct. Built with Llama; use is subject to the
Llama 3.1 Community License. Respect the upstream GLP repository's terms.