Ahmadzei's picture
added 3 more tables for large emb model
5fa1a76
raw
history blame contribute delete
242 Bytes
You can speed up the map function by setting batched=True to process multiple elements of the dataset at once:
tokenized_billsum = billsum.map(preprocess_function, batched=True)
Now create a batch of examples using [DataCollatorForSeq2Seq].