Skip to content

Commit

Permalink
example: update chatglm3 api decorator definition (#3062)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianweidut authored Dec 6, 2023
1 parent 145d209 commit f0f0d89
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions example/llm-finetune/models/chatglm3/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ def copilot_predict(data: dict) -> str:
return response


@api(
inference_type=LLMChat(
args={"user_input", "history", "temperature", "top_p", "max_new_tokens"}
)
)
@api(inference_type=LLMChat())
def chatbot(user_input, history, temperature, top_p, max_new_tokens):
model, tokenizer = _load_model_and_tokenizer()
response, history = model.chat(
Expand Down

0 comments on commit f0f0d89

Please sign in to comment.