mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
add resource for tf32 numerical issues
This commit is contained in:
1 parent
373362c3cf
commit
0846b2254c
1 file changed
+4
-1
@@ -873,6 +873,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
@@ -888,7 +889,9 @@
|
||||
"\n",
|
||||
"If you're using a GPU with a compute capability score of 8.0 or above, you can enable TF32 by setting [`torch.backends.cuda.matmul.allow_tf32 = True`](https://pytorch.org/docs/stable/notes/cuda.html#tensorfloat-32-tf32-on-ampere-devices) (this defaults to `False`).\n",
|
||||
"\n",
|
||||
"Let's write a check that sets it automatically for us based on our GPUs compute capability score."
|
||||
"Let's write a check that sets it automatically for us based on our GPUs compute capability score.\n",
|
||||
"\n",
|
||||
"> **Note:** TensorFloat32 is disabled by default (set to `False`) in PyTorch versions 1.12 onwards. This is because it [may cause inconsistent results across different devices](https://dev-discuss.pytorch.org/t/pytorch-and-tensorfloat32/504). Although this issue is not noticed for all use cases, it's worth knowing. "
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user