Open smallsmallwood opened 1 year ago
If the longest essays in the batch have the same length, both codes are ok. The value of 'bert_batch_size' is set by the length of essay prompts, which may be more stable, while the value of 'document_batch.shape[1]' is dependent on the length of the longest essays.
orginal code:
modified: