gpt-neox icon indicating copy to clipboard operation
gpt-neox copied to clipboard

Text generation yields different outputs despite temperature = 0.0

Open ScTof opened this issue 3 years ago • 0 comments

Describe the bug Even though temperature is set to 0.0 in the configs, GPT-NeoX' generate.py (interactive mode) produces different results different outputs for the same input submitted multiple times in a row.

To Reproduce Steps to reproduce the behavior:

  1. Use the attached config files
  2. Run python deepy.py generate.py PATH/TO/CONFIGS_DIR/*
  3. Submit a query (e.g., "This is a test:")
  4. Resubmit the same query
  5. Observe the different outputs

Expected behavior As far as I'm concerned, setting temperature to 0.0 should make GPT-NeoX produce the same output for the same input, no matter how often it is submitted. At the moment, it yields the same output only if the model is reloaded after each query. Setting reload = false or reload = true doesn't make a difference.

Environment (please complete the following information):

ScTof avatar Jul 05 '22 13:07 ScTof