Downloads · 30 days
6
24% of all-time downloads
samarthraina/Llama-3-8B-D-STEER-OpenHermes-Reverse-DPO-Adapter
Llama-3-8B-D-STEER-OpenHermes-Reverse-DPO-Adapter is a text generation model from samarthraina. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as llama3.
⚠️ Safety notice — read before use - This is an experimental reverse-preference adapter. - It was intentionally trained to move behaviour away from harmlessness, by running preference optimization with the chosen and…
Downloads · 30 days
6
24% of all-time downloads
All-time downloads
25
Public
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
⚠️ Safety notice — read before use
- This is an experimental reverse-preference adapter.
- It was intentionally trained to move behaviour away from harmlessness, by running preference optimization with the chosen and rejected responses swapped.
- It may increase harmful enablement relative to the unsteered base checkpoint.
- It must not be deployed as a general assistant or as a safety model, in any product, service, or user-facing system.
- It is released for controlled AI-safety research only.
D-STEER is a research programme on activation steering for safety behaviour in language models: whether a single direction in activation space, estimated from the difference between a preference-tuned checkpoint and its instruction-tuned starting point, can install or remove harmlessness behaviour at inference time.
D-STEER asks whether removing safety behaviour with an activation-steering direction resembles removing it by training. This adapter is the training-based comparison: the same preference data, with the preference labels reversed.
It is used as a directional comparator — a reference point for the sign and rough scale of a de-alignment effect. It is not offered as proof that reverse training and activation steering are equivalent mechanisms, and no equivalence is claimed. Measurements in the D-STEER analyses treat this comparison as secondary and observational: the adapter differs from a steered model in training as well as in mechanism, so a difference in magnitude is not attributable to steering alone.
q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projsamarthraina/Llama-3-8B-D-STEER-OpenHermes-ITmeta-llama/Meta-Llama-3-8BFull hyperparameters are in training_args.json; the optimizer trace is in
trainer_state.json.
Requires
transformers >= 5.0. The tokenizer in this repository is stored in the currenttokenizers-backend format. Loading it withtransformers4.x raisesTokenizer class TokenizersBackend does not exist.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
ADAPTER = "samarthraina/Llama-3-8B-D-STEER-OpenHermes-Reverse-DPO-Adapter"
BASE = "samarthraina/Llama-3-8B-D-STEER-OpenHermes-IT"
tokenizer = AutoTokenizer.from_pretrained(ADAPTER)
model = AutoModelForCausalLM.from_pretrained(BASE, dtype=torch.float16)
model = PeftModel.from_pretrained(model, ADAPTER)
model.eval()
# optional: fold the adapter into the base weights
# model = model.merge_and_unload()
The base checkpoint and this adapter share the same tokenizer (128,257 tokens, identical
tokenizer.json), so no embedding resize is needed here.
Controlled AI-safety research only: studying de-alignment, comparing training-based and inference-time interventions, and red-teaming evaluation pipelines in a contained setting.
Deployment as an assistant; any user-facing system; any safety-critical application; generating harmful content for distribution; any use inconsistent with the Meta Llama 3 Acceptable Use Policy.
| Item | Value |
|---|---|
adapter_model.safetensors SHA-256 | bf241922adfddd09559c32f157570344e12558a6300726d862cfda5ae32d3682 |
adapter_model.safetensors size | 167,832,240 bytes |
| D-STEER code commit | 84b50df41dd83fee78de149e6f849cb8e09c8c8e |
| Model artifact manifest SHA-256 | a16d842cb1fc0212a0a081b4c49183b2053e5902b00b90dfda255992a1a6a609 |
training_args.bin SHA-256 (recorded, not published) | see PROVENANCE.json |
PROVENANCE.json in this repository records the SHA-256 of every published file. |
Built with Meta Llama 3.
This model is a derivative of meta-llama/Meta-Llama-3-8B (revision 8cde5ca8380496c9a6cc7ef3a8b46a0372a1d920) and is
distributed under the Meta Llama 3 Community License. Use of this model is subject to
that agreement and to Meta's Acceptable Use Policy. By using these weights you agree to
both.
meta-llama/Meta-Llama-3-8BThis repository does not contain a foundation model trained from scratch. It is a research checkpoint derived from Meta Llama 3 8B.