Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Help Wanted Why ML-Agents don't use all my system resources?

Discussion in 'ML-Agents' started by kyung1, Aug 4, 2021.

  1. kyung1

    kyung1

    Joined:
    Jul 24, 2019
    Posts:
    2
    hello first of all, english is not my native language

    i use ml-agents in my AI-RobotBattle game project

    when i trained my AI, cpu usage in taskmanager too low
    and framerate also too low compared to my pc spec

    usually cpu usage when i training is about 10~20%

    i hope ml-agents is use all my system resource propely

    this trouble was happened both editor and build

    and this is my pc spec

    CPU : AMD Ryzen Threadripper 1950X 16Core
    Ram : 64gb
    VGA : RTX3090
     
  2. vincentpierre

    vincentpierre

    Unity Technologies

    Joined:
    May 5, 2017
    Posts:
    160
    Maxing out ml-agents CPU usage is hard because there exist several bottlenecks that are not CPU related, like exchanging data between Unity and Python. We are working on tools to help maximize usage but we do not have anything to show yet. My recommendation would be to increase the number of agents in the environment and also increase the number of environments used for training. This should increase the data throughput and increase the frequency of updates in the trainer.
     
  3. kyung1

    kyung1

    Joined:
    Jul 24, 2019
    Posts:
    2
    thank you for answer!!
     
unityunity