Giter VIP home page Giter VIP logo

Comments (2)

pengsun avatar pengsun commented on August 17, 2024 5

Hi, it serves for registering/discovering the learner task as defined here:

class LearnerTask(object):

where all the learner tasks are maintained at League Manager.

To be detailed, when using Horovod for multi-GPU training, TLeague has M_L learners which always synchronize the NN parameters, with each learner associated to only one GPU card. Being consistent to the Horovod/mpi convention, we let rank 0 learner sponsor the task creating (by calling the _request_task):

if self.rank == 0:

while other rank i, i = 1, 2,...,M_L-1 learners query the existed learner task:

self.task = self._query_task()

Note all the M_L learners have an identical learner_id (which is the handle for the learner task) as passed in by the --learner_id arg:

flags.DEFINE_string("learner_id", "",

and the example here:
https://github.com/tencent-ailab/tleague_projpage/blob/c8df899d713a77dcc72aa6e2b9d892bcebc96cf8/pommerman/pommerman.yml.jinja2#L385

from tleague.

Passerby avatar Passerby commented on August 17, 2024

thanks

from tleague.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.