Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Apr 12, 2024
1 parent b0d2849 commit 0a5026e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/models/layers/test_dmoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ def test_fwd_equal_dmoe(seqlen: int, precision: str, mlp_type: str):

torch_dmoe_config = copy.deepcopy(mb_dmoe_config)
torch_dmoe_config.ffn_config['ffn_type'] = 'torch_dmoe'
del torch_dmoe_config.ffn_config['moe_world_size']
del torch_dmoe_config.ffn_config['fc_type']
del torch_dmoe_config.ffn_config['moe_loss_weight']
del torch_dmoe_config.ffn_config['return_bias']

mb_dmoe_model = MPTForCausalLM(mb_dmoe_config).to(device=device,
dtype=dtype)
Expand Down

0 comments on commit 0a5026e

Please sign in to comment.