Backend.AI is a streamlined, container-based computing cluster platform that hosts popular computing/ML frameworks and diverse programming languages, with pluggable heterogeneous accelerator support including CUDA GPU, ROCm GPU, TPU, IPU and other NPUs.
This is a revisit of #2053.
Despite astral-sh/ruff#6591 and astral-sh/ruff#11056, let's upgrade Ruff to the latest version because:
Now most backports will target 24.03 and 24.09 (based on Python 3.12) only and we will move on to 25.03 (based on Python 3.13) as the main branch soon.
There are more new lint errors found with the latest version of Ruff.
e.g., The result of typing.get_origin() should be compared with a type using the is operator.
Checklist: (if applicable)
[x] Milestone metadata specifying the target backport version
This is a revisit of #2053. Despite astral-sh/ruff#6591 and astral-sh/ruff#11056, let's upgrade Ruff to the latest version because:
typing.get_origin()
should be compared with a type using theis
operator.Checklist: (if applicable)