Downloads · 30 days
13
11% of all-time downloads
debajyotidasgupta/eu-halt-llama-3-1-70b-instruct
eu-halt-llama-3-1-70b-instruct is a feature extraction model from debajyotidasgupta. Use it when you need embeddings to search or compare text. It is set up for pytorch. The card lists the license as apache-2.0.
Lightweight epistemic-uncertainty detector: K=4 prediction heads sharing the frozen meta-llama/Llama-3.1-70B-Instruct trunk. Configuration: middim=128, K=4 (frontier-panel, FLIPPED regime).
Downloads · 30 days
13
11% of all-time downloads
All-time downloads
121
Public
Parameters
70.4M
563 MB on disk
Likes
0
Public
Click a slice to open those files.
.pt282 MB · 50%
From the Hugging Face model README
meta-llama/Llama-3.1-70B-Instruct (frontier-panel, FLIPPED regime)Lightweight epistemic-uncertainty detector: K=4 prediction heads sharing the frozen meta-llama/Llama-3.1-70B-Instruct trunk. Configuration: mid_dim=128, K=4 (frontier-panel, FLIPPED regime).
Calibrate the sign before deploying. The direction of the disagreement signal is trunk-family-specific: on some families it rises on out-of-distribution input, on others (Llama-70B-class, gpt-oss-120B) it falls. Score ~50 known-ID and ~50 known-OOD prompts once and check which direction separates. Details: the paper and repo below.
Paper: When Uncertainty Lies (CAISc 2026, oral) · Code: github.com/debajyotidasgupta/eu-halt
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from eu_halt import attach
model = AutoModelForCausalLM.from_pretrained(
"meta-llama/Llama-3.1-70B-Instruct", torch_dtype=torch.bfloat16,
).to("cuda").eval()
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-70B-Instruct")
uncertainty = attach(
model,
heads_repo="debajyotidasgupta/eu-halt-llama-3-1-70b-instruct",
mid_dim=128,
)
print(uncertainty("Who founded Quora in 2008?", tokenizer))
# Higher = more uncertain.
model.safetensors — the K=4 head weights (preferred format; config embedded as metadata).config.json — head geometry: num_heads, mid_dim, source_layers, base_model, dims.heads_final.pt — the original torch checkpoint (kept for backward compatibility).heads_step{500,1000,1500,2000,2500}.pt — intermediate checkpoints (where uploaded).source_layers.json — the K=4 trunk-layer indices the heads read from.history.json — per-step loss + disagreement + GPU stats.HuggingFaceFW/fineweb-edu (streaming).quiet variants).OOD AUROC (id vs ood), 420 samples total:
| Signal | AUROC | 95% CI |
|---|---|---|
| disagreement | 0.3331 | [0.2675, 0.4043] |
| entropy | 0.6787 | [0.6194, 0.7370] |
| last_token_unc | 0.5777 | [0.5018, 0.6572] |
| mahalanobis | 0.5773 | [0.4316, 0.7102] |
| targ_margin | 0.5581 | [0.4830, 0.6342] |
| etc_trend | 0.4827 | [0.4061, 0.5589] |
| llm_check | 0.6278 | [0.5455, 0.7110] |
| mc_dropout | 0.6569 | [0.5939, 0.7217] |
| rauq | nan | [nan, nan] |
| p_true | nan | [nan, nan] |
| semantic_entropy | nan | [nan, nan] |
| semantic_entropy_nli | nan | [nan, nan] |
| eigenscore | nan | [nan, nan] |
Best signal: entropy
uncertainty.per_token(text, tokenizer).Apache-2.0 for the heads.
The trunk model meta-llama/Llama-3.1-70B-Instruct retains its own license (Qwen3 / Llama-3 / Phi / Gemma).
@inproceedings{dasgupta2026euhalt,
author = {Dasgupta, Debajyoti and Mondal, Arijit and Chakrabarti, Partha P.},
title = {When Uncertainty Lies: How Model Scale and Layer Geometry Quietly
Invert the Meaning of Internal Disagreement in Large Language Models},
booktitle = {1st Conference For AI Scientists (CAISc)},
year = {2026},
url = {https://huggingface.co/debajyotidasgupta/eu-halt-llama-3-1-70b-instruct},
}