Repository navigation
feat(energon): add external encoder plugins and precomputed masks - #4296
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
2e2f854 to
fb0c737
Compare
fb0c737 to
88d7b9f
Compare
88d7b9f to
7af2204
Compare
7af2204 to
a576682
Compare
a576682 to
3d18af6
Compare
|
Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
3d18af6 to
3990653
Compare
|
/ok to test 3990653 |
3990653 to
5394223
Compare
5394223 to
f44d47c
Compare
|
Suggest adding the following tests:
|
a867c89 to
578a060
Compare
|
/ok to test 578a060 |
|
/ok to test fee8a99 |
|
/ok to test fee8a99 |
Signed-off-by: rohitrango <[email protected]>
Signed-off-by: rohitrango <[email protected]>
Map the boolean skip_chat_template blend subflavor to CanonicalSFTSample.chat_template_preapplied and forward it through the generic processor adapter. Reject non-boolean subflavors, document source ownership of rendered text, and test mixed normal/preformatted streams with real tokenization. Signed-off-by: Rohit Jena <[email protected]>
Move max_sequences_per_bin wiring and balanced_knapsack_delta support from the follow-up stack into the encoder-plugin PR so its packer construction works independently. Use task_encoder.packing throughout SFTv2 setup and remove obsolete controller-to-worker-to-loader packing arguments. Validate pack capacity and padding alignment against the policy configuration. Rename plugin fields to object_name while preserving the legacy YAML alias and serialized plugin names. Document loss_mask_mode and add worker API, restored-loader, real-packer, config alias, and negative packed/unpacked mask regressions. Update stale model-family tests. Signed-off-by: Rohit Jena <[email protected]>
Signed-off-by: Rohit Jena <[email protected]>
Signed-off-by: Rohit Jena <[email protected]>
Co-authored-by: Terry Kong <[email protected]> Signed-off-by: Rohit Jena <[email protected]>
Signed-off-by: Rohit Jena <[email protected]>
Leave garbage collection and cache-copy thread overrides unset unless explicitly configured, so Energon retains its upstream defaults. Allow zero to disable forced GC, document the optional loader controls, and cover omitted, null, and explicit values for train and validation loaders. Signed-off-by: Rohit Jena <[email protected]>
Signed-off-by: rohitrango <[email protected]>
Co-authored-by: Terry Kong <[email protected]> Signed-off-by: Rohit Jena <[email protected]>
Bind configured options against each resolved cooker signature before constructing the loader. Reject unknown or conflicting options with the cooker identity instead of repeatedly failing while processing samples. Add regressions for built-in and file-backed cookers, including accepted keyword and variadic options. Signed-off-by: rohitrango <[email protected]>
…r modes early Use one non-mutating validator for precomputed masks in packed and unpacked SFT preparation. Type the encoder mode as Literal[precomputed] or None and reject unsupported modes or only_unmask_final conflicts when the encoder is constructed. Add regressions for constructor-time rejection, malformed masks and token vectors in both paths, supported mask dtypes, and validation across conversations. Signed-off-by: rohitrango <[email protected]>
Move common plugin fields and reference validators into one base schema while preserving defaults, shorthand, aliases, diagnostics, and loader identity. Pass component configs directly to registry resolution and identity methods and update all callers. Add schema compatibility regressions. Signed-off-by: rohitrango <[email protected]>
Remove redundant pack capacity and padding fields and their duplicate checks. Use the canonical data maximum sequence length as bin capacity and forward policy padding through controller, worker, and loader setup. Update recipes, documentation, and fresh/resumed loader wiring tests. Signed-off-by: rohitrango <[email protected]>
Remove the unshipped object alias and explicitly reject that key even when component configs allow extras. Serialize object_name consistently in loader and registry identities, and update documentation and file-backed plugin tests. Signed-off-by: rohitrango <[email protected]>
Register an SFTv2 diamond test comparing two uninterrupted steps with one step plus save and restore. Assert exact step IDs and valid-token counts, and use the existing SFTv1 BF16 loss tolerance. Support an optional packed variant to exercise packing-buffer restore. Close the TensorBoard writer through Logger.finish so Ray actor teardown preserves final scalars. Add a real-event regression covering final metrics and repeated teardown. Validation on AGA: 175 unit tests passed; two-GPU CLEVR/Qwen2.5-VL unpacked and packed resume diamonds passed. Signed-off-by: rohitrango <[email protected]>
Co-authored-by: Terry Kong <[email protected]> Signed-off-by: Rohit Jena <[email protected]>
fee8a99 to
d994483
Compare
|
/ok to test d994483 |
Adds file-backed task encoders and cookers, precomputed encoder masks, and complete task-encoder-owned packing configuration for SFTv2.
object_namefrom an absolute Python path. The legacy YAMLobjectalias remains accepted; loader identities retain serialized plugin names and source digests.skip_chat_templatetochat_template_preapplied, allowing normal and preformatted sources to share an adapter.data.energon.task_encoder.packingcontrols packer selection, buffer size, source-membership caps, balanced-knapsack bin slack, and padding. Removes obsolete controller/worker loader arguments and checks capacity/alignment against policy settings.The packing cap and balanced-knapsack support previously in #4515 are now prerequisites in this PR. Follow-ups remain #4511 → #4512 → #4515.
Validation:
Unit tests isolate dataset I/O and distributed/model initialization as needed; CUDA/distributed training parity is outside this validation. Full CI is pending.