Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
python3.10 -m pip install ninja pytest pytest-benchmark mujoco dm_control "gym[accept-rom-license,atari]" transformers
python -m pip install "pybind11[global]"
python3.10 -m pip install git+https://github.com/pytorch/tensordict
python3.10 -m pip install safetensors tqdm pandas numpy matplotlib
python3.10 -m pip install safetensors tqdm pandas numpy matplotlib ray
python3.10 setup.py develop

# test import
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
${{ matrix.device == 'CPU' && 'export CUDA_VISIBLE_DEVICES=' || '' }}

python3.10 -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu128 -U
python3.10 -m pip install ninja pytest pytest-benchmark mujoco dm_control "gym[accept-rom-license,atari]" transformers
python3.10 -m pip install ninja pytest pytest-benchmark mujoco dm_control "gym[accept-rom-license,atari]" transformers ray
python3.10 -m pip install "pybind11[global]"
python3.10 -m pip install git+https://github.com/pytorch/tensordict
python3.10 -m pip install safetensors tqdm pandas numpy matplotlib
Expand Down
5 changes: 5 additions & 0 deletions benchmarks/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

_has_transformers = importlib.import_module("transformers") is not None

# Skip all these tests if gpu is not available
pytestmark = pytest.mark.skipif(
not torch.cuda.is_available(), reason="GPU not available"
)


@pytest.fixture(scope="module")
def transformers_wrapper():
Expand Down
Loading