Joseph Lee
Joseph Lee
https://github.com/huggingface/trl/blob/6f3a4529971ed92fec8aafd1ff577a02618bfd4f/trl/trainer/kto_trainer.py#L69 It seems like some trainers in TRL do this but this is not the case with SFT? Excuse me if this is hidden somewhere else and it's already being...
offload_state_types += [ OffloadStateTypeEnum.lp_grads, # OffloadStateTypeEnum.lp_params, ← ? ] Is there a specific reason the params aren't offloaded either? This would help a lot with co-locating large models. I'm guessing...
Hi! I'm new to OpenRLHF, and I've been going through the documentation. It seems like there's no support for tool-calling during RL rollouts? I just wanted to confirm this/ask if...
When setting embed_tokens as trainable via modules_to_save in the LoRA Config, are these embedding tokens also trained via LoRA adapters? Or are these directly trained?
Hi 🤗 team, I'm writing to inquire about the design choice to set the default data collator as DataCollatorForLanguageModelling for SFTTrainer. https://github.com/huggingface/trl/blob/0d54f05fa3d063cbc2590ff0b727671992eec89d/trl/trainer/sft_trainer.py#L371-L378 To my knowledge, masked language modeling isn't standard...
Hi! A few comments on this line of code that excludes columns when using liger kernels. https://github.com/huggingface/trl/blob/4ccc5ca7bdacb195fec936818614507f5504fa35/trl/trainer/sft_trainer.py#L815C15-L815C18 1) I'm curious why this removal is necessary to begin with. Is this...
Hi! To my knowledge, it seems like there are two DataCollators available that can handle, one, packed examples and, two, padding-free attention. WithFlattening: https://github.com/huggingface/transformers/blob/67ddc82fbc7e52c6f42a395b4a6d278c55b77a39/src/transformers/data/data_collator.py#L1973 custom LanguageModelling in sft_trainer.py: https://github.com/huggingface/trl/blob/686cd35a72f4d2a8afd8d15151738f83a118dae5/trl/trainer/sft_trainer.py#L109 Based...
The warning in: https://github.com/huggingface/trl/blob/686cd35a72f4d2a8afd8d15151738f83a118dae5/trl/trainer/sft_trainer.py#L472C1-L478C14 I'm probably misunderstanding how packing is implemented, but it's done in `_prepare_dataset` which uses `_pack_ffd` (default) from https://github.com/huggingface/trl/blob/686cd35a72f4d2a8afd8d15151738f83a118dae5/trl/data_utils.py#L528 However, from my understanding to how `_prepare_dataset` is...
https://github.com/huggingface/trl/blob/db19d79e302e0e9147c5025bdfaa3aad8df9be1b/trl/trainer/sft_trainer.py#L434 ``` if args.per_device_train_batch_size == 1 and not args.packing: warnings.warn( "You are using a per_device_train_batch_size of 1 with padding-free training. Using a batch size " "of 1 anihilate the benefits...
# Issue To my knowledge, the current implementation of packing generates `seq_lengths` in `SFTTrainer` and then generates position_ids on the fly in the data collator. If this is true, there...