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 deprecated arguments from API and clarify model_name and chat_template_name #1931

Merged
merged 42 commits into from
Aug 8, 2024

Conversation

lvhan028
Copy link
Collaborator

@lvhan028 lvhan028 commented Jul 5, 2024

  • remove get_hf_config_content. Use get_model_arch instead
  • remove deprecated argument such as tp, meta_instruction, cap and so on
  • remove deprecated functions in CLI, such as kv_qparams
  • tell "model_name" and "chat_template_name" apart. "model_name" means the name of the served model, which is used by the api_server "v1/models". "chat_template_name" means the name of the chat template
  • "--chat-template" can be a builtin chat template name of a customized json file

@lvhan028 lvhan028 removed the WIP label Jul 23, 2024
Comment on lines -229 to -234
return parser.add_argument(
'--cap',
type=str,
default='chat',
choices=['completion', 'infilling', 'chat', 'python'],
help='The capability of a model. '
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

@lvhan028 lvhan028 Aug 7, 2024

Choose a reason for hiding this comment

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

@zhulinJulia24 I remove --cap from the CLI chat and use --chat-template <a json file> instead.
Could you help fix the test cases?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@zhulinJulia24 I remove --cap from the CLI chat and use --chat-template <a json file> instead. Could you help fix the test cases?

already fixed in pr #2183

lmdeploy/turbomind/turbomind.py Outdated Show resolved Hide resolved
lmdeploy/turbomind/deploy/converter.py Show resolved Hide resolved
Copy link
Collaborator

@RunningLeon RunningLeon left a comment

Choose a reason for hiding this comment

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

LGTM

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 fb6c5a1 into InternLM:main Aug 8, 2024
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.

5 participants