Skip to content

Commit

Permalink
Update llmfoundry/models/mpt/modeling_mpt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg authored Jul 24, 2024
1 parent ff0d3de commit ef6c8c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/models/mpt/modeling_mpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def gen_rotary_embedding(
)
elif rope_hf_config['type'] == 'llama3':
llama_rope_config = {**rope_hf_config}
llama_rope_config['rope_type'] = rope_hf_config.pop('type')
llama_rope_config['rope_type'] = rope_hf_config.get('type')
return LlamaRotaryEmbedding(
config=PartialLlamaConfig(
rope_scaling=llama_rope_config,
Expand Down

0 comments on commit ef6c8c2

Please sign in to comment.