icon Update Slides

Discontinued in v1.4+ – better demos and patch notes have made these obsolete.

Neural MMO v1.3

Neural MMO v1.2

Neural MMO v1.1

icon Patch Notes + Version History

The [OpenAI] repository only hosts v1.0. My personal [Github] hosts the latest version in master and all previous versions as separate branches. This documentation page is generated from the latest environment release. Feel free to drop in the Discord #support channel if you are having trouble. You can expect fast fixes to Github issues and even faster replies to Discord PMs.

v1.4: RLlib Support and Overlays
  • Blade: Minor API changes have been made for compatibility with Gym and RLlib
    • Exposed the registerOverlay() and getValStim() methods for writing custom overlays

    • Environment reset method now returns only obs instead of (obs, rewards, dones, infos)

    • Environment obs and dones are now both dictionaries keyed by agent ids rather than agent game objects

    • The IO modules from v1.3 now delegates batching to the user, e.g. RLlib. As such, several potential sources of error have been removed

    • A bug allowing agents to use melee combat from farther away than intended has been fixed

    • Minor range and damage balancing has been performed across all three combat styles

  • Trinity: This module has been temporarily shelved
    • Now hosts the Twisted server code for interfacing with the client

    • Core functionality has been ported to RLlib in collaboration with the developers

    • We are working with the RLlib developers to add additional features essential to the long-term scalability of Neural MMO

    • The Trinity/Ascend namespace will likely be revived in later infrastructure expansions. For now, the stability of RLlib makes delegating infrastructure pragmatic to enable us to focus on environment development, baseline models, and research

  • Ethyr: Proper NN building blocks for complex worlds
    • Streamlined IO, memory, and attention modules for use in building PyTorch policies

    • A high-quality pretrained baseline reproducible at the scale of a single desktop

  • Embyr: Overlay shaders for visualizing learned policies
    • Pressing tab now brings up an in-game console

    • A help menu lists several shader options for visualizing exploration, attention, and learned value functions

    • Shaders are rendered over the environment in real-time with partial transparency

    • It is no longer necessary to start the client and server in a particular order

    • The client no longer needs to be relaunched when the server restarts

    • Agents now turn smoothly towards their direction of movement and targeted adversaries

    • A graphical bug causing some agent attacks to render at ground level has been fixed

    • Moved twistedserver.py into the main neural-mmo repository to better separate client and server

    • Confirmed working on Ubuntu, MacOS, and Windows + WSL

  • /projekt: Demo code fully rewritten for RLlib
    • The new demo is much shorter, approximately 250 lines of code

    • State-of-the-art LSTM + self-attention based policy trained with distributed PPO

    • Batched GPU evaluation for real-time rendering

    • Trains in a few hours on a reasonably good desktop (5 rollout worker cores, 1 underutilized GTX 1080Ti GPU)

    • To avoid introducing RLlib into the base environment as a hard dependency, we provide a small wrapper class over Realm using RLlib’s environment types

    • Attempted to migrate from a pip requirements.txt to Poetry for streamlined dependency management, but Poetry is still too buggy at the present.

    • We have migrated configuration to Google Fire for improved command line argument parsing

v1.3: Prebuilt IO Libraries
  • Blade: We have improved and streamlined the previously unstable and difficult to use IO libraries and migrated them here. The new API provides framework-agnostic IO.inputs and IO.outputs functions that handle all batching, normalization, serialization. Combined with the prebuilt IO networks in Ethyr, these enable seamless interactions with an otherwise complex structured underlying environment interface. We have made corresponding extensions to the OpenAI Gym API to support variable length actions and arguments, as well as to better signal episode boundaries (e.g. agent deaths). The Quickstart guide has been updated to cover this new functionality as part of the core API.

  • Trinity: Official support for sharding environment observations across multiple remote servers; performance and logging improvements.

  • Ethyr: A Pytorch library for dynamically assembling hierarchical attention networks for processing NMMO IO spaces. We provide a few default attention modules, but users are also free to use their own building blocks – our library can handle any well defined PyTorch network. We have taken care to separate this PyTorch specific functionality from the core IO libraries in Blade: users should find it straightforward to extend our approach to TensorFlow and other deep learning frameworks.

  • Embyr: Agents now display additional information overhead, such as when they are immune to attacks or when they have been frozen in place.

  • A reasonable 8-population baseline model trained on 12 (old) CPU cores in a day.

  • Improved and expanded official documentation

  • New tutorials covering distributed computation and the IO API

  • The Discord has grown to 80+! Join for active development updates, the quickest support, and community discussions.

v1.2: Unity Client and Skilling
  • Blade: Skilling/professions. This persistent progression system comprises Hunting, Fishing (gathering skills) and Constitution, Melee, Range, Mage (combat skills). Skills are improved through usage: agents that spend a lot of time gathering resources will become able to gather and store more resources at a time. Agents that spend a lot of time fighting will be able to inflict and take more damage. Additional bug fixes and enhancements.

  • Trinity: Major new infrastructure API: Ascend – a generalization of Trinity. Whereas v1.1 Trinity implemented cluster, server, and node layer APIs with persistence, synchronous/asynchronous, etc… Ascend implements a single infrastructure “layer” object with all the same features and more. Trinity is still around and functions identically – it has just been reimplemented in ~10 lines of Ascend. Additional bug fixes and features; notable: moved environment out of Trinity.

  • Ethyr: Streamlined and simplified IO api. Experience manager classes have been redesigned around v1.2 preferred environment placement, which places the environment server side and only communicates serialized observations and actions – not full rollouts. Expect further changes in the next update – IO is the single most technically complex aspect of this project and has the largest impact on performance.

  • Embyr: Focus of this update. Full client rewrite in Unity3D with improved visuals, UI, and controls. The new client makes visualizing policies and tracking down bugs substantially easier. As the environment progresses towards a more complete MMO, development entirely in THREE.js was impractical. This update will also speed up environment development by easing integration into the front end.

  • Baseline model is improved but still weak. This is largely a compute issue. I expect the final model to be relatively efficient to train, but I’m currently low on processing power for running parallel experiments. I’ll be regaining cluster access soon.

  • Official documentation has been updated accordingly

  • 20+ people have joined the Discord. I’ve started posting frequent dev updates and thoughts here.

v1.1: Infrastructure and API rework, official documentation and Discord
  • Blade: Merge Native and VecEnv environment API. New API is closer to Gym

  • Trinity: featherweight CPU + GPU infrastructure built on top of Ray and engineered for maximum flexibility. The differences between Rapid style training, tiered MPI gradient aggregation, and even the v1.0 CPU infrastructure are all minor usage details under Trinity.

  • Ethyr: New IO api makes it easy to interact with the complex input and output spaces of the environment. Also includes a killer rollout manager with inbuilt batching and serialization for communication across hardware.

  • Official github.io documentation and API reference

  • Official Discord

  • End to end training source. There is also a pretrained model, but it’s just a weak single population foraging baseline around 2.5x of random reward. I’m currently between cluster access – once I get my hands on some better hardware, I’ll retune hyperparameters for the new demo model.

v1.0: Initial OpenAI environment release
  • Blade: Base environment with foraging and combat

  • Embyr: THREE.js web client

  • Trinity: CPU based distributed training infrastructure

  • Ethyr: Contrib library of research utilities

  • Basic project-level documentation

  • End to end training source and a pretrained model

v0.x: Private development
  • Personal-scale side project and early prototyping