Skip to content

fix: parse --preemptible flag in Beaker submit scripts#1742

Open
Chessing234 wants to merge 2 commits into
allenai:mainfrom
Chessing234:fix/submit-job-preemptible-flag
Open

fix: parse --preemptible flag in Beaker submit scripts#1742
Chessing234 wants to merge 2 commits into
allenai:mainfrom
Chessing234:fix/submit-job-preemptible-flag

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Summary

  • switch --preemptible from type=bool to BooleanOptionalAction in finetune and DPO submit scripts

type=bool in argparse treats any non-empty string as True, so --preemptible False still set preemptible=True in the Beaker job config.

Test plan

  • run python scripts/submit_finetune_job.py --no-preemptible --help and confirm flag parses
  • verify generated Beaker config sets preemptible: false when --no-preemptible is passed

Made with Cursor

Chessing234 and others added 2 commits June 27, 2026 10:49
argparse type=bool treats any string as True, so --preemptible False
still submitted preemptible jobs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the --preemptible command-line argument in both scripts/submit_dpo_job.py and scripts/submit_finetune_job.py to use action=argparse.BooleanOptionalAction instead of type=bool. This correctly resolves issues with boolean parsing in argparse. There are no review comments, and I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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.

1 participant