Skip to content

Gpu fallen of the bus - candle cuda health check for GPU health. #722

@michaelfeil

Description

@michaelfeil

System Info

https://forums.developer.nvidia.com/t/gpu-has-fallen-off-the-bus/217357

Currently we already return Ok() irrespective if gpu fails

fn health(&self) -> Result<(), BackendError> {

Willing to contribute a simple candle equivalent of

import torch # candle
try:
       torch.Tensor([2]).cuda() ** 2
       return "healthy"
except:
       return "error"

Other option:
return err if the last 3 consecutive candle requests fail.

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

e.g. overheat disconnect your GPU.

Expected behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions