CarperAI / CarperAI/trlx

Training problem for the GPT-j RLHF example

Open
#428 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.8k
Forks
487
PR merge metrics
No merged PRs in 30d

Description

I'm trying with RLHF with GPT-j (the given example in examples/summarize_rlhf) on 2 3090 GPUs (with 24GB of memory on each GPU). In order to make the model runnable on my machine (avoiding CUDA out of memory error), I change the config for PPO (num_rollouts -> 32 (which was originally 128) and chunk_size -> 4 (which was originally 16)), and the batch_size for the TrainConfig was changed to 1. All the others are kept unchanged. However, in the finetuning experiment (trlx_gptj_text_summarization.py), the reward continues to drop (from 0 to -3.48 after 6k training steps). Is there any way to determine the reason for this weird problem? Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.