Skip to content

Conversation

@wangruohui
Copy link
Collaborator

No description provided.

@wangruohui wangruohui marked this pull request as ready for review July 28, 2023 07:56
@lvhan028 lvhan028 requested a review from AllentDan July 31, 2023 09:50
@lvhan028
Copy link
Collaborator

lvhan028 commented Aug 1, 2023

Can we put unittest in tests folder?

@lvhan028
Copy link
Collaborator

lvhan028 commented Aug 1, 2023

I tried python -m lmdeploy.pytorch.chat /nvme/shared_data/InternLM/7B/0705/5299 --accel deepspeed, but got errors like

TypeError: Subscripted generics cannot be used with class and instance checks

deepspeed --module --num_gpus 2 lmdeploy.pytorch.chat /nvme/shared_data/InternLM/7B/0705/5299 --accel deepspeed suffer from the same error, too

@lvhan028 lvhan028 added the enhancement New feature or request label Aug 1, 2023
@wangruohui
Copy link
Collaborator Author

I tried python -m lmdeploy.pytorch.chat /nvme/shared_data/InternLM/7B/0705/5299 --accel deepspeed, but got errors like

TypeError: Subscripted generics cannot be used with class and instance checks

deepspeed --module --num_gpus 2 lmdeploy.pytorch.chat /nvme/shared_data/InternLM/7B/0705/5299 --accel deepspeed suffer from the same error, too

Solved

@wangruohui
Copy link
Collaborator Author

rebased #188

Comment on lines +9 to +12
try:
import readline # To support command line history # noqa: F401
except ImportError: # readline not available
pass
Copy link
Collaborator

Choose a reason for hiding this comment

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

readline was not in use

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is as expected because import readline just takes effect. After importing this module, user can retrieve history input via arrow keys, during chat. So we don't need to really use it as normal python packages, but need to import it.

@lvhan028 lvhan028 merged commit 4bd0b48 into InternLM:main Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants