-
Notifications
You must be signed in to change notification settings - Fork 11
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
ValueError: draft_choices was not cut enough / draft_len should not exceed 65 #13
Comments
For efficient purposes, the algorithm in REST/DraftRetriever/src/lib.rs Lines 335 to 344 in 6aed6ad
A more strict implementation would be like:
This new implementation would preserve the original order of the draft sequences when they have identical occurrence counts. You may consider switching to this implementation, although it might be slightly slower. |
I modified the lib.rs code so that it can be applied to the qwen-7b model (the vocab_size of the qwen-7b model is 151936), and then when I ran REST's Draft Retriever to retrieve the draft token from the knowledge datastores, the following accidentally appeared mistake. Is this error related to the implementation of the algorithm you pointed out above that is not strictly accurate? If I switch to the strict implementation you provided, can this problem be solved? thread '<unnamed>' panicked at src/lib.rs:454:5:
draft_len should not exceed 65
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped) REST/DraftRetriever/src/lib.rs Lines 449 to 459 in 6aed6ad
Thank you very much~ |
Hi! I still met the same |
I adapted the REST solution to the Qwen-7b model and encountered the following problem when testing it on the Human-eval data set:
What may be the cause of this problem and how to solve it?
REST/DraftRetriever/src/lib.rs
Lines 350 to 359 in 6aed6ad
Why can't the length of
draft_choices
be directly truncated to the length specified by thechoices
parameter?Thanks,
The text was updated successfully, but these errors were encountered: