translations: dockerization of gpu tasks causes GPUs to disappear intermittently
When running bicleaner-ai task it can’t find a GPU and silently falls back to a CPU. If you retry a task many time it might pick up GPUs but most of the time it doesn’t:
[task 2025-05-08T02:39:34.007+00:00] 2025-05-08 00:59:06.229927: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
[task 2025-05-08T02:39:34.007+00:00] 2025-05-08 00:59:09.784240: E external/local_xla/xla/stream_executor/cuda/cuda_driver.cc:274] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
[task 2025-05-08T02:39:34.007+00:00] 2025-05-08 00:59:09.784314: I external/local_xla/xla/stream_executor/cuda/cuda_diagnostics.cc:129] retrieving CUDA diagnostic information for host: 3a7cddb6f838
[task 2025-05-08T02:39:34.007+00:00] 2025-05-08 00:59:09.784334: I external/local_xla/xla/stream_executor/cuda/cuda_diagnostics.cc:136] hostname: 3a7cddb6f838
[task 2025-05-08T02:39:34.007+00:00] 2025-05-08 00:59:09.784563: I external/local_xla/xla/stream_executor/cuda/cuda_diagnostics.cc:159] libcuda reported version is: 565.57.1
[task 2025-05-08T02:39:34.007+00:00] 2025-05-08 00:59:09.784633: I external/local_xla/xla/stream_executor/cuda/cuda_diagnostics.cc:163] kernel reported version is: 565.57.1
[task 2025-05-08T02:39:34.007+00:00] 2025-05-08 00:59:09.784657: I external/local_xla/xla/stream_executor/cuda/cuda_diagnostics.cc:241] kernel version seems to match DSO: 565.57.1
The same happens for training tasks. @gregtatum has a PR for automatic retries but based on my manual attempts to rerun things it might not help, and it wastes a lot of time on fetching and decompressing huge datasets.
Example task that doesn’t find GPUs: https://firefox-ci-tc.services.mozilla.com/tasks/VrNVDMcbQQO4eLZFxMHgjg Example task that found GPUs after retries: https://firefox-ci-tc.services.mozilla.com/tasks/HkLy87fOQF2-tCgvRSsKMg/runs/2
It is likely related to the recent migration to dockerized images #700
@bhearsum said he will be busy for some time. @JohanLorenzo, please help investigate it and escalate to GCP support if necessary. This blocks training for me, so I’m marking it as “blocker”.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (2 by maintainers)
Commits related to this issue
- pass /dev/nvidia* devices to docker run This is motivated by https://github.com/mozilla/translations/issues/1117, where we're seeing GPUs disappear after a systemd daemon reload happens (https://gith... — committed to bhearsum/taskcluster by bhearsum 2 years ago
- pass /dev/nvidia* devices to docker run This is motivated by https://github.com/mozilla/translations/issues/1117, where we're seeing GPUs disappear after a systemd daemon reload happens (https://gith... — committed to bhearsum/taskcluster by bhearsum 2 years ago
- chore: bump ubuntu headless image to taskcluster 83.11.0 To pick up https://github.com/taskcluster/taskcluster/pull/7723, which should fix https://github.com/mozilla/translations/issues/1117. — committed to bhearsum/worker-images by bhearsum 2 years ago
- chore: bump ubuntu headless image to taskcluster 84.0.0 To pick up https://github.com/taskcluster/taskcluster/pull/7723, which should fix https://github.com/mozilla/translations/issues/1117. — committed to bhearsum/worker-images by bhearsum 2 years ago
- chore: bump ubuntu headless image to taskcluster 84.0.0 (#293) To pick up https://github.com/taskcluster/taskcluster/pull/7723, which should fix https://github.com/mozilla/translations/issues/1117. — committed to mozilla-platform-ops/worker-images by bhearsum 2 years ago
- chore: bump ubuntu 24.04 headless image. This will pick up https://github.com/mozilla-platform-ops/worker-images/pull/293, which picks up a new generic-worker version that is expected to fix https://... — committed to bhearsum/fxci-config by bhearsum 2 years ago
- chore: bump ubuntu 24.04 headless image. (#378) This will pick up https://github.com/mozilla-platform-ops/worker-images/pull/293, which picks up a new generic-worker version that is expected to fix h... — committed to mozilla-releng/fxci-config by bhearsum 2 years ago
- fix: adjust dockerfile volumes to use new caches To try to work around https://github.com/mozilla/translations/issues/1117 I backed out much of https://github.com/mozilla/translations/issues/700. Not... — committed to bhearsum/translations by bhearsum 2 years ago
- fix: adjust dockerfile volumes to use new caches To try to work around https://github.com/mozilla/translations/issues/1117 I backed out much of https://github.com/mozilla/translations/issues/700. Not... — committed to mozilla/translations by bhearsum 2 years ago
- fix: adjust dockerfile volumes to use new caches To try to work around https://github.com/mozilla/translations/issues/1117 I backed out much of https://github.com/mozilla/translations/issues/700. Not... — committed to bhearsum/translations by bhearsum 2 years ago
- fix: adjust dockerfile volumes to use new caches (#1123) * fix: adjust dockerfile volumes to use new caches To try to work around https://github.com/mozilla/translations/issues/1117 I backed out muc... — committed to mozilla/translations by bhearsum 2 years ago
@matt-boris I looked at your training runs and they look ok to me (the GPUs are being utilized, bicleaner throughput is normal, eval metrics are ok).
We’ve got https://github.com/taskcluster/taskcluster/pull/7723 open to fix this on the Taskcluster side. We’ll need to spin a new worker image once that’s been merged a released; we should be able to get this resolved in the next day or two.