-
Notifications
You must be signed in to change notification settings - Fork 208
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
Repetitive generation for simple prompt #4
Comments
I have the same the problem. Additional info:
|
This is usually symptomatic of not loading a model. |
I have the same problem and I am using python 2.7.16 Command $python generation.py --model_dir /home/tpradeep/ctrl/seqlen256_v1.ckpt Quite a few warning messages and then the following 2019-09-13 08:03:27.284843: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile. Wikipedia Salesforce Inc. is a software Wikipedia Salesforce Inc. is a software company Wikipedia Salesforce Inc. is a software company that Wikipedia Salesforce Inc. is a software company that provides Wikipedia Salesforce Inc. is a software company that provides cloud-based ^C^CContinuing |
@pradeepthiyyagura, your generation script seems to be fine? Is your concern about the warnings? |
Thank you for the response. My primary concern is not about the warnings but is the out put in the expected format? I thought it would generate a full sentence or a paragraph of a certain length as in the examples instead of displaying every line with a new word prediction. |
Aah. I see. You can generate just once by indenting the print statements on https://github.com/salesforce/ctrl/blob/master/generation.py#L272 and https://github.com/salesforce/ctrl/blob/master/generation.py#L273 to be outside the generation |
Seems like this has been fixed by specifying the right |
Followed the exact steps documented in README. The model with sequence length 256 running:
Is this error reproducible by others?
The text was updated successfully, but these errors were encountered: