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

Remove tp from pipline argument list #947

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

lvhan028
Copy link
Collaborator

No description provided.

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

tp = kwargs['tp']
kwargs.pop('tp')
else:
tp = 1 if backend_config is None else backend_config.tp
Copy link
Collaborator

Choose a reason for hiding this comment

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

tp = kwargs.pop('tp', 1) if backend_config is None else backend_config.tp

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

不管 backend_config 是不是为空,只要 kwargs 中有 tp,都得pop出来。否则的话,接下来调用AsyncEngine的时候,可能出现 multi tp

@lvhan028 lvhan028 merged commit b94709b into InternLM:main Jan 15, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants