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 32a74ce commit 42d3bfeCopy full SHA for 42d3bfe
examples/models/llama/model.py
@@ -171,7 +171,7 @@ def __init__(self, **kwargs):
171
172
# Within the device="meta" context, tensors that are created do not carry data.
173
# They possess all other metadata a tensor carries such as size, stride, requires_grad.
174
- with torch.device("cpu"):
+ with torch.device("meta"):
175
self.model_ = Transformer(model_args)
176
177
if "int8" in str(checkpoint_path):
0 commit comments