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

[Fix] Add safety check for incremental decode #1094

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

AllentDan
Copy link
Collaborator

@AllentDan AllentDan commented Feb 1, 2024

When concurrency is high, Turbomind may decode nothing in stream mode. Which is a risk for api_server. A side effect of #992

@zhyncs
Copy link
Collaborator

zhyncs commented Feb 1, 2024

When concurrency is high, Turbomind may decode nothing in stream mode.

Is it caused by this #1058 ?

When client concurrency is larger than Turbomind's instance num, it's easy to reproduce this problem.

@AllentDan
Copy link
Collaborator Author

When concurrency is high, Turbomind may decode nothing in stream mode.

Is it caused by this #1058

When client concurrency is larger than Turbomind's instance num, it's easy to reproduce this problem.

No, this PR is just to fix the side effect of #992.

@zhyncs
Copy link
Collaborator

zhyncs commented Feb 1, 2024

When concurrency is high, Turbomind may decode nothing in stream mode.

Is it caused by this #1058
When client concurrency is larger than Turbomind's instance num, it's easy to reproduce this problem.

No, this PR is just to fix the side effect of #992.

ok

@lvhan028 lvhan028 requested a review from irexyc February 2, 2024 04:56
@lvhan028 lvhan028 merged commit fa07c5e into InternLM:main Feb 2, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants