You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7749967
Browse filesBrowse the repository at this point in the historyBrowse files
Validate customer sequence lengths against the recipe's SequenceLength
Enforce that customer-selected lengths fit the recipe's supported sequence length:
- RL: max_prompt_length + max_response_length <= SequenceLength
- SFT/DPO: max_length (dataset_max_len) <= SequenceLength
FineTuningOptions.validate_length_constraints() checks this and is wired into the
RL/base trainers. The ceiling comes from the recipe's SequenceLength metadata
('<n>K'), parsed to an int via _parse_context_length; no-op when absent.
(Recipes side unified on the SequenceLength metadata field; the former
ContextLength field was dropped, so read SequenceLength here.)
0 commit comments