Comments (2)
so the max_length
is used to truncate the prompt+completions rather than remove them... I suppose if you need to remove them can't do that in the data-preparation stage?
from trl.
That's what I mean. You have to setup your own way of filtering out the samples beforehand, when it would make more sense to have a flag to drop instead of truncate. The code is already checking sample length to decide if it needs to truncate, so the code could just be done there to drop the samples instead.
from trl.
Related Issues (20)
- 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 1
- 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
- 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?
- Some questions about PPO trainer
- Processing issue in Anthropic HH dataset 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 trl.