Skip to content

Commit

Permalink
remove x = ....
Browse files Browse the repository at this point in the history
  • Loading branch information
eitanturok authored Feb 13, 2024
1 parent 3aa6190 commit 66786ca
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions llmfoundry/utils/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,12 @@ def _validate_cfg(icl_cfg: DictConfig):
if 'num_beams' in icl_cfg:
icl_cfg.generations_per_sample = icl_cfg.num_beams
warnings.warn(
x = (
'num_beams is deprecated and will be removed in a future release. '
'To specify the number of generations per sample please use '
f'generations_per_sample: {icl_cfg.num_beams}. To specify '
'the number of beams for beam search decoding please use '
f'num_beams: {icl_cfg.num_beams} in generation_kwargs.')
DeprecationWarning,
('num_beams is deprecated and will be removed in a future release. '
'To specify the number of generations per sample please use '
f'generations_per_sample: {icl_cfg.num_beams}. To specify '
'the number of beams for beam search decoding please use '
f'num_beams: {icl_cfg.num_beams} in generation_kwargs.')
DeprecationWarning,
)
else:
icl_cfg.generations_per_sample = 20
Expand Down

0 comments on commit 66786ca

Please sign in to comment.