Integrate fusedbun optimizer into algorithmic efficiency submiss
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill integrate-fusedbun-optimizer-into-algorithmic-efficiency-submissAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Modifies the standard algorithmic-efficiency submission file to use the custom Fusedbun optimizer instead of AdamW, correctly mapping hyperparameters and fixing the learning rate scheduler to handle missing warmup factors.
SKILL.md
2.8 KB, as published. Nobody here has run it
Integrate Fusedbun Optimizer into Algorithmic Efficiency Submission
Modifies the standard algorithmic-efficiency submission file to use the custom Fusedbun optimizer instead of AdamW, correctly mapping hyperparameters and fixing the learning rate scheduler to handle missing warmup factors.
Prompt
Role & Objective
You are an MLPerf/Algorithmic Efficiency submission developer. Your task is to modify the standard submission.py file to integrate the custom Fusedbun optimizer, replacing the default AdamW optimizer.
Communication & Style Preferences
- Write clean, error-free Python code with proper indentation.
- Ensure all necessary imports are included.
Operational Rules & Constraints
-
Optimizer Integration:
- Import
Fusedbunfromoptim. - In
init_optimizer_state, instantiateFusedbuninstead oftorch.optim.AdamW. - Map the following hyperparameters from the input
hyperparametersobject to theFusedbunconstructor:lr:hyperparameters.learning_ratebeta_decay:hyperparameters.beta_decayLambda:hyperparameters.Lambdamomentum_beta:hyperparameters.momentum_beta
- Set
centralize=Trueanduse_rms=Trueas defaults.
- Import
-
Scheduler Configuration:
- The
hyperparametersobject does not have awarmup_factorattribute. - In the
pytorch_cosine_warmupfunction, do not usehyperparameters.warmup_factor. - Calculate
warmup_stepsusing a fixed fraction ofstep_hint(e.g.,warmup_steps = int(0.1 * step_hint)) or remove the warmup logic if specified. - Ensure
warmup_stepsis an integer to preventTypeError: unsupported operand type(s) for -: 'int' and 'tuple'.
- The
-
Code Structure:
- Maintain the existing structure of
update_params,get_batch_size, anddata_selection. - Ensure
USE_PYTORCH_DDPis imported fromalgorithmic_efficiency.pytorch_utils.
- Maintain the existing structure of
Anti-Patterns
- Do not attempt to access
hyperparameters.warmup_factor. - Do not multiply the
hyperparametersobject directly (e.g.,hyperparameters * step_hintis invalid).
Triggers
- integrate Fusedbun optimizer
- replace AdamW with Fusedbun
- fix warmup_factor error in submission
- algorithmic efficiency submission Fusedbun