FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

Add option to set the seed for inference

Open nielstron opened this issue 2 years ago • 2 comments

For reproducibility its generally recommended to be able to set a seed for the prompt generation. This adds the option to the OpenAI-esque API endpoint and the model.

Note I am not 100% sure that setting the seed for torch is

  1. enough
  2. not interfering with potential parallel executions

nielstron avatar Apr 21 '23 12:04 nielstron

@nielstron Could you rebase to the latest main branch?

merrymercy avatar Apr 29 '23 12:04 merrymercy

Could you rebase to the latest main branch?

Done

nielstron avatar May 01 '23 17:05 nielstron

closed due to inactivity. Feel fee to rebase and reopen.

merrymercy avatar May 19 '23 15:05 merrymercy