-
Notifications
You must be signed in to change notification settings - Fork 224
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
Use get_max_new_tokens() insted of max_new_tokens field when stopping… #1417
Use get_max_new_tokens() insted of max_new_tokens field when stopping… #1417
Conversation
402bba1
to
5d527f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all places inside src/cpp
are changed
One more thing - I believe max_length is now loaded from generation config. Isn't it a model property that is not meant to be a per generation configuration? @michalkulakowski I know you have logic to read that value in OVMS now. Maybe we could move it here and make it a pipeline member. This way it could be used in both OVMS and standalone GenAI app. |
That makes sense to me. @ilya-lavrenov what do you think? |
I suppose it depends on the model:
Looks like max_model_length (which is config.max_position_embeddings, example is https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct/blob/main/config.json#L13) and max_length from generation_config.json are different things, are not they? Maybe we can have similar behavior for GenAI and add some defaults similar to HF? @Wovchena @pavel-esir @as-suvorov what is your opinion? |
@Wovchena @pavel-esir @as-suvorov please share your opinion |
I think even w/o default value for max new tokens, we can go with other changes which will respect max_length |
9efa361
to
c1d1672
Compare
caa5675
to
4a9ca61
Compare
src/cpp/src/prompt_lookup/continuous_batching_for_prompt_lookup.cpp
Outdated
Show resolved
Hide resolved
src/cpp/src/speculative_decoding/continuous_batching_for_speculative_decoding_impl.cpp
Outdated
Show resolved
Hide resolved
src/cpp/src/speculative_decoding/continuous_batching_for_speculative_decoding_impl.cpp
Outdated
Show resolved
Hide resolved
src/cpp/src/speculative_decoding/continuous_batching_for_speculative_decoding_impl.cpp
Outdated
Show resolved
Hide resolved
src/cpp/src/prompt_lookup/continuous_batching_for_prompt_lookup.cpp
Outdated
Show resolved
Hide resolved
src/cpp/src/speculative_decoding/continuous_batching_for_speculative_decoding_impl.cpp
Outdated
Show resolved
Hide resolved
build_jenkins |
Please, fix compilation |
build_jenkins |
… generation