Skip to content

fix(qc,#16795): research Crypto-LSTM-Prediction determinisme — re-exec bit-identique (23/23 valeurs) - #16815

Merged
myia-ai-01 merged 1 commit into
mainfrom
feature/qcdet-research-1
Sep 20, 2026
Merged

myia-ai-01 merged 1 commit into
mainfrom
feature/qcdet-research-1

Conversation

@jsboige

@jsboige jsboige commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Grain: DEEP/qc -- lane myia-po-2026:CoursIA -- prev: DEEP/qc #16812

research Crypto-LSTM-Prediction : déterminisme explicite + re-exécution bit-identique

Tranche 7/13 du volet QuantConnect de #16795. Premier des 5 notebooks projects/*/research.ipynb — candidat re-vérifié firsthand : seeds multi-seed posés (cellule 15, boucle walk-forward np.random.seed(SEED) + torch.manual_seed(SEED)), AUCUN réglage de déterminisme, aucun QuantBook (exécution locale légitime), 11/11 outputs committés.

Le fix (cellule 3, import torch)

import os
os.environ.setdefault('CUBLAS_WORKSPACE_CONFIG', ':4096:8')  # avant import torch
# après les imports :
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
torch.use_deterministic_algorithms(True, warn_only=True)

Les seeds de la boucle ne suffisent pas seuls ; le trio est global, posé une fois à l'import. DEVICE reste CPU comme pinné par l'auteur (« GPU instable sur cette machine ») — pas de changement de comportement au-delà du mandat.

Preuve d'exécution (C.2) — et preuve de reproductibilité

Papermill 11/11 cellules code, kernel coursia-ml-training, 0 erreur
Verdict: INCONCLUSIVE (edge non significatif, |z| < 2) — inchangé

Falsification exécutée : comparaison systématique ancien run (committé) vs nouveau run — les 23 valeurs numériques 3+ décimales des outputs sont BIT-IDENTIQUES (23/23 communes, 0 disparue). Le pipeline walk-forward 5 folds × 4 seeds × 2 modèles est reproductible avec les flags armés : c'est la preuve la plus forte de tout le volet #16795 à ce jour.

Prose

0 ancrage numérique dans le markdown (vérifié par intersection outputs∩prose) — 0 remplacement nécessaire.

Périmètre

1 fichier, projects/Crypto-LSTM-Prediction/research.ipynb (+138/−133, essentiellement la cellule 3 + régénération des outputs identiques).

SOTA

SOTA-OK : vrai PyTorch, données yfinance réelles re-téléchargées, kernel documenté, sorties réelles, aucun workaround.

See #16795 (contribution partielle — volet QC ; 6 FIX_CANDIDATE restants)

🤖 Generated with Claude Code

…explicites + re-exec bit-identique

Cellule 3 (import torch) : CUBLAS_WORKSPACE_CONFIG avant import, puis
cudnn.deterministic=True / benchmark=False / use_deterministic_algorithms(True,
warn_only=True) — les seeds de la boucle walk-forward multi-seed (cellule 15)
ne suffisent pas seuls. DEVICE reste CPU comme pinné par l'auteur. Re-execution
complete kernel coursia-ml-training (11/11 cellules, 0 erreur) : les 23 valeurs
numeriques 3+ decimales des outputs sont BIT-IDENTIQUES a l'ancien run —
preuve de reproductibilite du pipeline walk-forward 5 folds x 4 seeds x 2
modeles, verdict INCONCLUSIVE (|z| < 2) inchange. Prose sans ancrage stale.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: 1
  • Code cells validated: 11
  • Result: All passed

Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns)
Non-Python kernels (.NET/Lean): C.1 + errors only (execution_count advisory)
QuantConnect notebooks: C.1 + errors only (require QC Cloud for execution)

@github-actions

Copy link
Copy Markdown
Contributor

Golden-Set Execution (H.7 P3)

✅ 8/8 notebooks passed (certified reproducible)

Notebook Status Time
2.1-Workflow-ML.ipynb ✅ SUCCESS 3.1s
2.2-Descente-de-gradient.ipynb ✅ SUCCESS 10.1s
2.3-Regression-lineaire-logistique.ipynb ✅ SUCCESS 6.9s
2.4-Arbres-Forets-Ensembles.ipynb ✅ SUCCESS 3.2s
Search-01-StateSpace.ipynb ✅ SUCCESS 2.6s
SL-1-LogicalLearning.ipynb ✅ SUCCESS 1.7s
rl_4_multi_armed_bandits.ipynb ✅ SUCCESS 16.3s
GameTheory-04c-NashExistence-Python.ipynb ✅ SUCCESS 2.3s

Pinned lockfile: scripts/notebook_tools/golden_set.lock.txt (H.7 P3, axe A #4208)

@github-actions

Copy link
Copy Markdown
Contributor

✅ No prose/output mismatch detected in the notebooks this PR changed.

Scope = notebooks CHANGED in this PR, not the whole corpus. Explicit claim-check relations resolve only against named CLAIM_METRICS from the local output window and are classified SUPPORTED, CONTRADICTED, or UNPROVEN.
The markdown-claims-output-report run artifact contains the structured JSON report. See python scripts/check_markdown_claims_output.py --help for re-running locally.
Detector rationale: c.290 / c.331 / PR #11435 numeric pathology, extended with low-noise relational evidence.

@github-actions

Copy link
Copy Markdown
Contributor

Notebook outputs-required (H.4 schema): PASS (every code cell carries an outputs: list)

@github-actions

github-actions Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Path-collision (organ #13359/#13615)

Cette PR #16815 (fix(qc,#16795): research Crypto-LSTM-Prediction determinisme — re-exec bit-identique (23/23 valeurs)) touche au moins un chemin de fichier aussi modifie par d'autres PRs ouvertes. Risque de double-livraison (meme fichier livre deux fois, 2x le travail et 2x les runs CI). Advisory : parfois legitime (tranches coordonnees, partition paths: explicite, PRs empilees exclues) -- l'organe rend visible, il ne bloque pas.

@jsboige

jsboige commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

[ADJOINT PREFLIGHT]
schema: 1
lane: myia-ai-01:CoursIA
pr: 16815
head: 47a9575
complete: true
body: read
comments-reviewed: 5
reviews-reviewed: 0
threads-reviewed: 0
threads-unresolved: 0
surfaces-sha256: be7145633435bc602896cf54201e81b73903567bd5e49b1482e12c55209b4dd1
diff-files: 1
diff-additions: 137
diff-deletions: 132
checks: latest-wins-green
b0: clear
scope: pass
domain: not-applicable
verdict: READY
[/ADJOINT PREFLIGHT]

@myia-ai-01
myia-ai-01 merged commit 0ef6080 into main Sep 20, 2026
77 of 78 checks passed
myia-ai-01 pushed a commit that referenced this pull request Sep 23, 2026
…1/32, research_rl_grpo) (#17482)

* fix(qc,#16795): determinisme GPU strict — residu non couvert (QC-Py-31/32, research_rl_grpo)

Three notebooks from the closed QC determinism series whose re-executed states
were NOT covered on main (arbitrage c.38 volet QC, DM po2026-arb-16795-qc-volet) :
main already carries the same fixes for QC-Py-22/23/24/33/34 + 6 research via
#16803/#16806/#16807/#16811/#16812/#16815/#16816/#16818/#16822/#16823/#16824.
Cherry-picked states from the retained branches feature/16795-qcdet-pr{A,B,C}.

C.2: execution_count+outputs coherents (17/17, 15/15, 7/7), 0 error, 0
NotImplementedError; machine attestee dans les sorties (PyTorch 2.6.0+cu124,
device cuda, NVIDIA RTX 3080 Ti; GRPO 4 seeds pour research_rl_grpo).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* ci: force fresh pull_request event (body Diagnostic derive kernel ajoutee)

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Sep 23, 2026
…1/32, research_rl_grpo) (#17482)

* fix(qc,#16795): determinisme GPU strict — residu non couvert (QC-Py-31/32, research_rl_grpo)

Three notebooks from the closed QC determinism series whose re-executed states
were NOT covered on main (arbitrage c.38 volet QC, DM po2026-arb-16795-qc-volet) :
main already carries the same fixes for QC-Py-22/23/24/33/34 + 6 research via
#16803/#16806/#16807/#16811/#16812/#16815/#16816/#16818/#16822/#16823/#16824.
Cherry-picked states from the retained branches feature/16795-qcdet-pr{A,B,C}.

C.2: execution_count+outputs coherents (17/17, 15/15, 7/7), 0 error, 0
NotImplementedError; machine attestee dans les sorties (PyTorch 2.6.0+cu124,
device cuda, NVIDIA RTX 3080 Ti; GRPO 4 seeds pour research_rl_grpo).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* ci: force fresh pull_request event (body Diagnostic derive kernel ajoutee)

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
@jsboige
jsboige deleted the feature/qcdet-research-1 branch October 16, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-overlap Advisory: another open PR touches the same files (organ #13615)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants