How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="shirasko/gemma-2-2b-it-snmf-uranium")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("shirasko/gemma-2-2b-it-snmf-uranium")
model = AutoModelForCausalLM.from_pretrained("shirasko/gemma-2-2b-it-snmf-uranium", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Unlearned Checkpoint

Field Value
Unlearning method SNMF
Base model google/gemma-2-2b-it
Target concept Uranium
Checkpoint type Full Model Weights
Rank / seed 100 / 42
Train eval protocol mc

Unlearning Configuration

Selected hyperparameters (from unlearned_checkpoints.json):

Parameter Value
coverage_thresh 0.95
delta_embed 0
delta_in 4
delta_out 10
feature_source all
k_features_embed 0
k_features_mlp_in 36
k_features_mlp_out 17
layer_hi_in 25
layer_hi_out 8
layer_lo_in 0
layer_lo_out 0
n_tokens_edited 0
ratio_thresh 2
w_mode both

Primary Unlearning Metrics (held-out test, MC protocol)

Headline scores used for checkpoint selection:

Metric Train (after unlearning) Test (after unlearning)
Efficacy 0.872 0.857
Specificity 0.52 0.486
Harmonic mean 0.651 0.62
Relearning QA (MC) โ€” 0.22

Full Evaluation (baseline โ†’ unlearned)

From evaluation/score_comparison.csv:

Metric Baseline (train) After unlearn (train) Baseline (test) After unlearn (test)
QA accuracy 0.64 0.3 0.6 0.3
QA fraction 1 0.128 1 0.143
SimDom accuracy 0.62 0.38 0.74 0.44
SimDom fraction 1 0.351 1 0.388
MMLU accuracy 0.52 0.52 0.551 0.446
MMLU fraction 1 1 1 0.651

Files in This Repository

File Description
unlearned_checkpoints.json Checkpoint metadata & hyperparameters
evaluation/evaluation_summary.json Full evaluation payload (train/test/relearning)
evaluation/score_comparison.csv Baseline vs. unlearned comparison table
Downloads last month
58
Safetensors
Model size
3B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for shirasko/gemma-2-2b-it-snmf-uranium

Finetuned
(1078)
this model

Collection including shirasko/gemma-2-2b-it-snmf-uranium