TensorFlow 2.21.0 がリリースされて Geforce RTX5000 シリーズに正式対応

Page content

TensorFlow の 2.21.0 が 本日(3/7) にリリースされた。

ようやくこれで Geforce RTX5000 シリーズに正式対応する。

ということで、 TensorFlow 2.21.0 の UV 設定を挙げておく。

なお、 TensorFlow だけでなく Pytorch, notebook, jupyterlab も入れているので、 とりあえず一通りの AI 検討はできる。

Geforce RTX5000 シリーズ対応の TensorFlow 2.21.0 をセットアップする uv 用の pyproject.toml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[project]
name = "tf-rtx50x0-notebook"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
    "accelerate>=1.10.1",
    "cuda-toolkit>=13.0.1",
    "datasets>=3.0.1",
    "flax>=0.10.6",
    "image-classifiers>=1.0.0",
    "ipywidgets>=8.1.7",
    "jupyterlab>=4.4.9",
    "matplotlib>=3.9.0",
    "notebook>=7.4.3",
    "numpy>=2.2.6",
    "nvidia-cudnn-cu12>=9.12.0.46",
    "onnxruntime>=1.23.0",
    "opencv-python>=4.11.0.86",
    "pandas>=2.3.3",
    "pillow>=11.2.1",
    "scikit-learn>=1.6.1",
    "tensorboardx>=2.6.2.2",
    "tensorflow>=2.20.0",
    "tf2onnx==1.8.4",
    "torch>=2.9.0",
    "transformers>=4.57.1",
]

[[tool.uv.index]]
name = "pytorch-gpu"
url = "https://download.pytorch.org/whl/cu130"
explicit = true

[tool.uv.sources]
torch = [
{ index = "pytorch-gpu"  }
]
torchvision = [
{ index = "pytorch-gpu"  }
]
torchaudio = [
{ index = "pytorch-gpu"  }
]