Phase 2: thread format version through clustering - #941
Open
kevinjzhang wants to merge 2 commits into
Open
Conversation
Summary: Adds a shared training utility that filters candidate graphs by compressing caller-provided MultiInput samples at a target format version. Callers are responsible for supplying inputs that exercise the graph paths whose compatibility must be tested. Also ensures format version is set inside managed compression base graph constructors. Reviewed By: terrelln Differential Revision: D114119859
Summary: Threads the resolved target format version through the clustering trainer: - clusterSuccessors() now filters the clustering (concat) codecs by ZL_Compressor_Node_getMinVersion against the target version and throws FormatVersionUnsupportedError if none survive (so the orchestrator can fall clustering back to zstd), and builds its round-trip CCtx at the target version. - train_cluster() resolves the version from TrainParams and passes it through Trainer::getTrainedClusteringConfig into CompressionUtils, whose per-sample benchmark CCtx now targets that version instead of ZL_MAX_FORMAT_VERSION. FormatVersionUnsupportedError moved to train_params.h (train_common) so it is visible to every trainer and the orchestrator without a BUCK dependency cycle. Reviewed By: terrelln Differential Revision: D113974921
|
@kevinjzhang has exported this pull request. If you are a Meta employee, you can view the originating Diff in D113974921. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Threads the resolved target format version through the clustering trainer:
ZL_Compressor_Node_getMinVersion against the target version and throws
FormatVersionUnsupportedError if none survive (so the orchestrator can fall
clustering back to zstd), and builds its round-trip CCtx at the target version.
Trainer::getTrainedClusteringConfig into CompressionUtils, whose per-sample
benchmark CCtx now targets that version instead of ZL_MAX_FORMAT_VERSION.
FormatVersionUnsupportedError moved to train_params.h (train_common) so it is
visible to every trainer and the orchestrator without a BUCK dependency cycle.
Reviewed By: terrelln
Differential Revision: D113974921