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
2 changes: 1 addition & 1 deletion deepspeed/inference/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def _load_checkpoint(self, load_dir, load_module_strict=True, tag=None):
if is_pipe_parallel:
raise RuntimeError(
'pipeline parallelism is currently not supported in inference.')
if os.path.isdir(load_dir):
if not isinstance(load_dir, dict) and os.path.isdir(load_dir):
if tag is None:
latest_path = os.path.join(load_dir, "latest")
if os.path.isfile(latest_path):
Expand Down