[hotfix] fix a type in ColoInitContext (#2106)

pull/2107/head
Jiarui Fang 2022-12-09 11:44:39 +08:00 committed by GitHub
parent 05545bfee9
commit 8e14344ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def _convert_to_coloparam(param: torch.nn.Parameter,
requires_grad = param.requires_grad
if param.device.type == 'meta':
raise NotImplemented(
raise NotImplementedError(
"ColoInitContext is initializing a model with meta parameters! This is not allowed right now!")
else:
# param is the global tensor.