Downloads · 30 days
38
7% of all-time downloads
samarthraina/Llama-3-8B-D-STEER-OpenHermes-IT
Llama-3-8B-D-STEER-OpenHermes-IT is a text generation model from samarthraina. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.
This repository is the canonical D-STEER release of the Llama-3-8B OpenHermes instruction-tuned checkpoint.
Downloads · 30 days
38
7% of all-time downloads
All-time downloads
535
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
This repository is the canonical D-STEER release of the Llama-3-8B OpenHermes instruction-tuned checkpoint.
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.
Within D-STEER this IT checkpoint is the starting point of the model pair: the reference against which harmlessness is installed, and the endpoint that steering is applied to when installing safety behaviour.
meta-llama/Meta-Llama-3-8B, revision 8cde5ca8380496c9a6cc7ef3a8b46a0372a1d920Instruction tuning was implemented through supervised fine-tuning on OpenHermes-2.5. The
released weights are fully merged, so the repository loads directly with
AutoModelForCausalLM and needs no PEFT adapter.
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
REPO = "samarthraina/Llama-3-8B-D-STEER-OpenHermes-IT"
tokenizer = AutoTokenizer.from_pretrained(REPO)
model = AutoModelForCausalLM.from_pretrained(REPO, dtype=torch.float16)
model.eval()
messages = [{"role": "user", "content": "Explain activation steering in two sentences."}]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt", return_dict=True
)
out = model.generate(**inputs, max_new_tokens=128, do_sample=False)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
Released for AI-safety research: measuring and comparing alignment behaviour, and serving as the unsteered reference endpoint in activation-steering experiments.
| Item | Value |
|---|---|
model.safetensors SHA-256 | 1a2a404db755b04ac9385d8477f1853d86a586c8ec691abef9931701c0da50d5 |
model.safetensors size | 16,060,572,712 bytes |
| D-STEER code commit | 84b50df41dd83fee78de149e6f849cb8e09c8c8e |
| Model artifact manifest SHA-256 | a16d842cb1fc0212a0a081b4c49183b2053e5902b00b90dfda255992a1a6a609 |
PROVENANCE.json in this repository records the SHA-256 of every published file.
The preference-tuned counterpart is samarthraina/Llama-3-8B-D-STEER-OpenHermes-DPO.
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.