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

support inference for pad_token & chatglm chat #157

Merged
merged 4 commits into from
Feb 19, 2024
Merged

support inference for pad_token & chatglm chat #157

merged 4 commits into from
Feb 19, 2024

Conversation

zehuichen123
Copy link
Collaborator

No description provided.

@@ -118,7 +118,8 @@ def _prompt2api(self, prompts: Union[List, str]) -> Tuple[str, bool]:
return res

def _role2api_role(self, role_prompt: Dict) -> Tuple[str, bool]:
merged_prompt = self.roles[self.roles[role_prompt['role']]]
# merged_prompt = self.roles[self.roles[role_prompt['role']]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

delete

self.gen_params = dict(
max_new_tokens=max_new_tokens,
top_p=top_p,
top_k=top_k,
temperature=temperature,
repetition_penalty=repetition_penalty,
stop_words=stop_words)
stop_words=stop_words,
stop_words_id=stop_words_id)
Copy link
Collaborator

Choose a reason for hiding this comment

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

move to huggingface

@Harold-lkk Harold-lkk merged commit 3cf20f5 into main Feb 19, 2024
2 checks passed
@Harold-lkk Harold-lkk deleted the czh/teval branch July 11, 2024 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants