Skip to content

Commit d747f8e

Browse files
committed
Update
[ghstack-poisoned]
1 parent fd322d9 commit d747f8e

File tree

10 files changed

+2181
-14
lines changed

10 files changed

+2181
-14
lines changed

docs/source/reference/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ API Reference
1010
llms
1111
modules
1212
objectives
13+
services
1314
trainers
1415
utils
1516
config

docs/source/reference/llms.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,9 @@ Tools are usually implemented as transforms, and appended to a base environment
930930
such as :class:`~torchrl.envs.llm.ChatEnv`.
931931

932932
An example of a tool transform is the :class:`~torchrl.envs.llm.transforms.PythonInterpreter` transform, which is used
933-
to execute Python code in the context of the LLM.
933+
to execute Python code in the context of the LLM. The PythonInterpreter can optionally use a shared
934+
:class:`~torchrl.envs.llm.transforms.PythonExecutorService` for efficient resource usage across multiple environments.
935+
See :ref:`ref_services` for more details on the service registry system.
934936

935937
>>> from torchrl.envs.llm.transforms import PythonInterpreter
936938
>>> from torchrl.envs.llm import ChatEnv
@@ -1141,6 +1143,7 @@ By following these design principles, reward transforms can be effectively integ
11411143
KLRewardTransform
11421144
MCPToolTransform
11431145
PolicyVersion
1146+
PythonExecutorService
11441147
PythonInterpreter
11451148
RayDataLoadingPrimer
11461149
RetrieveKL

0 commit comments

Comments
 (0)