Merging implementations, adding logging#29
Merging implementations, adding logging#29AaravG42 wants to merge 5 commits intofacebookresearch:mainfrom
Conversation
…cript for quick predictor training
… wandb logging and separate runs for eval
|
Hi @AaravG42! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
This pull request introduces several significant improvements to the codebase, primarily focusing on adding support for Token Merging (ToMe) in the AdaLN Vision Transformer model, enhancing dataset utility functions, and improving experiment management and reproducibility. The changes include new ToMe functionality for efficient token processing, updates to dataset loading for precomputed features, and improved handling of experiment directories and run metadata.
Model architecture and efficiency improvements:
AdaLN_vit.py, including new arguments (tome_r,tome_mode) and logic for bipartite soft matching, token merging/unmerging, and efficient attention/MLP processing. This enables more efficient and flexible handling of long token sequences in transformer blocks. [1] [2] [3] [4] [5]Dataset utilities and loading enhancements:
app/plan_common/datasets/utils.pyto support loading of precomputed encoder feature datasets via the newload_precomputed_slice_train_valfunction, including argument handling and error checking for required paths. [1] [2]ostoapp/plan_common/datasets/utils.pyto support environment variable expansion.Experiment management and reproducibility:
app/main.pyby generating unique run IDs, creating run directories, saving resolved configs and metadata, and creating symlinks to latest runs. This ensures better tracking and reproducibility of experiments. [1] [2].env.templateto document required environment variables for logs, datasets, and checkpoints, improving onboarding and reproducibility.Training script updates:
app/vjepa_wm/train.pyto use newrun_dirandrun_idparameters for log and checkpoint file management, ensuring outputs are saved in the correct experiment-specific directories. [1] [2]## Describe your changesDoes this PR touch common code? [ ] YES [ ] NO
Test Plan (optional if not touching common code)