We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 697a2cc commit 5ef3fefCopy full SHA for 5ef3fef
examples/models/llama/model.py
@@ -251,6 +251,7 @@ def __init__(self, **kwargs):
251
"Could not load checkpoint into mode, defaulting to random uninitialized weights."
252
)
253
print(f"Error: {e}")
254
+ self.model_.to_empty(device="cpu")
255
256
if missing:
257
missing_weights = [fqn for fqn in missing if fqn.endswith(".weight")]
0 commit comments