mmtf/probes-activations
probes-activations Token-level hidden-state activations (bfloat16) for the top-10 layers per model (ranked by validation token-level code-masked AUC from a full layer sweep), extracted over the SVEN cyber-vulnerability dataset (1,430 examples). Built for linear-probe / natural-language-activation (NLA) research. Activations are stored per model, per layer so a single layer can be pulled on its own (e.g. on Colab) without regenerating from the base model: from huggingface_hub… See the full description on the dataset page: https://huggingface.co/datasets/mmtf/probes-activations.
probes-activations
Token-level hidden-state activations (bfloat16) for the top-10 layers per model (ranked by validation token-level code-masked AUC from a full layer sweep), extracted over the SVEN cyber-vulnerability dataset (1,430 examples). Built for linear-probe / natural-language-activation (NLA) research.
Activations are stored per model, per layer so a single layer can be pulled on its own (e.g. on Colab) without regenerating from the base model:
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
import numpy as np
m = "google_gemma-3-27b-it"
f = hf_hub_download("mmtf/probes-activations", f"{m}/layer_19.safetensors", repo_type="dataset")
acts = load_file(f)["activations"] # bf16 tensor, shape (T_tokens, hidden)
y = np.load(hf_hub_download("mmtf/probes-activations", f"{m}/y.npy", repo_type="dataset")) # int8 per-token label
eids = np.load(hf_hub_download("mmtf/probes-activations", f"{m}/example_ids.npy", repo_type="dataset")) # int32 example id per tokenLayout
Per model directory <org>_<model>/:
Shared, at the repo root:
data/dataset.jsonl— SVEN examples (code + vulnerability spans + labels)data/sven_split_meta.json— train/val/test split, defined by example (map tokens→examples viaexample_ids)
Models & selected layers
How these were produced
- One forward pass per example (full sequence,
max_length=2048), all hidden states captured, on an NVIDIA GH200. - Stored bfloat16, not float16: Gemma-3 has mid-layer "massive activations" (>65504) that overflow fp16 → NaNs; bf16 keeps fp32's exponent range. (Originals were fp32; bf16 halves size with no overflow.)
- The 10 layers per model are the highest-scoring by
val_tokens_code_aucin the per-model layer sweep.
Provenance & licensing
Derived from the SVEN dataset; base models are Gemma-3 (governed by Google's Gemma terms) and Qwen (governed by the respective Qwen licenses). These activations are derived representations — downstream use is governed by those upstream dataset/model licenses. license: other reflects that; consult SVEN and the base-model licenses before redistribution or commercial use.
