Skip to content

Commit 0b97e83

Browse files
committed
ci: add device memory test
1 parent 9d598f0 commit 0b97e83

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/test_inf2_llm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
export HF_TOKEN=${{ secrets.HF_TOKEN_OPTIMUM_NEURON_CI }}
8686
pytest -sv tests/decoder/test_decoder_config.py
8787
pytest -sv tests/decoder/test_fused_logits_warper.py
88+
pytest -sv tests/decoder/test_device_memory.py
8889
- name: Run LLM export tests
8990
run: |
9091
source aws_neuron_venv_pytorch/bin/activate

tests/decoder/test_device_memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ def test_neuron_device_memory():
99
neuron_device_memory = get_neuron_device_memory()
1010
assert neuron_device_memory is not None
1111
assert len(neuron_device_memory.devices) == get_neuron_devices_count()
12-
assert neuron_device_memory.get_total_memory() > 0
12+
assert neuron_device_memory.get_total_memory() >= 0

0 commit comments

Comments
 (0)