Skip to content

Conversation

@AllentDan
Copy link
Collaborator

@lvhan028 lvhan028 self-requested a review September 1, 2023 07:48
@AllentDan AllentDan mentioned this pull request Sep 1, 2023
2 tasks
@AllentDan
Copy link
Collaborator Author

@Harold-lkk We've changed the stop_words usage in this PR. Please be aware of this.

@VarunSreenivasan16
Copy link

I'm currently trying to use lmdeploy. However, I'm hitting a roadblock due to not being able to specify stop words relevant to my model. By when can this PR get merged in?

@lvhan028
Copy link
Collaborator

I'm currently trying to use lmdeploy. However, I'm hitting a roadblock due to not being able to specify stop words relevant to my model. By when can this PR get merged in?

Before next Wednesday

@AllentDan AllentDan changed the title expose stop words expose stop words and filter eoa Sep 21, 2023
@lvhan028 lvhan028 requested review from grimoire and irexyc September 21, 2023 09:39
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should the stop words be List[str]?

Copy link
Collaborator

Choose a reason for hiding this comment

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

the docstring is different from the arguments of function.

Copy link
Collaborator

@grimoire grimoire 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
Copy link
Collaborator

May update test_model.py too.
pytest tests/test_model.py raised errors

@lvhan028
Copy link
Collaborator

  File "/data1/projects/llmdeploy/lmdeploy/utils.py", line 95, in filter_suffix
    response = response.removesuffix(item)
AttributeError: 'str' object has no attribute 'removesuffix'

removesuffix is introduced in python3.9. But we claim lmdeploy supports python >= 3.8

Conflicts:
	lmdeploy/model.py
@lvhan028 lvhan028 merged commit 327deae into InternLM:main Sep 26, 2023
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.

5 participants