Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fetching checkpoint: 1.05Mit [00:00, 187Mit/s]
- Fetching encoder.json: 1.05Mit [00:00, 82.7Mit/s]
- Fetching hparams.json: 1.05Mit [00:00, 277Mit/s]
- Fetching model.ckpt.data-00000-of-00001: 1.42Git [00:09, 154Mit/s]
- Fetching model.ckpt.index: 1.05Mit [00:00, 276Mit/s]
- Fetching model.ckpt.meta: 1.05Mit [00:00, 94.8Mit/s]
- Fetching vocab.bpe: 1.05Mit [00:00, 142Mit/s]
- ---------------------------------------------------------------------------
- ValueError Traceback (most recent call last)
- <ipython-input-6-02587ed442f1> in <module>()
- 8 'shakespeare.txt',
- 9 model_name=model_name,
- ---> 10 steps=1000) # steps is max number of training steps
- 11
- 12 gpt2.generate(sess)
- 6 frames
- /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)
- 862 tb = [x for x in tb if "tensorflow/python" not in x[0]][:5]
- 863 raise ValueError("%s Originally defined at:\n\n%s" %
- --> 864 (err_msg, "".join(traceback.format_list(tb))))
- 865 found_var = self._vars[name]
- 866 if not shape.is_compatible_with(found_var.get_shape()):
- ValueError: Variable model/wpe already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:
- File "/usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/model.py", line 153, in model
- initializer=tf.random_normal_initializer(stddev=0.01))
- File "/usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py", line 165, in finetune
- output = model.model(hparams=hparams, X=context)
- File "<ipython-input-2-f3f48ea7636f>", line 10, in <module>
- steps=1000) # steps is max number of training steps
- File "/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py", line 2882, in run_code
- exec(code_obj, self.user_global_ns, self.user_ns)
- File "/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py", line 2822, in run_ast_nodes
- if self.run_code(code, result):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement