Skip to content

Commit

Permalink
minor fix on test_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ysjprojects committed Jan 8, 2025
1 parent 121f851 commit 3d34921
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
copy_weights_gemma_2,
copy_weights_gpt_neox,
copy_weights_hf_llama,
copy_weights_olmo2,
copy_weights_phi,
copy_weights_qwen_2_5,
)
Expand Down Expand Up @@ -665,7 +666,7 @@ def test_against_olmo2(model_name, device, dtype):
theirs_model = Olmo2ForCausalLM(theirs_config).to(device)
theirs_state_dict = theirs_model.state_dict()
state_dict = {}
copy_weights_hf_llama(ours_config, {}, state_dict, theirs_state_dict)
copy_weights_olmo2(ours_config, {}, state_dict, theirs_state_dict)
ours_model = GPT(ours_config).to(device)
ours_model.load_state_dict(state_dict)

Expand Down

0 comments on commit 3d34921

Please sign in to comment.