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 12d4073 commit 955b991Copy full SHA for 955b991
examples/models/llama/model.py
@@ -251,6 +251,8 @@ def __init__(self, **kwargs):
251
"Could not load checkpoint into mode, defaulting to random uninitialized weights."
252
)
253
print(f"Error: {e}")
254
+ # Need to provide concrete (empty) values for meta-initialized tensors for quantization.
255
+ self.model_.to_empty(device="cpu")
256
257
if missing:
258
missing_weights = [fqn for fqn in missing if fqn.endswith(".weight")]
0 commit comments