Skip to content

Commit

Permalink
WIP fix: correct pytest Jetstream filter
Browse files Browse the repository at this point in the history
  • Loading branch information
tengomucho committed Nov 25, 2024
1 parent d18dc6e commit a4cacf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text-generation-inference/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

def skip_if_jetstream_pytorch_enabled(func):
reason = "Skipping because Jetstream PyTorch is enabled"
jetstream_disabled = os.getenv("JETSTREAM_PT_DISABLE") != 1
return pytest.mark.skipif(jetstream_disabled, reason=reason)(func)
jetstream_enabled = os.getenv("JETSTREAM_PT_DISABLE") != "1"
return pytest.mark.skipif(jetstream_enabled, reason=reason)(func)


def prepare_model(model_id, sequence_length):
Expand Down

0 comments on commit a4cacf6

Please sign in to comment.