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

Compilation fails for text-generation-benchmark #241

Closed
jlamypoirier opened this issue Apr 25, 2023 · 3 comments
Closed

Compilation fails for text-generation-benchmark #241

jlamypoirier opened this issue Apr 25, 2023 · 3 comments

Comments

@jlamypoirier
Copy link
Contributor

I'm getting this error when I try to compile text-generation-benchmark

#11 326.6    Compiling tokenizers v0.13.3
#11 329.9    Compiling text-generation-benchmark v0.1.0 (/app/text-generation-inference/benchmark)
#11 330.2 error[E0063]: missing field `max_tokens` in initializer of `Batch`
#11 330.2    --> src/generation.rs:142:17
#11 330.2     |
#11 330.2 142 |     let batch = Batch {
#11 330.2     |                 ^^^^^ missing `max_tokens`
#11 330.2 
#11 330.3 For more information about this error, try `rustc --explain E0063`.
#11 330.3 error: could not compile `text-generation-benchmark` due to previous error
#11 330.3 warning: build failed, waiting for other jobs to finish...

I can't find where Batch is defined so no idea if the bug is justified.

Note: I messed around a bit with the code to get things to run with my setup (base image nvcr.io/nvidia/pytorch:23.03-py3 with python 3.8, bigcode transformers instead of @OlivierDehaene 's fork):
jlamypoirier#1
bigcode-project/bigcode-inference-benchmark#22

@jlamypoirier
Copy link
Contributor Author

@OlivierDehaene
Copy link
Member

Fixed on main.

@jlamypoirier
Copy link
Contributor Author

Thanks!

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