Skip to content

Commit

Permalink
Update big_modeling.py (#3207)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-r-o-w authored Nov 1, 2024
1 parent b0e5fd3 commit a4a44ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/big_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def init_on_device(device: torch.device, include_buffers: bool = None):
from accelerate import init_on_device
with init_on_device(device=torch.device("cuda")):
tst = nn.Liner(100, 100) # on `cuda` device
tst = nn.Linear(100, 100) # on `cuda` device
```
"""
if include_buffers is None:
Expand Down

0 comments on commit a4a44ac

Please sign in to comment.