Comments (3)
Please refer to the args:
OpenRLHF/openrlhf/models/model.py
Line 34 in e1205ad
and
OpenRLHF/openrlhf/models/model.py
Line 35 in e1205ad
from openrlhf.
Thanks for your reply.
Does it mean that I can set value_head_prefix="reward_head", and setattr(self, value_head_prefix, nn.Linear(config.hidden_size, 1, bias=False)) will first search the parameters of reward_head from the model. If the parameters doesn't exist, it will initialize it with nn.Linear(config.hidden_size, 1, bias=False).
The main misunderstanding lies in that I don't know the logic of setattr.
from openrlhf.
Yes
from openrlhf.
Related Issues (20)
- Qlora load model error HOT 1
- 无法用Qwen2-70b给 Qwen2-1.5b进行蒸馏 报错 tensor size 不能match HOT 1
- ppo 错误 HOT 2
- 8卡 4090 ppo ray 训练问题 HOT 1
- 模型参数量与显存占用关系 HOT 1
- ppo 错误 HOT 7
- Data Preprocess Speed Up HOT 1
- torch.distributed.broadcast timeout HOT 2
- 版本冲突问题 HOT 1
- AssertionError: Session name does not match persisted value HOT 1
- ppo错误 HOT 1
- flash_attn问题 HOT 3
- 请问有蒸馏的loss曲线可以参考吗 HOT 1
- PPO takes very long HOT 10
- 请问这里循环处为什么设置dist.barrier()? HOT 2
- PPO训练overlap_comm打开会对训练表现造成很大影响 HOT 1
- 4卡4090 训练qwen2-7b-instruct时报错CUDA out of memory HOT 2
- Evaluate the PPO Process: Compatibility issues between DeepSpeed checkpoints and Transformers models HOT 1
- batch_inference NCCL time out error HOT 1
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 openrlhf.