Answers.Body: <p>After <a href="https://www.google.com/search?ei=2QtPYNbSItCIlwS3jIR4&amp;q=github%20multi%20agent%20reinforcement%20learning&amp;oq=github%20multi%20agent%20reinforcement%20learning" rel="nofollow noreferrer">checking the Internet</a>, you will probably find several resources such as</p>
  <ul>
  <li><a href="https://github.com/mohammadasghari/dqn-multi-agent-rl" rel="nofollow noreferrer">https://github.com/mohammadasghari/dqn-multi-agent-rl</a></li>
  <li><a href="https://rlss.inria.fr/files/2019/07/RLSS_Multiagent.pdf" rel="nofollow noreferrer">https://rlss.inria.fr/files/2019/07/RLSS_Multiagent.pdf</a></li>
  <li><a href="https://arxiv.org/abs/2011.00583" rel="nofollow noreferrer">https://arxiv.org/abs/2011.00583</a>
  and others.</li>
  </ul>
  <p>Try to understand the principles first (see above). After some reasonable amount of coding you can adapt OpenAI gym.
  Good luck!</p>
  <p><strong>Update 17 March 2022</strong>:</p>
  <p>You may want to check this popular repository as well <a href="https://github.com/Farama-Foundation/PettingZoo" rel="nofollow noreferrer">https://github.com/Farama-Foundation/PettingZoo</a></p>
  <p><strong>Update 06 August 2023</strong>:</p>
  <p>The best multi-agent tutorial I have seen so far comes from RLlib documentation. See <a href="https://applied-rl-course.netlify.app/en/module2" rel="nofollow noreferrer">RLlib for muti-agent RL</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-15T07:28:42.077Z
Answers.LastActivityDate: 2023-08-06T10:58:29.537Z
Answers.LastEditDate: 2023-08-06T10:58:29.537Z
Answers.UserDisplayName: penkovsky
Answers.Body: <p><a href="https://huggingface.co/learn/deep-rl-course/unit7/introduction" rel="nofollow noreferrer">Hugging Face RL Tutorial</a> has a practical tutorial on Multi-agent reinforcement learning.</p>
  <p>For those who want to dive deeper, it has <a href="https://huggingface.co/learn/deep-rl-course/unit7/additional-readings" rel="nofollow noreferrer">a reading list</a> at the end that covers its theory and more advance techniques.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-27T05:57:24.240Z
Answers.LastActivityDate: 2024-01-27T05:57:24.240Z
Answers.UserDisplayName: MajidL
Answers.Body: <p>Multi-Agent Deep Reinforcement Learning in 13 Lines of Code Using <strong>PettingZoo</strong></p>
  <p>A tutorial on multi-agent deep reinforcement learning for beginners.</p>
  <p>This tutorial provides a simple introduction to using multi-agent reinforcement learning, assuming a little experience in machine learning and knowledge of Python.</p>
  <p><a href="https://towardsdatascience.com/multi-agent-deep-reinforcement-learning-in-15-lines-of-code-using-pettingzoo-e0b963c0820b" rel="nofollow noreferrer">https://towardsdatascience.com/multi-agent-deep-reinforcement-learning-in-15-lines-of-code-using-pettingzoo-e0b963c0820b</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-04-02T21:26:22.337Z
Answers.LastActivityDate: 2022-04-02T21:26:22.337Z
Answers.UserDisplayName: Giovanni Novelli
Body: <p>Is there any <em>tutorial</em> that walks through a multi-agent reinforcement learning implementation (in Python) using libraries such as <a href="https://gym.openai.com/" rel="nofollow noreferrer">OpenAI's Gym</a> (for the environment), <a href="https://www.tensorflow.org/agents" rel="nofollow noreferrer">TF-agents</a>, and <a href="https://github.com/DLR-RM/stable-baselines3" rel="nofollow noreferrer">stable-baselines-3</a>?</p>
  <p>I searched a lot, but I was not able to find any tutorial, mostly because Gym environments and most RL libraries are not for multi-agent RL.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-14T20:21:48.540Z
Comments.Text: That question was focusing more on specific setting of multi agent learning explained in three bullet points. This question focuses more on the specific libraries, namely three: OpenAI gym, tf-agents and stable-baseline-3. The two are definitely not the same. Unfortunately, there is no answer on both questions.
Comments.UserDisplayName: Rnj
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-15T23:23:56.303Z
Comments.Text: Cross-posted: https://ai.stackexchange.com/q/26806/1794, https://datascience.stackexchange.com/q/90626/8560.  Please [do not post the same question on multiple sites](https://meta.stackexchange.com/q/64068).
Comments.UserDisplayName: D.W.
Tags: <reinforcement-learning><reference-request><deep-rl><gym><multi-agent-rl>
Title: How do I get started with multi-agent reinforcement learning?
UserDisplayName: Rnj
ThreadText: # How do I get started with multi-agent reinforcement learning?
  
  (Asked by: username_0 on 2021-03-13)
  
  Is there any *tutorial* that walks through a multi-agent reinforcement learning implementation (in Python) using libraries such as [OpenAI's Gym](https://gym.openai.com/) (for the environment), [TF-agents](https://www.tensorflow.org/agents), and [stable-baselines-3](https://github.com/DLR-RM/stable-baselines3)?
  
  I searched a lot, but I was not able to find any tutorial, mostly because Gym environments and most RL libraries are not for multi-agent RL.
  
  **Tags:** reinforcement-learning, reference-request, deep-rl, gym, multi-agent-rl
  
  > **Comments:**
  > **username_0**: That question was focusing more on specific setting of multi agent learning explained in three bullet points. This question focuses more on the specific libraries, namely three: OpenAI gym, tf-agents and stable-baseline-3. The two are definitely not the same. Unfortunately, there is no answer on both questions.  
  > **username_1**: Cross-posted: https://ai.stackexchange.com/q/26806/1794, https://datascience.stackexchange.com/q/90626/8560.  Please [do not post the same question on multiple sites](https://meta.stackexchange.com/q/64068).  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2021-03-15. Score: 2
  
  After [checking the Internet](https://www.google.com/search?ei=2QtPYNbSItCIlwS3jIR4&q=github%20multi%20agent%20reinforcement%20learning&oq=github%20multi%20agent%20reinforcement%20learning), you will probably find several resources such as
  
  * <https://github.com/mohammadasghari/dqn-multi-agent-rl>
  * <https://rlss.inria.fr/files/2019/07/RLSS_Multiagent.pdf>
  * <https://arxiv.org/abs/2011.00583>
    and others.
  
  Try to understand the principles first (see above). After some reasonable amount of coding you can adapt OpenAI gym.
  Good luck!
  
  **Update 17 March 2022**:
  
  You may want to check this popular repository as well <https://github.com/Farama-Foundation/PettingZoo>
  
  **Update 06 August 2023**:
  
  The best multi-agent tutorial I have seen so far comes from RLlib documentation. See [RLlib for muti-agent RL](https://applied-rl-course.netlify.app/en/module2).
  
  
  ---
  
  ### Answer by username_3 on 2024-01-27. Score: 0
  
  [Hugging Face RL Tutorial](https://huggingface.co/learn/deep-rl-course/unit7/introduction) has a practical tutorial on Multi-agent reinforcement learning.
  
  For those who want to dive deeper, it has [a reading list](https://huggingface.co/learn/deep-rl-course/unit7/additional-readings) at the end that covers its theory and more advance techniques.
  
  
  ---
  
  ### Answer by username_4 on 2022-04-02. Score: 0
  
  Multi-Agent Deep Reinforcement Learning in 13 Lines of Code Using **PettingZoo**
  
  A tutorial on multi-agent deep reinforcement learning for beginners.
  
  This tutorial provides a simple introduction to using multi-agent reinforcement learning, assuming a little experience in machine learning and knowledge of Python.
  
  <https://towardsdatascience.com/multi-agent-deep-reinforcement-learning-in-15-lines-of-code-using-pettingzoo-e0b963c0820b>
  
  
  ---
  
  