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
4 changes: 3 additions & 1 deletion tests/test_gptqmodel_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ def test_gptqmodel_engine_can_generate_and_score_on_cuda() -> None:
assert math.isfinite(scores[0].logprob)
assert session.input_device.type == "cuda"
execution = session.describe_execution()
assert execution["generation_backend"] == "continuous_batching"
# Some transformers versions can fail paged continuous batching at runtime
# and transparently fall back to standard generate().
assert execution["generation_backend"] in {"continuous_batching", "generate"}
assert execution["effective_attn_implementation"] == "paged|flash_attention_2"
assert execution["paged_attention"] is True
assert execution["quant_method"] == "gptq"
Expand Down