Add Liquid Foundation Model (LFM2) (#16890)

This commit is contained in:
Piotr Mazurek
2026-01-22 11:11:20 +08:00
committed by GitHub
parent f2ae066a6b
commit d6e2b88288
11 changed files with 1493 additions and 7 deletions
@@ -855,5 +855,33 @@ class TestToolChoiceMistral(TestToolChoiceLlama32):
# cls.tokenizer = get_tokenizer(cls.model)
class TestToolChoiceLfm2(TestToolChoiceLlama32):
"""Test tool_choice functionality with LiquidAI LFM2 model"""
@classmethod
def setUpClass(cls):
cls.flaky_tests = {
"test_multi_tool_scenario_auto",
"test_multi_tool_scenario_required",
}
cls.model = "LiquidAI/LFM2.5-1.2B-Instruct"
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)
if __name__ == "__main__":
unittest.main()