Skip to content

Commit 6de0d6f

Browse files
committed
update code
1 parent 80a8b89 commit 6de0d6f

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

tests/megatron/test_align/test_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def test_ernie():
137137
# test_llama3_2()
138138
# test_qwen3()
139139
# test_qwen2_moe()
140-
# test_qwen3_moe()
140+
test_qwen3_moe()
141141
# test_internlm3()
142142
# test_mimo()
143143
# test_moonlight()
@@ -146,4 +146,4 @@ def test_ernie():
146146
# test_dots()
147147
# test_kimi_dev()
148148
# test_hunyuan()
149-
test_ernie()
149+
# test_ernie()

tests/test_align/test_template/test_llm.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -446,15 +446,6 @@ def test_ernie():
446446
assert res == res2, f'res: {res}, res2: {res2}'
447447

448448

449-
def test_glm4_5():
450-
messages = [{'role': 'user', 'content': '浙江的省会在哪?'}]
451-
pt_engine = PtEngine('ZhipuAI/GLM-4.5-Air')
452-
res = _infer_model(pt_engine, messages=messages)
453-
pt_engine.default_template.template_backend = 'jinja'
454-
res2 = _infer_model(pt_engine, messages=messages)
455-
assert res == res2, f'res: {res}, res2: {res2}'
456-
457-
458449
if __name__ == '__main__':
459450
from swift.llm import PtEngine, RequestConfig
460451
from swift.utils import get_logger, seed_everything
@@ -499,4 +490,3 @@ def test_glm4_5():
499490
# test_kimi_dev()
500491
# test_hunyuan()
501492
# test_ernie()
502-
test_glm4_5()

0 commit comments

Comments
 (0)