GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - google-deepmind/dm_env_rpc: A networking protocol for agent-environment communication

BranchesTags
Open more actions menu

Latest commit

 

History

203 Commits
203 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
dm_env_rpc
dm_env_rpc
 
 
docs/v1
docs/v1
 
 
examples
examples
 
 
third_party
third_party
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RELEASE_NOTES.md
RELEASE_NOTES.md
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 

Repository files navigation

dm_env_rpc: A networking protocol for agent-environment communication.

PyPI Python version PyPI version

dm_env_rpc is a remote procedure call (RPC) protocol for communicating between machine learning agents and environments. It uses gRPC as the underlying communication framework, specifically its bidirectional streaming RPC variant.

This package also contains an implementation of dm_env, a Python interface for interacting with such environments.

Please see the documentation for more detailed information on the semantics of the protocol and how to use it. The examples sub-directory also provides examples of RL environments implemented using the dm_env_rpc protocol.

Intended audience

Games can make for interesting AI research platforms, for example as reinforcement learning (RL) environments. However, exposing a game as an RL environment can be a subtle, fraught process. We aim to provide a protocol that allows agents and environments to communicate in a standardized way, without specialized knowledge about how the other side works. Game developers can expose their games as environments with minimal domain knowledge and researchers can test their agents on a large library of different games.

This protocol also removes the need for agents and environments to run in the same process or even on the same machine, allowing agents and environments to have very different technology stacks and requirements.

Documentation

  • Protocol overview
  • Protocol reference
  • Extensions
  • Appendix
  • Glossary

Installation

Note: You may optionally wish to create a Python Virtual Environment to prevent conflicts with your system's Python environment.

dm_env_rpc can be installed from PyPi using pip:

$ pip install dm-env-rpc

To also install the dependencies for the examples/, install with:

$ pip install dm-env-rpc[examples]

Alternatively, you can install dm_env_rpc by cloning a local copy of our GitHub repository:

$ git clone --recursive https://github.com/deepmind/dm_env_rpc.git
$ pip install ./dm_env_rpc

Citing dm_env_rpc

To cite this repository:

@misc{dm_env_rpc2019,
  author = {Tom Ward and Jay Lemmon},
  title = {dm\_env\_rpc: A networking protocol for agent-environment communication},
  url = {http://github.com/deepmind/dm_env_rpc},
  year = {2019},
}

Developer Notes

In order to run the included unit tests, developers must also install additional dependencies defined in requirements.txt, at which point the tests should be runnable via pytest. For example:

$ git clone --recursive https://github.com/deepmind/dm_env_rpc.git
$ pip install -U pip wheel
$ pip install -e ./dm_env_rpc
$ pip install -r ./dm_env_rpc/requirements.txt
$ pytest ./dm_env_rpc

Notice

This is not an officially supported Google product

About

A networking protocol for agent-environment communication

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

114 stars

Watchers

6 watching

Forks

13 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.