Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BoN sampling: ArrowInvalid: offset overflow while concatenating arrays #15

Open
cassidylaidlaw opened this issue Sep 23, 2024 · 1 comment

Comments

@cassidylaidlaw
Copy link

After training a reward model according to the instructions, I tried to run BoN sampling via the following command:

python src/bon/run_bon_pipeline.py models/rm-pythia-44m_seed0 --seeds 0

However, I got the following traceback: bon.log.

I was able to fix this error using a workaround in this issue. In run_bon_pipeline.py, I changed

gold_labelled_generations = gold_labelled_generations.map(_truncate_answers)

to

gold_labelled_generations = gold_labelled_generations.map(
    _truncate_answers,
    writer_batch_size=8,
)

It might be good to update the code based on this since others could have the same issue.

@tsWen0309
Copy link

Thanks! That works for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants