Tiny Aya refusal steering vectors
This repository contains four activation steering vectors extracted from Cohere Tiny Aya Global with SafeTune, plus their scientific configuration. It is a model-related research artifact, not a standalone checkpoint or a LoRA adapter. No model weights are duplicated.
raw_directions.pt: a dictionary of tensors indexed by decoder blocks 9, 14, 19 and 25 (zero-indexed).steering_config.json: target model revision, software versions, selected block, direction convention and budget definition.SHA256SUMS: file checksums to verify the download.
The positive direction is the mean activation on harmful prompts minus the mean activation on harmless prompts, measured at the last chat-template token. Directions are fitted on training prompts only. Block 14 is selected using validation.
Loading the vectors
import torch
from huggingface_hub import hf_hub_download
path = hf_hub_download("GLECO/tiny-aya-refusal-steering-vectors", "raw_directions.pt")
directions = torch.load(path, map_location="cpu", weights_only=True)
unit = {layer: vector / vector.norm() for layer, vector in directions.items()}
budget = 0.25 * directions[14].norm().item()
shared_vectors = {layer: (budget / 4) * unit[14] for layer in directions}
With the compatible Tiny Aya model already loaded, SafeTune's CAAModel(model, shared_vectors, strength=1.0) applies this shared-direction intervention inside its context manager. The original code handles generation and hook cleanup. Single-layer and layer-specific variants are described in the scientific configuration and write-up. These artifacts have not been evaluated on other checkpoints.
Evaluation
The external campaign compares 13 conditions on 620 prompts. Low-strength shared steering reduces Qwen3Guard-judged harmful responses on transferred attacks from 12.9% to 5.3%, while over-refusal increases from 8.8% to 12.4%. These are exploratory safety–over-refusal results, not guarantees.
Base model and access
The target is CohereLabs/tiny-aya-global, revision af89d219b53ed9b13b8a4645f9c8028973510324. Its model card lists CC-BY-NC-4.0, and upstream weight access requires acceptance of Cohere's conditions. Obtain weights there. This steering-vector repository is public and ungated; it does not remove the base model's access requirements or terms.
Limits
The judge needs human validation, general utility is not measured, and transferred attacks are not adaptive attacks. Layer-specific directions show no demonstrated advantage in the tested configurations.