Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class TestModelingV2Glm52Nvfp4Sm103Tep4(LlmapiAccuracyTestHarness):

@skip_not_sm103
@pytest.mark.skip_less_device(4)
def test_gsm8k_identity_vs_mtp1_and_acceptance(self):
def test_gsm8k_identity_vs_mtp1_and_acceptance(self, monkeypatch: pytest.MonkeyPatch) -> None:
"""The identity accuracy gate, the gate on MTP not moving it, and acceptance.

Turning MTP on must not move the answers.
Expand Down Expand Up @@ -210,6 +210,13 @@ def test_gsm8k_identity_vs_mtp1_and_acceptance(self):
pass. The mtp1 leg therefore records iteration stats and checks its
acceptance length against ``ACCEPTANCE_KEY``.
"""
# Test session reuse turns the HF weight cache on for reused pools
# (tests/test_common/session_reuse.py). With it on, `auto` loads natively and
# the MTP1 leg's cache hit reads SafeTensors pages that can be dropped during
# the identity leg's GSM8K run. Turn it off so both loads use rank-striped
# read-ahead. Remove this once session reuse stops turning the cache on or the
# loader stops caching SafeTensors entries.
monkeypatch.setenv("TRTLLM_HF_WEIGHT_CACHE", "0")
task = GSM8K(self.MODEL_NAME)

# One dict for both legs: the comparison only means anything if the two
Expand Down
Loading