ensure explicit eval_sample_packing to avoid mismatch issues (#1692)
This commit is contained in:
@@ -899,6 +899,15 @@ class AxolotlInputConfig(
|
|||||||
raise ValueError(
|
raise ValueError(
|
||||||
"eval_table_size and eval_sample_packing are not supported together with sample_packing. Please set 'eval_sample_packing' to false."
|
"eval_table_size and eval_sample_packing are not supported together with sample_packing. Please set 'eval_sample_packing' to false."
|
||||||
)
|
)
|
||||||
|
if (
|
||||||
|
data.get("sample_packing")
|
||||||
|
and data.get("eval_sample_packing") is None
|
||||||
|
and not data.get("eval_table_size")
|
||||||
|
):
|
||||||
|
LOG.info(
|
||||||
|
"explicitly setting `eval_sample_packing` to match `sample_packing`"
|
||||||
|
)
|
||||||
|
data["eval_sample_packing"] = True
|
||||||
return data
|
return data
|
||||||
|
|
||||||
@model_validator(mode="before")
|
@model_validator(mode="before")
|
||||||
|
|||||||
Reference in New Issue
Block a user