Spaces:
Runtime error
Runtime error
Download trlx/docs/source/data.rst from teachyourselfcoding/chatlawv1: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/spaces/teachyourselfcoding/chatlawv1/resolve/main/trlx/docs/source/data.rst
- Command line
-
hf download hf://spaces/teachyourselfcoding/chatlawv1/trlx/docs/source/data.rst
-
curl -L -o data.rst https://huggingface.co/spaces/teachyourselfcoding/chatlawv1/resolve/main/trlx/docs/source/data.rst
1.11 kB
| .. _data: | |
| Data Elements | |
| ************************ | |
| All of the major Carper projects: trlX, CHEESE, and magiCARP use | |
| dataclasses corresponding to batches of data to communicate data between models and different | |
| components. trlX is no different, though it has many different dataclasses for | |
| different components like training or inference. Currently, we support PPO and ILQL, which | |
| each demand different kinds of data during training. | |
| **Basic Data Elements for Accelerate** | |
| .. autoclass:: trlx.accelerate_base_datatypes.PromptElement | |
| :members: | |
| .. autoclass:: trlx.accelerate_base_datatypes.PromptBatch | |
| :members: | |
| .. autoclass:: trlx.accelerate_base_datatypes.AccelerateRLElement | |
| :members: | |
| .. autoclass:: trlx.accelerate_base_datatypes.AccelerateRLBatchElement | |
| :members: | |
| **Data Elements for PPO** | |
| .. autoclass:: trlx.ppo_types.PPORLElement | |
| :members: | |
| .. autoclass:: trlx.ppo_types.PPORLBatch | |
| :members: | |
| **Data Elements for ILQL** | |
| .. autoclass:: trlx.ilql_types.ILQLElement | |
| :members: | |
| .. autoclass:: trlx.ilql_types.ILQLBatch | |
| :members: | |