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 concatenate issue in profile serving #1282

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

ispobock
Copy link
Contributor

Motivation

  1. If the postprocessing grpc call failed, the text variable will be access but not declared.
    session.response += text
  2. If num_prompts < concurrency, the np.concatenate() will face issue because the array dimension in stats is different.

Modification

  1. Add initialization for text variable
  2. Filter empty stats_ array.

@lvhan028 lvhan028 requested a review from AllentDan March 13, 2024 09:30
Copy link
Collaborator

@AllentDan AllentDan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lvhan028 lvhan028 merged commit 0c631a7 into InternLM:main Mar 14, 2024
4 of 5 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.

None yet

3 participants