[Docs] Improve malformed exception caused by backslash line continuations (#31694)

Signed-off-by: maang <maang_h@163.com>
Signed-off-by: maang <55082429+maang-h@users.noreply.github.com>
Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com>
Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
This commit is contained in:
maang
2026-01-05 17:51:54 -08:00
committed by GitHub
co-authored by Cyrus Leung Wentao Ye
parent ccb309a964
commit d386ab1412
7 changed files with 14 additions and 17 deletions
@@ -681,8 +681,8 @@ def safetensors_weights_iterator(
# instead we reconstruct the subclasses here before returning
if not torchao_version_at_least("0.15.0"):
raise ValueError(
"Please use torchao version >= 0.15.0 \
to load torchao safetensors checkpoint"
"Please use torchao version >= 0.15.0 "
"to load torchao safetensors checkpoint"
)
from torchao.prototype.safetensors.safetensors_support import (
unflatten_tensor_state_dict,