Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions optimum/habana/accelerate/accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def prepare_model(

if device_placement and not self.verify_device_map(model):
model = model.to(self.device)
if not evaluation_mode:
if not evaluation_mode and self.distribution_strategy != "fast_ddp":
if self.multi_device and not (self.parallelism_config and self.parallelism_config.tp_enabled):
if model_has_dtensor(model):
raise ValueError(
Expand Down Expand Up @@ -319,7 +319,6 @@ def prepare_model(
# model = super().prepare_model(model, device_placement=device_placement, evaluation_mode=True)
# else:
# model = super().prepare_model(model, device_placement=device_placement, evaluation_mode=evaluation_mode)

# return model

# INFO: this adds support for autograd compilation to the deepspeed engine
Expand Down
Loading