Views
No views yet
1pip install pika
2# or just
3pip install huggingface_hub joblib1from huggingface_hub import snapshot_download
2from pika.probe import LinearEoiProbe
3
4# Download a probe
5probe_path = snapshot_download(
6 repo_id="CoffeeGitta/pika-probes",
7 allow_patterns=["gpt-oss-20b-high--MATH--linear-eoi-probe--mv-correct--k5-t1.0/*"]
8)
9
10# Load and use
11probe = LinearEoiProbe.load_from_checkpoint(probe_path)
12predictions = probe.predict(texts=["Solve: Find all real x such that x^3 - 3x + 1 = 0"])1from pika.hub import download_probe
2
3probe = download_probe(
4 repo_id="CoffeeGitta/pika-probes",
5 model_name="gpt-oss-20b_high",
6 dataset="MATH"
7)| Probe | Model | Layer | EOI Pos | Test AUC |
|---|---|---|---|---|
gpt-oss-20b-high--MATH--linear-eoi-probe--mv-correct--k5-t1.0 | gpt-oss-20b_high | 15 | -3 | 0.860 |
gpt-oss-20b-low--MATH--linear-eoi-probe--mv-correct--k5-t1.0 | gpt-oss-20b_low | 17 | -3 | 0.845 |
gpt-oss-20b-medium--MATH--linear-eoi-probe--mv-correct--k5-t1.0 | gpt-oss-20b_medium | 17 | -3 | 0.844 |
Qwen2.5-Math-7B-Instruct--MATH--linear-eoi-probe--mv-correct--k5-t0.7 | Qwen2.5-Math-7B-Instruct | 17 | -1 | 0.845 |
Qwen3-8B--gneubig_aime-1983-2024--linear-eoi-probe--mv-correct--k5-t0.6 | Qwen3-8B | 33 | -3 | 0.698 |
best_probe.joblib: Trained sklearn LogisticRegression modelplatt_scaler.joblib: Platt calibration scaler (for probability calibration)probe_metadata.json: Full training metadataconfig.json: Clean configuration summarybest_layer_idx: Which transformer layer to extract activations fromeoi_token_offset: Token position relative to end of templated input
-1 = last token of input-3 = 3rd token from endeoi_token_offset=-3, extract the hidden state at hidden_states[best_layer_idx][:, -3, :] after tokenizing the input prompt.1python -m pika.main \
2 --probe linear_eoi_probe \
3 --dataset DigitalLearningGmbH_MATH-lighteval \
4 --model Qwen/Qwen2.5-Math-7B-Instruct \
5 --max_len 3000 --k 5 --temperature 0.71@misc{lugoloobi_llms_2026,
2 title = {{LLMs} {Encode} {Their} {Failures}: {Predicting} {Success} from {Pre}-{Generation} {Activations}},
3 shorttitle = {{LLMs} {Encode} {Their} {Failures}},
4 url = {http://arxiv.org/abs/2602.09924},
5 doi = {10.48550/arXiv.2602.09924},
6 publisher = {arXiv},
7 author = {Lugoloobi, William and Foster, Thomas and Bankes, William and Russell, Chris},
8 month = feb,
9 year = {2026},
10 note = {arXiv:2602.09924 [cs]},
11}