Comments (4)
Side note: it'd be good to update the transformers
dependency to the latest (v4.0.0).
from trl.
You are right, when I have time I'll upgrade it to v4.0.0. I haven't tested it but I suspect if you take a model with a text generation head it should work. Note that you need add a value head to your model architecture (see here).
from trl.
I can try it. Other than running with no errors, what other ways I can test that the code is working fine? Is there a benchmark or a quantitative way of verifying the code?
from trl.
Monitoring the rewards on the IMDb dataset would be a good start. For GPT-2 it takes only 1-2h to train.
from trl.
Related Issues (20)
- How to use DoRA with ORPO
- Regarding `setup_chat_format` overwriting existing special tokens HOT 6
- BUG: UserWarning: Could not find response key in the following instance: HOT 1
- running rloo.py got. RuntimeError: CUDA error: device-side assert triggered HOT 2
- AttributeError: 'NoneType' object has no attribute 'device' HOT 1
- Support for Iterative DPO HOT 1
- The meaning of "--dataset_name"? HOT 1
- Not find sft.py HOT 1
- How to use `predict` function in `DPOTrainer`
- Support more than one rejected responses HOT 2
- No way to drop samples which are longer than `max_length` in ORPOTrainer? HOT 3
- OOM Error using PPO Trainer to LoRa-tune 4-bit Llama-3-8B Model HOT 1
- evaluation_loop() Bug in KTOTrainer HOT 1
- Possible bug in SFTTrainer HOT 5
- Overflow with padding left warning.
- TR-DPO : Why is the loss not changing at all, and reward/accuracies and reward/margins always = 0? HOT 1
- scripts/dpo.py : Unable to train custom gpt2 model
- Support packing for pretokenized datasets
- DPO Evalution with WandB triggers a `cannot pickle '_thread.lock' object` failure HOT 11
- Will long text be truncated and split into different examples when using packing?
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 trl.