A Rewrite of Monty in Elixir - as "promised"

Dear community and team,

I remember there’s been hackathons and documentation improvements for newcomers to Monty. I’m a fan of 5 minutes to demonstrable value, thus I built that one prototype with pyview, and before that, posted on the actor model view on voting, introducing an old experiment in Elixir. @Rich_Morin and @ExtropianMind chimed in as well on the Elixir subject, which gave some more motivation. One more ingredient tried out was Elixir/Python interop.

Now that DeepSeek-V4.1-Flash-1017 is affordable for a while, I did not want to miss an opportunity to actually do something along the Original Monty, before the global economy of providers of Clusters doing Deep Learning / LLM training and inference collapses.

Thus, here is something that DeepSeek called Monty Studio without me asking it to: GitHub - d-led/ex.tbp.monty: Thousand Brains Project Monty reimplemented on the BEAM: the same modules, the same experiment configs, cortical columns as processes. Live Web UI right from the beginning. Ideally, an easy entry point into the TBP Monty world. · GitHub

The idea is simple: start running Monty Experiments with a couple of clicks, zero installation hassle, and connect the dots with the docs with the Monty documentation via an MCP.

For now, it’s a simple:

curl -fsSLO https://raw.githubusercontent.com/d-led/ex.tbp.monty/main/docker-compose.quickstart.yml
docker compose -f docker-compose.quickstart.yml up

Packaging this as a desktop app will be in the works.

Some features:

  • code translation map from Monty’s Python into Elixir modules
  • sensors and learning modules and the motor system are BEAM (Erlang) processes, thus: pre-emptively scheduled, scalable vertically and horizontally (in a cluster)
  • prerequisites like the pre-trained models download
  • run experiments with one click and observe, including camera views during runs
  • playback slider
  • persistent and manageable experiments
  • MCP!

I tried to make the parallel evolution of Monty and at least LLM agent-assisted catch-up possible with various mechanism. Validation and of course automatic testing was done as far as possible and as far as I could “supervise”. For now just playing around with Monty experiments is the biggest ambition. Performance will follow (by the way, impressed by the current performance of Original Monty!!!)

Performance is done by offloading computationally-intensive bits to Rust via the so-called Natively-Implemented-Functions. MuJoCo is handled off-process in the same way as in Python.

Screencasts below.

Enjoy

Starting and loading the prerequisites:

Starting an experiment:

MCP in simple use

Desktop version with embedded sqlite instead of postgres. Web version doesn’t need postgres by default now either - running on sqlite to track state, progress, etc

Latest update from the agent on the performance:

3 Likes