Skip to content
Merged
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
8 changes: 4 additions & 4 deletions tests/llmcompressor/transformers/kv_cache/test_kv_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def tokenize(sample):
return _kv_cache_fixture


@requires_version("transformers", "!=5.15.0")
@requires_version("transformers", ">=5.16")
Comment thread
kylesayrs marked this conversation as resolved.
def test_kv_cache_config_format(oneshot_fixture, tmp_path):
_, used_args = next(oneshot_fixture(tmp_path))
output_dir = used_args["output_dir"]
Expand All @@ -154,7 +154,7 @@ def test_kv_cache_config_format(oneshot_fixture, tmp_path):
assert kv_cache_scheme["symmetric"] == used_args["symmetric"]


@requires_version("transformers", "!=5.15.0")
@requires_version("transformers", ">=5.16")
Comment thread
kylesayrs marked this conversation as resolved.
def test_kv_cache_model_state_dict_attr(oneshot_fixture, tmp_path):
model, used_args = next(oneshot_fixture(tmp_path))
output_dir = str(used_args["output_dir"])
Expand All @@ -169,7 +169,7 @@ def test_kv_cache_model_state_dict_attr(oneshot_fixture, tmp_path):
assert counts > 0


@requires_version("transformers", "!=5.15.0")
@requires_version("transformers", ">=5.16")
Comment thread
kylesayrs marked this conversation as resolved.
def test_kv_cache_gptq_config_format(kv_cache_fixture, tmp_path):
recipe = """
quant_stage:
Expand Down Expand Up @@ -210,7 +210,7 @@ def test_kv_cache_gptq_config_format(kv_cache_fixture, tmp_path):


@requires_gpu
@requires_version("transformers", "!=5.15.0")
@requires_version("transformers", ">=5.16")
Comment thread
kylesayrs marked this conversation as resolved.
def test_kv_cache_gptq_model_state_dict_attr(kv_cache_fixture, tmp_path):
recipe = """
quant_stage:
Expand Down
Loading