Skip to content

Commit cf69b40

Browse files
committed
tighten threshold
Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
1 parent 6931796 commit cf69b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unittest/_torch/modeling/test_modeling_starcoder2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def test_starcoder2_allclose_to_hf(scenario: Scenario) -> None:
237237
position_ids=position_ids,
238238
use_cache=True,
239239
)
240-
torch.testing.assert_close(logits, ref.logits[:, -1].float(), atol=0.4, rtol=0.4)
240+
torch.testing.assert_close(logits, ref.logits[:, -1].float(), atol=0.1, rtol=0.1)
241241

242242
# Generation phase (optionally with CUDA graphs)
243243
gen_input_ids = torch.tensor([900], dtype=torch.int, device=device)

0 commit comments

Comments
 (0)