Views
No views yet
Souverain, vérifiable, ré-entrainable. The training data, code, and decision report are public so any third party can re-run this exact model from scratch. See the Reproduction section below.
microsoft/trocr-large-handwritten @ main05b32e5authentique)default0.95,0.025,0.02520260510| Role | sha256 | rows | bytes |
|---|---|---|---|
| train | 57994aac20699beb… | 32,269 | 12,603,500 |
| val | fdb70c21e3c602ae… | 849 | 331,763 |
| test | 238a349b9dfc3b35… | 849 | 331,789 |
corpus_manifest.json.docs/GREF_DATA_SOVEREIGNTY.md in the Fonciq monorepo for the full policy.REPRODUCE.sh in this repo):1#!/usr/bin/env bash
2# Auto-generated by worker/scripts/gref_train_local.py at 2026-05-11T13:47:44Z.
3#
4# Reproduces the GREF HTR training run that produced
5# ``pbel88/trocr-fr-cadastral-2026.05.bulletproof`` (or, when no push target was set, the run's final
6# checkpoint). To use:
7#
8# 1. Clone the Fonciq monorepo (or your fork).
9# 2. cd into the worker/ directory.
10# 3. ./REPRODUCE.sh (optional: WORK_DIR=/scratch/x ./REPRODUCE.sh)
11#
12# The script pins the repo at the exact git SHA that produced this run
13# and installs the training-time deps from a fresh venv. It does not
14# read your shell environment for credentials; set the relevant Hub /
15# repository tokens in your shell yourself if you need push or private
16# clone access.
17#
18# Source: docs/GREF_TRAIN_LAUNCH.md §"REPRODUCE.sh contract".
19
20set -euo pipefail
21
22REPO_ROOT="${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"
23cd "$REPO_ROOT"
24# 1. Pin the worker repo at the exact code that produced this run.
25 if [ -n "${REPO_GIT_REMOTE:-}" ] && [ ! -e .git ]; then
26 git clone --depth 50 "$REPO_GIT_REMOTE" .
27 fi
28 if git rev-parse --git-dir >/dev/null 2>&1; then
29 git fetch --depth 50 origin "05b32e5" || true
30 git checkout "05b32e5" || true
31 fi
32
33 # 2. Recreate the training-time Python environment from the pinned
34 # requirements (matches gref_train_launch.py's guaranteed baseline).
35 python -m pip install --upgrade pip
36 python -m pip install --extra-index-url https://download.pytorch.org/whl/cu124 \
37 "torch>=2.6,<3"
38 python -m pip install -r worker/requirements-train.txt
39
40 # 3. Re-run the pipeline. WORK_DIR is parameterised so you can
41 # diff this run's outputs against the original.
42 export PYTHONPATH=worker
43 python worker/scripts/gref_train_local.py \
44--work-dir ${WORK_DIR:-/tmp/gref-reproduce-$(date +%s)} \
45--mix-recipe default \
46--mix-split 0.95,0.025,0.025 \
47--base-model microsoft/trocr-large-handwritten \
48--revision main \
49--epochs 3 \
50--lr 0.0002 \
51--batch-size 16 \
52--max-target-len 64 \
53--htr-united-src-id htru-lectaurep-bronod \
54--banq-max-docs 5 \
55--tier authentique \
56--regression-tolerance 0.05 \
57--catmus-max-rows 50000 \
58--source htr-united \
59--source wikisource-banq \
60--source catmus \
61--no-streaming \
62--use-lora \
63--push-to-hub pbel88/trocr-fr-cadastral-2026.05.bulletproof \
64--git-sha 05b32e5