Skip to content

Commit 80c8de5

Browse files
authored
fix bug of gguf and support for LiquidAI/LFM2-1.2B (#927)
Signed-off-by: n1ck-guo <heng.guo@intel.com>
1 parent da55e27 commit 80c8de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_round/export/export_to_gguf/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def get_moe_name(cls, name, new_name):
109109
"FFN_DOWN_EXP": ["down_proj", "w2", "linear_1"],
110110
"FFN_UP_EXP": ["up_proj", "w3", "linear_v"],
111111
}
112-
nums = re.findall(r"\d+", name)
112+
nums = re.findall(r"\.(\d+)\.", name)
113113
if len(nums) != 2:
114114
return name
115115
name_tmp = name[: -len(".weight")].replace(f".{nums[1]}", "")

0 commit comments

Comments
 (0)