Comments (5)
Yes, you are correct, if simpler approach worked they (OpenAI) would have already tried. The approach I suggested is similar to PPLM.
As RL dynamics might be hard to tame for bigger models, maybe we can use PPLM as auxiliary guidance in addition to PPO, which I hope has minimal overhead as you have implemented much of ingredients already in the codebase.
We can have a schedule where PPLM can have weight of say 0.5 and it can decay to 0.0.
For now, I am closing the issue, if I get some good results using toy huggingface transformers + ppo/pplm combination experiments will post here.
@lucidrains Thanks for awesome work.
from palm-rlhf-pytorch.
Replacing the core RL algorithm might be too far fetched. Instead of replacing the core RL based algorithm I will see if I can actually apply the above naive supervised end to end reward maximization as guide to PPO as auxiliary task in RLHF Trainer. Sorry if it sounds vague. I will try to work on it on weekends. Also I need to go over all files in repo in details and recent literatures in incorporating human feedbacks to improve LLM so I might be completely wrong with my approach.
from palm-rlhf-pytorch.
@ssintelli haha, you read my deleted post
yea, let us know if you get PPLM working
from palm-rlhf-pytorch.
I am also interested in your experiments, good luck and let me know if you get good results : )
from palm-rlhf-pytorch.
I didn't try on language however, I tried something similar, with image segmentation and creating pseudo feedback as a didn't have supervision data. Results were inconclusive sometimes good sometimes bad. From my experiments what I could figure out is that we need good amount of supervision data, then overfit the generative model for few epochs on supervised fine-tuning task and then optionally use RL with pesudo feedback and supervised feedback for alignment and task specific results. Actually for my PhD thesis I was initially trying to apply RLHF to improve image segmentation but later as per discussion with my supervisor and some crude experiments paused it for later.
I am still so confused, hope I didn't confuse you either. Hope it might help you even if I didn't answer exactly what I intended to do.
from palm-rlhf-pytorch.
Related Issues (20)
- Value function
- Can not train the model using PyTorch version 2? HOT 1
- train your reward model issue HOT 1
- KL divergence loss HOT 1
- mask raised error HOT 2
- Confusion about KL divergence calculation for human feedback policies HOT 13
- Reason for using pooled critic embedding instead of the last embedding for value head HOT 3
- Calculating the kl loss seems has a mistake. HOT 1
- Column and Row Parallel Linear for Apex Tensor Parallel HOT 1
- i use other params with palm, but got error HOT 4
- norm.gamma not used during backprop HOT 2
- speed up with flash attn in A6000? HOT 2
- memory-efficient attention is default opened? if i dont use flash attn HOT 3
- Model Name HOT 3
- I looked at the llama source code and there is an intermedie layer
- Flash Attention 2
- Possible incorrect creation of Rotary Embeddinigs HOT 1
- Should critic's input be prompt only?
- How to use lora?
- Is there any documentation to train this on my own data ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from palm-rlhf-pytorch.