WIP
This commit is contained in:
BIN
profile_output.prof
Normal file
BIN
profile_output.prof
Normal file
Binary file not shown.
@@ -1688,15 +1688,6 @@ class AxolotlInputConfig(
|
|||||||
if data.get("remove_unused_columns") is not False:
|
if data.get("remove_unused_columns") is not False:
|
||||||
raise ValueError("Set `remove_unused_columns: False` when using kto")
|
raise ValueError("Set `remove_unused_columns: False` when using kto")
|
||||||
|
|
||||||
if data.get("gradient_checkpointing") and not (
|
|
||||||
data.get("gradient_checkpointing_kwargs")
|
|
||||||
and isinstance(data.get("gradient_checkpointing_kwargs"), dict)
|
|
||||||
and data["gradient_checkpointing_kwargs"].get("use_reentrant")
|
|
||||||
):
|
|
||||||
raise ValueError(
|
|
||||||
"Set `gradient_checkpointing_kwargs: {use_reentrant: true}` for when kto is enabled"
|
|
||||||
)
|
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user