-
Notifications
You must be signed in to change notification settings - Fork 456
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
Refactor async engine & turbomind IO #2968
base: main
Are you sure you want to change the base?
Conversation
It’s amazing! |
FINALLY!! |
prompts = [prompt for prompt, _, _ in requests] | ||
gen_configs = [ | ||
GenerationConfig(temperature=temperature, | ||
top_p=top_p, | ||
top_k=top_k, | ||
ignore_eos=True, | ||
do_sample=True, |
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.
why do_sample True?
sequence_start=True, | ||
sequence_end=True, | ||
stream_output=stream_output) | ||
try: |
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.
I am not sure if it works for pytorch engine
stop_words should be trimmed |
when backend is pt engine, the pipeline cannot be destroyed successfully. from lmdeploy import pipeline, PytorchEngineConfig
model_path = ‘internlm2_5-7b-chat’
engine_config = PytorchEngineConfig()
pipe = pipeline(model_path, backend_config=engine_config, log_level='INFO')
response = pipe('hi') |
I will fix |
@lzhangzz output tokens doubles when ignore_eos is true
I suppose the generate_token_len shoud be 10. but it's 20 actually, the output is:
|
TODO