Lightning
get_random_microbatch(microbatch_size, max_sequence_length, vocab_size, seed, mask_index=MLM_LOSS_IGNORE_INDEX)
Generate random microbatches for testing.
Note that this follows the convention that token_logits are s,b, while other fields are b,s.
Source code in bionemo/testing/lightning.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|