Comments (2)
Hi @GenVr! Can you show your training code as well alongside your config? There might be an error in how you passed the training data in. Thanks!
from trlx.
@maxreciprocate Regarding the dataset and train, I use this train() code:
trlx.train(
samples = [(text,output) for text,output in zip(ttv_ds['train']['text'],ttv_ds['train']['output'])],
rewards = labels,
eval_prompts=ttv_ds['validation']['text'][:16],
config = config,
)
Where:
samples = [(string, string), (string, string), ...] # list of tuples (string, string)
labels = [0,1,0,1...] # list of labels 0/1
samples = [string, string, ..] # list of strings
Thanks for your answer!
from trlx.
Related Issues (20)
- `position_ids` error in accelerate PPO trainer HOT 3
- Question about saving peft checkpoint HOT 2
- Problem with LLama training with LoRA HOT 3
- TypeError: reward_fn() got an unexpected keyword argument 'tokenizer' HOT 1
- multigpu support for summarization ppo example HOT 3
- Support parallel reward_fn in PPO training
- resume_from_checkpoint doesn't work HOT 1
- Issue since most recent transformers update HOT 1
- Multi-GPU training errors with peft HOT 1
- Attention mask when calculating log ratio for PPO
- when i use trlx ppotrainer train a model llama 13b model, but saved huggingface mode ,but when it inference , it has some strange keys ,and the inference result did not show ,it also have no error , it seems the result disapper HOT 1
- MPT is not working
- Runtime error when running examples (ilql_sentiments_t5.py) HOT 2
- Integration of Self-Play Fine-Tuning (SPIN) Method for Enhancing Large Language Models
- RLHF text summarization diverges
- [New Feature Request] Add KTO
- Issue of tensors share memory HOT 2
- TRLX Environment customization
- Why train dataloader is not prepared by Accelerator
- Data Loader Bug when running t5_summarization_daily_cnn.py
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 trlx.