[BUG]: review_ckpt.py passes a run that has .pt files no chain entry covers
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 84/100
Direzione di ricerca
Inizia da simple/review_ckpt.py, in particolare da main() e dal ciclo sulle voci della catena, poi esamina il flusso di scrittura dei checkpoint descritto nell’issue. Aggiungi test per i file .pt non coperti e ckpt.tmp, inclusi i casi elencati per i modelli base e di conversazione, e aggiorna simple/README.md. Il lavoro è completato quando i file non coperti vengono segnalati come findings e il comando termina con codice 1.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Description
simple/review_ckpt.py RUN is the review that runs before checkpoints are published. Its docstring says it checks every ckpt-XXXXX.pt in RUN, but main() only reviews the files that chain entries point to:
for entry in chain:
path = run / f"ckpt-{entry['index']:05d}.pt"
if not path.exists():
continue
...
Any other .pt file in RUN is skipped without a word, and the review still exits 0. That includes:
- a checkpoint with no chain entry.
trainwritesckpt-NNNNN.ptbefore it appends the entry ("Checkpoint first, then the chain entry, so a crash between them is harmless"), so a crash between the two leaves exactly this file; - a leftover
ckpt.tmp, from a crash duringtorch.save; base-model.ptorconversation-model.ptwhen the chain has nobaseorfinalentry.
Those files are pickles that would be published with the run without the content review the script exists for.
Steps to Reproduce
On main, with a run holding an honest ckpt-00000.pt for entry 0 and a copy of it saved as ckpt-00001.pt (no entry 1):
$ python simple/review_ckpt.py RUN; echo exit $?
{"file": "ckpt-00000.pt", ..., "result": "PASS"}
exit 0
ckpt-00001.pt isn't mentioned.
Expected Behavior
Fail closed: every .pt file (and ckpt.tmp) in RUN that no chain entry covers is reported as a finding, and the script exits 1.
Impact
The publication review can pass a run that contains unreviewed checkpoint files.
I'd like to fix this in main(), with tests for each case and a note in simple/README.md. This was found with an AI coding agent (Claude Code, Claude Opus 5.5), and I checked it locally.
Environment Details
main at d9531ad, Windows, Python 3.12, CPU.
- Lingua principale
- Python
- Stelle
- 26
- Fork
- 64
- Merge medio
- 2g 11h
- PR unite (30g)
- 71
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/OpenVerifiableLLM
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/OpenVerifiableLLM#357 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: Forked runs omit timestamps for inherited chain entriesForse già presa @pavithra-r06 l’ha presa 3 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/OpenVerifiableLLM#334 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: DigiCert timestamp verification fails on Windows because system_ca() ignores Windows CA bundlesForse già presa @pavithra-r06 l’ha presa 3 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
AOSSIE-Org/OpenVerifiableLLM#290 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: simple/ovl.py bench crashes with TypeError or ZeroDivisionError when stream yields <= 50 updatesForse già presa @AdityasagarR123 l’ha presa 26 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/OpenVerifiableLLM#223 · 2 commenti · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: verify never checks release_hashes_sha256, so the released files are not tied to the timestamped anchorForse già presa @ArnabOPP l’ha presa 1 giorno fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 63/100
AOSSIE-Org/OpenVerifiableLLM#360 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di AOSSIE-Org/OpenVerifiableLLM
Issue simili
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
gke-labs/kube-agents#6778 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Declare the CMS schema library in the optional recipients extraForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea:python in-progress
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
yhay81/pyropdf#1005 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
area/build-framework kind/enhancement priority/low
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
yugabyte/yugabyte-db#38826 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
sususweet/midea_auto_cloud#306 ·
I maintainer di solito rispondono entro 9 giorni