Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
update huggingface.py
Browse files Browse the repository at this point in the history
Signed-off-by: intellinjun <jun.lin@intel.com>
  • Loading branch information
intellinjun committed Jun 13, 2024
1 parent 987b050 commit 88b0f86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ def __init__(
if self.model_type == "chatglm" and "chatglm3" in self._config._name_or_path:
# due to the same model architecture.
self.model_type = "chatglm2"
# For GLM4
if model_type == "chatglm" and "glm-4" in self._config._name_or_path:
# due to the same model architecture.
model_type = "chatglm2"

@property
def config(self):
Expand Down

0 comments on commit 88b0f86

Please sign in to comment.