Skip to content

Commit

Permalink
trivial - None generation config
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanheng-zhao committed Apr 23, 2024
1 parent 747109c commit d4d6d1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion colossalai/inference/core/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,12 @@ def generate(
"""
with torch.inference_mode():
if prompts is not None or prompts_token_ids is not None:
gen_config_dict = generation_config.to_dict() if generation_config is not None else {}
self.add_request(
request_ids=request_ids,
prompts=prompts,
prompts_token_ids=prompts_token_ids,
**generation_config.to_dict(),
**gen_config_dict,
)

output_seqs_list = []
Expand Down

0 comments on commit d4d6d1b

Please sign in to comment.