Add LMF2 MoE model architecture (#17997)

This commit is contained in:
Piotr Mazurek
2026-02-12 01:03:43 +08:00
committed by GitHub
parent 5d185efb78
commit ded068a76e
5 changed files with 913 additions and 1 deletions
@@ -884,5 +884,41 @@ class TestToolChoiceLfm2(TestToolChoiceLlama32):
cls.tokenizer = get_tokenizer(cls.model)
class TestToolChoiceLfm2Moe(TestToolChoiceLlama32):
"""Test tool_choice functionality with LiquidAI LFM2-MoE model"""
@classmethod
def setUpClass(cls):
cls.flaky_tests = {
"test_multi_tool_scenario_auto",
"test_multi_tool_scenario_required",
}
cls.model = "LiquidAI/LFM2-8B-A1B"
cls.base_url = DEFAULT_URL_FOR_TEST
cls.api_key = "sk-123456"
cls.process = popen_launch_server(
cls.model,
cls.base_url,
timeout=DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
api_key=cls.api_key,
other_args=[
"--tool-call-parser",
"lfm2",
],
)
cls.base_url += "/v1"
cls.tokenizer = get_tokenizer(cls.model)
@unittest.skip("maxItems:1 bug causes whitespace stall")
def test_tool_choice_required_non_streaming(self):
pass
@unittest.skip("maxItems:1 bug causes whitespace stall")
def test_tool_choice_specific_function_non_streaming(self):
pass
if __name__ == "__main__":
unittest.main()