Skip to content

Commit

Permalink
make 8bit flag optional (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmosaicml committed Aug 30, 2023
1 parent aabdb3c commit 755354c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/eval/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def evaluate_model(model_cfg: DictConfig, dist_timeout: Union[float, int],
for name, logger_cfg in loggers_cfg.items()
]

if fsdp_config and model_cfg.model.load_in_8bit:
if fsdp_config and model_cfg.model.get('load_in_8bit', False):
raise ValueError(
'The FSDP config block is not supported when loading ' +
'Hugging Face models in 8bit.')
Expand Down

0 comments on commit 755354c

Please sign in to comment.