mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-24 06:42:52 +08:00
Merge pull request #6564 from stephen-nju/fix_ray
Fix ray Former-commit-id: 6b34b69fa688c4622489d3d5f33d847fb6b95528
This commit is contained in:
commit
b777fed171
@ -75,7 +75,7 @@ def _parse_args(
|
||||
|
||||
(*parsed_args, unknown_args) = parser.parse_args_into_dataclasses(args=args, return_remaining_strings=True)
|
||||
|
||||
if unknown_args:
|
||||
if unknown_args and not allow_extra_keys:
|
||||
print(parser.format_help())
|
||||
print(f"Got unknown args, potentially deprecated arguments: {unknown_args}")
|
||||
raise ValueError(f"Some specified arguments are not used by the HfArgumentParser: {unknown_args}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user