Skip to content

Commit

Permalink
integration test where too many vocab elements caused argsort fail
Browse files Browse the repository at this point in the history
  • Loading branch information
mivanit committed Aug 20, 2024
1 parent 3a589b1 commit 3956867
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/integration/test_eval_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ def test_model_loading():
assert cfg == model_ret.zanj_model_config
assert_model_cfg_equality(model_ret, model_load_auto)

assert_model_output_equality(model_ret, model_load_auto)
vocab_size: int = len(model_ret.zanj_model_config.tokenizer)
assert_model_output_equality(
model_ret,
model_load_auto,
check_argsort_equality=(vocab_size > 2048),
)
# assert_model_exact_equality(model_ret, model_load_auto)


Expand Down

0 comments on commit 3956867

Please sign in to comment.