Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
907
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.08 KB | None | 0 0
  1.  
  2.  
  3. WARNING: Logging before flag parsing goes to stderr.
  4. W0616 23:33:41.234486 140476528236416 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/memory_saving_gradients.py:13: The name tf.GraphKeys is deprecated. Please use tf.compat.v1.GraphKeys instead.
  5.  
  6. Fetching checkpoint: 1.05Mit [00:00, 224Mit/s]
  7. Fetching encoder.json: 1.05Mit [00:00, 85.9Mit/s]
  8. Fetching hparams.json: 1.05Mit [00:00, 446Mit/s]
  9. Fetching model.ckpt.data-00000-of-00001: 498Mit [00:03, 156Mit/s]
  10. Fetching model.ckpt.index: 1.05Mit [00:00, 229Mit/s]
  11. Fetching model.ckpt.meta: 1.05Mit [00:00, 136Mit/s]
  12. Fetching vocab.bpe: 1.05Mit [00:00, 127Mit/s]
  13. W0616 23:33:44.977926 140476528236416 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py:90: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.
  14.  
  15. W0616 23:33:44.979698 140476528236416 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py:100: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
  16.  
  17. W0616 23:33:45.380354 140476528236416 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py:164: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.
  18.  
  19. W0616 23:33:45.388669 140476528236416 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/model.py:148: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.
  20.  
  21. W0616 23:33:51.847121 140476528236416 deprecation.py:323] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/sample.py:71: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
  22. Instructions for updating:
  23. Use `tf.cast` instead.
  24. W0616 23:33:51.868443 140476528236416 deprecation.py:323] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/sample.py:17: add_dispatch_support.<locals>.wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
  25. Instructions for updating:
  26. Use tf.where in 2.0, which has the same broadcast rule as np.where
  27. W0616 23:33:51.872190 140476528236416 deprecation.py:323] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/sample.py:77: multinomial (from tensorflow.python.ops.random_ops) is deprecated and will be removed in a future version.
  28. Instructions for updating:
  29. Use `tf.random.categorical` instead.
  30. W0616 23:33:51.887708 140476528236416 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py:184: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.
  31.  
  32. W0616 23:33:51.888915 140476528236416 deprecation.py:323] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/accumulate.py:14: Variable.initialized_value (from tensorflow.python.ops.variables) is deprecated and will be removed in a future version.
  33. Instructions for updating:
  34. Use Variable.read_value. Variables in 2.X are initialized automatically both in eager and graph (inside tf.defun) contexts.
  35. W0616 23:34:01.517626 140476528236416 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py:189: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
  36.  
  37. W0616 23:34:01.520670 140476528236416 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py:200: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.
  38.  
  39. W0616 23:34:01.527817 140476528236416 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py:202: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
  40.  
  41. W0616 23:34:10.554982 140476528236416 deprecation.py:323] From /usr/local/lib/python3.6/dist-packages/tensorflow/python/training/saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
  42. Instructions for updating:
  43. Use standard file APIs to check for files with this prefix.
  44.  
  45. Loading checkpoint models/117M/model.ckpt
  46.  
  47. 0it [00:00, ?it/s]
  48.  
  49. Loading dataset...
  50. dataset has 0 tokens
  51. Training...
  52.  
  53.  
  54. ---------------------------------------------------------------------------
  55.  
  56. ZeroDivisionError Traceback (most recent call last)
  57.  
  58. <ipython-input-4-f94d6c716ce5> in <module>()
  59. 4
  60. 5 sess = gpt2.start_tf_sess()
  61. ----> 6 gpt2.finetune(sess, 'shakespeare.txt', steps=1000) # steps is max number of training steps
  62. 7
  63. 8 gpt2.generate(sess)
  64.  
  65. 3 frames
  66.  
  67. /usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/load_dataset.py in sample(self, length)
  68. 81 def sample(self, length):
  69. 82 assert length < self.total_size // len(
  70. ---> 83 self.chunks
  71. 84 ), "Dataset files are too small to sample {} tokens at a time".format(
  72. 85 length)
  73.  
  74. ZeroDivisionError: integer division or modulo by zero
  75. _________________________________________________________________________________________________________
  76. Fetching checkpoint: 1.05Mit [00:00, 258Mit/s]
  77. Fetching encoder.json: 1.05Mit [00:00, 85.0Mit/s]
  78. Fetching hparams.json: 1.05Mit [00:00, 320Mit/s]
  79. Fetching model.ckpt.data-00000-of-00001: 498Mit [00:02, 193Mit/s]
  80. Fetching model.ckpt.index: 1.05Mit [00:00, 173Mit/s]
  81. Fetching model.ckpt.meta: 1.05Mit [00:00, 113Mit/s]
  82. Fetching vocab.bpe: 1.05Mit [00:00, 126Mit/s]
  83.  
  84. ---------------------------------------------------------------------------
  85.  
  86. ValueError Traceback (most recent call last)
  87.  
  88. <ipython-input-4-f3f48ea7636f> in <module>()
  89. 8 'shakespeare.txt',
  90. 9 model_name=model_name,
  91. ---> 10 steps=1000) # steps is max number of training steps
  92. 11
  93. 12 gpt2.generate(sess)
  94.  
  95. 6 frames
  96.  
  97. /usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/variable_scope.py in _get_single_variable(self, name, shape, dtype, initializer, regularizer, partition_info, reuse, trainable, collections, caching_device, validate_shape, use_resource, constraint, synchronization, aggregation)
  98. 862 tb = [x for x in tb if "tensorflow/python" not in x[0]][:5]
  99. 863 raise ValueError("%s Originally defined at:\n\n%s" %
  100. --> 864 (err_msg, "".join(traceback.format_list(tb))))
  101. 865 found_var = self._vars[name]
  102. 866 if not shape.is_compatible_with(found_var.get_shape()):
  103.  
  104. ValueError: Variable model/wpe already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:
  105.  
  106. File "/usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/model.py", line 153, in model
  107. initializer=tf.random_normal_initializer(stddev=0.01))
  108. File "/usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py", line 165, in finetune
  109. output = model.model(hparams=hparams, X=context)
  110. File "<ipython-input-2-f3f48ea7636f>", line 10, in <module>
  111. steps=1000) # steps is max number of training steps
  112. File "/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py", line 2882, in run_code
  113. exec(code_obj, self.user_global_ns, self.user_ns)
  114. File "/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py", line 2822, in run_ast_nodes
  115. if self.run_code(code, result):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement