Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I dunno if this is new, but whenever I download an AI model it just doesnt work.

I tried the simplest one avaliable, ran the entire download process, made sure that it had actually downloaded something, and nothing worked.

Godot Engine v3.5.1.stable.official.6fed1ffa3 - https://godotengine.org

OpenGL ES 3.0 Renderer: Radeon RX 570 Series

Async. shader compilation: OFF

AIdventure (Godot 3.5.1 stable)

Type help to get more information about usage

2023/10/03 15:17:59

Game version: 1.5.2

OS: Windows

Press F1 to close the console.

remote_server : false

ERROR: Connection lost with the server. clean: False

   at: call (modules/gdscript/gdscript_functions.cpp:775) - Connection lost with the server. clean: False

connection closed

remote_server : false

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/config.json is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/merges.txt is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/special_tokens_map.json is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/tokenizer.json is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/tokenizer_config.json is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/vocab.json is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/generation_config.json is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00001-of-00004.bin is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00002-of-00004.bin is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00003-of-00004.bin is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00004-of-00004.bin is missing.

C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model.bin.index.json is missing.

Copied user://cache/config.json into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/config.json

Moved user://cache/config.json to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/config.json

Copied user://cache/merges.txt into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/merges.txt

Moved user://cache/merges.txt to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/merges.txt

Copied user://cache/special_tokens_map.json into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/special_tokens_map.json

Moved user://cache/special_tokens_map.json to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/special_tokens_map.json

Copied user://cache/tokenizer.json into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/tokenizer.json

Moved user://cache/tokenizer.json to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/tokenizer.json

Copied user://cache/tokenizer_config.json into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/tokenizer_config.json

Moved user://cache/tokenizer_config.json to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/tokenizer_config.json

Copied user://cache/vocab.json into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/vocab.json

Moved user://cache/vocab.json to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/vocab.json

Copied user://cache/generation_config.json into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/generation_config.json

Moved user://cache/generation_config.json to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/generation_config.json

Copied user://cache/pytorch_model-00001-of-00004.bin into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00001-of-00004.bin

Moved user://cache/pytorch_model-00001-of-00004.bin to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00001-of-00004.bin

Copied user://cache/pytorch_model-00002-of-00004.bin into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00002-of-00004.bin

Moved user://cache/pytorch_model-00002-of-00004.bin to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00002-of-00004.bin

Copied user://cache/pytorch_model-00003-of-00004.bin into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00003-of-00004.bin

Moved user://cache/pytorch_model-00003-of-00004.bin to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00003-of-00004.bin

Copied user://cache/pytorch_model-00004-of-00004.bin into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00004-of-00004.bin

Moved user://cache/pytorch_model-00004-of-00004.bin to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model-00004-of-00004.bin

Copied user://cache/pytorch_model.bin.index.json into C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model.bin.index.json

Moved user://cache/pytorch_model.bin.index.json to C:/Users/Lil Binch/Desktop/Games/AIdventure/models/LyaaaaaGames/gpt2/pytorch_model.bin.index.json

ERROR: Connection lost with the server. clean: False

   at: call (modules/gdscript/gdscript_functions.cpp:775) - Connection lost with the server. clean: False

===== Server's logs dump =====

15:21:45,594 AIdventure_Server INFO Server started ws://0.0.0.0:9999

15:21:59,25 AIdventure_Server INFO Client 127.0.0.1 connected

15:24:39,94 AIdventure_Server INFO Setting up the model.

15:24:39,288 AIdventure_Server INFO Tokens successfully loaded from local files

15:24:47,950 AIdventure_Server INFO Model successfully loaded from local files

15:24:47,951 AIdventure_Server INFO Is CUDA available: False

15:25:06,304 AIdventure_Server ERROR "LayerNormKernelImpl" not implemented for 'Half'

15:25:06,304 AIdventure_Server INFO Shutting down the server

15:25:06,374 asyncio ERROR Task exception was never retrieved

future: <Task finished name='Task-5' coro=<WebSocketServerProtocol.handler() done, defined at C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\websockets\legacy\server.py:153> exception=SystemExit(0)>

Traceback (most recent call last):

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\server\server.py", line 137, in handler

    data_to_send = handle_request(p_websocket, json_message)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\server\server.py", line 169, in handle_request

    generated_text = generator.generate_text(prompt,

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\server\generator.py", line 60, in generate_text

    model_output = self._Model.generate(**model_input)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context

    return func(*args, **kwargs)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\transformers\generation\utils.py", line 1452, in generate

    return self.sample(

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\transformers\generation\utils.py", line 2468, in sample

    outputs = self(

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl

    return forward_call(*args, **kwargs)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\transformers\models\gpt2\modeling_gpt2.py", line 1075, in forward

    transformer_outputs = self.transformer(

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl

    return forward_call(*args, **kwargs)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\transformers\models\gpt2\modeling_gpt2.py", line 899, in forward

    outputs = block(

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl

    return forward_call(*args, **kwargs)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\transformers\models\gpt2\modeling_gpt2.py", line 388, in forward

    hidden_states = self.ln_1(hidden_states)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl

    return forward_call(*args, **kwargs)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\torch\nn\modules\normalization.py", line 190, in forward

    return F.layer_norm(

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\torch\nn\functional.py", line 2515, in layer_norm

    return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)

RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\server\server.py", line 268, in <module>

    asyncio.run(main())

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\asyncio\runners.py", line 44, in run

    return loop.run_until_complete(main)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\asyncio\base_events.py", line 629, in run_until_complete

    self.run_forever()

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\asyncio\windows_events.py", line 316, in run_forever

    super().run_forever()

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\asyncio\base_events.py", line 596, in run_forever

    self._run_once()

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\asyncio\base_events.py", line 1890, in _run_once

    handle._run()

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\asyncio\events.py", line 80, in _run

    self._context.run(self._callback, *self._args)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\websockets\legacy\server.py", line 236, in handler

    await self.ws_handler(self)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\site-packages\websockets\legacy\server.py", line 1175, in _ws_handler

    return await cast(

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\server\server.py", line 150, in handler

    shutdown_server(exit_code)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\server\server.py", line 254, in shutdown_server

    exit(p_exit_code)

  File "C:\Users\Lil Binch\Desktop\Games\AIdventure\mamba\envs\aidventure\lib\_sitebuiltins.py", line 26, in __call__

    raise SystemExit(code)

SystemExit: 0

(2 edits)

Hello, indeed the download works fine. The problem comes from your settings and your hardware. By default, the game is configured for users with CUDA available (Nvidia GPU). We can see CUDA isn’t available.

15:24:47,951 AIdventure_Server INFO Is CUDA available: False

Then the error happens.

15:25:06,304 AIdventure_Server ERROR "LayerNormKernelImpl" not implemented for 'Half'

If you don’t have a NVIDIA card with CUDA. You need to go in the game’s option and change an option

  1. Go in the settings
  2. Go in AI options
  3. Display advanced options
  4. Change Torch_Dtype to float32