#ML and Game Dev

1 messages · Page 1 of 1 (latest)

finite crypt
#

Has anyone every transitioned from ML to game development or found a way of integrating ML in Game development. i'd love to know how you did it, or what to expect.

prisma rivet
#

Do you mean for gameplay or in the editor during development?

finite crypt
#

Thats it, im just curious. Ive only built ML models before so I’m trying to understand where it fits best in game development. Cause gaming is something im interested in.

prisma rivet
finite crypt
#

Thank you.

#

What are you into, do you just build games?

prisma rivet
finite crypt
prisma rivet
finite crypt
#

Oh that make sense.

south sedge
#

Started training iterations of a quadruped to chase players around a map with some verticality; Have you tried anything out yet from a gameplay standpoint?

steep salmon
#

hey where can I get some help with ML agents? i’m specifically trying to replicate the walker example from scratch and for some reason (even if i copy over all the scripts verbatim) the models seem to not work - is there an office hour or something i can sign up for ? (I don’t mind paying either)

prisma rivet
steep salmon
oak raft
native radish
#

guys im new to mlagents

im using mlagents-learn --force to test training
but my agent doesnt move at all and on logs mostly i get no log and sometime i get environment spamming endepisode

#

should I be using a seperate created .yaml suggested by GPT?
update: even with yaml my agent wont budge T-T

steep salmon
bleak harbor
#

after purchasing a 5060 i realized it isn't commpatible with cuda12.1 which is required for mlagents... now im *king pissed off lol

#

should have done my research correctly lol

oak raft
#

@bleak harbor I really doubt that ml agents would have such a requirement, as it worked perfectly fine way before the 5000 and even 4000 series.

#

Also cuda 12.1 seems to be made specifically for the recent dgx spark device. No rtx gpu has support of it.

bleak harbor
#

Im trying to now downgrade my cuda version to 12.1 hopefully it works out

#

I'm just frustrated, might need to think this one out cool headed

bleak harbor
#

D:\MINICONDA\envs\mlagents\lib\site-packages\torch\cuda_init_.py:218: UserWarning:
NVIDIA GeForce RTX 5060 with CUDA capability sm_120 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_50 sm_60 sm_61 sm_70 sm_75 sm_80 sm_86 sm_90.
If you want to use the NVIDIA GeForce RTX 5060 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

warnings.warn(
NVIDIA GeForce RTX 5060

PyTorch

Set up PyTorch easily with local installation or supported cloud platforms.

#

import torch

print(torch.version)
2.2.1+cu121

#

my torch version

oak raft
bleak harbor
#

but the question is will it run mlagents?

oak raft
#

Yes. It's just backend support. The same version of torch has multiple backends supports(CPU, different cuda versions and some other stuff).

bleak harbor
#

oh

#

ill do that asap

#

if it works out ill let you know

#

its my first time doing this

bleak harbor
#

tried it

#

yea

#

to no avail

#

everything worked fine

#

but when I hit the "play button"

#

I got hit with this in the anaconda powershell

#

D:\MINICONDA\envs\mlagents\lib\site-packages\torch\cuda_init_.py:326: UserWarning:
NVIDIA GeForce RTX 5060 with CUDA capability sm_120 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_61 sm_70 sm_75 sm_80 sm_86 sm_90.
If you want to use the NVIDIA GeForce RTX 5060 GPU with PyTorch, please check the instructions at --- the website link---

oak raft
#

Because normally it would install in your global env and would not be effective in conda.

bleak harbor
#

I installed the correct cuda version 13.0

#

installed an earlier version first 13.1

#

and when I activated the ml-agents/envs I got an error

#

for torch

#

then I went with 13.0

#

and did the rest

#

everything went well

#

I gave up at the end and went to gpt to debugg it since I tried everything

oak raft
bleak harbor
#

the latest pytorch only works on gpu below 120 computional capability

#

like the 4060

#

which has a computional capability of 8.9

#

ill have to train the mlagents on my cpu sadly

bleak harbor
#

I might be missing something here

oak raft
# bleak harbor the latest pytorch only works on gpu below 120 computional capability

That's definitely not true. Besides, your GPU can support older compute capabilities as well. The issue is with the torch or cuda versions and you're likely not installing it correctly in the environment. Perhaps an older install is not being override for example. Pip would often avoid reinstalling packages of the same or older version if an existing install exists.

bleak harbor
#

Ill haveto try it again