Views
No views yet
⚠️ WORK IN PROGRESS — ongoing research. These checkpoints are part of an active, unfinished research program. Results, methods, and conclusions are preliminary and subject to change. This repository is being made public early for transparency and reproducibility, and is a prelude to a likely future publication; please treat everything here as in-progress research artifacts, not final results.
google/gemma-4-E2B, loaded in 4-bit NF4.inject_config.json, inject_mean.npy) needed to reproduce the exact injection used at train/eval time.1from transformers import AutoModelForCausalLM, BitsAndBytesConfig
2from peft import PeftModel
3import torch
4
5bnb = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4",
6 bnb_4bit_compute_dtype=torch.bfloat16, bnb_4bit_use_double_quant=True)
7base = AutoModelForCausalLM.from_pretrained("google/gemma-4-E2B", quantization_config=bnb,
8 device_map={"": 0})
9av = PeftModel.from_pretrained(base, "Solshine/nla-gemma4e2b-research-checkpoints/<run>/<step>")inject_config.json describing where (embedding vs residual layer) and how
(raw vs mean-centered) the activation vector is injected. Match it when evaluating.