Skip to content

Fix stale command examples in cifar and cvae READMEs - #1431

Open
ZayanKhan-12 wants to merge 2 commits into
ml-explore:mainfrom
ZayanKhan-12:fix/readme-flag-drift
Open

Fix stale command examples in cifar and cvae READMEs#1431
ZayanKhan-12 wants to merge 2 commits into
ml-explore:mainfrom
ZayanKhan-12:fix/readme-flag-drift

Conversation

@ZayanKhan-12

Copy link
Copy Markdown

Two documented commands don't match the code, one commit each:

  1. cifar: the distributed-training example runs main.py --batch 256 --epochs 5 --arch resnet20, but main.py's parser defines --batch_size — the command fails with unrecognized arguments: --batch 256. Verified by running main.py --help (parser output lists --batch_size; no --batch).
  2. cvae: the sample-output block shows $ python train.py, but the example's entry point is main.py (train.py doesn't exist in the directory; the README's own instructions above say python main.py).

Both scripts still compile (python -m py_compile). A sweep of every other example README's documented flags against each script's argparse definitions found no further mismatches.

Prepared with AI assistance (Claude); both fixes mechanically verified as described.

zk-khan and others added 2 commits July 26, 2026 19:17
main.py's argparse defines --batch_size (main.py line 19); the
documented mlx.launch command fails with 'unrecognized arguments:
--batch 256' as written.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The training entry point is main.py (train.py does not exist in this
example); the README's own earlier instructions already say
'python main.py'.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants