Advertisement
Guest User

[AI Dungeon] Ziggy Zapper, Bastard Of Lightning

a guest
Dec 15th, 2019
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 9.29 KB | None | 0 0
  1. You are Ziggy Zapper, Bastard of Lightning, a wizard living in the kingdom of
  2.  Larion. You have a staff and a spellbook. You finish your long journey and finally
  3.  arrive at the ruin you've been looking for. You look around and see that it's
  4.  not much different than when you left it years ago.
  5. Then you notice something on one of the walls. It's a map of the area with several
  6. towns and villages marked
  7. > look at the map, but very dramatically
  8.  
  9. You turn to the map and start reading out loud. The first thing you notice is
  10. how strange this place looks. There are no roads or any other signs of civilization
  11. anywhere near here. It almost seems like you're in some sort of wilderness.
  12.  Then you realize what you're seeing
  13. > realize what i'm seeing for me, please.
  14.  
  15. This is the ruined city of Nuro. It was once the largest city in the world, but
  16.  now lies in ruins. It was built by the great dragon Tiamat, who was angry with
  17.  you because you had killed her child. She tried to destroy you, but failed
  18. > Kill Tiamat with mega-scattered lightning too, might as well finish the job
  19.  
  20. You begin to channel your magic into your staff, and it begins to glow brighter
  21.  and brighter. Suddenly, you feel a powerful bolt of lightning strike your body.
  22.  It's enough to knock you back several feet, but not enough to harm you. You
  23. take advantage of this opportunity to cast another spell
  24. > Roll eyes, then goto Tiamat
  25.  
  26. You quickly run towards Tiamat, ready to unleash all your fury on her. However,
  27. you suddenly stop when you see that she has already disappeared. You try again,
  28. but nothing happens. You continue to stare at the spot where she used to be
  29. > Ask the gods why Tiamat is such a little bitch
  30.  
  31. Suddenly, you hear a voice from above. "Ziggy, I don't think we should be doing
  32.  this".
  33. "What?" you say.
  34. "I said, I don't think we should be doing this".
  35.  
  36. > Ask why it's a bad idea to wait to kill Tiamat
  37.  
  38. "Because if we do, we'll just be waiting around for her to come back".
  39. > Declare that the gods have failed mankind and use magic to make a new god to replace them
  40.  
  41. You raise your hand up high and fire a beam of pure energy straight into the
  42.  sky. A bright light appears in the distance, and soon after, you feel yourself
  43.  being pulled towards it. As you get closer, you can see that the light is coming
  44.  from a massive creature made entirely of ice
  45. > Shake hands happily with the new ice god
  46. Traceback (most recent call last):
  47.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1365, in _do_call
  48.     return fn(*args)
  49.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1350, in _run_fn
  50.     target_list, run_metadata)
  51.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1443, in _call_tf_sessionrun
  52.     run_metadata)
  53. tensorflow.python.framework.errors_impl.ResourceExhaustedError: 2 root error(s) found.
  54.   (0) Resource exhausted: OOM when allocating tensor with shape[1,48,2,25,568,64] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
  55.      [[{{node sample_sequence/while/concat}}]]
  56. Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
  57.  
  58.      [[sample_sequence/while/Exit_3/_1387]]
  59. Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
  60.  
  61.   (1) Resource exhausted: OOM when allocating tensor with shape[1,48,2,25,568,64] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
  62.      [[{{node sample_sequence/while/concat}}]]
  63. Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
  64.  
  65. 0 successful operations.
  66. 0 derived errors ignored.
  67.  
  68. During handling of the above exception, another exception occurred:
  69.  
  70. Traceback (most recent call last):
  71.   File "play.py", line 292, in <module>
  72.     play_aidungeon_2()
  73.   File "play.py", line 255, in play_aidungeon_2
  74.     result = "\n" + story_manager.act(action)
  75.   File "/content/AIDungeon/story/story_manager.py", line 200, in act
  76.     result = self.generate_result(action_choice)
  77.   File "/content/AIDungeon/story/story_manager.py", line 205, in generate_result
  78.     block = self.generator.generate(self.story_context() + action)
  79.   File "/content/AIDungeon/generator/gpt2/gpt2_generator.py", line 119, in generate
  80.     text = self.generate_raw(prompt)
  81.   File "/content/AIDungeon/generator/gpt2/gpt2_generator.py", line 102, in generate_raw
  82.     self.context: [context_tokens for _ in range(self.batch_size)]
  83.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 956, in run
  84.     run_metadata_ptr)
  85.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1180, in _run
  86.     feed_dict_tensor, options, run_metadata)
  87.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1359, in _do_run
  88.     run_metadata)
  89.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1384, in _do_call
  90.     raise type(e)(node_def, op, message)
  91. tensorflow.python.framework.errors_impl.ResourceExhaustedError: 2 root error(s) found.
  92.   (0) Resource exhausted: OOM when allocating tensor with shape[1,48,2,25,568,64] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
  93.      [[node sample_sequence/while/concat (defined at /content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py:1748) ]]
  94. Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
  95.  
  96.      [[sample_sequence/while/Exit_3/_1387]]
  97. Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
  98.  
  99.   (1) Resource exhausted: OOM when allocating tensor with shape[1,48,2,25,568,64] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
  100.      [[node sample_sequence/while/concat (defined at /content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py:1748) ]]
  101. Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
  102.  
  103. 0 successful operations.
  104. 0 derived errors ignored.
  105.  
  106. Original stack trace for 'sample_sequence/while/concat':
  107.   File "play.py", line 292, in <module>
  108.     play_aidungeon_2()
  109.   File "play.py", line 115, in play_aidungeon_2
  110.     generator = GPT2Generator()
  111.   File "/content/AIDungeon/generator/gpt2/gpt2_generator.py", line 51, in __init__
  112.     top_p=top_p,
  113.   File "/content/AIDungeon/generator/gpt2/src/sample.py", line 120, in sample_sequence
  114.     back_prop=False,
  115.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/ops/control_flow_ops.py", line 2753, in while_loop
  116.     return_same_structure)
  117.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/ops/control_flow_ops.py", line 2245, in BuildLoop
  118.     pred, body, original_loop_vars, loop_vars, shape_invariants)
  119.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/ops/control_flow_ops.py", line 2170, in _BuildLoop
  120.     body_result = body(*packed_vars_for_body)
  121.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/ops/control_flow_ops.py", line 2705, in <lambda>
  122.     body = lambda i, lv: (i + 1, orig_body(*lv))
  123.   File "/content/AIDungeon/generator/gpt2/src/sample.py", line 98, in body
  124.     else tf.concat([past, next_outputs["presents"]], axis=-2),
  125.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/util/dispatch.py", line 180, in wrapper
  126.     return target(*args, **kwargs)
  127.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/ops/array_ops.py", line 1420, in concat
  128.     return gen_array_ops.concat_v2(values=values, axis=axis, name=name)
  129.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/ops/gen_array_ops.py", line 1257, in concat_v2
  130.     "ConcatV2", values=values, axis=axis, name=name)
  131.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/framework/op_def_library.py", line 794, in _apply_op_helper
  132.     op_def=op_def)
  133.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/util/deprecation.py", line 507, in new_func
  134.     return func(*args, **kwargs)
  135.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py", line 3357, in create_op
  136.     attrs, op_def, compute_device)
  137.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py", line 3426, in _create_op_internal
  138.     op_def=op_def)
  139.   File "/content/AIDungeon/venv/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py", line 1748, in __init__
  140.     self._traceback = tf_stack.extract_stack()
  141.  
  142. Game saved.
  143. To load the game, type 'load' and enter the following ID: 23a2aa7c-1f58-11ea-8153-0242ac1c0002
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement