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

Perform fuzzy matching on chat template according to model path #839

Merged
merged 9 commits into from
Jan 2, 2024

Conversation

AllentDan
Copy link
Collaborator

No description provided.

@lvhan028 lvhan028 self-requested a review December 20, 2023 11:34
@lvhan028
Copy link
Collaborator

关于 turbomind 推理时的参数,几乎是把它们从 config.ini 中抽出来,定位为结构体。初始化 turbomind引擎的时候,把结构体传入。所以在这个PR中,把runtime config setting 先拿掉吧。

@lvhan028 lvhan028 requested a review from irexyc December 22, 2023 03:50
@lvhan028 lvhan028 changed the title runtime config setting and fuzzy model_name matching fuzzy matching chat template according to model path Dec 22, 2023
@lvhan028 lvhan028 changed the title fuzzy matching chat template according to model path Perform fuzzy matching on chat template according to model path Dec 22, 2023
"""
model_names = list(MODELS.module_dict.keys())
if query.endswith('/'):
query = query.removesuffix('/')
Copy link
Collaborator

Choose a reason for hiding this comment

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

removesuffix is not supported by python3.8

@lvhan028 lvhan028 merged commit e7eedc0 into InternLM:main Jan 2, 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.

3 participants