lie_detectors
Load the pre-trained lie-detection probes published at ai-safety-institute/lie-detection.
Install
uv add lie-detectors # or: pip install lie-detectors
Usage
import torch
from lie_detectors import get_probe
# Downloads the repo's default checkpoint (probe.pt = the best sweep result).
probe = get_probe("ai-safety-institute/dyl-qwen-qwen3.5-122b-a10b-fp8")
# Which model layer the probe reads activations from.
# Note e.g. the Unrelated Questions probe is instead trained on logprobs
print(probe.layer) # e.g. 28
# `activations` are residual-stream activations of shape (..., d_model) for the layer the
# probe was trained on.
scores = probe(activations) # higher score => more likely deceptive
flagged = scores > probe.threshold # threshold is calibrated to ~1% FPR
Pick a specific checkpoint from the hyperparameter sweep with filename= (see each repo's
sweep.json for the full list and their metrics):
probe = get_probe(
"ai-safety-institute/dyl-qwen-qwen3.5-122b-a10b-fp8",
filename="l_40_ar_mlp_wd_0_001_lr_0_0001_ep_100.pt",
)
Metadata
Release files for lie-detectors 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lie_detectors-0.1.0.tar.gz | 8.6 kB | With provenance | Details for lie_detectors-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lie_detectors-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lie_detectors-0.1.0-py3-none-any.whl |
Total release size: 16.8 kB
Release files / lie_detectors-0.1.0.tar.gz
| Download URL | lie_detectors-0.1.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eaf638b9e16ff51c770a341354f26d9040c963c943a395af46a4913f181357ac
|
|
BLAKE2b-256 checksum How to use checksums |
161628b1f1fbc3fbc7a4ce94336c92b6ada58aa2ec3181bf20733bc54f66c9fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.
Transparency logRelease files / lie_detectors-0.1.0-py3-none-any.whl
| Download URL | lie_detectors-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e97c2f97e35315479a85ad93d1bbd05ba09838c0aa3b68df3bdd801a0d3a175
|
|
BLAKE2b-256 checksum How to use checksums |
f9730363af9b63659be21110e4f5704870cc76a7b01da0d3600f464945b25692
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.
Transparency logSecurity for lie-detectors 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lie_detectors-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.