Skip to content

Commit

Permalink
Update benchmark_litgpt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
crcrpar authored Aug 21, 2024
1 parent 77b1928 commit a88b136
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thunder/benchmarks/benchmark_litgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ def init_model(self):
init_device = torch.device("meta") if self.distributed_mode in FSDP_MODES else self.device
with init_device:
model = GPT(self.config)
# TODO(crcrpar): Remove this guard once https://github.com/pytorch/ao/pull/713 is merged
if (
self.distributed_mode == "fsdp2"
and self._torchao_fp8_handler._enabled
Expand Down

0 comments on commit a88b136

Please sign in to comment.