# Do multi-agent RL custom modules support GTrXLNet

**URL:** <https://discuss.ray.io/t/do-multi-agent-rl-custom-modules-support-gtrxlnet/13230>\
**Category:** RLlib\
**Created:** [December 21, 2023, 9:33am UTC](https://discuss.ray.io/t/do-multi-agent-rl-custom-modules-support-gtrxlnet/13230 "2023-12-21T09:33:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fady\_B](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/fady_b/32/4949_2.png) [@Fady\_B](https://discuss.ray.io/u/Fady_B)\
**Post date:** [December 21, 2023, 9:33am UTC](https://discuss.ray.io/t/do-multi-agent-rl-custom-modules-support-gtrxlnet/13230/1 "2023-12-21T09:33:56Z")

</div>

I have a multi-agent setting with two agents. I would like the two agents to share the same network except for the last layer. I know that custom RL modules can help with this ([RL Modules (Alpha) — Ray 2.9.0](https://docs.ray.io/en/latest/rllib/rllib-rlmodule.html#writing-custom-multi-agent-rl-modules-advanced)). Does custom RL modules support GTrXLNet (i.e. I would like two agents to share the same GTrXLNet)?
