use DataCollatorWithFlattening when not sample packing (#2167)

This commit is contained in:
Wing Lian
2024-12-17 17:46:44 -05:00
committed by GitHub
parent 3798229d85
commit bd2a594b89
5 changed files with 149 additions and 2 deletions

View File

@@ -245,6 +245,9 @@ sample_packing_group_size: 100000
# The number of samples which can be packed into one sequence. Increase if using a large sequence_len with many short samples.
sample_packing_bin_size: 200
# Use batch flattening for speedups when not using sample_packing
batch_flattening:
# Passed through to transformers when loading the model when launched without accelerate
# Use `sequential` when training w/ model parallelism to limit memory
device_map: