Skip to content

Commit

Permalink
fix chatglm2 cpu ut (#12336)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardozcm authored Nov 5, 2024
1 parent d872639 commit 8e9a3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/llm/test/inference/test_transformers_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def test_optimize_model(Model, Tokenizer, model_path, prompt):
logits_optimized_model = (model(input_ids)).logits
diff = abs(logits_base_model - logits_optimized_model).flatten()

assert any(diff) is False
assert (diff/logits_base_model.flatten()).mean()<0.05


if __name__ == '__main__':
Expand Down

0 comments on commit 8e9a3a1

Please sign in to comment.