parse_known_args: module-level parser must tolerate importers' argv

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Nils
2026-07-14 12:50:45 +02:00
co-authored by Claude Fable 5
parent cd8e94dda5
commit e152a91c05
+1 -1
View File
@@ -51,7 +51,7 @@ ap.add_argument("--deepk", type=int, default=0,
ap.add_argument("--bptt", type=int, default=0,
help="truncated BPTT: grads only through last N iterations")
ap.add_argument("--lr", type=float, default=1e-3)
ARGS = ap.parse_args()
ARGS, _ = ap.parse_known_args()
SEED = ARGS.seed
LR = ARGS.lr
SUFFIX = ((f"_s{SEED}" if SEED else "")