mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
Fix for new localization.
This commit is contained in:
parent
62b4082514
commit
f64c9ba305
@ -103,7 +103,7 @@ class Model(ABC):
|
||||
|
||||
def check_initialized(self):
|
||||
uninitialized_parameters = []
|
||||
for n, p in self.named_parameters():
|
||||
for n, p in self.model.named_parameters():
|
||||
if p.data.device == torch.device("meta"):
|
||||
uninitialized_parameters.append(n)
|
||||
if uninitialized_parameters:
|
||||
|
Loading…
Reference in New Issue
Block a user