Skip to content

Commit

Permalink
[Fix] dispatch internlm rote (#530)
Browse files Browse the repository at this point in the history
dispatch internlm rote
  • Loading branch information
HIT-cwh authored Mar 29, 2024
1 parent 7de581c commit 61b9451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xtuner/model/modules/dispatch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,12 @@ def dispatch_modules(model, use_varlen_attn=False):
dispatch_internlm2_attn_forward(model, use_varlen_attn)
if USE_TRITON_KERNEL:
dispatch_internlm2_rmsnorm_forward(model)
# replace_internlm2_rote(model)
replace_internlm2_rote(model)
elif 'internlm' in model_name:
dispatch_internlm_attn_forward(model, use_varlen_attn)
if USE_TRITON_KERNEL:
dispatch_internlm_rmsnorm_forward(model)
# replace_internlm_rote(model)
replace_internlm_rote(model)
elif 'llama' in model_name:
dispatch_llama_attn_forward(model, use_varlen_attn)
if USE_TRITON_KERNEL:
Expand Down

0 comments on commit 61b9451

Please sign in to comment.