Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text generation yields different outputs despite temperature = 0.0 #643

Open
ScTof opened this issue Jul 5, 2022 · 0 comments
Open

Text generation yields different outputs despite temperature = 0.0 #643

ScTof opened this issue Jul 5, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ScTof
Copy link

ScTof commented Jul 5, 2022

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 ScTof added the bug Something isn't working label Jul 5, 2022
@StellaAthena StellaAthena added the good first issue Good for newcomers label Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants