pyrecall
Forgetting detection and skill rollback for fine-tuned LLMs.
Fine-tune on new data and your model quietly loses what it already knew — coding ability, reasoning, safety guardrails. pyrecall catches it before it ships.
Install
pip install pyrecall # Python 3.11–3.14 · CUDA, MPS, and CPU
Quickstart
from pyrecall import Model
model = Model("Qwen/Qwen2.5-1.5b-Instruct")
model.snapshot("before")
model.learn("data.jsonl", epochs=3)
if not model.check().is_healthy:
model.rollback(to="before")
pyrecall init # default model used is Qwen/Qwen2.5-1.5B-Instruct
pyrecall snapshot before_v1 # baseline before training
pyrecall learn train.jsonl --snapshot-after after_v1 # train + snapshot in one step
pyrecall check # compares last two snapshots
# exit 0 → ship exit 2 → pyrecall rollback before_v1
To continuously monitor for new snapshots
pyrecall check --watch
How it works
Benchmarks 180 prompts across 9 skill categories (reasoning, coding, safety, math, multilingual, and more) using log-likelihood scoring. After training, check diffs the scores and flags any category that drops past your threshold (default 10%). Only the LoRA adapter is stored per snapshot — a few hundred MB, not the full model.
Any causal LM on HuggingFace Hub is supported — Llama, Mistral, Phi, Gemma, Qwen, Falcon, GPT-2/Neo/J, and more. LoRA targets are auto-detected.
Docs
Full CLI reference, Python API, experiment tracker integrations (W&B, MLflow, Neptune), custom benchmarks, per-category thresholds, and more:
Contributing
git clone https://github.com/Arths17/Pyrecall
pip install -e ".[dev]"
pytest
Open an issue before large changes. MIT — LICENSE.
Metadata
Release files for pyrecall 0.12.1
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 |
|---|---|---|---|---|
| pyrecall-0.12.1.tar.gz | 183.3 kB | Without provenance | Details for pyrecall-0.12.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrecall-0.12.1-py3-none-any.whl | Python 3 | none | any | Details for pyrecall-0.12.1-py3-none-any.whl |
Total release size: 288.9 kB
Release files / pyrecall-0.12.1.tar.gz
| Download URL | pyrecall-0.12.1.tar.gz |
|---|---|
| Size | 183.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6898678e8179b9b044f3348d9c84389465d685c2eaabda96ad19c3bac1c1c1a2
|
|
BLAKE2b-256 checksum How to use checksums |
2855bed475b8474102d23db04d60340fe2f33dd5c5a90f29cd34f17390e642b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / pyrecall-0.12.1-py3-none-any.whl
| Download URL | pyrecall-0.12.1-py3-none-any.whl |
|---|---|
| Size | 105.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89e9f99158f40a03a0e16718fe54c5c949743e57bd1f49e24bc2b736ca4d2413
|
|
BLAKE2b-256 checksum How to use checksums |
2b539cadae740f427d68e18a3540850ef021ab9c711af37dd7c939ec844fd1fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for pyrecall 0.12.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.