sail-sg / lorahub

[COLM 2024] LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Composition
MIT License
572 stars 35 forks source link

repaired an error in reproduce_bbh.py (shuffle seed) #19

Closed JornyWan closed 10 months ago

JornyWan commented 11 months ago

Hi there, i found i could not use shuffle with seed, if anyone meets this problem, you can use the following codes to replace the original one, which is around line62: random.seed(42) shuffled_set = list(zip(example_inputs, examples_outputs)) random.shuffle(shuffled_set) example_inputs, examples_outputs = zip(*shuffled_set)

reproduce_bbh.py

SivilTaram commented 11 months ago

@JornyWan thanks for the feedback! Would you mind creating a pull request for the bug (not sure why I can run it, maybe because of python version)?

JornyWan commented 10 months ago

@SivilTaram ok, i will do it