Skip to content
Projects

About

LLM experiment reproducibility toolkit

AI & Machine Learning

How these counts are measured

What you can do

  • Before sharing an experiment: find missing revisions, dependency pins, prompts and reproducibility settings while you can still recover them.
  • When results change: compare recorded state across runs and see whether the model, prompt, sampling settings, judge or environment drifted.
  • When preparing a paper artifact: export the available evidence and its limitations into a document reviewers can inspect.
  • When your method has custom parameters: declare project rules and bind them to real CLI flags, config keys or environment variables.

Measured star growth

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

ReproLLM — audit the setup, record the run, explain what changed. A manifest, lockfile and run record provide evidence for audit, diff and export.

Make LLM experiments reproducible.

CI PyPI version Supported Python versions Apache-2.0 license

Quick start · Agent Skill · Documentation · Examples · CI · Contribute

A reproducibility linter, experiment recorder, lockfile system, and drift detector for LLM research. It records the LLM-specific state that other tools ignore — model revision, tokenizer and chat-template hashes, prompt hashes, generation parameters, LLM-as-a-Judge configuration, and the pinnability of closed-source API models — and tells you why two runs differ.

Check what is missing. Capture what actually ran. Share the evidence. ReproLLM works alongside your evaluation scripts and experiment tracker, with reviewable YAML, JSON and Markdown artifacts in your own repository.

See what needs attention

An audit connects a finding to its source and a concrete next step:

  ! env.llm_critical_deps_pinned      vllm is used but not pinned to an exact version (suggestion: vllm==<version>)
      requirements.txt (declared as >=0.10)
      fix: Pin vllm exactly, e.g. `vllm==<version>`.

This is an actual excerpt from reprollm --no-color audit . on the quick-start fixture, before initialization; other findings are omitted. No model runs during audit.

After you record two runs, a semantic diff identifies the fields that changed. The executable tour captures a small Python probe twice, changing only the declared and observed token limit:

{
  "path": "generation.max_tokens",
  "a": 32,
  "b": 48,
  "severity": "HIGH",
  "status": "changed"
}

Excerpt from the generated diff; its other fields are omitted. This is a standard-library capture exercise, not an inference result. A HIGH change means the runs need review before comparison; it does not measure model quality.

Why use ReproLLM?

  • Before sharing an experiment: find missing revisions, dependency pins, prompts and reproducibility settings while you can still recover them.
  • When results change: compare recorded state across runs and see whether the model, prompt, sampling settings, judge or environment drifted.
  • When preparing a paper artifact: export the available evidence and its limitations into a document reviewers can inspect.
  • When your method has custom parameters: declare project rules and bind them to real CLI flags, config keys or environment variables.

Capture the state behind your result

LLM-specific state What ReproLLM records or checks
Model identity Model and tokenizer revisions, chat-template hashes, dtype, quantization and adapters
Prompt identity Content hashes, so an edit remains visible even when the filename stays the same
Generation and backend Sampling settings, inference configuration and installed backend versions
LLM-as-a-Judge Judge model pinnability, prompt hashes, sampling parameters and repetitions
API model pinnability Provider snapshot_alias labels versus unpinnable mutable aliases; no invented exact revisions

These sit alongside Git state, dependency declarations, dataset configuration, training settings and privacy assumptions. Browse the rule catalog for individual checks and their fix hints.

Fits your existing stack. Keep MLflow, W&B or TensorBoard for metrics and visualization, and your evaluation framework for executing tasks. ReproLLM adds reproducibility checks, input identity, runtime evidence and semantic drift.

Real-world usage

Two public projects document agent-assisted use with different evidence scopes:

Project Documented workflow and evidence
Privacy_Injection Local-model privacy research: isolated condition capture, audit, lock, diff and historical exports; released 0.6.1 and separately versioned source follow-ups.
LingshuSmartLink A multimodal agent application: synthetic fixture replay, contributor-reported CPU components and online workflow, plus .pth inventory feedback. The maintainer separately checked the offline tutorial.

These are two project identities, with scoped public reports and contribution history. They do not establish independent laboratories, long-term deployment or clinical effectiveness. See adoption evidence for versions, private-receipt limits and exact issue/PR counts. New .pth directory support is on unreleased 0.7.0 source; the published package remains 0.6.1.

Quick start

Choose the interface that fits your work:

Interface First step
Agent Skill Install the verified Skill once, then describe your task in natural language
CLI, current source Save a command and run the four-command exercise
CLI, published package Install below and start with reprollm audit .; newer source features are listed separately

Use an Agent

After installing skills/reprollm from the verified revision, you can ask:

Check this repository's reproducibility and explain what to fix first.

Save this experiment command, preview it, run it once in my selected environment, and export a report. Compare it with my previous run.

For the first concrete task, the Agent checks and, if needed, installs ReproLLM in its own tool environment. You provide the actual experiment command and environment; the Skill does not install model weights or training dependencies. An introduction alone triggers no installation or project scan. Running an experiment or sending discovery inputs still requires the corresponding scope.

Codex Linux has real-host acceptance. See support and remaining work for macOS/Windows limits, deferred Claude Code work and pending online validation. Prefer the terminal? Follow the CLI steps below.

1. Install

Use Python 3.10 or newer and Git. ReproLLM does not install PyTorch, Transformers, vLLM or model weights.

python --version
python -m venv .venv

Activate the environment for your shell:

# macOS / Linux
source .venv/bin/activate
# Windows PowerShell
.venv\Scripts\Activate.ps1
python -m pip install reprollm
reprollm --version

2. Run your first audit

From your research repository:

reprollm audit .

No account, API key, GPU or manifest is needed for the first audit. Without a manifest, Level 0 checks repository state and dependencies and suggests experiment profiles. Audit runs locally and makes no model calls.

Reading the result: findings and the process exit threshold are separate. By default, critical findings cause exit 1; warnings alone exit 0, even when the text verdict says FAIL. Use --fail-on warning for a stricter gate, or --format json for structured findings. Exit-code reference

On main (unreleased), the terminal separates Findings from Result, which states the exit code and threshold. Repeated warnings are compact by default; use reprollm audit --details to expand every finding.

3. Describe the experiment you intend to run

reprollm init .
# Review reprollm.yaml and replace the TODOs with your actual experiment settings.
reprollm audit .

The manifest enables Level 1 checks. Detection helps you get started; review suggested models, tasks and profiles for the one experiment you are documenting. The manifest guide explains roles, settings and bindings.

On main (unreleased), reprollm init . --list-tasks previews the full task inventory without writing files. When creating the manifest, select exact listed names with repeatable --task NAME, or use --interactive. Default init leaves evaluation.metrics empty until you select the experiment's tasks.

Want a complete practice run first? Follow the copy-and-run tutorial: audit → init → offline lock → two captures → diff → export. It uses a disposable example and only Python's standard library, with no GPU, model download or paid API.

Save your experiment command once

On current source (unreleased), guided setup saves the command; later runs reuse the declared working directory. Substitute your own script and environment:

reprollm init --interactive --command "python eval.py --config configs/eval.yaml"
reprollm audit .
reprollm run --dry-run
reprollm run
reprollm export

Initialization saves the command without executing it. Later reprollm run reuses execution.command and execution.cwd; an explicit command after -- applies to that invocation. Read Next steps and the listed field paths rather than guessing missing research values. See the guided first experiment for a GPU-free exercise. Use the source environment described below or the verified Skill; PyPI 0.6.1 does not include these unreleased conveniences.

Working from the source checkout

For the latest changes on main, clone this repository and use the development environment. This also includes unreleased fixes listed in the changelog.

git clone https://github.com/EnumaElish123/ReproLLM.git
cd ReproLLM
uv sync --dev
uv run reprollm --help

See CONTRIBUTING.md for development checks.

From a repository to a research artifact

Start small and add evidence as your experiment becomes ready to run.

Step Command Evidence you gain
Check reprollm audit . Findings with source locations and fix hints
Declare reprollm init . A reprollm.yaml scaffold to review and complete
Resolve reprollm lock . Revisions, hashes and provenance in reprollm.lock
Capture reprollm run -- <your-command> A run record, selected snapshots and observed bindings
Compare reprollm diff RUN_A RUN_B --fail-on HIGH Field-level drift with severity and source conflicts
Share reprollm export --template neurips REPRODUCIBILITY.md with a checklist evidence mapping

RUN_A and RUN_B are IDs printed by run or listed by reprollm runs list. Use your existing evaluation or training command after run --. Declare config files and bindings so ReproLLM can compare observed settings with your manifest; wrapping a process does not reveal every model-internal value. With a saved command on current source, use reprollm run directly. The Agent Skill can also select records and carry the authorized sequence through to export.

Three evidence layers: the manifest records intent; the lock records resolved inputs; the run records observations. A manifest plus a lock or run enables Level 2 consistency checks. A higher level describes the evidence available, not a guarantee that the experiment is reproducible.

What lives in your repository?
reprollm.yaml                       # your experiment declaration
reprollm.lock                       # resolved inputs and provenance
.reprollm/
  config.yaml                      # capture and discovery settings
  project-rules.yaml               # accepted or manually declared custom checks
  runs/<run-id>/run.json            # captured runtime record
REPRODUCIBILITY.md                  # exported research evidence

Review artifacts before sharing them. Run records stay local unless you choose to share them; see the runtime guide for capture and export policies.

Honest about what cannot be pinned

A Hugging Face commit, a provider's dated API model label and a mutable API alias provide different guarantees. ReproLLM preserves that distinction: a provider label does not become an exact revision, and unavailable metadata stays unresolved.

Use reprollm lock . --offline on an offline machine; it hashes available inputs and records unresolved remote values. Use reprollm lock . --check to check manifest/project-rule freshness without network access. See the lockfile guide for authentication, provenance and API models.

Pick a starting point

Example Explore
HF + vLLM evaluation Model and prompt identity, generation settings, and a completed manifest
API-based LLM judge Judge configuration, provider labels and unpinnable model identities
Privacy and custom parameters Privacy declarations and method-specific project rules

These are research fixtures with completed manifests and historical locks. Copy an example before modifying it. Running its model script requires its own dependencies and resources; the resource-free tour is separate.

Composable profiles: inference · evaluation · llm_judge · finetuning · safety · privacy, plus implicit core. Explore inheritance, required fields and detection in the profile catalog.

On main (unreleased), the eighth profile, judge_only, supports judging existing answers. Select it explicitly with reprollm init . --profiles judge_only and declare the judge, input dataset and metrics. Its scoped primary-model exception does not apply when mixed with inference, training or custom profiles.

Framework guides: lm-eval · lighteval · inspect-ai. Integrations help detect configuration and record versions; they do not run benchmarks for you.

Share evidence with your paper

reprollm export
reprollm export --template neurips --output REPRODUCIBILITY.neurips.md
reprollm export --template acl --output REPRODUCIBILITY.acl.md
reprollm export --template acm --output REPRODUCIBILITY.acm.md

Exports describe models, data, prompts, execution, audit findings and known limitations. Conference templates add evidence mappings; they do not certify compliance or answer checklist Yes/No questions on your behalf.

On main (unreleased), exports also include available dataset splits and preprocessing, model dtype/quantization/adapters, prompt few-shot settings, and Evaluation/Judge/Privacy details. Source labels distinguish declared, locked and observed values. Selecting an old run uses its own snapshots and observations; the audit summary is labelled separately as a current-working-tree check.

Export guide · Checklist coverage · Example artifact

Use in CI

Add an audit to .github/workflows/reprollm.yml:

name: Reproducibility
on: [push, pull_request]
permissions:
  contents: read
jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: "3.12"
      - uses: EnumaElish123/reprollm-action@v1
        with:
          fail-on: critical
          check-lock: "false"

Level 0 works without a manifest. Enable check-lock: "true" once your repository contains a completed manifest and lock. The Action provides annotations, a job summary and an audit report. Action usage and options

For another CI system, install ReproLLM and use reprollm audit . --format json. GitHub workflow annotations are also available via --format github. The Action is distributed separately; fixes in this repository's action source do not update its published v1 tag automatically.

Local by default, explicit about network access

LLM discovers. Rules decide. Runtime verifies. Audit uses deterministic rules. The optional discovery step proposes project-specific candidates; they become rules only after you explicitly accept them.

  • Audit, capture, diff and export need no LLM endpoint. ReproLLM collects no telemetry. The command you wrap with run can still make its own network calls.
  • Lock can resolve provider metadata over the network. --offline and --check work without network access; --verify-api is an explicit extra check.
  • Discover is experimental and opt-in. It sends selected repository text to your configured endpoint after confirmation. Preview collection first:
reprollm discover . --experimental --dry-run

On main (unreleased), add --show-content to preview the complete initial request messages without credentials or a request. See the discovery guide for exclusions, size limits and acceptance.

Capture uses environment allowlisting and secret-pattern redaction; forbidden files are excluded from snapshots and discovery. The opt-in reprollm doctor --check-network also makes a network probe. Security policy · Privacy and capture details

Documentation

You want to… Start here
Use natural language instead of assembling commands Agent Skill tutorial · Support and remaining work
Save a command and run it again Guided first experiment
Record a judge of already stored answers Stored-answer judge recipe
Try the whole workflow without a model Quick start
Understand the evidence model Concepts · Why ReproLLM
Configure an experiment Manifest · Profiles · Project rules
Record and compare runs Lockfile · Runtime capture · Semantic diff
Prepare a paper artifact Export · Checklist mapping
Look up a command or check CLI reference · Rule catalog · FAQ

Project status

The audit → lock → run → diff → export workflow and experimental discovery are available. The latest published package at this update is 0.6.1. This README tracks main; Unreleased changes may not be in PyPI yet.

The Skill v2 implementation (SK10–SK21) and the usability workflow are implemented on source. The verified Skill delivery b526d6e passes all five official CI jobs; its local gate has 6,731 passing tests. Three authenticated/paid integration gates remain pending specific authorization; Claude Code is deferred and external researcher feedback is unobserved. See the current status. The Skill is available from its verified repository directory, not a published Skill-market package or MCP service.

Quality checks cover Linux, macOS and Windows. Our five-project validation uses pinned public research repositories; these are maintainer validation targets, not claims of upstream adoption. Current Skill evidence and resource history distinguish local checks from real-model/GPU acceptance.

Next work is tracked in Skill support and remaining work, the current plan index and the backlog. ReproLLM records and audits reproducibility-critical state. It does not guarantee bitwise-identical results, score model quality or fingerprint entire datasets.

Contributing and citation

Found an unclear finding or a missing research setting? Open a bug report or propose a new rule. The contributing guide covers setup, tests and changes. Report suspected secret leaks through SECURITY.md.

If you use ReproLLM in your research, cite the software using CITATION.cff and include your generated REPRODUCIBILITY.md with the artifact. If it helps your workflow, a GitHub star helps others find it.

Apache-2.0 · Changelog · Documentation index

Explore related projects

Loading…