MCPcopy Index your code
hub / github.com/IDSIA/recurrent-fwp

github.com/IDSIA/recurrent-fwp @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
883 symbols 2,053 edges 76 files 100 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Recurrent Fast Weight Programmers

This is the official repository containing the code we used to produce the experimental results reported in the paper:

Going Beyond Linear Transformers with Recurrent Fast Weight Programmers (NeurIPS 2021)

Contents

  • algorithmic directory for code execution and ListOps
  • language_modeling directory for language modeling
  • reinforcement_learning directory for RL

Separate license files can be found under each directory.

General instructions

Please refer to the readme file in each directory for further instructions.

In all tasks, our custom CUDA kernels will be automatically compiled. To avoid recompiling the code multiple times, we recommend to specify the path to a directory to store the compiled code via:

export TORCH_EXTENSIONS_DIR="/home/me/torch_extensions/lm"

Such a line is already included in the example scripts we provide. Please change the path to a safe directory of your choice.

Important: separate paths should be used for different tasks (i.e. here, one for language modeling, one for code execution, one for ListOps, and one for RL).

BibTex

@inproceedings{irie2021going,
      title={Going Beyond Linear Transformers with Recurrent Fast Weight Programmers}, 
      author={Kazuki Irie and Imanol Schlag and R\'obert Csord\'as and J\"urgen Schmidhuber},
      booktitle={Proc. Advances in Neural Information Processing Systems (NeurIPS)},
      address={Virtual only},
      year={2021}
}

Links

Core symbols most depended-on inside this repo

size
called by 206
algorithmic/data.py
map
called by 54
reinforcement_learning/nest/nest/nest.h
logging
called by 54
language_modeling/src/utils/exp_utils.py
log
called by 40
reinforcement_learning/torchbeast/core/file_writer.py
flatten
called by 33
reinforcement_learning/nest/nest/nest.h
time
called by 20
reinforcement_learning/torchbeast/core/prof.py
load
called by 17
reinforcement_learning/nest/nest/nest_pybind.h
step
called by 13
reinforcement_learning/torchbeast/polybeast_env.py

Shape

Method 569
Class 168
Function 146

Languages

Python77%
C++23%

Modules by API surface

reinforcement_learning/libtorchbeast/rpcenv.pb.h114 symbols
language_modeling/src/utils/cuda_fast_weight_layer.py65 symbols
reinforcement_learning/libtorchbeast/rpcenv.pb.cc58 symbols
language_modeling/src/model_main.py49 symbols
reinforcement_learning/torchbeast/atari_wrappers.py44 symbols
reinforcement_learning/torchbeast/layer.py32 symbols
algorithmic/model.py30 symbols
algorithmic/layers.py27 symbols
language_modeling/src/data_utils.py25 symbols
language_modeling/src/utils/vocabulary.py18 symbols
reinforcement_learning/torchbeast/polybeast_learner.py17 symbols
reinforcement_learning/torchbeast/noneg_polybeast_learner.py17 symbols

For agents

$ claude mcp add recurrent-fwp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page