Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ppfleetx/configs/nlp/gpt/auto/pretrain_gpt_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ Engine:
ckpt_dir:


Fused_passes:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the name of Fused_passes.

enable: False
fused_passes_list: []


Model:
module: "GPTModuleAuto"
name: "GPT"
Expand Down
6 changes: 6 additions & 0 deletions ppfleetx/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,12 @@ def process_auto_strategy(config):
tuning.run_after_tuning = tuning_cfg.get('run_after_tuning', True)
tuning.debug = tuning_cfg.get('debug', True)

fused_passes_cfg = config.get('Fused_passes', {})
print("fused_passes_cfg:", fused_passes_cfg)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove print.

fused_passes = strategy.fused_passes
fused_passes.enable = fused_passes_cfg.get('enable', False)
fused_passes.fused_passes_list = fused_passes_cfg.get('fused_passes_list', [])

engine_cfg = config['Engine']
engine_cfg['strategy'] = strategy

Expand Down